diff --git a/.dprint.jsonc b/.dprint.jsonc index 3505f3b143d..98a8c53f8e5 100644 --- a/.dprint.jsonc +++ b/.dprint.jsonc @@ -38,6 +38,10 @@ "yml.singleQuote": true, "yaml.singleQuote": true }, + "json": { + // This would be good to do in known-JSONC files, but VS Code warns on trailing commas. + "trailingCommas": "never" + }, "excludes": [ "**/node_modules", "**/*-lock.json", @@ -51,8 +55,8 @@ ], // Note: if adding new languages, make sure settings.template.json is updated too. "plugins": [ - "https://plugins.dprint.dev/typescript-0.88.1.wasm", - "https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe", - "https://plugins.dprint.dev/json-0.17.4.wasm" + "https://plugins.dprint.dev/typescript-0.88.3.wasm", + "https://plugins.dprint.dev/json-0.19.0.wasm", + "https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe" ] } diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 61241ea7bf9..a8e5e557397 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -13,8 +13,7 @@ body: List them here so people in the future can find this one more easily. placeholder: | - List of keywords you searched for before creating this issue. - Write them down here so that others can find this bug more easily and help provide feedback. + List of keywords you searched for before creating this issue. Write them down here so that others can find this bug more easily and help provide feedback. e.g. "function inference any", "jsx attribute spread", "move to file duplicate imports", "discriminated union inference", "ts2822" validations: @@ -26,21 +25,19 @@ body: description: | When did you start seeing this bug occur? - "Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to - https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs + "Bugs" that have existed in TS for a long time are very likely to be FAQs; please refer to the [FAQ wiki page](https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs). + Please try the nightly version of TS to see if it's already been fixed. Install `typescript@next` or use the [Playground](http://www.typescriptlang.org/play/?ts=Nightly). - If possible, please try testing the nightly version of TS to see if it's already been fixed. For npm: `typescript@next` + If possible, try bisecting the issue using [every-ts](https://www.npmjs.com/package/every-ts#bisecting), which should narrow down the problem to a specific change. - This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly - - - Note: The TypeScript Playground can be used to try older versions of TypeScript. + The Playground also supports versions of TypeScript back to TypeScript 3.3. Please keep and fill in the line that best applies. value: | - This is a crash - This changed between versions ______ and _______ + - This changed in commit or PR _______ - This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________ - I was unable to test this on prior versions because _______ validations: @@ -54,7 +51,6 @@ body: This should have the same code as the code snippet below, and use whichever settings are relevant to your report. - As a last resort, you can link to a repo, but these will be slower for us to investigate. placeholder: 'Playground link with relevant code: https://www.typescriptlang.org/play?#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA' validations: @@ -65,6 +61,7 @@ body: label: đŸ’ģ Code description: | Please post the relevant code sample here as well. + This code and the Playground code should be the same, do not use separate examples. We can quickly address your report if: @@ -74,6 +71,7 @@ body: - The incorrectness of the behavior is readily apparent from reading the sample. Reports are slower to investigate if: + - We have to pare too much extraneous code. - We have to clone a large repo and validate that the problem isn't elsewhere. - The sample is confusing or doesn't clearly demonstrate what's wrong. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index ad96977fafa..a5d0b6b588c 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -15,8 +15,7 @@ body: The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests placeholder: | - List of keywords you searched for before creating this issue. - Write them down here so that others can find this suggestion more easily and help provide feedback. + List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback. e.g. "isArray readonly", "regex string types", "json const assertion import" validations: @@ -26,9 +25,7 @@ body: attributes: label: '✅ Viability Checklist' description: | - Suggestions that don't meet all these criteria are very, very unlikely to be accepted. - We always recommend reviewing the TypeScript design goals before investing time writing - a proposal for ideas outside the scope of the project. + Suggestions that don't meet all these criteria are very, very unlikely to be accepted. We always recommend reviewing the TypeScript design goals before investing time writing a proposal for ideas outside the scope of the project. My suggestion meets the following guidelines. options: @@ -54,8 +51,7 @@ body: attributes: label: '📃 Motivating Example' description: | - If you were announcing this feature in a blog post, what's a short - explanation that shows a developer why this feature improves the language? + If you were announcing this feature in a blog post, what's a short explanation that shows a developer why this feature improves the language? validations: required: true - type: textarea diff --git a/.github/ISSUE_TEMPLATE/lib_change.yml b/.github/ISSUE_TEMPLATE/lib_change.yml index f3d5c40b506..8d965d56722 100644 --- a/.github/ISSUE_TEMPLATE/lib_change.yml +++ b/.github/ISSUE_TEMPLATE/lib_change.yml @@ -12,18 +12,13 @@ body: * Array methods - see https://github.com/microsoft/TypeScript/issues/36554 * `parseInt`, `parseFloat`, `isFinite`, `isNaN`, etc. - see https://github.com/microsoft/TypeScript/issues/4002 - - The DOM lib is maintained elsewhere and you can skip a step by filing issues/PRs for the DOM at that repo. - See https://github.com/microsoft/TypeScript-DOM-lib-generator + The DOM lib is maintained elsewhere and you can skip a step by filing issues/PRs for the DOM at that repo. See https://github.com/microsoft/TypeScript-DOM-lib-generator - type: markdown attributes: value: | - If you're missing common new methods like `Array.includes`, you may have a misconfigured project. - Try setting `lib: "es2020"` and checking whether the type you want is present. - You can diagnose further by running `tsc` with `--listFilesOnly` or `--showConfig`. + If you're missing common new methods like `Array.includes`, you may have a misconfigured project. Try setting `lib: "es2020"` and checking whether the type you want is present. You can diagnose further by running `tsc` with `--listFilesOnly` or `--showConfig`. - Conversely, if you are seeing built-in methods you expect to *not* see, check your 'lib' setting or review your dependencies for lib/reference directives that might be polluting - your global scope. This is common when using the 'node' type library. See https://github.com/microsoft/TypeScript/issues/40184 + Conversely, if you are seeing built-in methods you expect to *not* see, check your 'lib' setting or review your dependencies for lib/reference directives that might be polluting your global scope. This is common when using the 'node' type library. See https://github.com/microsoft/TypeScript/issues/40184 - type: input id: compilation_target attributes: @@ -58,5 +53,4 @@ body: attributes: label: 'Documentation Link' description: | - Link to relevant documentation (e.g. MDN, W3C, ECMAScript Spec) to consult for this property. - Note that lib.dom.d.ts intentionally does not include browser-specific extensions or early experimental features. + Link to relevant documentation (e.g. MDN, W3C, ECMAScript Spec) to consult for this property. Note that lib.dom.d.ts intentionally does not include browser-specific extensions or early experimental features. diff --git a/.github/ISSUE_TEMPLATE/module_resolution.yml b/.github/ISSUE_TEMPLATE/module_resolution.yml index bfcff786bc4..21c6d826e4c 100644 --- a/.github/ISSUE_TEMPLATE/module_resolution.yml +++ b/.github/ISSUE_TEMPLATE/module_resolution.yml @@ -27,8 +27,7 @@ body: 4. The configuration of the target module 5. A difference in runtime behavior - You will also be required to post a cloneable repository. - This repo must involve running `tsc`, not a third-party tool (e.g. vue-tsc, ngc, expo, ...) + You will also be required to post a cloneable repository. This repo must involve running `tsc`, not a third-party tool (e.g. vue-tsc, ngc, expo, ...) - type: input id: repo-url diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..63cbb735019 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' + groups: + github-actions: + patterns: + - '*' diff --git a/.github/pr_owners.txt b/.github/pr_owners.txt index 0ad7ff58f56..015655cb425 100644 --- a/.github/pr_owners.txt +++ b/.github/pr_owners.txt @@ -13,3 +13,4 @@ jakebailey DanielRosenwasser navya9singh iisaduan +dependabot diff --git a/.github/workflows/accept-baselines-fix-lints.yaml b/.github/workflows/accept-baselines-fix-lints.yaml index cc3f27235f5..b382f3fde9a 100644 --- a/.github/workflows/accept-baselines-fix-lints.yaml +++ b/.github/workflows/accept-baselines-fix-lints.yaml @@ -16,12 +16,11 @@ jobs: build: runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 - name: Configure Git, Run Tests, Update Baselines, Apply Fixes run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f9301ad315..67551fb65f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,9 +39,9 @@ jobs: name: Test Node ${{ matrix.node-version }} with --bundle=${{ matrix.bundle }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Use node version ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: ${{ matrix.node-version }} check-latest: true @@ -55,8 +55,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true @@ -69,14 +69,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true - run: npm ci - - uses: actions/cache@v3 + - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 with: path: ~/.cache/dprint key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }} @@ -90,8 +90,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true @@ -107,8 +107,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true @@ -121,9 +121,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true @@ -162,16 +162,16 @@ jobs: if: github.event_name == 'pull_request' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: path: pr - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: path: base ref: ${{ github.base_ref }} - - uses: actions/setup-node@v3 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true @@ -204,8 +204,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true @@ -221,8 +221,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true @@ -241,8 +241,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '*' check-latest: true diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a54f05f8c3f..408a74af72a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -42,11 +42,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@49abf0ba24d0b7953cb586944e918a0b92074c80 # v2.22.4 with: config-file: ./.github/codeql/codeql-configuration.yml # Override language selection by uncommenting this and choosing your languages @@ -56,7 +56,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below). - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@49abf0ba24d0b7953cb586944e918a0b92074c80 # v2.22.4 # â„šī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -70,4 +70,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@49abf0ba24d0b7953cb586944e918a0b92074c80 # v2.22.4 diff --git a/.github/workflows/ensure-related-repos-run-crons.yml b/.github/workflows/ensure-related-repos-run-crons.yml deleted file mode 100644 index 077095ce9a6..00000000000 --- a/.github/workflows/ensure-related-repos-run-crons.yml +++ /dev/null @@ -1,56 +0,0 @@ -# Ensures that repos which are related to TypeScript but may not have regular commits -# have their GitHub Actions scheduled jobs still active due to the 6 week timeout -# on OSS repos. This has already triggered a few times with microsoft/TypeScript-Make-Monaco-Builds -# so, better to automate keeping on top of it. - -name: Related Repo Commit Bumps - -on: - schedule: - # Monthly, https://crontab.guru/#0_0_*_1-12_* - - cron: '0 0 1 * *' - workflow_dispatch: {} - -permissions: - contents: read - -# Ensure scripts are run with pipefail. See: -# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference -defaults: - run: - shell: bash - -jobs: - build: - runs-on: ubuntu-latest - if: github.repository == 'microsoft/TypeScript' - - steps: - - name: Configure git - run: | - git config --global user.email "typescriptbot@microsoft.com" - git config --global user.name "TypeScript Bot" - - - uses: actions/checkout@v3 - with: - repository: 'microsoft/TypeScript-Website' - path: 'ts-site' - - - name: Push Commit to TS Website - run: | - cd ts-site - git commit --allow-empty -m "Monthly Bump" - git config --unset-all http.https://github.com/.extraheader - git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Website.git - - - uses: actions/checkout@v3 - with: - repository: 'microsoft/TypeScript-Make-Monaco-Builds' - path: 'monaco-builds' - - - name: Push Commit to TS Make Monaco Builds - run: | - cd monaco-builds - git commit --allow-empty -m "Monthly Bump" - git config --unset-all http.https://github.com/.extraheader - git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Make-Monaco-Builds.git diff --git a/.github/workflows/new-release-branch.yaml b/.github/workflows/new-release-branch.yaml index 03026e711e5..d2c17b9d46f 100644 --- a/.github/workflows/new-release-branch.yaml +++ b/.github/workflows/new-release-branch.yaml @@ -17,14 +17,13 @@ jobs: build: runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: - fetch-depth: 5 - - uses: actions/setup-node@v3 + filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ + fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none. + token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 - run: | npm --version # corepack enable npm @@ -38,10 +37,11 @@ jobs: sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts sed -i -e 's/const version\(: string\)\{0,1\} = `${versionMajorMinor}.0-.*`/const version = `${versionMajorMinor}.0-${{ github.event.client_payload.core_tag || 'dev' }}`/g' src/compiler/corePublic.ts npm ci + npm install # update package-lock.json to ensure the version bump is included npx hereby LKG npm test git diff - git add package.json + git add package.json package-lock.json git add src/compiler/corePublic.ts git add tests/baselines/reference/api/typescript.d.ts git add tests/baselines/reference/api/tsserverlibrary.d.ts diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 20a5d2c5903..6cc20f13323 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -23,8 +23,8 @@ jobs: if: github.repository == 'microsoft/TypeScript' steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: # Use NODE_AUTH_TOKEN environment variable to authenticate to this registry. registry-url: https://registry.npmjs.org/ diff --git a/.github/workflows/release-branch-artifact.yaml b/.github/workflows/release-branch-artifact.yaml index f9a6bbad41c..24be83d5a44 100644 --- a/.github/workflows/release-branch-artifact.yaml +++ b/.github/workflows/release-branch-artifact.yaml @@ -19,8 +19,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 - run: | npm --version # corepack enable npm @@ -41,7 +41,7 @@ jobs: npm pack ./ mv typescript-*.tgz typescript.tgz - name: Upload built tarfile - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: tgz path: typescript.tgz diff --git a/.github/workflows/rich-navigation.yml b/.github/workflows/rich-navigation.yml index 83bf30ec083..3dfbe6695a4 100644 --- a/.github/workflows/rich-navigation.yml +++ b/.github/workflows/rich-navigation.yml @@ -24,16 +24,14 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 5 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 - name: Install dependencies run: npm ci - - uses: microsoft/RichCodeNavIndexer@v0.1 + - uses: microsoft/RichCodeNavIndexer@e444937494b8941cc2bcccf2bcf2cd595d402f6b # v0.1 with: languages: typescript repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index dcfc01ed5f7..944520dd819 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -29,12 +29,12 @@ jobs: steps: - name: 'Checkout code' - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: persist-credentials: false - name: 'Run analysis' - uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3 + uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 with: results_file: results.sarif results_format: sarif @@ -47,7 +47,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: 'Upload artifact' - uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: SARIF file path: results.sarif @@ -55,6 +55,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: 'Upload to code-scanning' - uses: github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27 + uses: github/codeql-action/upload-sarif@49abf0ba24d0b7953cb586944e918a0b92074c80 # v2.22.4 with: sarif_file: results.sarif diff --git a/.github/workflows/set-version.yaml b/.github/workflows/set-version.yaml index c641b03a17e..7e1c8bf673f 100644 --- a/.github/workflows/set-version.yaml +++ b/.github/workflows/set-version.yaml @@ -16,15 +16,12 @@ defaults: jobs: build: runs-on: ubuntu-latest - - permissions: - contents: write - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: ref: ${{ github.event.client_payload.branch_name }} - - uses: actions/setup-node@v3 + token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 - run: | npm --version # corepack enable npm @@ -44,10 +41,11 @@ jobs: sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts sed -i -e 's/const version\(: string\)\{0,1\} = .*;/const version = "${{ github.event.client_payload.package_version }}" as string;/g' src/compiler/corePublic.ts npm ci + npm install # update package-lock.json to ensure the version bump is included npx hereby LKG npm test git diff - git add package.json + git add package.json package-lock.json git add src/compiler/corePublic.ts git add tests/baselines/reference/api/typescript.d.ts git add tests/baselines/reference/api/tsserverlibrary.d.ts diff --git a/.github/workflows/sync-branch.yaml b/.github/workflows/sync-branch.yaml index 68dc6b286c4..ab2ad9b94a8 100644 --- a/.github/workflows/sync-branch.yaml +++ b/.github/workflows/sync-branch.yaml @@ -22,16 +22,14 @@ jobs: build: runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/setup-node@v3 - - uses: actions/checkout@v3 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: ref: ${{ github.event.inputs.branch_name || github.event.client_payload.branch_name }} - fetch-depth: 0 - # This does a test post-merge and only pushes the result if the test succeeds + filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ + fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none. + token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} # required client_payload members: # branch_name - the target branch - run: | @@ -40,5 +38,7 @@ jobs: git fetch origin main git merge origin/main --no-ff npm ci - npm test + npx hereby LKG + git add --force ./lib + git commit -m 'Update LKG' git push diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index ee20ba8d4c7..4e7307a26a0 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -18,7 +18,7 @@ jobs: - name: Get repo name run: R=${GITHUB_REPOSITORY%?wiki}; echo "BASENAME=${R##*/}" >> $GITHUB_ENV - name: Checkout ${{ env.BASENAME }}-wiki - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: repository: '${{ GITHUB.repository_owner }}/${{ env.BASENAME }}-wiki' token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/twoslash-repros.yaml b/.github/workflows/twoslash-repros.yaml index 60aba0dc60b..589fb16847b 100644 --- a/.github/workflows/twoslash-repros.yaml +++ b/.github/workflows/twoslash-repros.yaml @@ -34,13 +34,14 @@ jobs: runs-on: ubuntu-latest steps: - if: ${{ github.event.inputs.bisect }} - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: - fetch-depth: 0 + filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ + fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none. - if: ${{ !github.event.inputs.bisect }} - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - - uses: microsoft/TypeScript-Twoslash-Repro-Action@master + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + - uses: microsoft/TypeScript-Twoslash-Repro-Action@80178415feb0ebd3ed88d09e263a7cb8c8d6e1d2 # master with: github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} issue: ${{ github.event.inputs.issue }} diff --git a/.github/workflows/update-lkg.yml b/.github/workflows/update-lkg.yml deleted file mode 100644 index c335f5a8d15..00000000000 --- a/.github/workflows/update-lkg.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Update LKG - -on: - workflow_dispatch: {} - -permissions: - contents: read - -# Ensure scripts are run with pipefail. See: -# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference -defaults: - run: - shell: bash - -jobs: - build: - runs-on: ubuntu-latest - - permissions: - contents: write - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - - - name: Configure Git and Update LKG - run: | - git config user.email "typescriptbot@microsoft.com" - git config user.name "TypeScript Bot" - npm ci - npx hereby LKG - npm test - git diff - git add --force ./lib - git commit -m "Update LKG" - git push diff --git a/.github/workflows/update-package-lock.yaml b/.github/workflows/update-package-lock.yaml index da5796e9b0d..5b0613cc305 100644 --- a/.github/workflows/update-package-lock.yaml +++ b/.github/workflows/update-package-lock.yaml @@ -21,14 +21,11 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'microsoft/TypeScript' - permissions: - contents: write - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} - - uses: actions/setup-node@v3 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: 16 - run: | @@ -46,7 +43,7 @@ jobs: echo "No change." else npm test - npx hereby lkg + npx hereby LKG git config user.email "typescriptbot@microsoft.com" git config user.name "TypeScript Bot" git add -f package-lock.json diff --git a/README.md b/README.md index 9bcef687476..a535aa7c2a8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ # TypeScript [![GitHub Actions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI) -[![Devops Build Status](https://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.com/typescript/TypeScript/_build?definitionId=7) [![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) [![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript/badge)](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript) diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 00000000000..fc172b52acb --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,11 @@ +# Support + +## How to file issues and get help + +This project uses GitHub issues to track bugs and feature requests. Please search the [existing issues](https://github.com/microsoft/TypeScript/issues) before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue. + +For help and questions about using this project, please see the [`typescript` label on Stack Overflow](https://stackoverflow.com/questions/tagged/typescript) or the [`#typescript` channel on Discord](https://discord.com/invite/typescript). + +## Microsoft Support Policy + +TypeScript releases may include new features, fixes (security and/or non-security), or a combination of both. Some critical issues may be fixed in a servicing update to the latest release. When included with a Microsoft product, TypeScript support and servicing is offered under the [Modern Support Policy](https://learn.microsoft.com/lifecycle/policies/modern). For Visual Studio, servicing fixes are limited to security fixes for versions of TypeScript included in under-support releases of Visual Studio. Community support for this project is limited to the resources listed above. Assisted support is available from a professional support engineer by opening a ticket with the [Microsoft assisted support team](https://support.serviceshub.microsoft.com/supportforbusiness/onboarding). diff --git a/package-lock.json b/package-lock.json index 53bb8cbd992..d094d904483 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "chalk": "^4.1.2", "chokidar": "^3.5.3", "diff": "^5.1.0", - "dprint": "^0.41.0", + "dprint": "^0.42.3", "esbuild": "^0.19.0", "eslint": "^8.22.0", "eslint-formatter-autolinkable-stylish": "^1.2.0", @@ -75,9 +75,9 @@ "dev": true }, "node_modules/@dprint/darwin-arm64": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/darwin-arm64/-/darwin-arm64-0.41.0.tgz", - "integrity": "sha512-P9PtcQI0mrI4U6yyd+/iI664BHSqC9KTS6ogq0ptEdnLtlaWzf09D1nv6FBaHiG9m3conuBRlPsoUqt3j6PZ2w==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/darwin-arm64/-/darwin-arm64-0.42.5.tgz", + "integrity": "sha512-3bBBlaAXQ9WTC+jvd2/iyj7cVp0G58/v5R7+YADUl5K9xF+Ah+xLFm6xw4Iwq+zsYaWDimRmLnM5iRSJC9qv1Q==", "cpu": [ "arm64" ], @@ -88,9 +88,9 @@ ] }, "node_modules/@dprint/darwin-x64": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/darwin-x64/-/darwin-x64-0.41.0.tgz", - "integrity": "sha512-mSYnSoH0uyCkjgIWTny2DZAcaiRTe3kRWY5SeZECLGO37e+SdVg+ZjSzndhOvvEb9pv8EeBO1NJ9gHOSceT5Xw==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/darwin-x64/-/darwin-x64-0.42.5.tgz", + "integrity": "sha512-gwx6lODOckU3xGv0zVFad/SMMtwBleiBAzm3UVw/WkGiCVo3XrIZ6EdLr4zCmB4A2R+SOxODU70WtONCF0dGnQ==", "cpu": [ "x64" ], @@ -101,9 +101,22 @@ ] }, "node_modules/@dprint/linux-arm64-glibc": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/linux-arm64-glibc/-/linux-arm64-glibc-0.41.0.tgz", - "integrity": "sha512-U4xWzjjO/aAct8cSSMZFhg8l1jWy6VahXh8zWjGBufwX7t3xEcxMG9RyAp/ioYSY6wl4YXAmnUHywhC+wSjDHQ==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-arm64-glibc/-/linux-arm64-glibc-0.42.5.tgz", + "integrity": "sha512-ijJm+zOxHK3Chnis3y5kVzvBr21Ugyodqpz1chClNWkaR+0/BYDik+lxZVrbxZw8gxqPu8iisOceCQQC42Bkzg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@dprint/linux-arm64-musl": { + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-arm64-musl/-/linux-arm64-musl-0.42.5.tgz", + "integrity": "sha512-OLbJgv14AvJRVBi+ZCXBH0rsMSIdCZi/z1hCTRUb901VB2OVf81k5vvBn7HS5S9wMQ2HIG8GFOyckBg0qhEgAQ==", "cpu": [ "arm64" ], @@ -114,9 +127,9 @@ ] }, "node_modules/@dprint/linux-x64-glibc": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/linux-x64-glibc/-/linux-x64-glibc-0.41.0.tgz", - "integrity": "sha512-wjv5l4mGns7E8i32E8FfAk45tw5O7v4NM17gtvhe6ggOiOD6quHowOH00pLfEakMLMF9y0J5ZO2hxJ/w06bXmQ==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-x64-glibc/-/linux-x64-glibc-0.42.5.tgz", + "integrity": "sha512-tWh1kMbTi/lxS6hQJCDnriZonzGYN6FcN2AqF1C/TdRNjacFVvQnxZTdHPLJbgw0mSujHPinl3NtvllZ9CwVqA==", "cpu": [ "x64" ], @@ -127,9 +140,9 @@ ] }, "node_modules/@dprint/linux-x64-musl": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/linux-x64-musl/-/linux-x64-musl-0.41.0.tgz", - "integrity": "sha512-ZZOqiur9Xi/2uhz0Ce215VTSajAlSrduX/5k/hpIjI7Rgz22Vn77p5fmYxzWkTt/Li1zq5zboTvmGYx0QVNMrQ==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-x64-musl/-/linux-x64-musl-0.42.5.tgz", + "integrity": "sha512-GObJlhUqQpaXKRMTUUEkdYgWgS1aVyMUQZFn3dBmLycl4F2gXWxKgYB6R47ESVeejsEvE9fTTuxlpK6fOHjaKQ==", "cpu": [ "x64" ], @@ -140,9 +153,9 @@ ] }, "node_modules/@dprint/win32-x64": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/win32-x64/-/win32-x64-0.41.0.tgz", - "integrity": "sha512-mFx6x4Hn848/D4gPbDm7g1wlnOh2SGoVF9c9HMGCuOobUU2WIBztzV4L5qlFCB3gprlS0ru9BhlMpGhrp0CBYA==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/win32-x64/-/win32-x64-0.42.5.tgz", + "integrity": "sha512-N2N1FlmbEFbH/WqoKGdsZplBpfq9qdhfkJHQH1poVG3KxqT0dq01oqAfnC3ZQaSBoBrBfp5GyRtj7KwCxdqxXA==", "cpu": [ "x64" ], @@ -153,9 +166,9 @@ ] }, "node_modules/@esbuild/android-arm": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.4.tgz", - "integrity": "sha512-uBIbiYMeSsy2U0XQoOGVVcpIktjLMEKa7ryz2RLr7L/vTnANNEsPVAh4xOv7ondGz6ac1zVb0F8Jx20rQikffQ==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz", + "integrity": "sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==", "cpu": [ "arm" ], @@ -169,9 +182,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.4.tgz", - "integrity": "sha512-mRsi2vJsk4Bx/AFsNBqOH2fqedxn5L/moT58xgg51DjX1la64Z3Npicut2VbhvDFO26qjWtPMsVxCd80YTFVeg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz", + "integrity": "sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==", "cpu": [ "arm64" ], @@ -185,9 +198,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.4.tgz", - "integrity": "sha512-4iPufZ1TMOD3oBlGFqHXBpa3KFT46aLl6Vy7gwed0ZSYgHaZ/mihbYb4t7Z9etjkC9Al3ZYIoOaHrU60gcMy7g==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.5.tgz", + "integrity": "sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==", "cpu": [ "x64" ], @@ -201,9 +214,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.4.tgz", - "integrity": "sha512-Lviw8EzxsVQKpbS+rSt6/6zjn9ashUZ7Tbuvc2YENgRl0yZTktGlachZ9KMJUsVjZEGFVu336kl5lBgDN6PmpA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.5.tgz", + "integrity": "sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==", "cpu": [ "arm64" ], @@ -217,9 +230,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.4.tgz", - "integrity": "sha512-YHbSFlLgDwglFn0lAO3Zsdrife9jcQXQhgRp77YiTDja23FrC2uwnhXMNkAucthsf+Psr7sTwYEryxz6FPAVqw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz", + "integrity": "sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==", "cpu": [ "x64" ], @@ -233,9 +246,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.4.tgz", - "integrity": "sha512-vz59ijyrTG22Hshaj620e5yhs2dU1WJy723ofc+KUgxVCM6zxQESmWdMuVmUzxtGqtj5heHyB44PjV/HKsEmuQ==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz", + "integrity": "sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==", "cpu": [ "arm64" ], @@ -249,9 +262,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.4.tgz", - "integrity": "sha512-3sRbQ6W5kAiVQRBWREGJNd1YE7OgzS0AmOGjDmX/qZZecq8NFlQsQH0IfXjjmD0XtUYqr64e0EKNFjMUlPL3Cw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz", + "integrity": "sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==", "cpu": [ "x64" ], @@ -265,9 +278,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.4.tgz", - "integrity": "sha512-z/4ArqOo9EImzTi4b6Vq+pthLnepFzJ92BnofU1jgNlcVb+UqynVFdoXMCFreTK7FdhqAzH0vmdwW5373Hm9pg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz", + "integrity": "sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==", "cpu": [ "arm" ], @@ -281,9 +294,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.4.tgz", - "integrity": "sha512-ZWmWORaPbsPwmyu7eIEATFlaqm0QGt+joRE9sKcnVUG3oBbr/KYdNE2TnkzdQwX6EDRdg/x8Q4EZQTXoClUqqA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz", + "integrity": "sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==", "cpu": [ "arm64" ], @@ -297,9 +310,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.4.tgz", - "integrity": "sha512-EGc4vYM7i1GRUIMqRZNCTzJh25MHePYsnQfKDexD8uPTCm9mK56NIL04LUfX2aaJ+C9vyEp2fJ7jbqFEYgO9lQ==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz", + "integrity": "sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==", "cpu": [ "ia32" ], @@ -313,9 +326,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.4.tgz", - "integrity": "sha512-WVhIKO26kmm8lPmNrUikxSpXcgd6HDog0cx12BUfA2PkmURHSgx9G6vA19lrlQOMw+UjMZ+l3PpbtzffCxFDRg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz", + "integrity": "sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==", "cpu": [ "loong64" ], @@ -329,9 +342,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.4.tgz", - "integrity": "sha512-keYY+Hlj5w86hNp5JJPuZNbvW4jql7c1eXdBUHIJGTeN/+0QFutU3GrS+c27L+NTmzi73yhtojHk+lr2+502Mw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz", + "integrity": "sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==", "cpu": [ "mips64el" ], @@ -345,9 +358,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.4.tgz", - "integrity": "sha512-tQ92n0WMXyEsCH4m32S21fND8VxNiVazUbU4IUGVXQpWiaAxOBvtOtbEt3cXIV3GEBydYsY8pyeRMJx9kn3rvw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz", + "integrity": "sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==", "cpu": [ "ppc64" ], @@ -361,9 +374,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.4.tgz", - "integrity": "sha512-tRRBey6fG9tqGH6V75xH3lFPpj9E8BH+N+zjSUCnFOX93kEzqS0WdyJHkta/mmJHn7MBaa++9P4ARiU4ykjhig==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz", + "integrity": "sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==", "cpu": [ "riscv64" ], @@ -377,9 +390,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.4.tgz", - "integrity": "sha512-152aLpQqKZYhThiJ+uAM4PcuLCAOxDsCekIbnGzPKVBRUDlgaaAfaUl5NYkB1hgY6WN4sPkejxKlANgVcGl9Qg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz", + "integrity": "sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==", "cpu": [ "s390x" ], @@ -393,9 +406,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.4.tgz", - "integrity": "sha512-Mi4aNA3rz1BNFtB7aGadMD0MavmzuuXNTaYL6/uiYIs08U7YMPETpgNn5oue3ICr+inKwItOwSsJDYkrE9ekVg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz", + "integrity": "sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==", "cpu": [ "x64" ], @@ -409,9 +422,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.4.tgz", - "integrity": "sha512-9+Wxx1i5N/CYo505CTT7T+ix4lVzEdz0uCoYGxM5JDVlP2YdDC1Bdz+Khv6IbqmisT0Si928eAxbmGkcbiuM/A==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz", + "integrity": "sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==", "cpu": [ "x64" ], @@ -425,9 +438,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.4.tgz", - "integrity": "sha512-MFsHleM5/rWRW9EivFssop+OulYVUoVcqkyOkjiynKBCGBj9Lihl7kh9IzrreDyXa4sNkquei5/DTP4uCk25xw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz", + "integrity": "sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==", "cpu": [ "x64" ], @@ -441,9 +454,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.4.tgz", - "integrity": "sha512-6Xq8SpK46yLvrGxjp6HftkDwPP49puU4OF0hEL4dTxqCbfx09LyrbUj/D7tmIRMj5D5FCUPksBbxyQhp8tmHzw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz", + "integrity": "sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==", "cpu": [ "x64" ], @@ -457,9 +470,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.4.tgz", - "integrity": "sha512-PkIl7Jq4mP6ke7QKwyg4fD4Xvn8PXisagV/+HntWoDEdmerB2LTukRZg728Yd1Fj+LuEX75t/hKXE2Ppk8Hh1w==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz", + "integrity": "sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==", "cpu": [ "arm64" ], @@ -473,9 +486,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.4.tgz", - "integrity": "sha512-ga676Hnvw7/ycdKB53qPusvsKdwrWzEyJ+AtItHGoARszIqvjffTwaaW3b2L6l90i7MO9i+dlAW415INuRhSGg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz", + "integrity": "sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==", "cpu": [ "ia32" ], @@ -489,9 +502,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.4.tgz", - "integrity": "sha512-HP0GDNla1T3ZL8Ko/SHAS2GgtjOg+VmWnnYLhuTksr++EnduYB0f3Y2LzHsUwb2iQ13JGoY6G3R8h6Du/WG6uA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz", + "integrity": "sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==", "cpu": [ "x64" ], @@ -546,9 +559,9 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.0.tgz", - "integrity": "sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" @@ -578,21 +591,21 @@ } }, "node_modules/@eslint/js": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz", - "integrity": "sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==", + "version": "8.52.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.52.0.tgz", + "integrity": "sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.11", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", - "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", + "@humanwhocodes/object-schema": "^2.0.1", "debug": "^4.1.1", "minimatch": "^3.0.5" }, @@ -614,9 +627,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", "dev": true }, "node_modules/@istanbuljs/schema": { @@ -644,9 +657,9 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -880,9 +893,9 @@ } }, "node_modules/@types/chai": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.6.tgz", - "integrity": "sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw==", + "version": "4.3.9", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.9.tgz", + "integrity": "sha512-69TtiDzu0bcmKQv3yg1Zx409/Kd7r0b5F1PfpYJfSHzLGtB53547V4u+9iqKYsTu/O2ai6KTb0TInNpvuQ3qmg==", "dev": true }, "node_modules/@types/glob": { @@ -896,21 +909,21 @@ } }, "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", + "integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==", "dev": true }, "node_modules/@types/json-schema": { - "version": "7.0.13", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", - "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz", + "integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw==", "dev": true }, "node_modules/@types/microsoft__typescript-etw": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@types/microsoft__typescript-etw/-/microsoft__typescript-etw-0.1.1.tgz", - "integrity": "sha512-zdgHyZJEwbFKI6zhOqWPsNMhlrAk6qMrn9VMA6VQtRt/F+jNJKeaHIMysuO9oTLv0fWcli0gwUrMv8MeFyb3Sw==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@types/microsoft__typescript-etw/-/microsoft__typescript-etw-0.1.2.tgz", + "integrity": "sha512-tOI1MLj8zY7R5LWdnY/mi+6A1hxLOO0zwrLBiDHytTM2NEoZGmQFgM8rsnu7SXchKX1Gvz2ak8Y77nVqJ5uAIw==", "dev": true }, "node_modules/@types/minimatch": { @@ -920,39 +933,42 @@ "dev": true }, "node_modules/@types/minimist": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.3.tgz", - "integrity": "sha512-ZYFzrvyWUNhaPomn80dsMNgMeXxNWZBdkuG/hWlUvXvbdUH8ZERNBGXnU87McuGcWDsyzX2aChCv/SVN348k3A==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.4.tgz", + "integrity": "sha512-Kfe/D3hxHTusnPNRbycJE1N77WHDsdS4AjUYIzlDzhDrS47NrwuL3YW4VITxwR7KCVpzwgy4Rbj829KSSQmwXQ==", "dev": true }, "node_modules/@types/mocha": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.2.tgz", - "integrity": "sha512-NaHL0+0lLNhX6d9rs+NSt97WH/gIlRHmszXbQ/8/MV/eVcFNdeJ/GYhrFuUc8K7WuPhRhTSdMkCp8VMzhUq85w==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.3.tgz", + "integrity": "sha512-RsOPImTriV/OE4A9qKjMtk2MnXiuLLbcO3nCXK+kvq4nr0iMfFgpjaX3MPLb6f7+EL1FGSelYvuJMV6REH+ZPQ==", "dev": true }, "node_modules/@types/ms": { - "version": "0.7.32", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.32.tgz", - "integrity": "sha512-xPSg0jm4mqgEkNhowKgZFBNtwoEwF6gJ4Dhww+GFpm3IgtNseHQZ5IqdNwnquZEoANxyDAKDRAdVo4Z72VvD/g==", + "version": "0.7.33", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.33.tgz", + "integrity": "sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==", "dev": true }, "node_modules/@types/node": { - "version": "20.7.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.7.1.tgz", - "integrity": "sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg==", - "dev": true + "version": "20.8.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", + "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==", "dev": true }, "node_modules/@types/source-map-support": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.8.tgz", - "integrity": "sha512-u5nwLcaENciDwebPwwZb2AM1LvdlgFQfqCKxWQxcgNsQhUQciGuUnJ2LjGFAkInY2APXQzIypiUSa9zB6Epddg==", + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.9.tgz", + "integrity": "sha512-91Jf4LyPAObBTFbpW3bSDK1ncdwXohvlBmzffSj7/44SY+1mD/HhesdfspCMxPIJwllgN2G4eVFatGs4Zw/lnw==", "dev": true, "dependencies": { "source-map": "^0.6.0" @@ -965,16 +981,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.3.tgz", - "integrity": "sha512-vntq452UHNltxsaaN+L9WyuMch8bMd9CqJ3zhzTPXXidwbf5mqqKCVXEuvRZUqLJSTLeWE65lQwyXsRGnXkCTA==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.1.tgz", + "integrity": "sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.7.3", - "@typescript-eslint/type-utils": "6.7.3", - "@typescript-eslint/utils": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/type-utils": "6.9.1", + "@typescript-eslint/utils": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1000,15 +1016,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.3.tgz", - "integrity": "sha512-TlutE+iep2o7R8Lf+yoer3zU6/0EAUc8QIBB3GYBc1KGz4c4TRm83xwXUZVPlZ6YCLss4r77jbu6j3sendJoiQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.1.tgz", + "integrity": "sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.7.3", - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/typescript-estree": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4" }, "engines": { @@ -1028,13 +1044,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.3.tgz", - "integrity": "sha512-wOlo0QnEou9cHO2TdkJmzF7DFGvAKEnB82PuPNHpT8ZKKaZu6Bm63ugOTn9fXNJtvuDPanBc78lGUGGytJoVzQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.1.tgz", + "integrity": "sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3" + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1045,13 +1061,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.7.3.tgz", - "integrity": "sha512-Fc68K0aTDrKIBvLnKTZ5Pf3MXK495YErrbHb1R6aTpfK5OdSFj0rVN7ib6Tx6ePrZ2gsjLqr0s98NG7l96KSQw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.1.tgz", + "integrity": "sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.7.3", - "@typescript-eslint/utils": "6.7.3", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/utils": "6.9.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -1072,9 +1088,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.3.tgz", - "integrity": "sha512-4g+de6roB2NFcfkZb439tigpAMnvEIg3rIjWQ+EM7IBaYt/CdJt6em9BJ4h4UpdgaBWdmx2iWsafHTrqmgIPNw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.1.tgz", + "integrity": "sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1085,13 +1101,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.3.tgz", - "integrity": "sha512-YLQ3tJoS4VxLFYHTw21oe1/vIZPRqAO91z6Uv0Ss2BKm/Ag7/RVQBcXTGcXhgJMdA4U+HrKuY5gWlJlvoaKZ5g==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.1.tgz", + "integrity": "sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1112,17 +1128,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.3.tgz", - "integrity": "sha512-vzLkVder21GpWRrmSR9JxGZ5+ibIUSudXlW52qeKpzUEQhRSmyZiVDDj3crAth7+5tmN1ulvgKaCU2f/bPRCzg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.1.tgz", + "integrity": "sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.7.3", - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/typescript-estree": "6.7.3", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", "semver": "^7.5.4" }, "engines": { @@ -1137,12 +1153,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.3.tgz", - "integrity": "sha512-HEVXkU9IB+nk9o63CeICMHxFWbHWr3E1mpilIQBe9+7L/lH97rleFLVtYsfnWB+JVMaiFnEaxvknvmIzX+CqVg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.1.tgz", + "integrity": "sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.7.3", + "@typescript-eslint/types": "6.9.1", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -1153,10 +1169,16 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -1361,13 +1383,14 @@ } }, "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -1589,9 +1612,9 @@ "dev": true }, "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true }, "node_modules/cross-spawn": { @@ -1679,6 +1702,20 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", @@ -1719,21 +1756,22 @@ } }, "node_modules/dprint": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/dprint/-/dprint-0.41.0.tgz", - "integrity": "sha512-9Ctv6EnwOy5Ai566DczI/QhAC6y+AhWDA2gFU8Zz4xezUy1BevHaIYhfdLWZQxh4Qf4H28lRu1Lq+hhIm1US9w==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/dprint/-/dprint-0.42.5.tgz", + "integrity": "sha512-GvC3Hpsm/GKBZe6UjOZVKLb3u86puWc2lm+F+Bqgkk4fjQ9tpvZhENFra9al1rz01qfxsc3+6JZN/E9eJIME5Q==", "dev": true, "hasInstallScript": true, "bin": { "dprint": "bin.js" }, "optionalDependencies": { - "@dprint/darwin-arm64": "0.41.0", - "@dprint/darwin-x64": "0.41.0", - "@dprint/linux-arm64-glibc": "0.41.0", - "@dprint/linux-x64-glibc": "0.41.0", - "@dprint/linux-x64-musl": "0.41.0", - "@dprint/win32-x64": "0.41.0" + "@dprint/darwin-arm64": "0.42.5", + "@dprint/darwin-x64": "0.42.5", + "@dprint/linux-arm64-glibc": "0.42.5", + "@dprint/linux-arm64-musl": "0.42.5", + "@dprint/linux-x64-glibc": "0.42.5", + "@dprint/linux-x64-musl": "0.42.5", + "@dprint/win32-x64": "0.42.5" } }, "node_modules/emoji-regex": { @@ -1743,9 +1781,9 @@ "dev": true }, "node_modules/esbuild": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.4.tgz", - "integrity": "sha512-x7jL0tbRRpv4QUyuDMjONtWFciygUxWaUM1kMX2zWxI0X2YWOt7MSA0g4UdeSiHM8fcYVzpQhKYOycZwxTdZkA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.5.tgz", + "integrity": "sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==", "dev": true, "hasInstallScript": true, "bin": { @@ -1755,28 +1793,28 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/android-arm": "0.19.4", - "@esbuild/android-arm64": "0.19.4", - "@esbuild/android-x64": "0.19.4", - "@esbuild/darwin-arm64": "0.19.4", - "@esbuild/darwin-x64": "0.19.4", - "@esbuild/freebsd-arm64": "0.19.4", - "@esbuild/freebsd-x64": "0.19.4", - "@esbuild/linux-arm": "0.19.4", - "@esbuild/linux-arm64": "0.19.4", - "@esbuild/linux-ia32": "0.19.4", - "@esbuild/linux-loong64": "0.19.4", - "@esbuild/linux-mips64el": "0.19.4", - "@esbuild/linux-ppc64": "0.19.4", - "@esbuild/linux-riscv64": "0.19.4", - "@esbuild/linux-s390x": "0.19.4", - "@esbuild/linux-x64": "0.19.4", - "@esbuild/netbsd-x64": "0.19.4", - "@esbuild/openbsd-x64": "0.19.4", - "@esbuild/sunos-x64": "0.19.4", - "@esbuild/win32-arm64": "0.19.4", - "@esbuild/win32-ia32": "0.19.4", - "@esbuild/win32-x64": "0.19.4" + "@esbuild/android-arm": "0.19.5", + "@esbuild/android-arm64": "0.19.5", + "@esbuild/android-x64": "0.19.5", + "@esbuild/darwin-arm64": "0.19.5", + "@esbuild/darwin-x64": "0.19.5", + "@esbuild/freebsd-arm64": "0.19.5", + "@esbuild/freebsd-x64": "0.19.5", + "@esbuild/linux-arm": "0.19.5", + "@esbuild/linux-arm64": "0.19.5", + "@esbuild/linux-ia32": "0.19.5", + "@esbuild/linux-loong64": "0.19.5", + "@esbuild/linux-mips64el": "0.19.5", + "@esbuild/linux-ppc64": "0.19.5", + "@esbuild/linux-riscv64": "0.19.5", + "@esbuild/linux-s390x": "0.19.5", + "@esbuild/linux-x64": "0.19.5", + "@esbuild/netbsd-x64": "0.19.5", + "@esbuild/openbsd-x64": "0.19.5", + "@esbuild/sunos-x64": "0.19.5", + "@esbuild/win32-arm64": "0.19.5", + "@esbuild/win32-ia32": "0.19.5", + "@esbuild/win32-x64": "0.19.5" } }, "node_modules/escalade": { @@ -1801,18 +1839,19 @@ } }, "node_modules/eslint": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz", - "integrity": "sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==", + "version": "8.52.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.52.0.tgz", + "integrity": "sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.50.0", - "@humanwhocodes/config-array": "^0.11.11", + "@eslint/js": "8.52.0", + "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -2031,18 +2070,18 @@ "dev": true }, "node_modules/fast-xml-parser": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.1.tgz", - "integrity": "sha512-viVv3xb8D+SiS1W4cv4tva3bni08kAkx0gQnWrykMM8nXPc1FxqZPU00dCEVjkiCg4HoXd2jC4x29Nzg/l2DAA==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.2.tgz", + "integrity": "sha512-rmrXUXwbJedoXkStenj1kkljNF7ugn5ZjR9FJcwmCfcCbtOMDghPajbc+Tck6vE6F5XsDmx+Pr2le9fw8+pXBg==", "dev": true, "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, { "type": "github", "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" } ], "dependencies": { @@ -2143,12 +2182,12 @@ } }, "node_modules/flat-cache": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz", - "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", + "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", "dev": true, "dependencies": { - "flatted": "^3.2.7", + "flatted": "^3.2.9", "keyv": "^4.5.3", "rimraf": "^3.0.2" }, @@ -2208,10 +2247,13 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/get-caller-file": { "version": "2.0.5", @@ -2232,15 +2274,15 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2299,9 +2341,9 @@ } }, "node_modules/globals": { - "version": "13.22.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.22.0.tgz", - "integrity": "sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw==", + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -2333,24 +2375,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -2360,6 +2402,18 @@ "node": ">=8" } }, + "node_modules/has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", @@ -2384,6 +2438,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -2657,9 +2723,9 @@ "dev": true }, "node_modules/keyv": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", - "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, "dependencies": { "json-buffer": "3.0.1" @@ -2716,12 +2782,12 @@ } }, "node_modules/loupe": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", - "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", "dev": true, "dependencies": { - "get-func-name": "^2.0.0" + "get-func-name": "^2.0.1" } }, "node_modules/lru-cache": { @@ -2997,9 +3063,9 @@ } }, "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3149,12 +3215,12 @@ } }, "node_modules/playwright": { - "version": "1.38.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.38.1.tgz", - "integrity": "sha512-oRMSJmZrOu1FP5iu3UrCx8JEFRIMxLDM0c/3o4bpzU5Tz97BypefWf7TuTNPWeCe279TPal5RtPPZ+9lW/Qkow==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", + "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", "dev": true, "dependencies": { - "playwright-core": "1.38.1" + "playwright-core": "1.39.0" }, "bin": { "playwright": "cli.js" @@ -3167,9 +3233,9 @@ } }, "node_modules/playwright-core": { - "version": "1.38.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.38.1.tgz", - "integrity": "sha512-tQqNFUKa3OfMf4b2jQ7aGLB8o9bS3bOY0yMEtldtC2+spf8QXG9zvXLTXUeRsoNuxEYMgLYR+NXfAa1rjKRcrg==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", + "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", "dev": true, "bin": { "playwright-core": "cli.js" @@ -3232,9 +3298,9 @@ } }, "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" @@ -3435,6 +3501,21 @@ "randombytes": "^2.1.0" } }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -3732,6 +3813,12 @@ "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", "dev": true }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", @@ -3748,14 +3835,14 @@ } }, "node_modules/v8-to-istanbul": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", - "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "version": "9.1.3", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.3.tgz", + "integrity": "sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==", "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" + "convert-source-map": "^2.0.0" }, "engines": { "node": ">=10.12.0" @@ -3927,198 +4014,205 @@ "dev": true }, "@dprint/darwin-arm64": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/darwin-arm64/-/darwin-arm64-0.41.0.tgz", - "integrity": "sha512-P9PtcQI0mrI4U6yyd+/iI664BHSqC9KTS6ogq0ptEdnLtlaWzf09D1nv6FBaHiG9m3conuBRlPsoUqt3j6PZ2w==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/darwin-arm64/-/darwin-arm64-0.42.5.tgz", + "integrity": "sha512-3bBBlaAXQ9WTC+jvd2/iyj7cVp0G58/v5R7+YADUl5K9xF+Ah+xLFm6xw4Iwq+zsYaWDimRmLnM5iRSJC9qv1Q==", "dev": true, "optional": true }, "@dprint/darwin-x64": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/darwin-x64/-/darwin-x64-0.41.0.tgz", - "integrity": "sha512-mSYnSoH0uyCkjgIWTny2DZAcaiRTe3kRWY5SeZECLGO37e+SdVg+ZjSzndhOvvEb9pv8EeBO1NJ9gHOSceT5Xw==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/darwin-x64/-/darwin-x64-0.42.5.tgz", + "integrity": "sha512-gwx6lODOckU3xGv0zVFad/SMMtwBleiBAzm3UVw/WkGiCVo3XrIZ6EdLr4zCmB4A2R+SOxODU70WtONCF0dGnQ==", "dev": true, "optional": true }, "@dprint/linux-arm64-glibc": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/linux-arm64-glibc/-/linux-arm64-glibc-0.41.0.tgz", - "integrity": "sha512-U4xWzjjO/aAct8cSSMZFhg8l1jWy6VahXh8zWjGBufwX7t3xEcxMG9RyAp/ioYSY6wl4YXAmnUHywhC+wSjDHQ==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-arm64-glibc/-/linux-arm64-glibc-0.42.5.tgz", + "integrity": "sha512-ijJm+zOxHK3Chnis3y5kVzvBr21Ugyodqpz1chClNWkaR+0/BYDik+lxZVrbxZw8gxqPu8iisOceCQQC42Bkzg==", + "dev": true, + "optional": true + }, + "@dprint/linux-arm64-musl": { + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-arm64-musl/-/linux-arm64-musl-0.42.5.tgz", + "integrity": "sha512-OLbJgv14AvJRVBi+ZCXBH0rsMSIdCZi/z1hCTRUb901VB2OVf81k5vvBn7HS5S9wMQ2HIG8GFOyckBg0qhEgAQ==", "dev": true, "optional": true }, "@dprint/linux-x64-glibc": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/linux-x64-glibc/-/linux-x64-glibc-0.41.0.tgz", - "integrity": "sha512-wjv5l4mGns7E8i32E8FfAk45tw5O7v4NM17gtvhe6ggOiOD6quHowOH00pLfEakMLMF9y0J5ZO2hxJ/w06bXmQ==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-x64-glibc/-/linux-x64-glibc-0.42.5.tgz", + "integrity": "sha512-tWh1kMbTi/lxS6hQJCDnriZonzGYN6FcN2AqF1C/TdRNjacFVvQnxZTdHPLJbgw0mSujHPinl3NtvllZ9CwVqA==", "dev": true, "optional": true }, "@dprint/linux-x64-musl": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/linux-x64-musl/-/linux-x64-musl-0.41.0.tgz", - "integrity": "sha512-ZZOqiur9Xi/2uhz0Ce215VTSajAlSrduX/5k/hpIjI7Rgz22Vn77p5fmYxzWkTt/Li1zq5zboTvmGYx0QVNMrQ==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/linux-x64-musl/-/linux-x64-musl-0.42.5.tgz", + "integrity": "sha512-GObJlhUqQpaXKRMTUUEkdYgWgS1aVyMUQZFn3dBmLycl4F2gXWxKgYB6R47ESVeejsEvE9fTTuxlpK6fOHjaKQ==", "dev": true, "optional": true }, "@dprint/win32-x64": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@dprint/win32-x64/-/win32-x64-0.41.0.tgz", - "integrity": "sha512-mFx6x4Hn848/D4gPbDm7g1wlnOh2SGoVF9c9HMGCuOobUU2WIBztzV4L5qlFCB3gprlS0ru9BhlMpGhrp0CBYA==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/@dprint/win32-x64/-/win32-x64-0.42.5.tgz", + "integrity": "sha512-N2N1FlmbEFbH/WqoKGdsZplBpfq9qdhfkJHQH1poVG3KxqT0dq01oqAfnC3ZQaSBoBrBfp5GyRtj7KwCxdqxXA==", "dev": true, "optional": true }, "@esbuild/android-arm": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.4.tgz", - "integrity": "sha512-uBIbiYMeSsy2U0XQoOGVVcpIktjLMEKa7ryz2RLr7L/vTnANNEsPVAh4xOv7ondGz6ac1zVb0F8Jx20rQikffQ==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz", + "integrity": "sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==", "dev": true, "optional": true }, "@esbuild/android-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.4.tgz", - "integrity": "sha512-mRsi2vJsk4Bx/AFsNBqOH2fqedxn5L/moT58xgg51DjX1la64Z3Npicut2VbhvDFO26qjWtPMsVxCd80YTFVeg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz", + "integrity": "sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==", "dev": true, "optional": true }, "@esbuild/android-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.4.tgz", - "integrity": "sha512-4iPufZ1TMOD3oBlGFqHXBpa3KFT46aLl6Vy7gwed0ZSYgHaZ/mihbYb4t7Z9etjkC9Al3ZYIoOaHrU60gcMy7g==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.5.tgz", + "integrity": "sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==", "dev": true, "optional": true }, "@esbuild/darwin-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.4.tgz", - "integrity": "sha512-Lviw8EzxsVQKpbS+rSt6/6zjn9ashUZ7Tbuvc2YENgRl0yZTktGlachZ9KMJUsVjZEGFVu336kl5lBgDN6PmpA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.5.tgz", + "integrity": "sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==", "dev": true, "optional": true }, "@esbuild/darwin-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.4.tgz", - "integrity": "sha512-YHbSFlLgDwglFn0lAO3Zsdrife9jcQXQhgRp77YiTDja23FrC2uwnhXMNkAucthsf+Psr7sTwYEryxz6FPAVqw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz", + "integrity": "sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==", "dev": true, "optional": true }, "@esbuild/freebsd-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.4.tgz", - "integrity": "sha512-vz59ijyrTG22Hshaj620e5yhs2dU1WJy723ofc+KUgxVCM6zxQESmWdMuVmUzxtGqtj5heHyB44PjV/HKsEmuQ==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz", + "integrity": "sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==", "dev": true, "optional": true }, "@esbuild/freebsd-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.4.tgz", - "integrity": "sha512-3sRbQ6W5kAiVQRBWREGJNd1YE7OgzS0AmOGjDmX/qZZecq8NFlQsQH0IfXjjmD0XtUYqr64e0EKNFjMUlPL3Cw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz", + "integrity": "sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==", "dev": true, "optional": true }, "@esbuild/linux-arm": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.4.tgz", - "integrity": "sha512-z/4ArqOo9EImzTi4b6Vq+pthLnepFzJ92BnofU1jgNlcVb+UqynVFdoXMCFreTK7FdhqAzH0vmdwW5373Hm9pg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz", + "integrity": "sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==", "dev": true, "optional": true }, "@esbuild/linux-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.4.tgz", - "integrity": "sha512-ZWmWORaPbsPwmyu7eIEATFlaqm0QGt+joRE9sKcnVUG3oBbr/KYdNE2TnkzdQwX6EDRdg/x8Q4EZQTXoClUqqA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz", + "integrity": "sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==", "dev": true, "optional": true }, "@esbuild/linux-ia32": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.4.tgz", - "integrity": "sha512-EGc4vYM7i1GRUIMqRZNCTzJh25MHePYsnQfKDexD8uPTCm9mK56NIL04LUfX2aaJ+C9vyEp2fJ7jbqFEYgO9lQ==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz", + "integrity": "sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==", "dev": true, "optional": true }, "@esbuild/linux-loong64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.4.tgz", - "integrity": "sha512-WVhIKO26kmm8lPmNrUikxSpXcgd6HDog0cx12BUfA2PkmURHSgx9G6vA19lrlQOMw+UjMZ+l3PpbtzffCxFDRg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz", + "integrity": "sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==", "dev": true, "optional": true }, "@esbuild/linux-mips64el": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.4.tgz", - "integrity": "sha512-keYY+Hlj5w86hNp5JJPuZNbvW4jql7c1eXdBUHIJGTeN/+0QFutU3GrS+c27L+NTmzi73yhtojHk+lr2+502Mw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz", + "integrity": "sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==", "dev": true, "optional": true }, "@esbuild/linux-ppc64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.4.tgz", - "integrity": "sha512-tQ92n0WMXyEsCH4m32S21fND8VxNiVazUbU4IUGVXQpWiaAxOBvtOtbEt3cXIV3GEBydYsY8pyeRMJx9kn3rvw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz", + "integrity": "sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==", "dev": true, "optional": true }, "@esbuild/linux-riscv64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.4.tgz", - "integrity": "sha512-tRRBey6fG9tqGH6V75xH3lFPpj9E8BH+N+zjSUCnFOX93kEzqS0WdyJHkta/mmJHn7MBaa++9P4ARiU4ykjhig==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz", + "integrity": "sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==", "dev": true, "optional": true }, "@esbuild/linux-s390x": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.4.tgz", - "integrity": "sha512-152aLpQqKZYhThiJ+uAM4PcuLCAOxDsCekIbnGzPKVBRUDlgaaAfaUl5NYkB1hgY6WN4sPkejxKlANgVcGl9Qg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz", + "integrity": "sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==", "dev": true, "optional": true }, "@esbuild/linux-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.4.tgz", - "integrity": "sha512-Mi4aNA3rz1BNFtB7aGadMD0MavmzuuXNTaYL6/uiYIs08U7YMPETpgNn5oue3ICr+inKwItOwSsJDYkrE9ekVg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz", + "integrity": "sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==", "dev": true, "optional": true }, "@esbuild/netbsd-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.4.tgz", - "integrity": "sha512-9+Wxx1i5N/CYo505CTT7T+ix4lVzEdz0uCoYGxM5JDVlP2YdDC1Bdz+Khv6IbqmisT0Si928eAxbmGkcbiuM/A==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz", + "integrity": "sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==", "dev": true, "optional": true }, "@esbuild/openbsd-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.4.tgz", - "integrity": "sha512-MFsHleM5/rWRW9EivFssop+OulYVUoVcqkyOkjiynKBCGBj9Lihl7kh9IzrreDyXa4sNkquei5/DTP4uCk25xw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz", + "integrity": "sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==", "dev": true, "optional": true }, "@esbuild/sunos-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.4.tgz", - "integrity": "sha512-6Xq8SpK46yLvrGxjp6HftkDwPP49puU4OF0hEL4dTxqCbfx09LyrbUj/D7tmIRMj5D5FCUPksBbxyQhp8tmHzw==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz", + "integrity": "sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==", "dev": true, "optional": true }, "@esbuild/win32-arm64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.4.tgz", - "integrity": "sha512-PkIl7Jq4mP6ke7QKwyg4fD4Xvn8PXisagV/+HntWoDEdmerB2LTukRZg728Yd1Fj+LuEX75t/hKXE2Ppk8Hh1w==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz", + "integrity": "sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==", "dev": true, "optional": true }, "@esbuild/win32-ia32": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.4.tgz", - "integrity": "sha512-ga676Hnvw7/ycdKB53qPusvsKdwrWzEyJ+AtItHGoARszIqvjffTwaaW3b2L6l90i7MO9i+dlAW415INuRhSGg==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz", + "integrity": "sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==", "dev": true, "optional": true }, "@esbuild/win32-x64": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.4.tgz", - "integrity": "sha512-HP0GDNla1T3ZL8Ko/SHAS2GgtjOg+VmWnnYLhuTksr++EnduYB0f3Y2LzHsUwb2iQ13JGoY6G3R8h6Du/WG6uA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz", + "integrity": "sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==", "dev": true, "optional": true }, @@ -4158,9 +4252,9 @@ } }, "@eslint-community/regexpp": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.0.tgz", - "integrity": "sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", "dev": true }, "@eslint/eslintrc": { @@ -4181,18 +4275,18 @@ } }, "@eslint/js": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz", - "integrity": "sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==", + "version": "8.52.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.52.0.tgz", + "integrity": "sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==", "dev": true }, "@humanwhocodes/config-array": { - "version": "0.11.11", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", - "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", "dev": true, "requires": { - "@humanwhocodes/object-schema": "^1.2.1", + "@humanwhocodes/object-schema": "^2.0.1", "debug": "^4.1.1", "minimatch": "^3.0.5" } @@ -4204,9 +4298,9 @@ "dev": true }, "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", "dev": true }, "@istanbuljs/schema": { @@ -4228,9 +4322,9 @@ "dev": true }, "@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", "dev": true, "requires": { "@jridgewell/resolve-uri": "^3.1.0", @@ -4413,9 +4507,9 @@ } }, "@types/chai": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.6.tgz", - "integrity": "sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw==", + "version": "4.3.9", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.9.tgz", + "integrity": "sha512-69TtiDzu0bcmKQv3yg1Zx409/Kd7r0b5F1PfpYJfSHzLGtB53547V4u+9iqKYsTu/O2ai6KTb0TInNpvuQ3qmg==", "dev": true }, "@types/glob": { @@ -4429,21 +4523,21 @@ } }, "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", + "integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ==", "dev": true }, "@types/json-schema": { - "version": "7.0.13", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", - "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz", + "integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw==", "dev": true }, "@types/microsoft__typescript-etw": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@types/microsoft__typescript-etw/-/microsoft__typescript-etw-0.1.1.tgz", - "integrity": "sha512-zdgHyZJEwbFKI6zhOqWPsNMhlrAk6qMrn9VMA6VQtRt/F+jNJKeaHIMysuO9oTLv0fWcli0gwUrMv8MeFyb3Sw==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@types/microsoft__typescript-etw/-/microsoft__typescript-etw-0.1.2.tgz", + "integrity": "sha512-tOI1MLj8zY7R5LWdnY/mi+6A1hxLOO0zwrLBiDHytTM2NEoZGmQFgM8rsnu7SXchKX1Gvz2ak8Y77nVqJ5uAIw==", "dev": true }, "@types/minimatch": { @@ -4453,39 +4547,42 @@ "dev": true }, "@types/minimist": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.3.tgz", - "integrity": "sha512-ZYFzrvyWUNhaPomn80dsMNgMeXxNWZBdkuG/hWlUvXvbdUH8ZERNBGXnU87McuGcWDsyzX2aChCv/SVN348k3A==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.4.tgz", + "integrity": "sha512-Kfe/D3hxHTusnPNRbycJE1N77WHDsdS4AjUYIzlDzhDrS47NrwuL3YW4VITxwR7KCVpzwgy4Rbj829KSSQmwXQ==", "dev": true }, "@types/mocha": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.2.tgz", - "integrity": "sha512-NaHL0+0lLNhX6d9rs+NSt97WH/gIlRHmszXbQ/8/MV/eVcFNdeJ/GYhrFuUc8K7WuPhRhTSdMkCp8VMzhUq85w==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.3.tgz", + "integrity": "sha512-RsOPImTriV/OE4A9qKjMtk2MnXiuLLbcO3nCXK+kvq4nr0iMfFgpjaX3MPLb6f7+EL1FGSelYvuJMV6REH+ZPQ==", "dev": true }, "@types/ms": { - "version": "0.7.32", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.32.tgz", - "integrity": "sha512-xPSg0jm4mqgEkNhowKgZFBNtwoEwF6gJ4Dhww+GFpm3IgtNseHQZ5IqdNwnquZEoANxyDAKDRAdVo4Z72VvD/g==", + "version": "0.7.33", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.33.tgz", + "integrity": "sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==", "dev": true }, "@types/node": { - "version": "20.7.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.7.1.tgz", - "integrity": "sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg==", - "dev": true + "version": "20.8.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", + "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@types/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==", "dev": true }, "@types/source-map-support": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.8.tgz", - "integrity": "sha512-u5nwLcaENciDwebPwwZb2AM1LvdlgFQfqCKxWQxcgNsQhUQciGuUnJ2LjGFAkInY2APXQzIypiUSa9zB6Epddg==", + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.9.tgz", + "integrity": "sha512-91Jf4LyPAObBTFbpW3bSDK1ncdwXohvlBmzffSj7/44SY+1mD/HhesdfspCMxPIJwllgN2G4eVFatGs4Zw/lnw==", "dev": true, "requires": { "source-map": "^0.6.0" @@ -4498,16 +4595,16 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.3.tgz", - "integrity": "sha512-vntq452UHNltxsaaN+L9WyuMch8bMd9CqJ3zhzTPXXidwbf5mqqKCVXEuvRZUqLJSTLeWE65lQwyXsRGnXkCTA==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.1.tgz", + "integrity": "sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==", "dev": true, "requires": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.7.3", - "@typescript-eslint/type-utils": "6.7.3", - "@typescript-eslint/utils": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/type-utils": "6.9.1", + "@typescript-eslint/utils": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -4517,54 +4614,54 @@ } }, "@typescript-eslint/parser": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.3.tgz", - "integrity": "sha512-TlutE+iep2o7R8Lf+yoer3zU6/0EAUc8QIBB3GYBc1KGz4c4TRm83xwXUZVPlZ6YCLss4r77jbu6j3sendJoiQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.1.tgz", + "integrity": "sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "6.7.3", - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/typescript-estree": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.3.tgz", - "integrity": "sha512-wOlo0QnEou9cHO2TdkJmzF7DFGvAKEnB82PuPNHpT8ZKKaZu6Bm63ugOTn9fXNJtvuDPanBc78lGUGGytJoVzQ==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.1.tgz", + "integrity": "sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==", "dev": true, "requires": { - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3" + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1" } }, "@typescript-eslint/type-utils": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.7.3.tgz", - "integrity": "sha512-Fc68K0aTDrKIBvLnKTZ5Pf3MXK495YErrbHb1R6aTpfK5OdSFj0rVN7ib6Tx6ePrZ2gsjLqr0s98NG7l96KSQw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.1.tgz", + "integrity": "sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==", "dev": true, "requires": { - "@typescript-eslint/typescript-estree": "6.7.3", - "@typescript-eslint/utils": "6.7.3", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/utils": "6.9.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" } }, "@typescript-eslint/types": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.3.tgz", - "integrity": "sha512-4g+de6roB2NFcfkZb439tigpAMnvEIg3rIjWQ+EM7IBaYt/CdJt6em9BJ4h4UpdgaBWdmx2iWsafHTrqmgIPNw==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.1.tgz", + "integrity": "sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.3.tgz", - "integrity": "sha512-YLQ3tJoS4VxLFYHTw21oe1/vIZPRqAO91z6Uv0Ss2BKm/Ag7/RVQBcXTGcXhgJMdA4U+HrKuY5gWlJlvoaKZ5g==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.1.tgz", + "integrity": "sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==", "dev": true, "requires": { - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/visitor-keys": "6.7.3", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -4573,34 +4670,40 @@ } }, "@typescript-eslint/utils": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.3.tgz", - "integrity": "sha512-vzLkVder21GpWRrmSR9JxGZ5+ibIUSudXlW52qeKpzUEQhRSmyZiVDDj3crAth7+5tmN1ulvgKaCU2f/bPRCzg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.1.tgz", + "integrity": "sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==", "dev": true, "requires": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.7.3", - "@typescript-eslint/types": "6.7.3", - "@typescript-eslint/typescript-estree": "6.7.3", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", "semver": "^7.5.4" } }, "@typescript-eslint/visitor-keys": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.3.tgz", - "integrity": "sha512-HEVXkU9IB+nk9o63CeICMHxFWbHWr3E1mpilIQBe9+7L/lH97rleFLVtYsfnWB+JVMaiFnEaxvknvmIzX+CqVg==", + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.1.tgz", + "integrity": "sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==", "dev": true, "requires": { - "@typescript-eslint/types": "6.7.3", + "@typescript-eslint/types": "6.9.1", "eslint-visitor-keys": "^3.4.1" } }, + "@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", "dev": true }, "acorn-jsx": { @@ -4757,13 +4860,14 @@ } }, "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", "dev": true, "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" } }, "callsites": { @@ -4931,9 +5035,9 @@ "dev": true }, "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true }, "cross-spawn": { @@ -4997,6 +5101,17 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + } + }, "deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", @@ -5028,17 +5143,18 @@ } }, "dprint": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/dprint/-/dprint-0.41.0.tgz", - "integrity": "sha512-9Ctv6EnwOy5Ai566DczI/QhAC6y+AhWDA2gFU8Zz4xezUy1BevHaIYhfdLWZQxh4Qf4H28lRu1Lq+hhIm1US9w==", + "version": "0.42.5", + "resolved": "https://registry.npmjs.org/dprint/-/dprint-0.42.5.tgz", + "integrity": "sha512-GvC3Hpsm/GKBZe6UjOZVKLb3u86puWc2lm+F+Bqgkk4fjQ9tpvZhENFra9al1rz01qfxsc3+6JZN/E9eJIME5Q==", "dev": true, "requires": { - "@dprint/darwin-arm64": "0.41.0", - "@dprint/darwin-x64": "0.41.0", - "@dprint/linux-arm64-glibc": "0.41.0", - "@dprint/linux-x64-glibc": "0.41.0", - "@dprint/linux-x64-musl": "0.41.0", - "@dprint/win32-x64": "0.41.0" + "@dprint/darwin-arm64": "0.42.5", + "@dprint/darwin-x64": "0.42.5", + "@dprint/linux-arm64-glibc": "0.42.5", + "@dprint/linux-arm64-musl": "0.42.5", + "@dprint/linux-x64-glibc": "0.42.5", + "@dprint/linux-x64-musl": "0.42.5", + "@dprint/win32-x64": "0.42.5" } }, "emoji-regex": { @@ -5048,33 +5164,33 @@ "dev": true }, "esbuild": { - "version": "0.19.4", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.4.tgz", - "integrity": "sha512-x7jL0tbRRpv4QUyuDMjONtWFciygUxWaUM1kMX2zWxI0X2YWOt7MSA0g4UdeSiHM8fcYVzpQhKYOycZwxTdZkA==", + "version": "0.19.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.5.tgz", + "integrity": "sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==", "dev": true, "requires": { - "@esbuild/android-arm": "0.19.4", - "@esbuild/android-arm64": "0.19.4", - "@esbuild/android-x64": "0.19.4", - "@esbuild/darwin-arm64": "0.19.4", - "@esbuild/darwin-x64": "0.19.4", - "@esbuild/freebsd-arm64": "0.19.4", - "@esbuild/freebsd-x64": "0.19.4", - "@esbuild/linux-arm": "0.19.4", - "@esbuild/linux-arm64": "0.19.4", - "@esbuild/linux-ia32": "0.19.4", - "@esbuild/linux-loong64": "0.19.4", - "@esbuild/linux-mips64el": "0.19.4", - "@esbuild/linux-ppc64": "0.19.4", - "@esbuild/linux-riscv64": "0.19.4", - "@esbuild/linux-s390x": "0.19.4", - "@esbuild/linux-x64": "0.19.4", - "@esbuild/netbsd-x64": "0.19.4", - "@esbuild/openbsd-x64": "0.19.4", - "@esbuild/sunos-x64": "0.19.4", - "@esbuild/win32-arm64": "0.19.4", - "@esbuild/win32-ia32": "0.19.4", - "@esbuild/win32-x64": "0.19.4" + "@esbuild/android-arm": "0.19.5", + "@esbuild/android-arm64": "0.19.5", + "@esbuild/android-x64": "0.19.5", + "@esbuild/darwin-arm64": "0.19.5", + "@esbuild/darwin-x64": "0.19.5", + "@esbuild/freebsd-arm64": "0.19.5", + "@esbuild/freebsd-x64": "0.19.5", + "@esbuild/linux-arm": "0.19.5", + "@esbuild/linux-arm64": "0.19.5", + "@esbuild/linux-ia32": "0.19.5", + "@esbuild/linux-loong64": "0.19.5", + "@esbuild/linux-mips64el": "0.19.5", + "@esbuild/linux-ppc64": "0.19.5", + "@esbuild/linux-riscv64": "0.19.5", + "@esbuild/linux-s390x": "0.19.5", + "@esbuild/linux-x64": "0.19.5", + "@esbuild/netbsd-x64": "0.19.5", + "@esbuild/openbsd-x64": "0.19.5", + "@esbuild/sunos-x64": "0.19.5", + "@esbuild/win32-arm64": "0.19.5", + "@esbuild/win32-ia32": "0.19.5", + "@esbuild/win32-x64": "0.19.5" } }, "escalade": { @@ -5090,18 +5206,19 @@ "dev": true }, "eslint": { - "version": "8.50.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz", - "integrity": "sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==", + "version": "8.52.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.52.0.tgz", + "integrity": "sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==", "dev": true, "requires": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.50.0", - "@humanwhocodes/config-array": "^0.11.11", + "@eslint/js": "8.52.0", + "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -5264,9 +5381,9 @@ "dev": true }, "fast-xml-parser": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.1.tgz", - "integrity": "sha512-viVv3xb8D+SiS1W4cv4tva3bni08kAkx0gQnWrykMM8nXPc1FxqZPU00dCEVjkiCg4HoXd2jC4x29Nzg/l2DAA==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.2.tgz", + "integrity": "sha512-rmrXUXwbJedoXkStenj1kkljNF7ugn5ZjR9FJcwmCfcCbtOMDghPajbc+Tck6vE6F5XsDmx+Pr2le9fw8+pXBg==", "dev": true, "requires": { "strnum": "^1.0.5" @@ -5332,12 +5449,12 @@ "dev": true }, "flat-cache": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz", - "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", + "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", "dev": true, "requires": { - "flatted": "^3.2.7", + "flatted": "^3.2.9", "keyv": "^4.5.3", "rimraf": "^3.0.2" } @@ -5381,9 +5498,9 @@ "optional": true }, "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true }, "get-caller-file": { @@ -5399,15 +5516,15 @@ "dev": true }, "get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", "dev": true, "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" } }, "glob": { @@ -5453,9 +5570,9 @@ } }, "globals": { - "version": "13.22.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.22.0.tgz", - "integrity": "sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw==", + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -5475,27 +5592,36 @@ "slash": "^3.0.0" } }, + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.3" + } + }, "graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.2" + } + }, "has-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", @@ -5508,6 +5634,15 @@ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "dev": true }, + "hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "requires": { + "function-bind": "^1.1.2" + } + }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -5711,9 +5846,9 @@ "dev": true }, "keyv": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", - "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, "requires": { "json-buffer": "3.0.1" @@ -5755,12 +5890,12 @@ } }, "loupe": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", - "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", "dev": true, "requires": { - "get-func-name": "^2.0.0" + "get-func-name": "^2.0.1" } }, "lru-cache": { @@ -5957,9 +6092,9 @@ "dev": true }, "object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", "dev": true }, "once": { @@ -6061,13 +6196,13 @@ "dev": true }, "playwright": { - "version": "1.38.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.38.1.tgz", - "integrity": "sha512-oRMSJmZrOu1FP5iu3UrCx8JEFRIMxLDM0c/3o4bpzU5Tz97BypefWf7TuTNPWeCe279TPal5RtPPZ+9lW/Qkow==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz", + "integrity": "sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==", "dev": true, "requires": { "fsevents": "2.3.2", - "playwright-core": "1.38.1" + "playwright-core": "1.39.0" }, "dependencies": { "fsevents": { @@ -6080,9 +6215,9 @@ } }, "playwright-core": { - "version": "1.38.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.38.1.tgz", - "integrity": "sha512-tQqNFUKa3OfMf4b2jQ7aGLB8o9bS3bOY0yMEtldtC2+spf8QXG9zvXLTXUeRsoNuxEYMgLYR+NXfAa1rjKRcrg==", + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz", + "integrity": "sha512-+k4pdZgs1qiM+OUkSjx96YiKsXsmb59evFoqv8SKO067qBA+Z2s/dCzJij/ZhdQcs2zlTAgRKfeiiLm8PQ2qvw==", "dev": true }, "plur": { @@ -6110,9 +6245,9 @@ } }, "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true }, "qs": { @@ -6230,6 +6365,18 @@ "randombytes": "^2.1.0" } }, + "set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dev": true, + "requires": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + } + }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -6454,6 +6601,12 @@ "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", "dev": true }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", @@ -6470,14 +6623,14 @@ } }, "v8-to-istanbul": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", - "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "version": "9.1.3", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.3.tgz", + "integrity": "sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" + "convert-source-map": "^2.0.0" } }, "web-streams-polyfill": { diff --git a/package.json b/package.json index cb416356113..f9d49aa3501 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "chalk": "^4.1.2", "chokidar": "^3.5.3", "diff": "^5.1.0", - "dprint": "^0.41.0", + "dprint": "^0.42.3", "esbuild": "^0.19.0", "eslint": "^8.22.0", "eslint-formatter-autolinkable-stylish": "^1.2.0", @@ -106,7 +106,8 @@ "buffer": false, "@microsoft/typescript-etw": false, "source-map-support": false, - "inspector": false + "inspector": false, + "perf_hooks": false }, "packageManager": "npm@8.19.4", "volta": { diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 40579969a48..e49a8b87e3f 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -280,7 +280,7 @@ export function getBuilderFileEmit(options: CompilerOptions) { } /** - * Determing what all is pending to be emitted based on previous options or previous file emit flags + * Determining what all is pending to be emitted based on previous options or previous file emit flags * * @internal */ @@ -1588,7 +1588,7 @@ export function createBuilderProgram(kind: BuilderProgramKind, { newProgram, hos info.signature = signature; } else { - // These are directly commited + // These are directly committed info.signature = signature; state.oldExportedModulesMap?.clear(); } diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index dc80a5e9d7f..d15d8aca513 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -84,11 +84,11 @@ export interface BuilderState { */ hasCalledUpdateShapeSignature?: Set; /** - * Stores signatures before before the update till affected file is commited + * Stores signatures before before the update till affected file is committed */ oldSignatures?: Map; /** - * Stores exportedModulesMap before the update till affected file is commited + * Stores exportedModulesMap before the update till affected file is committed */ oldExportedModulesMap?: Map | false>; /** diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 58d6a8b867e..3ac1038a4cd 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -780,6 +780,7 @@ import { JSDocSatisfiesTag, JSDocSignature, JSDocTemplateTag, + JSDocThisTag, JSDocTypeAssertion, JSDocTypedefTag, JSDocTypeExpression, @@ -1009,6 +1010,7 @@ import { tokenToString, tracing, TracingNode, + TrackedSymbol, TransientSymbol, TransientSymbolLinks, tryAddToSet, @@ -3788,8 +3790,19 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function checkAndReportErrorForUsingTypeAsValue(errorLocation: Node, name: __String, meaning: SymbolFlags): boolean { if (meaning & SymbolFlags.Value) { if (isPrimitiveTypeName(name)) { - if (isExtendedByInterface(errorLocation)) { - error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name)); + const grandparent = errorLocation.parent.parent; + if (grandparent && grandparent.parent && isHeritageClause(grandparent)) { + const heritageKind = grandparent.token; + const containerKind = grandparent.parent.kind; + if (containerKind === SyntaxKind.InterfaceDeclaration && heritageKind === SyntaxKind.ExtendsKeyword) { + error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name)); + } + else if (containerKind === SyntaxKind.ClassDeclaration && heritageKind === SyntaxKind.ExtendsKeyword) { + error(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name)); + } + else if (containerKind === SyntaxKind.ClassDeclaration && heritageKind === SyntaxKind.ImplementsKeyword) { + error(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name)); + } } else { error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); @@ -3815,17 +3828,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return false; } - function isExtendedByInterface(node: Node): boolean { - const grandparent = node.parent.parent; - const parentOfGrandparent = grandparent.parent; - if (grandparent && parentOfGrandparent) { - const isExtending = isHeritageClause(grandparent) && grandparent.token === SyntaxKind.ExtendsKeyword; - const isInterface = isInterfaceDeclaration(parentOfGrandparent); - return isExtending && isInterface; - } - return false; - } - function maybeMappedType(node: Node, symbol: Symbol) { const container = findAncestor(node.parent, n => isComputedPropertyName(n) || isPropertySignature(n) ? false : isTypeLiteralNode(n) || "quit") as TypeLiteralNode | undefined; if (container && container.members.length === 1) { @@ -4022,7 +4024,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } function isSyntacticDefault(node: Node) { - return ((isExportAssignment(node) && !node.isExportEquals) || hasSyntacticModifier(node, ModifierFlags.Default) || isExportSpecifier(node)); + return ((isExportAssignment(node) && !node.isExportEquals) + || hasSyntacticModifier(node, ModifierFlags.Default) + || isExportSpecifier(node) + || isNamespaceExport(node)); } function getUsageModeForExpression(usage: Expression) { @@ -6420,6 +6425,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { symbolDepth: undefined, inferTypeParameters: undefined, approximateLength: 0, + trackedSymbols: undefined, }; context.tracker = new SymbolTrackerImpl(context, tracker, moduleResolverHost); const resultingNode = cb(context); @@ -6918,6 +6924,15 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } const cachedResult = links?.serializedTypes?.get(key); if (cachedResult) { + // TODO:: check if we instead store late painted statements associated with this? + cachedResult.trackedSymbols?.forEach( + ([symbol, enclosingDeclaration, meaning]) => + context.tracker.trackSymbol( + symbol, + enclosingDeclaration, + meaning, + ), + ); if (cachedResult.truncating) { context.truncating = true; } @@ -6938,7 +6953,12 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const result = transform(type); const addedLength = context.approximateLength - startLength; if (!context.reportedDiagnostic && !context.encounteredError) { - links?.serializedTypes?.set(key, { node: result, truncating: context.truncating, addedLength }); + links?.serializedTypes?.set(key, { + node: result, + truncating: context.truncating, + addedLength, + trackedSymbols: context.trackedSymbols, + }); } context.visitedTypes.delete(typeId); if (id) { @@ -7289,6 +7309,30 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const propertyName = getPropertyNameNodeForSymbol(propertySymbol, context); context.enclosingDeclaration = saveEnclosingDeclaration; context.approximateLength += symbolName(propertySymbol).length + 1; + + if (propertySymbol.flags & SymbolFlags.Accessor) { + const writeType = getWriteTypeOfSymbol(propertySymbol); + if (propertyType !== writeType) { + const getterDeclaration = getDeclarationOfKind(propertySymbol, SyntaxKind.GetAccessor)!; + const getterSignature = getSignatureFromDeclaration(getterDeclaration); + typeElements.push( + setCommentRange( + signatureToSignatureDeclarationHelper(getterSignature, SyntaxKind.GetAccessor, context, { name: propertyName }) as GetAccessorDeclaration, + getterDeclaration, + ), + ); + const setterDeclaration = getDeclarationOfKind(propertySymbol, SyntaxKind.SetAccessor)!; + const setterSignature = getSignatureFromDeclaration(setterDeclaration); + typeElements.push( + setCommentRange( + signatureToSignatureDeclarationHelper(setterSignature, SyntaxKind.SetAccessor, context, { name: propertyName }) as SetAccessorDeclaration, + setterDeclaration, + ), + ); + return; + } + } + const optionalToken = propertySymbol.flags & SymbolFlags.Optional ? factory.createToken(SyntaxKind.QuestionToken) : undefined; if (propertySymbol.flags & (SymbolFlags.Function | SymbolFlags.Method) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) { const signatures = getSignaturesOfType(filterType(propertyType, t => !(t.flags & TypeFlags.Undefined)), SignatureKind.Call); @@ -7329,9 +7373,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { typeElements.push(preserveCommentsOn(propertySignature)); function preserveCommentsOn(node: T) { - if (some(propertySymbol.declarations, d => d.kind === SyntaxKind.JSDocPropertyTag)) { - const d = propertySymbol.declarations?.find(d => d.kind === SyntaxKind.JSDocPropertyTag)! as JSDocPropertyTag; - const commentText = getTextOfJSDocComment(d.comment); + const jsdocPropertyTag = propertySymbol.declarations?.find((d): d is JSDocPropertyTag => d.kind === SyntaxKind.JSDocPropertyTag); + if (jsdocPropertyTag) { + const commentText = getTextOfJSDocComment(jsdocPropertyTag.comment); if (commentText) { setSyntheticLeadingComments(node, [{ kind: SyntaxKind.MultiLineCommentTrivia, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); } @@ -8789,12 +8833,12 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function addExportModifier(node: Extract) { const flags = (getEffectiveModifierFlags(node) | ModifierFlags.Export) & ~ModifierFlags.Ambient; - return factory.updateModifiers(node, flags); + return factory.replaceModifiers(node, flags); } function removeExportModifier(node: Extract) { const flags = getEffectiveModifierFlags(node) & ~ModifierFlags.Export; - return factory.updateModifiers(node, flags); + return factory.replaceModifiers(node, flags); } function visitSymbolTable(symbolTable: SymbolTable, suppressNewPrivateContext?: boolean, propertyAsAlias?: boolean) { @@ -8832,6 +8876,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if (context.reportedDiagnostic) { oldcontext.reportedDiagnostic = context.reportedDiagnostic; // hoist diagnostic result into outer context } + if (context.trackedSymbols) { + if (!oldContext.trackedSymbols) oldContext.trackedSymbols = context.trackedSymbols; + else Debug.assert(context.trackedSymbols === oldContext.trackedSymbols); + } context = oldContext; } } @@ -9093,7 +9141,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { newModifierFlags |= ModifierFlags.Default; } if (newModifierFlags) { - node = factory.updateModifiers(node, newModifierFlags | getEffectiveModifierFlags(node)); + node = factory.replaceModifiers(node, newModifierFlags | getEffectiveModifierFlags(node)); } } results.push(node); @@ -9795,7 +9843,15 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, d => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), p => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), p => some(p.declarations, d => getSourceFileOfNode(d) !== ctxSrc)) && - every(getPropertiesOfType(typeToSerialize), p => isIdentifierText(symbolName(p), languageVersion)); + every(getPropertiesOfType(typeToSerialize), p => { + if (!isIdentifierText(symbolName(p), languageVersion)) { + return false; + } + if (!(p.flags & SymbolFlags.Accessor)) { + return true; + } + return getNonMissingTypeOfSymbol(p) === getWriteTypeOfSymbol(p); + }); } function makeSerializePropertySymbol( @@ -11776,9 +11832,13 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function getTypeOfAlias(symbol: Symbol): Type { const links = getSymbolLinks(symbol); if (!links.type) { + if (!pushTypeResolution(symbol, TypeSystemPropertyName.Type)) { + return errorType; + } const targetSymbol = resolveAlias(symbol); const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration(getDeclarationOfAliasSymbol(symbol)!, /*dontRecursivelyResolve*/ true); const declaredType = firstDefined(exportSymbol?.declarations, d => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : undefined); + // It only makes sense to get the type of a value symbol. If the result of resolving // the alias is not a value, then it has no type. To get the type associated with a // type symbol, call getDeclaredTypeOfSymbol. @@ -11789,6 +11849,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { : declaredType ? declaredType : getSymbolFlags(targetSymbol) & SymbolFlags.Value ? getTypeOfSymbol(targetSymbol) : errorType; + + if (!popTypeResolution()) { + reportCircularityError(exportSymbol ?? symbol); + return links.type = errorType; + } } return links.type; } @@ -11804,15 +11869,23 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } function reportCircularityError(symbol: Symbol) { - const declaration = symbol.valueDeclaration as VariableLikeDeclaration; + const declaration = symbol.valueDeclaration; // Check if variable has type annotation that circularly references the variable itself - if (getEffectiveTypeAnnotationNode(declaration)) { - error(symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); - return errorType; + if (declaration) { + if (getEffectiveTypeAnnotationNode(declaration)) { + error(symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + return errorType; + } + // Check if variable has initializer that circularly references the variable itself + if (noImplicitAny && (declaration.kind !== SyntaxKind.Parameter || (declaration as HasInitializer).initializer)) { + error(symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol)); + } } - // Check if variable has initializer that circularly references the variable itself - if (noImplicitAny && (declaration.kind !== SyntaxKind.Parameter || (declaration as HasInitializer).initializer)) { - error(symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol)); + else if (symbol.flags & SymbolFlags.Alias) { + const node = getDeclarationOfAliasSymbol(symbol); + if (node) { + error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); + } } // Circularities could also result from parameters in function expressions that end up // having themselves as contextual types following type argument inference. In those cases @@ -17727,7 +17800,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return false; } - function getPropertyNameFromIndex(indexType: Type, accessNode: StringLiteral | Identifier | PrivateIdentifier | ObjectBindingPattern | ArrayBindingPattern | ComputedPropertyName | NumericLiteral | IndexedAccessTypeNode | ElementAccessExpression | SyntheticExpression | undefined) { + function getPropertyNameFromIndex(indexType: Type, accessNode: PropertyName | ObjectBindingPattern | ArrayBindingPattern | IndexedAccessTypeNode | ElementAccessExpression | SyntheticExpression | undefined) { return isTypeUsableAsPropertyName(indexType) ? getPropertyNameFromType(indexType) : accessNode && isPropertyName(accessNode) ? @@ -17810,7 +17883,12 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if (indexInfo) { if (accessFlags & AccessFlags.NoIndexSignatures && indexInfo.keyType !== numberType) { if (accessExpression) { - error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); + if (accessFlags & AccessFlags.Writing) { + error(accessExpression, Diagnostics.Type_0_is_generic_and_can_only_be_indexed_for_reading, typeToString(originalObjectType)); + } + else { + error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); + } } return undefined; } @@ -17947,7 +18025,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function isPatternLiteralPlaceholderType(type: Type): boolean { if (type.flags & TypeFlags.Intersection) { - return some((type as IntersectionType).types, t => !!(t.flags & (TypeFlags.Literal | TypeFlags.Null | TypeFlags.Undefined)) || isPatternLiteralPlaceholderType(t)); + return !isGenericType(type) && some((type as IntersectionType).types, t => !!(t.flags & (TypeFlags.Literal | TypeFlags.Nullable)) || isPatternLiteralPlaceholderType(t)); } return !!(type.flags & (TypeFlags.Any | TypeFlags.String | TypeFlags.Number | TypeFlags.BigInt)) || isPatternLiteralType(type); } @@ -23528,22 +23606,22 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? undefined : checkClass; } - // Return true if the given type is deeply nested. We consider this to be the case when structural type comparisons - // for maxDepth or more occurrences or instantiations of the same type have been recorded on the given stack. The - // "sameness" of instantiations is determined by the getRecursionIdentity function. An intersection is considered - // deeply nested if any constituent of the intersection is deeply nested. It is possible, though highly unlikely, for - // the deeply nested check to be true in a situation where a chain of instantiations is not infinitely expanding. - // Effectively, we will generate a false positive when two types are structurally equal to at least maxDepth levels, - // but unequal at some level beyond that. - // In addition, this will also detect when an indexed access has been chained off of maxDepth more times (which is - // essentially the dual of the structural comparison), and likewise mark the type as deeply nested, potentially adding - // false positives for finite but deeply expanding indexed accesses (eg, for `Q[P1][P2][P3][P4][P5]`). - // It also detects when a recursive type reference has expanded maxDepth or more times, e.g. if the true branch of - // `type A = null extends T ? [A>] : [T]` - // has expanded into `[A>>>>>]`. In such cases we need - // to terminate the expansion, and we do so here. + // Return true if the given type is deeply nested. We consider this to be the case when the given stack contains + // maxDepth or more occurrences of types with the same recursion identity as the given type. The recursion identity + // provides a shared identity for type instantiations that repeat in some (possibly infinite) pattern. For example, + // in `type Deep = { next: Deep> }`, repeatedly referencing the `next` property leads to an infinite + // sequence of ever deeper instantiations with the same recursion identity (in this case the symbol associated with + // the object type literal). + // A homomorphic mapped type is considered deeply nested if its target type is deeply nested, and an intersection is + // considered deeply nested if any constituent of the intersection is deeply nested. + // It is possible, though highly unlikely, for the deeply nested check to be true in a situation where a chain of + // instantiations is not infinitely expanding. Effectively, we will generate a false positive when two types are + // structurally equal to at least maxDepth levels, but unequal at some level beyond that. function isDeeplyNestedType(type: Type, stack: Type[], depth: number, maxDepth = 3): boolean { if (depth >= maxDepth) { + if ((getObjectFlags(type) & ObjectFlags.InstantiatedMapped) === ObjectFlags.InstantiatedMapped) { + type = getMappedTargetWithSymbol(type); + } if (type.flags & TypeFlags.Intersection) { return some((type as IntersectionType).types, t => isDeeplyNestedType(t, stack, depth, maxDepth)); } @@ -23552,7 +23630,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { let lastTypeId = 0; for (let i = 0; i < depth; i++) { const t = stack[i]; - if (t.flags & TypeFlags.Intersection ? some((t as IntersectionType).types, u => getRecursionIdentity(u) === identity) : getRecursionIdentity(t) === identity) { + if (hasMatchingRecursionIdentity(t, identity)) { // We only count occurrences with a higher type id than the previous occurrence, since higher // type ids are an indicator of newer instantiations caused by recursion. if (t.id >= lastTypeId) { @@ -23568,6 +23646,32 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return false; } + // Unwrap nested homomorphic mapped types and return the deepest target type that has a symbol. This better + // preserves unique type identities for mapped types applied to explicitly written object literals. For example + // in `Mapped<{ x: Mapped<{ x: Mapped<{ x: string }>}>}>`, each of the mapped type applications will have a + // unique recursion identity (that of their target object type literal) and thus avoid appearing deeply nested. + function getMappedTargetWithSymbol(type: Type) { + let target; + while ( + (getObjectFlags(type) & ObjectFlags.InstantiatedMapped) === ObjectFlags.InstantiatedMapped && + (target = getModifiersTypeFromMappedType(type as MappedType)) && + (target.symbol || target.flags & TypeFlags.Intersection && some((target as IntersectionType).types, t => !!t.symbol)) + ) { + type = target; + } + return type; + } + + function hasMatchingRecursionIdentity(type: Type, identity: object): boolean { + if ((getObjectFlags(type) & ObjectFlags.InstantiatedMapped) === ObjectFlags.InstantiatedMapped) { + type = getMappedTargetWithSymbol(type); + } + if (type.flags & TypeFlags.Intersection) { + return some((type as IntersectionType).types, t => hasMatchingRecursionIdentity(t, identity)); + } + return getRecursionIdentity(type) === identity; + } + // The recursion identity of a type is an object identity that is shared among multiple instantiations of the type. // We track recursion identities in order to identify deeply nested and possibly infinite type instantiations with // the same origin. For example, when type parameters are in scope in an object type such as { x: T }, all @@ -23583,28 +23687,22 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // unique AST node. return (type as TypeReference).node!; } - if (type.symbol) { - // We track object types that have a symbol by that symbol (representing the origin of the type). - if (getObjectFlags(type) & ObjectFlags.Mapped) { - // When a homomorphic mapped type is applied to a type with a symbol, we use the symbol of that - // type as the recursion identity. This is a better strategy than using the symbol of the mapped - // type, which doesn't work well for recursive mapped types. - type = getMappedTargetWithSymbol(type); - } - if (!(getObjectFlags(type) & ObjectFlags.Anonymous && type.symbol.flags & SymbolFlags.Class)) { - // We exclude the static side of a class since it shares its symbol with the instance side. - return type.symbol; - } + if (type.symbol && !(getObjectFlags(type) & ObjectFlags.Anonymous && type.symbol.flags & SymbolFlags.Class)) { + // We track object types that have a symbol by that symbol (representing the origin of the type), but + // exclude the static side of a class since it shares its symbol with the instance side. + return type.symbol; } if (isTupleType(type)) { return type.target; } } if (type.flags & TypeFlags.TypeParameter) { + // We use the symbol of the type parameter such that all "fresh" instantiations of that type parameter + // have the same recursion identity. return type.symbol; } if (type.flags & TypeFlags.IndexedAccess) { - // Identity is the leftmost object type in a chain of indexed accesses, eg, in A[P][Q] it is A + // Identity is the leftmost object type in a chain of indexed accesses, eg, in A[P1][P2][P3] it is A. do { type = (type as IndexedAccessType).objectType; } @@ -23618,14 +23716,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return type; } - function getMappedTargetWithSymbol(type: Type) { - let target = type; - while ((getObjectFlags(target) & ObjectFlags.InstantiatedMapped) === ObjectFlags.InstantiatedMapped && isMappedTypeWithKeyofConstraintDeclaration(target as MappedType)) { - target = getModifiersTypeFromMappedType(target as MappedType); - } - return target.symbol ? target : type; - } - function isPropertyIdenticalTo(sourceProp: Symbol, targetProp: Symbol): boolean { return compareProperties(sourceProp, targetProp, compareTypesIdentical) !== Ternary.False; } @@ -27411,7 +27501,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } function getTypeAtSwitchClause(flow: FlowSwitchClause): FlowType { - const expr = flow.switchStatement.expression; + const expr = skipParentheses(flow.switchStatement.expression); const flowType = getTypeAtFlowNode(flow.antecedent); let type = getTypeFromFlowType(flowType); if (isMatchingReference(reference, expr)) { @@ -27421,11 +27511,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); } else if (expr.kind === SyntaxKind.TrueKeyword) { - const clause = flow.switchStatement.caseBlock.clauses.find((_, index) => index === flow.clauseStart); - const clauseExpression = clause && clause.kind === SyntaxKind.CaseClause ? clause.expression : undefined; - if (clauseExpression) { - type = narrowType(type, clauseExpression, /*assumeTrue*/ true); - } + type = narrowTypeBySwitchOnTrue(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd); } else { if (strictNullChecks) { @@ -27641,13 +27727,18 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } function getDiscriminantPropertyAccess(expr: Expression, computedType: Type) { - const type = !(computedType.flags & TypeFlags.Union) && declaredType.flags & TypeFlags.Union ? declaredType : computedType; - if (type.flags & TypeFlags.Union) { + // As long as the computed type is a subset of the declared type, we use the full declared type to detect + // a discriminant property. In cases where the computed type isn't a subset, e.g because of a preceding type + // predicate narrowing, we use the actual computed type. + if (declaredType.flags & TypeFlags.Union || computedType.flags & TypeFlags.Union) { const access = getCandidateDiscriminantPropertyAccess(expr); if (access) { const name = getAccessedPropertyName(access); - if (name && isDiscriminantProperty(type, name)) { - return access; + if (name) { + const type = declaredType.flags & TypeFlags.Union && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType; + if (isDiscriminantProperty(type, name)) { + return access; + } } } } @@ -28040,6 +28131,36 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return getUnionType(map(clauseWitnesses, text => text ? narrowTypeByTypeName(type, text) : neverType)); } + function narrowTypeBySwitchOnTrue(type: Type, switchStatement: SwitchStatement, clauseStart: number, clauseEnd: number): Type { + const defaultIndex = findIndex(switchStatement.caseBlock.clauses, clause => clause.kind === SyntaxKind.DefaultClause); + const hasDefaultClause = clauseStart === clauseEnd || (defaultIndex >= clauseStart && defaultIndex < clauseEnd); + + // First, narrow away all of the cases that preceded this set of cases. + for (let i = 0; i < clauseStart; i++) { + const clause = switchStatement.caseBlock.clauses[i]; + if (clause.kind === SyntaxKind.CaseClause) { + type = narrowType(type, clause.expression, /*assumeTrue*/ false); + } + } + + // If our current set has a default, then none the other cases were hit either. + // There's no point in narrowing by the the other cases in the set, since we can + // get here through other paths. + if (hasDefaultClause) { + for (let i = clauseEnd; i < switchStatement.caseBlock.clauses.length; i++) { + const clause = switchStatement.caseBlock.clauses[i]; + if (clause.kind === SyntaxKind.CaseClause) { + type = narrowType(type, clause.expression, /*assumeTrue*/ false); + } + } + return type; + } + + // Now, narrow based on the cases in this set. + const clauses = switchStatement.caseBlock.clauses.slice(clauseStart, clauseEnd); + return getUnionType(map(clauses, clause => clause.kind === SyntaxKind.CaseClause ? narrowType(type, clause.expression, /*assumeTrue*/ true) : neverType)); + } + function isMatchingConstructorReference(expr: Expression) { return (isPropertyAccessExpression(expr) && idText(expr.name) === "constructor" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === "constructor") && @@ -29462,8 +29583,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // In an assignment of the form 'obj.xxx = function(...)' or 'obj[xxx] = function(...)', the // contextual type for 'this' is 'obj'. const parent = walkUpParenthesizedExpressions(func.parent); - if (parent.kind === SyntaxKind.BinaryExpression && (parent as BinaryExpression).operatorToken.kind === SyntaxKind.EqualsToken) { - const target = (parent as BinaryExpression).left; + if (isAssignmentExpression(parent)) { + const target = parent.left; if (isAccessExpression(target)) { const { expression } = target; // Don't contextually type `this` as `exports` in `exports.Point = function(x, y) { this.x = x; this.y = y; }` @@ -29673,7 +29794,19 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // and that call signature is non-generic, return statements are contextually typed by the return type of the signature const signature = getContextualSignatureForFunctionLikeDeclaration(functionDecl as FunctionExpression); if (signature && !isResolvingReturnTypeOfSignature(signature)) { - return getReturnTypeOfSignature(signature); + const returnType = getReturnTypeOfSignature(signature); + const functionFlags = getFunctionFlags(functionDecl); + if (functionFlags & FunctionFlags.Generator) { + return filterType(returnType, t => { + return !!(t.flags & (TypeFlags.AnyOrUnknown | TypeFlags.Void | TypeFlags.InstantiableNonPrimitive)) || checkGeneratorInstantiationAssignabilityToReturnType(t, functionFlags, /*errorNode*/ undefined); + }); + } + if (functionFlags & FunctionFlags.Async) { + return filterType(returnType, t => { + return !!(t.flags & (TypeFlags.AnyOrUnknown | TypeFlags.Void | TypeFlags.InstantiableNonPrimitive)) || !!getAwaitedTypeOfPromise(t); + }); + } + return returnType; } const iife = getImmediatelyInvokedFunctionExpression(functionDecl); if (iife) { @@ -31261,7 +31394,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // Handle children attribute const parent = openingLikeElement.parent.kind === SyntaxKind.JsxElement ? openingLikeElement.parent as JsxElement : undefined; // We have to check that openingElement of the parent is the one we are visiting as this may not be true for selfClosingElement - if (parent && parent.openingElement === openingLikeElement && parent.children.length > 0) { + if (parent && parent.openingElement === openingLikeElement && getSemanticJsxChildren(parent.children).length > 0) { const childrenTypes: Type[] = checkJsxChildren(parent, checkMode); if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { @@ -33356,8 +33489,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { if (arg.kind === SyntaxKind.SyntheticExpression && (arg as SyntheticExpression).tupleNameSource) { names.push((arg as SyntheticExpression).tupleNameSource!); } + else { + names.push(undefined); + } } - return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType), length(names) === length(types) ? names : undefined); + return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType), names); } function checkTypeArguments(signature: Signature, typeArgumentNodes: readonly TypeNode[], reportErrors: boolean, headMessage?: DiagnosticMessage): Type[] | undefined { @@ -35741,12 +35877,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { types.push(restType); flags.push(ElementFlags.Variadic); } - const name = getNameableDeclarationAtPosition(source, i); - if (name) { - names.push(name); - } + names.push(getNameableDeclarationAtPosition(source, i)); } - return createTupleType(types, flags, readonly, length(names) === length(types) ? names : undefined); + return createTupleType(types, flags, readonly, names); } // Return the number of parameters in a signature. The rest parameter, if present, counts as one @@ -36613,9 +36746,14 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { let hasReturnWithNoExpression = functionHasImplicitReturn(func); let hasReturnOfTypeNever = false; forEachReturnStatement(func.body as Block, returnStatement => { - const expr = returnStatement.expression; + let expr = returnStatement.expression; if (expr) { + expr = skipParentheses(expr, /*excludeJSDocTypeAssertions*/ true); // Bare calls to this same function don't contribute to inference + // and `return await` is also safe to unwrap here + if (functionFlags & FunctionFlags.Async && expr.kind === SyntaxKind.AwaitExpression) { + expr = skipParentheses((expr as AwaitExpression).expression, /*excludeJSDocTypeAssertions*/ true); + } if ( expr.kind === SyntaxKind.CallExpression && (expr as CallExpression).expression.kind === SyntaxKind.Identifier && @@ -37019,7 +37157,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } function checkVoidExpression(node: VoidExpression): Type { - checkExpression(node.expression); + checkNodeDeferred(node); return undefinedWideningType; } @@ -38250,7 +38388,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // There is no point in doing an assignability check if the function // has no explicit return type because the return type is directly computed // from the yield expressions. - const returnType = getReturnTypeFromAnnotation(func); + let returnType = getReturnTypeFromAnnotation(func); + if (returnType && returnType.flags & TypeFlags.Union) { + returnType = filterType(returnType, t => checkGeneratorInstantiationAssignabilityToReturnType(t, functionFlags, /*errorNode*/ undefined)); + } const iterationTypes = returnType && getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsync); const signatureYieldType = iterationTypes && iterationTypes.yieldType || anyType; const signatureNextType = iterationTypes && iterationTypes.nextType || anyType; @@ -39178,17 +39319,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { error(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation); } else { - // Naively, one could check that Generator is assignable to the return type annotation. - // However, that would not catch the error in the following case. - // - // interface BadGenerator extends Iterable, Iterator { } - // function* g(): BadGenerator { } // Iterable and Iterator have different types! - // - const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Yield, returnType, (functionFlags & FunctionFlags.Async) !== 0) || anyType; - const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Return, returnType, (functionFlags & FunctionFlags.Async) !== 0) || generatorYieldType; - const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Next, returnType, (functionFlags & FunctionFlags.Async) !== 0) || unknownType; - const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags & FunctionFlags.Async)); - checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeErrorLocation); + checkGeneratorInstantiationAssignabilityToReturnType(returnType, functionFlags, returnTypeErrorLocation); } } else if ((functionFlags & FunctionFlags.AsyncGenerator) === FunctionFlags.Async) { @@ -39201,6 +39332,21 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } } + function checkGeneratorInstantiationAssignabilityToReturnType(returnType: Type, functionFlags: FunctionFlags, errorNode?: TypeNode) { + // Naively, one could check that Generator is assignable to the return type annotation. + // However, that would not catch the error in the following case. + // + // interface BadGenerator extends Iterable, Iterator { } + // function* g(): BadGenerator { } // Iterable and Iterator have different types! + // + const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Yield, returnType, (functionFlags & FunctionFlags.Async) !== 0) || anyType; + const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Return, returnType, (functionFlags & FunctionFlags.Async) !== 0) || generatorYieldType; + const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(IterationTypeKind.Next, returnType, (functionFlags & FunctionFlags.Async) !== 0) || unknownType; + const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags & FunctionFlags.Async)); + + return checkTypeAssignableTo(generatorInstantiation, returnType, errorNode); + } + function checkClassForDuplicateDeclarations(node: ClassLikeDeclaration) { const instanceNames = new Map<__String, DeclarationMeaning>(); const staticNames = new Map<__String, DeclarationMeaning>(); @@ -41152,6 +41298,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { function checkJSDocParameterTag(node: JSDocParameterTag) { checkSourceElement(node.typeExpression); } + function checkJSDocPropertyTag(node: JSDocPropertyTag) { checkSourceElement(node.typeExpression); } @@ -41167,6 +41314,13 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } } + function checkJSDocThisTag(node: JSDocThisTag) { + const host = getEffectiveJSDocHost(node); + if (host && isArrowFunction(host)) { + error(node.tagName, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); + } + } + function checkJSDocImplementsTag(node: JSDocImplementsTag): void { const classLike = getEffectiveJSDocHost(node); if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { @@ -41998,7 +42152,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { forEach(node.name.elements, checkSourceElement); } // For a parameter declaration with an initializer, error and exit if the containing function doesn't have a body - if (isParameter(node) && node.initializer && nodeIsMissing((getContainingFunction(node) as FunctionLikeDeclaration).body)) { + if (node.initializer && isParameterDeclaration(node) && nodeIsMissing((getContainingFunction(node) as FunctionLikeDeclaration).body)) { error(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); return; } @@ -45885,6 +46039,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return checkJSDocAccessibilityModifiers(node as JSDocPublicTag | JSDocProtectedTag | JSDocPrivateTag); case SyntaxKind.JSDocSatisfiesTag: return checkJSDocSatisfiesTag(node as JSDocSatisfiesTag); + case SyntaxKind.JSDocThisTag: + return checkJSDocThisTag(node as JSDocThisTag); case SyntaxKind.IndexedAccessType: return checkIndexedAccessType(node as IndexedAccessTypeNode); case SyntaxKind.MappedType: @@ -46132,6 +46288,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { case SyntaxKind.ParenthesizedExpression: checkAssertionDeferred(node as AssertionExpression | JSDocTypeAssertion); break; + case SyntaxKind.VoidExpression: + checkExpression((node as VoidExpression).expression); + break; case SyntaxKind.BinaryExpression: if (isInstanceOfExpression(node)) { resolveUntypedCall(node); @@ -47869,6 +48028,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker, bundled); }, isImportRequiredByAugmentation, + tryFindAmbientModule: moduleReferenceExpression => { + const node = getParseTreeNode(moduleReferenceExpression); + const moduleSpecifier = node && isStringLiteralLike(node) ? node.text : undefined; + return moduleSpecifier !== undefined ? tryFindAmbientModule(moduleSpecifier, /*withAugmentations*/ true) : undefined; + }, }; function isImportRequiredByAugmentation(node: ImportDeclaration) { @@ -50271,6 +50435,7 @@ interface NodeBuilderContext { // State encounteredError: boolean; reportedDiagnostic: boolean; + trackedSymbols: TrackedSymbol[] | undefined; visitedTypes: Set | undefined; symbolDepth: Map | undefined; inferTypeParameters: TypeParameter[] | undefined; @@ -50311,6 +50476,8 @@ class SymbolTrackerImpl implements SymbolTracker { this.onDiagnosticReported(); return true; } + // Skip recording type parameters as they dont contribute to late painted statements + if (!(symbol.flags & SymbolFlags.TypeParameter)) (this.context.trackedSymbols ??= []).push([symbol, enclosingDeclaration, meaning]); } return false; } diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 9df645a212d..891fe684b41 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -1249,7 +1249,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ affectsEmit: true, affectsBuildInfo: true, affectsDeclarationPath: true, - isFilePath: false, // This is intentionally broken to support compatability with existing tsconfig files + isFilePath: false, // This is intentionally broken to support compatibility with existing tsconfig files // for correct behaviour, please use outFile category: Diagnostics.Backwards_Compatibility, paramType: Diagnostics.FILE, @@ -2384,7 +2384,7 @@ export function convertToJson( // Currently having element option declaration in the tsconfig with type "object" // determines if it needs onSetValidOptionKeyValueInParent callback or not // At moment there are only "compilerOptions", "typeAcquisition" and "typingOptions" - // that satifies it and need it to modify options set in them (for normalizing file paths) + // that satisfies it and need it to modify options set in them (for normalizing file paths) // vs what we set in the json // If need arises, we can modify this interface and callbacks as needed return convertObjectLiteralExpressionToJson(objectLiteralExpression, option as TsConfigOnlyOption); diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 31955155b0f..81fd5981ac8 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -3619,7 +3619,7 @@ "category": "Error", "code": 2839 }, - "An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes": { + "An interface cannot extend a primitive type like '{0}'. It can only extend other named object types.": { "category": "Error", "code": 2840 }, @@ -3699,6 +3699,18 @@ "category": "Error", "code": 2861 }, + "Type '{0}' is generic and can only be indexed for reading.": { + "category": "Error", + "code": 2862 + }, + "A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values.": { + "category": "Error", + "code": 2863 + }, + "A class cannot implement a primitive type like '{0}'. It can only implement other named object types.": { + "category": "Error", + "code": 2864 + }, "Import declaration '{0}' is using private name '{1}'.": { "category": "Error", diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 3d035053761..463651bdb00 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1182,6 +1182,7 @@ export const notImplementedResolver: EmitResolver = { isBindingCapturedByNode: notImplemented, getDeclarationStatementsForSourceFile: notImplemented, isImportRequiredByAugmentation: notImplemented, + tryFindAmbientModule: notImplemented, }; /** diff --git a/src/compiler/factory/emitHelpers.ts b/src/compiler/factory/emitHelpers.ts index f3a49d77cb0..0fd25b6bf63 100644 --- a/src/compiler/factory/emitHelpers.ts +++ b/src/compiler/factory/emitHelpers.ts @@ -854,17 +854,18 @@ export const asyncGeneratorHelper: UnscopedEmitHelper = { scoped: false, dependencies: [awaitHelper], text: ` - var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };`, + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`, }; /** @internal */ diff --git a/src/compiler/factory/nodeFactory.ts b/src/compiler/factory/nodeFactory.ts index c01dee21917..6964705e943 100644 --- a/src/compiler/factory/nodeFactory.ts +++ b/src/compiler/factory/nodeFactory.ts @@ -1,5 +1,6 @@ import { __String, + AccessorDeclaration, addRange, append, appendIfUnique, @@ -1178,8 +1179,9 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode ensureUseStrict, liftToBlock, mergeLexicalEnvironment, - updateModifiers, - updateModifierLike, + replaceModifiers, + replaceDecoratorsAndModifiers, + replacePropertyName, }; forEach(nodeFactoryPatchers, fn => fn(factory)); @@ -7100,8 +7102,8 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode return statements; } - function updateModifiers(node: T, modifiers: readonly Modifier[] | ModifierFlags): T; - function updateModifiers(node: HasModifiers, modifiers: readonly Modifier[] | ModifierFlags) { + function replaceModifiers(node: T, modifiers: readonly Modifier[] | ModifierFlags): T; + function replaceModifiers(node: HasModifiers, modifiers: readonly Modifier[] | ModifierFlags) { let modifierArray; if (typeof modifiers === "number") { modifierArray = createModifiersFromModifierFlags(modifiers); @@ -7137,8 +7139,8 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode Debug.assertNever(node); } - function updateModifierLike(node: T, modifiers: readonly ModifierLike[]): T; - function updateModifierLike(node: HasModifiers & HasDecorators, modifierArray: readonly ModifierLike[]) { + function replaceDecoratorsAndModifiers(node: T, modifiers: readonly ModifierLike[]): T; + function replaceDecoratorsAndModifiers(node: HasModifiers & HasDecorators, modifierArray: readonly ModifierLike[]) { return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : @@ -7149,6 +7151,26 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode Debug.assertNever(node); } + function replacePropertyName(node: T, name: T["name"]): T; + function replacePropertyName(node: AccessorDeclaration | MethodDeclaration | MethodSignature | PropertyDeclaration | PropertySignature | PropertyAssignment, name: PropertyName) { + switch (node.kind) { + case SyntaxKind.GetAccessor: + return updateGetAccessorDeclaration(node, node.modifiers, name, node.parameters, node.type, node.body); + case SyntaxKind.SetAccessor: + return updateSetAccessorDeclaration(node, node.modifiers, name, node.parameters, node.body); + case SyntaxKind.MethodDeclaration: + return updateMethodDeclaration(node, node.modifiers, node.asteriskToken, name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body); + case SyntaxKind.MethodSignature: + return updateMethodSignature(node, node.modifiers, name, node.questionToken, node.typeParameters, node.parameters, node.type); + case SyntaxKind.PropertyDeclaration: + return updatePropertyDeclaration(node, node.modifiers, name, node.questionToken ?? node.exclamationToken, node.type, node.initializer); + case SyntaxKind.PropertySignature: + return updatePropertySignature(node, node.modifiers, name, node.questionToken, node.type); + case SyntaxKind.PropertyAssignment: + return updatePropertyAssignment(node, name, node.initializer); + } + } + function asNodeArray(array: readonly T[]): NodeArray; function asNodeArray(array: readonly T[] | undefined): NodeArray | undefined; function asNodeArray(array: readonly T[] | undefined): NodeArray | undefined { diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index f978cf7ea00..9dfb79bda1e 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -225,6 +225,7 @@ function createResolvedModuleWithFailedLookupLocationsHandlingSymlink( affectingLocations: string[], diagnostics: Diagnostic[], state: ModuleResolutionState, + cache: ModuleResolutionCache | NonRelativeModuleNameResolutionCache | undefined, legacyResult?: string, ): ResolvedModuleWithFailedLookupLocations { // If this is from node_modules for non relative name, always respect preserveSymlinks @@ -246,6 +247,7 @@ function createResolvedModuleWithFailedLookupLocationsHandlingSymlink( affectingLocations, diagnostics, state.resultFromCache, + cache, legacyResult, ); } @@ -257,13 +259,24 @@ function createResolvedModuleWithFailedLookupLocations( affectingLocations: string[], diagnostics: Diagnostic[], resultFromCache: ResolvedModuleWithFailedLookupLocations | undefined, + cache: ModuleResolutionCache | NonRelativeModuleNameResolutionCache | undefined, legacyResult?: string, ): ResolvedModuleWithFailedLookupLocations { if (resultFromCache) { - resultFromCache.failedLookupLocations = updateResolutionField(resultFromCache.failedLookupLocations, failedLookupLocations); - resultFromCache.affectingLocations = updateResolutionField(resultFromCache.affectingLocations, affectingLocations); - resultFromCache.resolutionDiagnostics = updateResolutionField(resultFromCache.resolutionDiagnostics, diagnostics); - return resultFromCache; + if (!cache?.isReadonly) { + resultFromCache.failedLookupLocations = updateResolutionField(resultFromCache.failedLookupLocations, failedLookupLocations); + resultFromCache.affectingLocations = updateResolutionField(resultFromCache.affectingLocations, affectingLocations); + resultFromCache.resolutionDiagnostics = updateResolutionField(resultFromCache.resolutionDiagnostics, diagnostics); + return resultFromCache; + } + else { + return { + ...resultFromCache, + failedLookupLocations: initializeResolutionFieldForReadonlyCache(resultFromCache.failedLookupLocations, failedLookupLocations), + affectingLocations: initializeResolutionFieldForReadonlyCache(resultFromCache.affectingLocations, affectingLocations), + resolutionDiagnostics: initializeResolutionFieldForReadonlyCache(resultFromCache.resolutionDiagnostics, diagnostics), + }; + } } return { resolvedModule: resolved && { @@ -291,6 +304,12 @@ export function updateResolutionField(to: T[] | undefined, value: T[] | undef return to; } +function initializeResolutionFieldForReadonlyCache(fromCache: T[] | undefined, value: T[]): T[] | undefined { + if (!fromCache?.length) return initializeResolutionField(value); + if (!value.length) return fromCache.slice(); + return [...fromCache, ...value]; +} + /** @internal */ export interface ModuleResolutionState { host: ModuleResolutionHost; @@ -566,10 +585,8 @@ export function resolveTypeReferenceDirective(typeReferenceDirectiveName: string if (resolutionMode === ModuleKind.ESNext && (ModuleResolutionKind.Node16 <= moduleResolution && moduleResolution <= ModuleResolutionKind.NodeNext)) { features |= NodeResolutionFeatures.EsmMode; } - // true: "import" / false: "require" / undefined: default based on settings - const useImportCondition = resolutionMode === ModuleKind.ESNext || (resolutionMode !== undefined ? false : undefined); const conditions = (features & NodeResolutionFeatures.Exports) - ? getConditions(options, useImportCondition) + ? getConditions(options, resolutionMode) : []; const diagnostics: Diagnostic[] = []; const moduleResolutionState: ModuleResolutionState = { @@ -612,10 +629,10 @@ export function resolveTypeReferenceDirective(typeReferenceDirectiveName: string affectingLocations: initializeResolutionField(affectingLocations), resolutionDiagnostics: initializeResolutionField(diagnostics), }; - if (containingDirectory) { - cache?.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(typeReferenceDirectiveName, /*mode*/ resolutionMode, result); + if (containingDirectory && cache && !cache.isReadonly) { + cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(typeReferenceDirectiveName, /*mode*/ resolutionMode, result); if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) { - cache?.getOrCreateCacheForNonRelativeName(typeReferenceDirectiveName, resolutionMode, redirectedReference).set(containingDirectory, result); + cache.getOrCreateCacheForNonRelativeName(typeReferenceDirectiveName, resolutionMode, redirectedReference).set(containingDirectory, result); } } if (traceEnabled) traceResult(result); @@ -725,16 +742,13 @@ function getNodeResolutionFeatures(options: CompilerOptions) { return features; } -/** - * @param overrideResolutionModeAttribute - * @internal - */ -export function getConditions(options: CompilerOptions, esmMode?: boolean) { +/** @internal */ +export function getConditions(options: CompilerOptions, resolutionMode?: ResolutionMode) { const moduleResolution = getEmitModuleResolutionKind(options); - if (esmMode === undefined) { + if (resolutionMode === undefined) { if (moduleResolution === ModuleResolutionKind.Bundler) { // bundler always uses `import` unless explicitly overridden - esmMode ??= moduleResolution === ModuleResolutionKind.Bundler; + resolutionMode = ModuleKind.ESNext; } else if (moduleResolution === ModuleResolutionKind.Node10) { // node10 does not support package.json imports/exports without @@ -745,7 +759,7 @@ export function getConditions(options: CompilerOptions, esmMode?: boolean) { } // conditions are only used by the node16/nodenext/bundler resolvers - there's no priority order in the list, // it's essentially a set (priority is determined by object insertion order in the object we look at). - const conditions = esmMode + const conditions = resolutionMode === ModuleKind.ESNext ? ["import"] : ["require"]; if (!options.noDtsResolution) { @@ -850,6 +864,8 @@ export interface PerDirectoryResolutionCache { * This updates the redirects map as well if needed so module resolutions are cached if they can across the projects */ update(options: CompilerOptions): void; + /** @internal */ directoryToModuleNameMap: CacheWithRedirects>; + /** @internal */ isReadonly?: boolean; } export interface NonRelativeNameResolutionCache { @@ -861,11 +877,13 @@ export interface NonRelativeNameResolutionCache { * This updates the redirects map as well if needed so module resolutions are cached if they can across the projects */ update(options: CompilerOptions): void; + /** @internal */ isReadonly?: boolean; } export interface PerNonRelativeNameCache { get(directory: string): T | undefined; set(directory: string, result: T): void; + /** @internal */ isReadonly?: boolean; } export interface ModuleResolutionCache extends PerDirectoryResolutionCache, NonRelativeModuleNameResolutionCache, PackageJsonInfoCache { @@ -889,6 +907,7 @@ export interface PackageJsonInfoCache { /** @internal */ entries(): [Path, PackageJsonInfo | boolean][]; /** @internal */ getInternalMap(): Map | undefined; clear(): void; + /** @internal */ isReadonly?: boolean; } export type PerModuleNameCache = PerNonRelativeNameCache; @@ -920,6 +939,7 @@ export interface CacheWithRedirects { getOrCreateMapOfCacheRedirects(redirectedReference: ResolvedProjectReference | undefined): Map; update(newOptions: CompilerOptions): void; clear(): void; + getOwnMap(): Map; } /** @internal */ @@ -936,6 +956,7 @@ export function createCacheWithRedirects(ownOptions: CompilerOptions | und getOrCreateMapOfCacheRedirects, update, clear, + getOwnMap: () => ownMap, }; function getMapOfCacheRedirects(redirectedReference: ResolvedProjectReference | undefined): Map | undefined { @@ -1042,6 +1063,7 @@ function createPerDirectoryResolutionCache( getOrCreateCacheForDirectory, clear, update, + directoryToModuleNameMap, }; function clear() { @@ -1412,13 +1434,13 @@ export function resolveModuleName(moduleName: string, containingFile: string, co result = nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode); break; case ModuleResolutionKind.Node10: - result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode === ModuleKind.ESNext) : undefined); + result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode) : undefined); break; case ModuleResolutionKind.Classic: result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference); break; case ModuleResolutionKind.Bundler: - result = bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode === ModuleKind.ESNext) : undefined); + result = bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode) : undefined); break; default: return Debug.fail(`Unexpected moduleResolution: ${moduleResolution}`); @@ -1426,10 +1448,12 @@ export function resolveModuleName(moduleName: string, containingFile: string, co if (result && result.resolvedModule) perfLogger?.logInfoEvent(`Module "${moduleName}" resolved to "${result.resolvedModule.resolvedFileName}"`); perfLogger?.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null"); - cache?.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(moduleName, resolutionMode, result); - if (!isExternalModuleNameRelative(moduleName)) { - // put result in per-module name cache - cache?.getOrCreateCacheForNonRelativeName(moduleName, resolutionMode, redirectedReference).set(containingDirectory, result); + if (cache && !cache.isReadonly) { + cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(moduleName, resolutionMode, result); + if (!isExternalModuleNameRelative(moduleName)) { + // put result in per-module name cache + cache.getOrCreateCacheForNonRelativeName(moduleName, resolutionMode, redirectedReference).set(containingDirectory, result); + } } } @@ -1784,7 +1808,7 @@ function nodeModuleNameResolverWorker( compilerOptions, moduleResolution === ModuleResolutionKind.Bundler || moduleResolution === ModuleResolutionKind.Node10 ? undefined - : !!(features & NodeResolutionFeatures.EsmMode), + : (features & NodeResolutionFeatures.EsmMode) ? ModuleKind.ESNext : ModuleKind.CommonJS, ); const diagnostics: Diagnostic[] = []; @@ -1850,6 +1874,7 @@ function nodeModuleNameResolverWorker( affectingLocations, diagnostics, state, + cache, legacyResult, ); @@ -2195,7 +2220,7 @@ export function getEntrypointsFromPackageJsonInfo( if (features & NodeResolutionFeatures.Exports && packageJsonInfo.contents.packageJsonContent.exports) { const conditionSets = deduplicate( - [getConditions(options, /*esmMode*/ true), getConditions(options, /*esmMode*/ false)], + [getConditions(options, ModuleKind.ESNext), getConditions(options, ModuleKind.CommonJS)], arrayIsEqualTo, ); for (const conditions of conditionSets) { @@ -2386,7 +2411,7 @@ export function getPackageJsonInfo(packageDirectory: string, onlyRecordFailures: trace(host, Diagnostics.Found_package_json_at_0, packageJsonPath); } const result: PackageJsonInfo = { packageDirectory, contents: { packageJsonContent, versionPaths: undefined, resolvedEntrypoints: undefined } }; - state.packageJsonInfoCache?.setPackageJsonInfo(packageJsonPath, result); + if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly) state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, result); state.affectingLocations?.push(packageJsonPath); return result; } @@ -2394,7 +2419,7 @@ export function getPackageJsonInfo(packageDirectory: string, onlyRecordFailures: if (directoryExists && traceEnabled) { trace(host, Diagnostics.File_0_does_not_exist, packageJsonPath); } - state.packageJsonInfoCache?.setPackageJsonInfo(packageJsonPath, directoryExists); + if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly) state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, directoryExists); // record package json as one of failed lookup locations - in the future if this file will appear it will invalidate resolution results state.failedLookupLocations?.push(packageJsonPath); } @@ -3178,6 +3203,7 @@ export function classicNameResolver(moduleName: string, containingFile: string, affectingLocations, diagnostics, state, + cache, ); function tryResolve(extensions: Extensions): SearchResult { @@ -3273,6 +3299,7 @@ export function loadModuleFromGlobalCache(moduleName: string, projectName: strin affectingLocations, diagnostics, state.resultFromCache, + /*cache*/ undefined, ); } diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index 2a59e6c5be8..a59fc09a674 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -315,6 +315,7 @@ export function getModuleSpecifiers( host, userPreferences, options, + /*forAutoImport*/ false, ).moduleSpecifiers; } @@ -327,6 +328,7 @@ export function getModuleSpecifiersWithCacheInfo( host: ModuleSpecifierResolutionHost, userPreferences: UserPreferences, options: ModuleSpecifierOptions = {}, + forAutoImport: boolean, ): { moduleSpecifiers: readonly string[]; computedWithoutCache: boolean; } { let computedWithoutCache = false; const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker); @@ -345,7 +347,15 @@ export function getModuleSpecifiersWithCacheInfo( computedWithoutCache = true; modulePaths ||= getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host); - const result = computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options); + const result = computeModuleSpecifiers( + modulePaths, + compilerOptions, + importingSourceFile, + host, + userPreferences, + options, + forAutoImport, + ); cache?.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result); return { moduleSpecifiers: result, computedWithoutCache }; } @@ -357,6 +367,7 @@ function computeModuleSpecifiers( host: ModuleSpecifierResolutionHost, userPreferences: UserPreferences, options: ModuleSpecifierOptions = {}, + forAutoImport: boolean, ): readonly string[] { const info = getInfo(importingSourceFile.path, host); const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile); @@ -421,7 +432,7 @@ function computeModuleSpecifiers( else if (pathIsBareSpecifier(local)) { pathsSpecifiers = append(pathsSpecifiers, local); } - else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) { + else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) { // Why this extra conditional, not just an `else`? If some path to the file contained // 'node_modules', but we can't create a non-relative specifier (e.g. "@foo/bar/path/to/file"), // that means we had to go through a *sibling's* node_modules, not one we can access directly. @@ -981,7 +992,7 @@ function tryGetModuleNameAsNodeModule({ path, isRedirect }: ModulePath, { getCan // use the actual directory name, so don't look at `packageJsonContent.name` here. const nodeModulesDirectoryName = packageRootPath.substring(parts.topLevelPackageNameIndex + 1); const packageName = getPackageNameFromTypesPackageName(nodeModulesDirectoryName); - const conditions = getConditions(options, importMode === ModuleKind.ESNext); + const conditions = getConditions(options, importMode); const fromExports = packageJsonContent.exports ? tryGetModuleNameFromExports(options, path, packageRootPath, packageName, packageJsonContent.exports, conditions) : undefined; diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 2a5fedace13..04fc89a37d0 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -7,7 +7,6 @@ import { arrayFrom, arrayIsEqualTo, AsExpression, - AssertClause, BuilderProgram, CancellationToken, canHaveDecorators, @@ -918,7 +917,7 @@ export function getModeForUsageLocation(file: { impliedNodeFormat?: ResolutionMo } /** @internal */ -export function getResolutionModeOverride(node: AssertClause | ImportAttributes | undefined, grammarErrorOnNode?: (node: Node, diagnostic: DiagnosticMessage) => void) { +export function getResolutionModeOverride(node: ImportAttributes | undefined, grammarErrorOnNode?: (node: Node, diagnostic: DiagnosticMessage) => void) { if (!node) return undefined; if (length(node.elements) !== 1) { grammarErrorOnNode?.( diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index 35c03d294ed..6c150cb66ae 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -205,6 +205,18 @@ export interface ResolutionCacheHost extends MinimalResolutionCacheHost { getCurrentProgram(): Program | undefined; fileIsOpen(filePath: Path): boolean; onDiscoveredSymlink?(): void; + + // For incremental testing + beforeResolveSingleModuleNameWithoutWatching?( + moduleResolutionCache: ModuleResolutionCache, + ): any; + afterResolveSingleModuleNameWithoutWatching?( + moduleResolutionCache: ModuleResolutionCache, + moduleName: string, + containingFile: string, + result: ResolvedModuleWithFailedLookupLocations, + data: any, + ): any; } /** @internal */ @@ -439,6 +451,10 @@ export function getRootPathSplitLength(rootPath: Path) { return rootPath.split(directorySeparator).length - (hasTrailingDirectorySeparator(rootPath) ? 1 : 0); } +function getModuleResolutionHost(resolutionHost: ResolutionCacheHost) { + return resolutionHost.getCompilerHost?.() || resolutionHost; +} + /** @internal */ export function createModuleResolutionLoaderUsingGlobalCache( containingFile: string, @@ -471,7 +487,7 @@ function resolveModuleNameUsingGlobalCache( redirectedReference?: ResolvedProjectReference, mode?: ResolutionMode, ): ResolvedModuleWithFailedLookupLocations { - const host = resolutionHost.getCompilerHost?.() || resolutionHost; + const host = getModuleResolutionHost(resolutionHost); const primaryResult = ts_resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference, mode); // return result immediately only if global cache support is not enabled or if it is .ts, .tsx or .d.ts if (!resolutionHost.getGlobalCache) { @@ -686,6 +702,10 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD } function startCachingPerDirectoryResolution() { + moduleResolutionCache.isReadonly = undefined; + typeReferenceDirectiveResolutionCache.isReadonly = undefined; + libraryResolutionCache.isReadonly = undefined; + moduleResolutionCache.getPackageJsonInfoCache().isReadonly = undefined; moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); libraryResolutionCache.clearAllExceptPackageJsonInfoCache(); @@ -740,6 +760,10 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD directoryWatchesOfFailedLookups.forEach(closeDirectoryWatchesOfFailedLookup); fileWatchesOfAffectingLocations.forEach(closeFileWatcherOfAffectingLocation); hasChangedAutomaticTypeDirectiveNames = false; + moduleResolutionCache.isReadonly = true; + typeReferenceDirectiveResolutionCache.isReadonly = true; + libraryResolutionCache.isReadonly = true; + moduleResolutionCache.getPackageJsonInfoCache().isReadonly = true; } function closeDirectoryWatchesOfFailedLookup(watcher: DirectoryWatchesOfFailedLookup, path: Path) { @@ -828,7 +852,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD } } else { - const host = resolutionHost.getCompilerHost?.() || resolutionHost; + const host = getModuleResolutionHost(resolutionHost); if (isTraceEnabled(options, host) && !seenNamesInFile.has(name, mode)) { const resolved = getResolutionWithResolvedFileName(resolution!); trace( @@ -912,7 +936,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD containingFile, redirectedReference, options, - resolutionHost.getCompilerHost?.() || resolutionHost, + getModuleResolutionHost(resolutionHost), typeReferenceDirectiveResolutionCache, ), getResolutionWithResolvedFileName: getResolvedTypeReferenceDirective, @@ -957,7 +981,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD options: CompilerOptions, libFileName: string, ) { - const host = resolutionHost.getCompilerHost?.() || resolutionHost; + const host = getModuleResolutionHost(resolutionHost); let resolution = resolvedLibraries?.get(libFileName); if (!resolution || resolution.isInvalidated) { const existingResolution = resolution; @@ -994,7 +1018,18 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD const resolutionsInFile = resolvedModuleNames.get(path); const resolution = resolutionsInFile?.get(moduleName, /*mode*/ undefined); if (resolution && !resolution.isInvalidated) return resolution; - return resolveModuleNameUsingGlobalCache(resolutionHost, moduleResolutionCache, moduleName, containingFile, resolutionHost.getCompilationSettings()); + const data = resolutionHost.beforeResolveSingleModuleNameWithoutWatching?.(moduleResolutionCache); + const host = getModuleResolutionHost(resolutionHost); + // We are not resolving d.ts so just normal resolution instead of doing resolution pass to global cache + const result = ts_resolveModuleName( + moduleName, + containingFile, + resolutionHost.getCompilationSettings(), + host, + moduleResolutionCache, + ); + resolutionHost.afterResolveSingleModuleNameWithoutWatching?.(moduleResolutionCache, moduleName, containingFile, result, data); + return result; } function isNodeModulesAtTypesDirectory(dirPath: Path) { diff --git a/src/compiler/transformers/declarations.ts b/src/compiler/transformers/declarations.ts index 05b5ad1c8b9..e649e1b2b43 100644 --- a/src/compiler/transformers/declarations.ts +++ b/src/compiler/transformers/declarations.ts @@ -212,6 +212,7 @@ import { TransformationContext, transformNodes, tryCast, + tryGetModuleSpecifierFromDeclaration, TypeAliasDeclaration, TypeNode, TypeParameterDeclaration, @@ -345,6 +346,18 @@ export function transformDeclarations(context: TransformationContext) { refs.set(getOriginalNodeId(container), container); } + function trackReferencedAmbientModuleFromImport(node: ImportDeclaration | ExportDeclaration | ImportEqualsDeclaration | ImportTypeNode) { + const moduleSpecifier = tryGetModuleSpecifierFromDeclaration(node); + const symbol = moduleSpecifier && resolver.tryFindAmbientModule(moduleSpecifier); + if (symbol?.declarations) { + for (const decl of symbol.declarations) { + if (isAmbientModule(decl) && getSourceFileOfNode(decl) !== currentSourceFile) { + trackReferencedAmbientModule(decl, symbol); + } + } + } + } + function handleSymbolAccessibilityError(symbolAccessibilityResult: SymbolAccessibilityResult) { if (symbolAccessibilityResult.accessibility === SymbolAccessibility.Accessible) { // Add aliases back onto the possible imports list if they're not there so we can try them again with updated visibility info @@ -1312,6 +1325,7 @@ export function transformDeclarations(context: TransformationContext) { } case SyntaxKind.ImportType: { if (!isLiteralImportTypeNode(input)) return cleanup(input); + trackReferencedAmbientModuleFromImport(input); return cleanup(factory.updateImportTypeNode( input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), @@ -1370,6 +1384,7 @@ export function transformDeclarations(context: TransformationContext) { } resultHasScopeMarker = true; // Always visible if the parent node isn't dropped for being not visible + trackReferencedAmbientModuleFromImport(input); // Rewrite external module names if necessary return factory.updateExportDeclaration( input, @@ -1421,7 +1436,7 @@ export function transformDeclarations(context: TransformationContext) { } const modifiers = factory.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (ModifierFlags.All ^ ModifierFlags.Export)); - return factory.updateModifiers(statement, modifiers); + return factory.replaceModifiers(statement, modifiers); } function updateModuleDeclarationAndKeyword( @@ -1456,10 +1471,18 @@ export function transformDeclarations(context: TransformationContext) { if (shouldStripInternal(input)) return; switch (input.kind) { case SyntaxKind.ImportEqualsDeclaration: { - return transformImportEqualsDeclaration(input); + const transformed = transformImportEqualsDeclaration(input); + if (transformed) { + trackReferencedAmbientModuleFromImport(input); + } + return transformed; } case SyntaxKind.ImportDeclaration: { - return transformImportDeclaration(input); + const transformed = transformImportDeclaration(input); + if (transformed) { + trackReferencedAmbientModuleFromImport(input); + } + return transformed; } } if (isDeclaration(input) && isDeclarationAndNotVisible(input)) return; @@ -1543,7 +1566,7 @@ export function transformDeclarations(context: TransformationContext) { return factory.createVariableStatement(isNonContextualKeywordName ? undefined : [factory.createToken(SyntaxKind.ExportKeyword)], factory.createVariableDeclarationList([varDecl])); }); if (!exportMappings.length) { - declarations = mapDefined(declarations, declaration => factory.updateModifiers(declaration, ModifierFlags.None)); + declarations = mapDefined(declarations, declaration => factory.replaceModifiers(declaration, ModifierFlags.None)); } else { declarations.push(factory.createExportDeclaration( diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 3cb50067125..e715a2dd815 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -9,6 +9,7 @@ import { arrayIsEqualTo, ArrayLiteralExpression, ArrowFunction, + AssignmentExpression, BinaryExpression, BindingElement, BindingPattern, @@ -39,18 +40,19 @@ import { elementAt, EmitFlags, EmitHint, + EqualsToken, every, Expression, ExpressionStatement, ExpressionWithTypeArguments, filter, - findSuperStatementIndexPath, first, firstOrUndefined, flatten, flattenDestructuringAssignment, flattenDestructuringBinding, FlattenLevel, + forEachChild, ForInStatement, ForOfStatement, ForStatement, @@ -58,6 +60,7 @@ import { FunctionDeclaration, FunctionExpression, FunctionLikeDeclaration, + GeneratedIdentifier, GeneratedIdentifierFlags, getAllAccessorDeclarations, getClassExtendsHeritageElement, @@ -104,6 +107,7 @@ import { isForStatement, isFunctionExpression, isFunctionLike, + isGeneratedIdentifier, isHoistedFunction, isHoistedVariableStatement, isIdentifier, @@ -113,26 +117,24 @@ import { isIterationStatement, isLabeledStatement, isModifier, - isNumericLiteral, isObjectLiteralElementLike, - isObjectLiteralExpression, isOmittedExpression, isPackedArrayLiteral, isPrivateIdentifier, - isPropertyAssignment, + isPropertyAccessExpression, isPropertyDeclaration, isPropertyName, isReturnStatement, isSpreadElement, isStatement, isStatic, + isSuperCall, isSuperProperty, isSwitchStatement, isTryStatement, isVariableDeclaration, isVariableDeclarationList, isVariableStatement, - isVoidExpression, isWithStatement, IterationStatement, LabeledStatement, @@ -154,6 +156,7 @@ import { NodeCheckFlags, NodeFlags, nodeIsSynthesized, + nullTransformationContext, NumericLiteral, ObjectLiteralElementLike, ObjectLiteralExpression, @@ -162,7 +165,9 @@ import { PrimaryExpression, ProcessLevel, processTaggedTemplateExpression, + PropertyAccessExpression, PropertyAssignment, + PropertyDeclaration, rangeEndIsOnSameLineAsRangeStart, ReturnStatement, SemicolonClassElement, @@ -187,11 +192,13 @@ import { startOnNewLine, Statement, StringLiteral, + SuperExpression, SwitchStatement, SyntaxKind, TaggedTemplateExpression, TemplateExpression, TextRange, + ThisExpression, TokenFlags, TransformationContext, TransformFlags, @@ -381,7 +388,7 @@ const enum HierarchyFacts { IterationContainer = 1 << 10, // Enclosed in an outer IterationStatement ForStatement = 1 << 11, // Enclosing block-scoped container is a ForStatement ForInOrForOfStatement = 1 << 12, // Enclosing block-scoped container is a ForInStatement or ForOfStatement - ConstructorWithCapturedSuper = 1 << 13, // Enclosed in a constructor that captures 'this' for use with 'super' + ConstructorWithSuperCall = 1 << 13, // Enclosed in a constructor that captures 'this' for use with 'super' StaticInitializer = 1 << 14, // Enclosed in a static initializer // NOTE: do not add more ancestor flags without also updating AncestorFactsMask below. @@ -404,14 +411,14 @@ const enum HierarchyFacts { // Functions, methods, and accessors are both new lexical scopes and new block scopes. FunctionIncludes = Function | TopLevel, - FunctionExcludes = BlockScopeExcludes & ~TopLevel | ArrowFunction | AsyncFunctionBody | CapturesThis | NonStaticClassElement | ConstructorWithCapturedSuper | IterationContainer | StaticInitializer, + FunctionExcludes = BlockScopeExcludes & ~TopLevel | ArrowFunction | AsyncFunctionBody | CapturesThis | NonStaticClassElement | ConstructorWithSuperCall | IterationContainer | StaticInitializer, AsyncFunctionBodyIncludes = FunctionIncludes | AsyncFunctionBody, AsyncFunctionBodyExcludes = FunctionExcludes & ~NonStaticClassElement, // Arrow functions are lexically scoped to their container, but are new block scopes. ArrowFunctionIncludes = ArrowFunction | TopLevel, - ArrowFunctionExcludes = BlockScopeExcludes & ~TopLevel | ConstructorWithCapturedSuper, + ArrowFunctionExcludes = BlockScopeExcludes & ~TopLevel | ConstructorWithSuperCall, // Constructors are both new lexical scopes and new block scopes. Constructors are also // always considered non-static members of a class. @@ -448,7 +455,8 @@ const enum HierarchyFacts { // NewTarget = 1 << 15, // Contains a 'new.target' meta-property - CapturedLexicalThis = 1 << 16, // Contains a lexical `this` reference captured by an arrow function. + LexicalThis = 1 << 16, // Contains a lexical `this` reference + CapturedLexicalThis = 1 << 17, // Contains a lexical `this` reference captured by an arrow function. // // Subtree masks @@ -457,7 +465,7 @@ const enum HierarchyFacts { SubtreeFactsMask = ~AncestorFactsMask, ArrowFunctionSubtreeExcludes = None, - FunctionSubtreeExcludes = NewTarget | CapturedLexicalThis, + FunctionSubtreeExcludes = NewTarget | LexicalThis | CapturedLexicalThis, } // dprint-ignore @@ -561,7 +569,7 @@ export function transformES2015(context: TransformationContext): (x: SourceFile } function isReturnVoidStatementInConstructorWithCapturedSuper(node: Node): boolean { - return (hierarchyFacts & HierarchyFacts.ConstructorWithCapturedSuper) !== 0 + return (hierarchyFacts & HierarchyFacts.ConstructorWithSuperCall) !== 0 && node.kind === SyntaxKind.ReturnStatement && !(node as ReturnStatement).expression; } @@ -585,7 +593,7 @@ export function transformES2015(context: TransformationContext): (x: SourceFile function shouldVisitNode(node: Node): boolean { return (node.transformFlags & TransformFlags.ContainsES2015) !== 0 || convertedLoopState !== undefined - || (hierarchyFacts & HierarchyFacts.ConstructorWithCapturedSuper && isOrMayContainReturnCompletion(node)) + || (hierarchyFacts & HierarchyFacts.ConstructorWithSuperCall && isOrMayContainReturnCompletion(node)) || (isIterationStatement(node, /*lookInLabeledStatements*/ false) && shouldConvertIterationStatement(node)) || (getInternalEmitFlags(node) & InternalEmitFlags.TypeScriptClassWrapper) !== 0; } @@ -617,7 +625,7 @@ export function transformES2015(context: TransformationContext): (x: SourceFile function callExpressionVisitor(node: Node): VisitResult { if (node.kind === SyntaxKind.SuperKeyword) { - return visitSuperKeyword(/*isExpressionOfCall*/ true); + return visitSuperKeyword(node as SuperExpression, /*isExpressionOfCall*/ true); } return visitor(node); } @@ -741,7 +749,7 @@ export function transformES2015(context: TransformationContext): (x: SourceFile return visitSpreadElement(node as SpreadElement); case SyntaxKind.SuperKeyword: - return visitSuperKeyword(/*isExpressionOfCall*/ false); + return visitSuperKeyword(node as SuperExpression, /*isExpressionOfCall*/ false); case SyntaxKind.ThisKeyword: return visitThisKeyword(node); @@ -811,7 +819,11 @@ export function transformES2015(context: TransformationContext): (x: SourceFile } function returnCapturedThis(node: Node): ReturnStatement { - return setOriginalNode(factory.createReturnStatement(factory.createUniqueName("_this", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel)), node); + return setOriginalNode(factory.createReturnStatement(createCapturedThis()), node); + } + + function createCapturedThis() { + return factory.createUniqueName("_this", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel) as CapturedThis; } function visitReturnStatement(node: ReturnStatement): Statement { @@ -840,6 +852,7 @@ export function transformES2015(context: TransformationContext): (x: SourceFile } function visitThisKeyword(node: Node): Node { + hierarchyFacts |= HierarchyFacts.LexicalThis; if (hierarchyFacts & HierarchyFacts.ArrowFunction && !(hierarchyFacts & HierarchyFacts.StaticInitializer)) { hierarchyFacts |= HierarchyFacts.CapturedLexicalThis; } @@ -1035,7 +1048,7 @@ export function transformES2015(context: TransformationContext): (x: SourceFile /*asteriskToken*/ undefined, /*name*/ undefined, /*typeParameters*/ undefined, - extendsClauseElement ? [factory.createParameterDeclaration(/*modifiers*/ undefined, /*dotDotDotToken*/ undefined, factory.createUniqueName("_super", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel))] : [], + extendsClauseElement ? [factory.createParameterDeclaration(/*modifiers*/ undefined, /*dotDotDotToken*/ undefined, createSyntheticSuper())] : [], /*type*/ undefined, transformClassBody(node, extendsClauseElement), ); @@ -1196,192 +1209,39 @@ export function transformES2015(context: TransformationContext): (x: SourceFile return block; } - function transformConstructorBodyWorker( - prologueOut: Statement[], - statementsOut: Statement[], - statementsIn: NodeArray, - statementOffset: number, - superPath: readonly number[], - superPathDepth: number, - constructor: ConstructorDeclaration & { body: FunctionBody; }, - isDerivedClass: boolean, - hasSynthesizedSuper: boolean, - isFirstStatement: boolean, - ): boolean { - let mayReplaceThis = false; - - const superStatementIndex = superPathDepth < superPath.length ? superPath[superPathDepth] : -1; - const leadingStatementsEnd = superStatementIndex >= 0 ? superStatementIndex : statementsIn.length; - - // find the index of the first statement material to evaluation - if (isFirstStatement && superStatementIndex >= 0) { - let firstMaterialIndex = statementOffset; - while (isFirstStatement && firstMaterialIndex < superStatementIndex) { - const statement = constructor.body.statements[firstMaterialIndex]; - if (!isUninitializedVariableStatement(statement) && !isUsingDeclarationStateVariableStatement(statement)) break; - firstMaterialIndex++; - } - - isFirstStatement = superStatementIndex === firstMaterialIndex; - } - - // visit everything prior to the statement containing `super()`. - addRange(statementsOut, visitNodes(statementsIn, visitor, isStatement, statementOffset, leadingStatementsEnd - statementOffset)); - - const superStatement = superStatementIndex >= 0 ? statementsIn[superStatementIndex] : undefined; - if (superStatement && isTryStatement(superStatement)) { - const tryBlockStatements: Statement[] = []; - - mayReplaceThis = transformConstructorBodyWorker( - prologueOut, - tryBlockStatements, - superStatement.tryBlock.statements, - /*statementOffset*/ 0, - superPath, - superPathDepth + 1, - constructor, - isDerivedClass, - hasSynthesizedSuper, - isFirstStatement, - ); - - const tryBlockStatementsArray = factory.createNodeArray(tryBlockStatements); - setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); - - statementsOut.push(factory.updateTryStatement( - superStatement, - factory.updateBlock(superStatement.tryBlock, tryBlockStatements), - visitNode(superStatement.catchClause, visitor, isCatchClause), - visitNode(superStatement.finallyBlock, visitor, isBlock), - )); - } - else { - const superCall = superStatement && getSuperCallFromStatement(superStatement); - let superCallExpression: Expression | undefined; - if (hasSynthesizedSuper) { - superCallExpression = createDefaultSuperCallOrThis(); - hierarchyFacts |= HierarchyFacts.ConstructorWithCapturedSuper; - } - else if (superCall) { - superCallExpression = visitSuperCallInBody(superCall); - hierarchyFacts |= HierarchyFacts.ConstructorWithCapturedSuper; - } - - if (isDerivedClass || superCallExpression) { - if ( - superCallExpression && - superStatementIndex === statementsIn.length - 1 && - !(constructor.body.transformFlags & TransformFlags.ContainsLexicalThis) - ) { - // If the subclass constructor does *not* contain `this` and *ends* with a `super()` call, we will use the - // following representation: - // - // ``` - // // es2015 (source) - // class C extends Base { - // constructor() { - // super("foo"); - // } - // } - // - // // es5 (transformed) - // var C = (function (_super) { - // function C() { - // return _super.call(this, "foo") || this; - // } - // return C; - // })(Base); - // ``` - - const superCall = cast(cast(superCallExpression, isBinaryExpression).left, isCallExpression); - const returnStatement = factory.createReturnStatement(superCallExpression); - setCommentRange(returnStatement, getCommentRange(superCall)); - setEmitFlags(superCall, EmitFlags.NoComments); - statementsOut.push(returnStatement); - return false; - } - else { - // Otherwise, we will use the following transformed representation for calls to `super()` in a constructor: - // - // ``` - // // es2015 (source) - // class C extends Base { - // constructor() { - // super("foo"); - // this.x = 1; - // } - // } - // - // // es5 (transformed) - // var C = (function (_super) { - // function C() { - // var _this = _super.call(this, "foo") || this; - // _this.x = 1; - // return _this; - // } - // return C; - // })(Base); - // ``` - - // If the super() call is the first statement, we can directly create and assign its result to `_this` - if (isFirstStatement) { - insertCaptureThisForNode(statementsOut, constructor, superCallExpression || createActualThis()); - } - // Since the `super()` call isn't the first statement, it's split across 1-2 statements: - // * A prologue `var _this = this;`, in case the constructor accesses this before super() - // * If it exists, a reassignment to that `_this` of the super() call - else { - insertCaptureThisForNode(prologueOut, constructor, createActualThis()); - if (superCallExpression) { - addSuperThisCaptureThisForNode(statementsOut, superCallExpression); - } - } - - mayReplaceThis = true; - } - } - else { - // If a class is not derived from a base class or does not have a call to `super()`, `this` is only - // captured when necessitated by an arrow function capturing the lexical `this`: - // - // ``` - // // es2015 - // class C {} - // - // // es5 - // var C = (function () { - // function C() { - // } - // return C; - // })(); - // ``` - insertCaptureThisForNodeIfNeeded(prologueOut, constructor); - } - } - - // visit everything following the statement containing `super()`. - if (superStatementIndex >= 0) { - addRange(statementsOut, visitNodes(statementsIn, visitor, isStatement, superStatementIndex + 1)); - } - - return mayReplaceThis; - } - function isUninitializedVariableStatement(node: Statement) { return isVariableStatement(node) && every(node.declarationList.declarations, decl => isIdentifier(decl.name) && !decl.initializer); } - function isUsingDeclarationStateVariableStatement(node: Statement) { - if (!isVariableStatement(node) || node.declarationList.declarations.length !== 1) return false; - const varDecl = node.declarationList.declarations[0]; - if (!isIdentifier(varDecl.name) || !varDecl.initializer) return false; - const initializer = varDecl.initializer; - if (!isObjectLiteralExpression(initializer) || initializer.properties.length !== 3) return false; - const [stackProp, errorProp, hasErrorProp] = initializer.properties; - if (!isPropertyAssignment(stackProp) || !isIdentifier(stackProp.name) || idText(stackProp.name) !== "stack" || !isArrayLiteralExpression(stackProp.initializer)) return false; - if (!isPropertyAssignment(errorProp) || !isIdentifier(errorProp.name) || idText(errorProp.name) !== "error" || !isVoidExpression(errorProp.initializer) || !isNumericLiteral(errorProp.initializer.expression)) return false; - if (!isPropertyAssignment(hasErrorProp) || !isIdentifier(hasErrorProp.name) || idText(hasErrorProp.name) !== "hasError" || hasErrorProp.initializer.kind !== SyntaxKind.FalseKeyword) return false; - return true; + function containsSuperCall(node: Node): boolean { + if (isSuperCall(node)) { + return true; + } + if (!(node.transformFlags & TransformFlags.ContainsLexicalSuper)) { + return false; + } + switch (node.kind) { + // stop at function boundaries + case SyntaxKind.ArrowFunction: + case SyntaxKind.FunctionExpression: + case SyntaxKind.FunctionDeclaration: + case SyntaxKind.Constructor: + case SyntaxKind.ClassStaticBlockDeclaration: + return false; + + // only step into computed property names for class and object literal elements + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + case SyntaxKind.MethodDeclaration: + case SyntaxKind.PropertyDeclaration: { + const named = node as AccessorDeclaration | MethodDeclaration | PropertyDeclaration; + if (isComputedPropertyName(named.name)) { + return !!forEachChild(named.name, containsSuperCall); + } + return false; + } + } + return !!forEachChild(node, containsSuperCall); } /** @@ -1423,32 +1283,29 @@ export function transformES2015(context: TransformationContext): (x: SourceFile // In derived classes, there may be code before the necessary super() call // We'll remove pre-super statements to be tacked on after the rest of the body const standardPrologueEnd = factory.copyStandardPrologue(constructor.body.statements, prologue, /*statementOffset*/ 0); - const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, standardPrologueEnd); - if (hasSynthesizedSuper || superStatementIndices.length > 0) { - hierarchyFacts |= HierarchyFacts.ConstructorWithCapturedSuper; + if (hasSynthesizedSuper || containsSuperCall(constructor.body)) { + hierarchyFacts |= HierarchyFacts.ConstructorWithSuperCall; } - const mayReplaceThis = transformConstructorBodyWorker( - prologue, - statements, - constructor.body.statements, - standardPrologueEnd, - superStatementIndices, - /*superPathDepth*/ 0, - constructor, - isDerivedClass, - hasSynthesizedSuper, - /*isFirstStatement*/ true, // NOTE: this will be recalculated inside of transformConstructorBodyWorker - ); + addRange(statements, visitNodes(constructor.body.statements, visitor, isStatement, standardPrologueEnd)); + + const mayReplaceThis = isDerivedClass || hierarchyFacts & HierarchyFacts.ConstructorWithSuperCall; // Add parameter defaults at the beginning of the output, with prologue statements addDefaultValueAssignmentsIfNeeded(prologue, constructor); addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); insertCaptureNewTargetIfNeeded(prologue, constructor); + if (mayReplaceThis) { + insertCaptureThisForNode(prologue, constructor, createActualThis()); + } + else { + insertCaptureThisForNodeIfNeeded(prologue, constructor); + } + factory.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); if (mayReplaceThis && !isSufficientlyCoveredByReturnStatements(constructor.body)) { - statements.push(factory.createReturnStatement(factory.createUniqueName("_this", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel))); + statements.push(factory.createReturnStatement(createCapturedThis())); } const body = factory.createBlock( @@ -1465,6 +1322,469 @@ export function transformES2015(context: TransformationContext): (x: SourceFile ); setTextRange(body, constructor.body); + return simplifyConstructor(body, constructor.body, hasSynthesizedSuper); + } + + type CapturedThis = GeneratedIdentifier & { readonly escapedText: __String & "__this"; }; + type SyntheticSuper = GeneratedIdentifier & { readonly escapedText: __String & "__super"; }; + type ThisCapturingVariableDeclaration = VariableDeclaration & { readonly name: CapturedThis; readonly initializer: Expression; }; + type ThisCapturingVariableStatement = VariableStatement & { readonly declarationList: { readonly declarations: { 0: ThisCapturingVariableDeclaration; }; }; }; + type ThisCapturingAssignmentExpression = AssignmentExpression & { readonly left: CapturedThis; }; + type TransformedSuperCall = CallExpression & { readonly expression: PropertyAccessExpression & { readonly expression: SyntheticSuper; }; }; + type TransformedSuperCallWithFallback = BinaryExpression & { readonly left: TransformedSuperCall; readonly right: ThisExpression; }; + type ImplicitSuperCall = BinaryExpression & { readonly left: BinaryExpression; readonly right: TransformedSuperCall; }; + type ImplicitSuperCallWithFallback = BinaryExpression & { readonly left: ImplicitSuperCall; readonly right: ThisExpression; }; + type ThisCapturingTransformedSuperCallWithFallback = ThisCapturingAssignmentExpression & { readonly right: TransformedSuperCallWithFallback; }; + type ThisCapturingImplicitSuperCallWithFallback = ThisCapturingAssignmentExpression & { readonly right: ImplicitSuperCallWithFallback; }; + type TransformedSuperCallLike = + | TransformedSuperCall + | TransformedSuperCallWithFallback + | ThisCapturingTransformedSuperCallWithFallback + | ImplicitSuperCall + | ImplicitSuperCallWithFallback + | ThisCapturingImplicitSuperCallWithFallback; + + /** Tests whether `node` is a generated identifier whose base text is `_this` */ + function isCapturedThis(node: Node): node is CapturedThis { + return isGeneratedIdentifier(node) && idText(node) === "_this"; + } + + /** Tests whether `node` is a generated identifier whose base text is `_super` */ + function isSyntheticSuper(node: Node): node is SyntheticSuper { + return isGeneratedIdentifier(node) && + idText(node) === "_super"; + } + + /** Tests whether `node` is VariableStatement like `var _this = ...;` */ + function isThisCapturingVariableStatement(node: Node): node is ThisCapturingVariableStatement { + return isVariableStatement(node) && node.declarationList.declarations.length === 1 && + isThisCapturingVariableDeclaration(node.declarationList.declarations[0]); + } + + /** Tests whether `node` is a VariableDeclaration like in `var _this = ...` */ + function isThisCapturingVariableDeclaration(node: Node): node is ThisCapturingVariableDeclaration { + return isVariableDeclaration(node) && isCapturedThis(node.name) && !!node.initializer; + } + + /** Tests whether `node` is an AssignmentExpression like `_this = ...` */ + function isThisCapturingAssignment(node: Node): node is ThisCapturingAssignmentExpression { + return isAssignmentExpression(node, /*excludeCompoundAssignment*/ true) && isCapturedThis(node.left); + } + + /** Tests whether `node` is a call like `_super.call(this, ...)` or `_super.apply(this, ...)` */ + function isTransformedSuperCall(node: Node): node is TransformedSuperCall { + return isCallExpression(node) && + isPropertyAccessExpression(node.expression) && + isSyntheticSuper(node.expression.expression) && + isIdentifier(node.expression.name) && + (idText(node.expression.name) === "call" || idText(node.expression.name) === "apply") && + node.arguments.length >= 1 && + node.arguments[0].kind === SyntaxKind.ThisKeyword; + } + + /** Tests whether `node` is an expression like `_super.call(this) || this` */ + function isTransformedSuperCallWithFallback(node: Node): node is TransformedSuperCallWithFallback { + return isBinaryExpression(node) && node.operatorToken.kind === SyntaxKind.BarBarToken && + node.right.kind === SyntaxKind.ThisKeyword && + isTransformedSuperCall(node.left); + } + + /** Tests whether `node` is a call like `_super !== null && _super.apply(this, arguments)` */ + function isImplicitSuperCall(node: Node): node is ImplicitSuperCall { + return isBinaryExpression(node) && node.operatorToken.kind === SyntaxKind.AmpersandAmpersandToken && + isBinaryExpression(node.left) && node.left.operatorToken.kind === SyntaxKind.ExclamationEqualsEqualsToken && + isSyntheticSuper(node.left.left) && + node.left.right.kind === SyntaxKind.NullKeyword && + isTransformedSuperCall(node.right) && + idText(node.right.expression.name) === "apply"; + } + + /** Tests whether `node` is an expression like `_super !== null && _super.apply(this, arguments) || this` */ + function isImplicitSuperCallWithFallback(node: Node): node is ImplicitSuperCallWithFallback { + return isBinaryExpression(node) && node.operatorToken.kind === SyntaxKind.BarBarToken && + node.right.kind === SyntaxKind.ThisKeyword && + isImplicitSuperCall(node.left); + } + + /** Tests whether `node` is an expression like `_this = _super.call(this) || this` */ + function isThisCapturingTransformedSuperCallWithFallback(node: Node): node is ThisCapturingTransformedSuperCallWithFallback { + return isThisCapturingAssignment(node) && isTransformedSuperCallWithFallback(node.right); + } + + /** Tests whether `node` is an expression like `_this = _super.call(this) || this` */ + function isThisCapturingImplicitSuperCallWithFallback(node: Node): node is ThisCapturingImplicitSuperCallWithFallback { + return isThisCapturingAssignment(node) && isImplicitSuperCallWithFallback(node.right); + } + + function isTransformedSuperCallLike(node: Node): node is TransformedSuperCallLike { + return isTransformedSuperCall(node) || + isTransformedSuperCallWithFallback(node) || + isThisCapturingTransformedSuperCallWithFallback(node) || + isImplicitSuperCall(node) || + isImplicitSuperCallWithFallback(node) || + isThisCapturingImplicitSuperCallWithFallback(node); + } + + /** + * Simplifies a constructor by inlining `_this = _super.call(this) || this;` into a `var _this = this;` statement + * that precedes it when they appear at the top level of the constructor body. No nested transformation is performed + * as it is assumed that `body` has already been transformed prior to invoking this function. + */ + function simplifyConstructorInlineSuperInThisCaptureVariable(body: Block) { + // given: + // + // var C = (function (_super) { + // function C() { + // var _this = this; + // _this = _super.call(this) || this; + // _this.x = 1; + // return _this; + // } + // return C; + // })(Base); + // + // simplifies to: + // + // var C = (function (_super) { + // function C() { + // var _this = _super.call(this) || this; + // _this.x = 1; + // return _this; + // } + // return C; + // })(Base); + // + + for (let i = 0; i < body.statements.length - 1; i++) { + const statement = body.statements[i]; + // walk forward until we find `var _this = ...;` + if (!isThisCapturingVariableStatement(statement)) { + continue; + } + + // Only perform inlining for `var _this = this;` + const varDecl = statement.declarationList.declarations[0]; + if (varDecl.initializer.kind !== SyntaxKind.ThisKeyword) { + continue; + } + + // It's possible that temporary variables may have been injected between `var _this` and `_this = ...`, + // so we'll track any intervening statements to stitch them back in to the result. + const thisCaptureStatementIndex = i; + let superCallIndex = i + 1; + while (superCallIndex < body.statements.length) { + const statement = body.statements[superCallIndex]; + // stop on the next `_this = _super.call(...) || this` statement + if (isExpressionStatement(statement)) { + if (isTransformedSuperCallLike(skipOuterExpressions(statement.expression))) { + break; + } + } + + // skip over hoisted temporary variables + if (isUninitializedVariableStatement(statement)) { + superCallIndex++; + continue; + } + + // if there are any other statements following `var _this = ...` then we cannot simplify. + return body; + } + + const following = body.statements[superCallIndex] as ExpressionStatement; + + // If the expression that follows is `_this = ...`, strip off the assignment to `_this` since that will + // be handled by the variable initializer. + let expression = following.expression; + if (isThisCapturingAssignment(expression)) { + expression = expression.right; + } + + const newVarDecl = factory.updateVariableDeclaration( + varDecl, + varDecl.name, + /*exclamationToken*/ undefined, + /*type*/ undefined, + expression, + ); + + const newDeclList = factory.updateVariableDeclarationList(statement.declarationList, [newVarDecl]); + const newVarStatement = factory.createVariableStatement(statement.modifiers, newDeclList); + setOriginalNode(newVarStatement, following); + setTextRange(newVarStatement, following); + const newStatements = factory.createNodeArray([ + ...body.statements.slice(0, thisCaptureStatementIndex), // copy statements preceding to `var _this` + ...body.statements.slice(thisCaptureStatementIndex + 1, superCallIndex), // copy intervening temp variables + newVarStatement, + ...body.statements.slice(superCallIndex + 1), // copy statements following `super.call(this, ...)` + ]); + setTextRange(newStatements, body.statements); + return factory.updateBlock(body, newStatements); + } + + return body; + } + + /** + * Simplifies a constructor by inlining `_this = _super.call(this) || this;` into a `return _this;` statement + * that follows it when they appear at the top level of the constructor body. No nested transformation is performed + * as it is assumed that `body` has already been transformed prior to invoking this function. + */ + function simplifyConstructorInlineSuperReturn(body: Block, original: Block) { + // given: + // + // var C = (function (_super) { + // function C() { + // ... + // _this = _super.call(this) || this; + // return _this; + // } + // return C; + // })(Base); + // + // simplifies to: + // + // var C = (function (_super) { + // function C() { + // ... + // return _super.call(this) || this; + // } + // return C; + // })(Base); + // + + // bail if there is a non-top-level `super()` in the original body + for (const statement of original.statements) { + if (statement.transformFlags & TransformFlags.ContainsLexicalSuper && !getSuperCallFromStatement(statement)) { + return body; + } + } + + // If the original node contained a lexical `this` that must be preserved, or if we recorded a captured `this` + // or `super`, then we cannot simplify `var _this = ...;`, but may still be able to inline standalone `_this = ...` + // assignment statements. + const canElideThisCapturingVariable = !(original.transformFlags & TransformFlags.ContainsLexicalThis) && + !(hierarchyFacts & HierarchyFacts.LexicalThis) && + !(hierarchyFacts & HierarchyFacts.CapturedLexicalThis); + + // find the return statement and the preceding transformed `super()` call + for (let i = body.statements.length - 1; i > 0; i--) { + // walk backwards until we find a `return _this;` + const statement = body.statements[i]; + if (isReturnStatement(statement) && statement.expression && isCapturedThis(statement.expression)) { + const preceding = body.statements[i - 1]; + let expression: Expression | undefined; + if ( + isExpressionStatement(preceding) && + isThisCapturingTransformedSuperCallWithFallback(skipOuterExpressions(preceding.expression)) + ) { + // The preceding statement is `_this = _super.call(this, ...) || this`, so we'll inline the + // expression. + expression = preceding.expression; + } + else if (canElideThisCapturingVariable && isThisCapturingVariableStatement(preceding)) { + const varDecl = preceding.declarationList.declarations[0]; + if (isTransformedSuperCallLike(skipOuterExpressions(varDecl.initializer))) { + // The preceding statement is `var _this = _super.call(this, ...) || this`, so we'll inline the + // initializer as a `_this` assignment, though it may be removed in a later pass. + expression = factory.createAssignment( + createCapturedThis(), + varDecl.initializer, + ); + } + } + + if (!expression) { + break; + } + + const newReturnStatement = factory.createReturnStatement(expression); + setOriginalNode(newReturnStatement, preceding); + setTextRange(newReturnStatement, preceding); + const newStatements = factory.createNodeArray([ + ...body.statements.slice(0, i - 1), // copy all statements preceding `_super.call(this, ...)` + newReturnStatement, + ...body.statements.slice(i + 1), // copy all statements following `return _this;` + ]); + setTextRange(newStatements, body.statements); + return factory.updateBlock(body, newStatements); + } + } + + return body; + } + + /** Elides `var _this =` and `_this =` within the current function scope. */ + function elideUnusedThisCaptureWorker(node: Node): VisitResult { + if (isThisCapturingVariableStatement(node)) { + const varDecl = node.declarationList.declarations[0]; + if (varDecl.initializer.kind === SyntaxKind.ThisKeyword) { + return undefined; // elide `var _this = this;` + } + } + else if (isThisCapturingAssignment(node)) { + return factory.createPartiallyEmittedExpression(node.right, node); // elide `_this =` + } + + switch (node.kind) { + // stop at function boundaries + case SyntaxKind.ArrowFunction: + case SyntaxKind.FunctionExpression: + case SyntaxKind.FunctionDeclaration: + case SyntaxKind.Constructor: + case SyntaxKind.ClassStaticBlockDeclaration: + return node; + + // only step into computed property names for class and object literal elements + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + case SyntaxKind.MethodDeclaration: + case SyntaxKind.PropertyDeclaration: { + const named = node as AccessorDeclaration | MethodDeclaration | PropertyDeclaration; + if (isComputedPropertyName(named.name)) { + return factory.replacePropertyName(named, visitEachChild(named.name, elideUnusedThisCaptureWorker, nullTransformationContext)); + } + return node; + } + } + return visitEachChild(node, elideUnusedThisCaptureWorker, nullTransformationContext); + } + + /** + * Simplifies a constructor by eliding `var _this = this;` and `_this = ...` when `this` capturing is no longer + * necessary after other simplifications have been performed. No nested transformation is performed as it is assumed + * that `body` has already been transformed prior to invoking this function. It is also assumed that this function is + * only invoked after some other simplification has successfully replaced `body`. + */ + function simplifyConstructorElideUnusedThisCapture(body: Block, original: Block) { + // given: + // + // var C = (function (_super) { + // function C() { + // var _this = this; + // return _super.call(this) || this; + // } + // return C; + // })(Base); + // + // becomes: + // + // var C = (function (_super) { + // function C() { + // return _super.call(this) || this; + // } + // return C; + // })(Base); + // + + // If the original node contained a lexical `this` that must be preserved, or if we recorded a captured `this`, + // then there is nothing we can simplify. + if ( + original.transformFlags & TransformFlags.ContainsLexicalThis || + hierarchyFacts & HierarchyFacts.LexicalThis || + hierarchyFacts & HierarchyFacts.CapturedLexicalThis + ) { + return body; + } + + // bail if there is a non-top-level `super()` in the original body + for (const statement of original.statements) { + if (statement.transformFlags & TransformFlags.ContainsLexicalSuper && !getSuperCallFromStatement(statement)) { + return body; + } + } + + return factory.updateBlock(body, visitNodes(body.statements, elideUnusedThisCaptureWorker, isStatement)); + } + + /** Injects `_super !== null &&` preceding any instance of a synthetic `_super.apply(this, arguments)` */ + function injectSuperPresenceCheckWorker(node: Node): VisitResult { + if ( + isTransformedSuperCall(node) && node.arguments.length === 2 && + isIdentifier(node.arguments[1]) && idText(node.arguments[1]) === "arguments" + ) { + return factory.createLogicalAnd( + factory.createStrictInequality( + createSyntheticSuper(), + factory.createNull(), + ), + node, + ); + } + + switch (node.kind) { + // stop at function boundaries + case SyntaxKind.ArrowFunction: + case SyntaxKind.FunctionExpression: + case SyntaxKind.FunctionDeclaration: + case SyntaxKind.Constructor: + case SyntaxKind.ClassStaticBlockDeclaration: + return node; + + // only step into computed property names for class and object literal elements + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + case SyntaxKind.MethodDeclaration: + case SyntaxKind.PropertyDeclaration: { + const named = node as AccessorDeclaration | MethodDeclaration | PropertyDeclaration; + if (isComputedPropertyName(named.name)) { + return factory.replacePropertyName(named, visitEachChild(named.name, injectSuperPresenceCheckWorker, nullTransformationContext)); + } + return node; + } + } + return visitEachChild(node, injectSuperPresenceCheckWorker, nullTransformationContext); + } + + /** + * A slight non-simplification of a constructor, this injects a `_super !== null` test prior to a synthetic + * `_super.call(this)` expression to support the synthetic super call we introduce for subclasses with an + * implicit constructor, in the event the derviced class in the `extends` clause evaluates to `null`. No nested + * transformation is performed as it is assumed that `body` has already been transformed prior to invoking this + * function. It is also assumed that this function is only invoked for a constructor containing a synthetic + * implicit `super()` call. + */ + function complicateConstructorInjectSuperPresenceCheck(body: Block) { + // given: + // + // var C = (function (_super) { + // function C() { + // return _super.call(this) || this; + // } + // return C; + // })(Base); + // + // becomes: + // + // var C = (function (_super) { + // function C() { + // return _super !== null && _super.call(this) || this; + // } + // return C; + // })(Base); + // + + return factory.updateBlock(body, visitNodes(body.statements, injectSuperPresenceCheckWorker, isStatement)); + } + + /** + * Simplifies a derived constructor by performing inlining tasks related to this-capturing and transformed + * `super()` calls. + * @param body The constructor body. + * @param original The original constructor body. + * @param hasSynthesizedSuper A value indicating whether the body may contain a synthetic implicit `super()` call. + */ + function simplifyConstructor(body: Block, original: Block, hasSynthesizedSuper: boolean) { + const inputBody = body; + body = simplifyConstructorInlineSuperInThisCaptureVariable(body); + body = simplifyConstructorInlineSuperReturn(body, original); + if (body !== inputBody) { + // Only perform `var _this = this` elision if some other simplification succeeded. + body = simplifyConstructorElideUnusedThisCapture(body, original); + } + if (hasSynthesizedSuper) { + body = complicateConstructorInjectSuperPresenceCheck(body); + } return body; } @@ -1505,11 +1825,11 @@ export function transformES2015(context: TransformationContext): (x: SourceFile return factory.createLogicalOr( factory.createLogicalAnd( factory.createStrictInequality( - factory.createUniqueName("_super", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel), + createSyntheticSuper(), factory.createNull(), ), factory.createFunctionApplyCall( - factory.createUniqueName("_super", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel), + createSyntheticSuper(), createActualThis(), factory.createIdentifier("arguments"), ), @@ -1836,32 +2156,13 @@ export function transformES2015(context: TransformationContext): (x: SourceFile return false; } - /** - * Assigns the `this` in a constructor to the result of its `super()` call. - * - * @param statements Statements in the constructor body. - * @param superExpression Existing `super()` call for the constructor. - */ - function addSuperThisCaptureThisForNode(statements: Statement[], superExpression: Expression): void { - enableSubstitutionsForCapturedThis(); - const assignSuperExpression = factory.createExpressionStatement( - factory.createBinaryExpression( - factory.createThis(), - SyntaxKind.EqualsToken, - superExpression, - ), - ); - statements.push(assignSuperExpression); - setCommentRange(assignSuperExpression, getOriginalNode(superExpression).parent); - } - function insertCaptureThisForNode(statements: Statement[], node: Node, initializer: Expression | undefined): void { enableSubstitutionsForCapturedThis(); const captureThisStatement = factory.createVariableStatement( /*modifiers*/ undefined, factory.createVariableDeclarationList([ factory.createVariableDeclaration( - factory.createUniqueName("_this", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel), + createCapturedThis(), /*exclamationToken*/ undefined, /*type*/ undefined, initializer, @@ -4219,10 +4520,6 @@ export function transformES2015(context: TransformationContext): (x: SourceFile ); } - function visitSuperCallInBody(node: CallExpression) { - return visitCallExpressionWithPotentialCapturedThisAssignment(node, /*assignToCapturedThis*/ false); - } - function visitCallExpressionWithPotentialCapturedThisAssignment(node: CallExpression, assignToCapturedThis: boolean): CallExpression | BinaryExpression { // We are here either because SuperKeyword was used somewhere in the expression, or // because we contain a SpreadElementExpression. @@ -4284,12 +4581,16 @@ export function transformES2015(context: TransformationContext): (x: SourceFile createActualThis(), ); resultingCall = assignToCapturedThis - ? factory.createAssignment(factory.createUniqueName("_this", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel), initializer) + ? factory.createAssignment(createCapturedThis(), initializer) : initializer; } return setOriginalNode(resultingCall, node); } + if (isSuperCall(node)) { + hierarchyFacts |= HierarchyFacts.CapturedLexicalThis; + } + return visitEachChild(node, visitor, context); } @@ -4520,14 +4821,21 @@ export function transformES2015(context: TransformationContext): (x: SourceFile return setTextRange(expression, node); } + function createSyntheticSuper() { + return factory.createUniqueName("_super", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel) as SyntheticSuper; + } + /** * Visits the `super` keyword */ - function visitSuperKeyword(isExpressionOfCall: boolean): LeftHandSideExpression { - return hierarchyFacts & HierarchyFacts.NonStaticClassElement - && !isExpressionOfCall - ? factory.createPropertyAccessExpression(factory.createUniqueName("_super", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel), "prototype") - : factory.createUniqueName("_super", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel); + function visitSuperKeyword(node: SuperExpression, isExpressionOfCall: boolean): LeftHandSideExpression { + const expression = hierarchyFacts & HierarchyFacts.NonStaticClassElement && !isExpressionOfCall + ? factory.createPropertyAccessExpression(setOriginalNode(createSyntheticSuper(), node), "prototype") + : createSyntheticSuper(); + setOriginalNode(expression, node); + setCommentRange(expression, node); + setSourceMapRange(expression, node); + return expression; } function visitMetaProperty(node: MetaProperty) { @@ -4712,7 +5020,7 @@ export function transformES2015(context: TransformationContext): (x: SourceFile enabledSubstitutions & ES2015SubstitutionFlags.CapturedThis && hierarchyFacts & HierarchyFacts.CapturesThis ) { - return setTextRange(factory.createUniqueName("_this", GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel), node); + return setTextRange(createCapturedThis(), node); } return node; } diff --git a/src/compiler/transformers/jsx.ts b/src/compiler/transformers/jsx.ts index a71edbe2bae..1044618351a 100644 --- a/src/compiler/transformers/jsx.ts +++ b/src/compiler/transformers/jsx.ts @@ -36,6 +36,7 @@ import { isJsxSelfClosingElement, isJsxSpreadAttribute, isLineBreak, + isObjectLiteralElementLike, isObjectLiteralExpression, isPropertyAssignment, isSourceFile, @@ -63,6 +64,7 @@ import { ObjectLiteralElementLike, ObjectLiteralExpression, PropertyAssignment, + sameMap, ScriptTarget, setIdentifierGeneratedImportReference, setParentRecursive, @@ -444,7 +446,7 @@ export function transformJsx(context: TransformationContext): (x: SourceFile | B function transformJsxSpreadAttributeToProps(node: JsxSpreadAttribute) { if (isObjectLiteralExpression(node.expression) && !hasProto(node.expression)) { - return node.expression.properties; + return sameMap(node.expression.properties, p => Debug.checkDefined(visitNode(p, visitor, isObjectLiteralElementLike))); } return factory.createSpreadAssignment(Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); } diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 8512e52f07f..070ad30f4c0 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -14,7 +14,6 @@ import { CompilerHost, CompilerOptions, CompilerOptionsValue, - ConfigFileProgramReloadLevel, convertToRelativePath, copyProperties, createCompilerDiagnostic, @@ -95,6 +94,7 @@ import { ProgramBundleEmitBuildInfo, ProgramHost, ProgramMultiFileEmitBuildInfo, + ProgramUpdateLevel, readBuilderProgram, ReadBuildProgramHost, resolveConfigFileProjectName, @@ -287,7 +287,7 @@ export interface SolutionBuilder { // Testing only /** @internal */ getUpToDateStatusOfProject(project: string): UpToDateStatus; - /** @internal */ invalidateProject(configFilePath: ResolvedConfigFilePath, reloadLevel?: ConfigFileProgramReloadLevel): void; + /** @internal */ invalidateProject(configFilePath: ResolvedConfigFilePath, updateLevel?: ProgramUpdateLevel): void; /** @internal */ close(): void; } @@ -389,7 +389,7 @@ interface SolutionBuilderState extends WatchFactory; readonly diagnostics: Map; - readonly projectPendingBuild: Map; + readonly projectPendingBuild: Map; readonly projectErrorsReported: Map; readonly compilerHost: CompilerHost & ReadBuildProgramHost; @@ -795,13 +795,13 @@ function clearProjectStatus(state: SolutionBuilderStat state.diagnostics.delete(resolved); } -function addProjToQueue({ projectPendingBuild }: SolutionBuilderState, proj: ResolvedConfigFilePath, reloadLevel: ConfigFileProgramReloadLevel) { +function addProjToQueue({ projectPendingBuild }: SolutionBuilderState, proj: ResolvedConfigFilePath, updateLevel: ProgramUpdateLevel) { const value = projectPendingBuild.get(proj); if (value === undefined) { - projectPendingBuild.set(proj, reloadLevel); + projectPendingBuild.set(proj, updateLevel); } - else if (value < reloadLevel) { - projectPendingBuild.set(proj, reloadLevel); + else if (value < updateLevel) { + projectPendingBuild.set(proj, updateLevel); } } @@ -815,7 +815,7 @@ function setupInitialBuild(state: SolutionBuilderState buildOrder.forEach(configFileName => state.projectPendingBuild.set( toResolvedConfigFilePath(state, configFileName), - ConfigFileProgramReloadLevel.None, + ProgramUpdateLevel.Update, ) ); @@ -1402,8 +1402,8 @@ function getNextInvalidatedProjectCreateInfo( for (let projectIndex = 0; projectIndex < buildOrder.length; projectIndex++) { const project = buildOrder[projectIndex]; const projectPath = toResolvedConfigFilePath(state, project); - const reloadLevel = state.projectPendingBuild.get(projectPath); - if (reloadLevel === undefined) continue; + const updateLevel = state.projectPendingBuild.get(projectPath); + if (updateLevel === undefined) continue; if (reportQueue) { reportQueue = false; @@ -1417,14 +1417,14 @@ function getNextInvalidatedProjectCreateInfo( continue; } - if (reloadLevel === ConfigFileProgramReloadLevel.Full) { + if (updateLevel === ProgramUpdateLevel.Full) { watchConfigFile(state, project, projectPath, config); watchExtendedConfigFiles(state, projectPath, config); watchWildCardDirectories(state, project, projectPath, config); watchInputFiles(state, project, projectPath, config); watchPackageJsonFiles(state, project, projectPath, config); } - else if (reloadLevel === ConfigFileProgramReloadLevel.Partial) { + else if (updateLevel === ProgramUpdateLevel.RootNamesAndUpdate) { // Update file names config.fileNames = getFileNamesFromConfigSpecs(config.options.configFile!.configFileSpecs!, getDirectoryPath(project), config.options, state.parseConfigFileHost); updateErrorForNoInputFiles(config.fileNames, project, config.options.configFile!.configFileSpecs!, config.errors, canJsonReportNoInputFiles(config.raw)); @@ -2169,7 +2169,7 @@ function queueReferencingProjects( break; } } - addProjToQueue(state, nextProjectPath, ConfigFileProgramReloadLevel.None); + addProjToQueue(state, nextProjectPath, ProgramUpdateLevel.Update); break; } } @@ -2251,7 +2251,7 @@ function cleanWorker(state: SolutionBuilderState, p } else { host.deleteFile(output); - invalidateProject(state, resolvedPath, ConfigFileProgramReloadLevel.None); + invalidateProject(state, resolvedPath, ProgramUpdateLevel.Update); } } } @@ -2264,24 +2264,24 @@ function cleanWorker(state: SolutionBuilderState, p return ExitStatus.Success; } -function invalidateProject(state: SolutionBuilderState, resolved: ResolvedConfigFilePath, reloadLevel: ConfigFileProgramReloadLevel) { +function invalidateProject(state: SolutionBuilderState, resolved: ResolvedConfigFilePath, updateLevel: ProgramUpdateLevel) { // If host implements getParsedCommandLine, we cant get list of files from parseConfigFileHost - if (state.host.getParsedCommandLine && reloadLevel === ConfigFileProgramReloadLevel.Partial) { - reloadLevel = ConfigFileProgramReloadLevel.Full; + if (state.host.getParsedCommandLine && updateLevel === ProgramUpdateLevel.RootNamesAndUpdate) { + updateLevel = ProgramUpdateLevel.Full; } - if (reloadLevel === ConfigFileProgramReloadLevel.Full) { + if (updateLevel === ProgramUpdateLevel.Full) { state.configFileCache.delete(resolved); state.buildOrder = undefined; } state.needsSummary = true; clearProjectStatus(state, resolved); - addProjToQueue(state, resolved, reloadLevel); + addProjToQueue(state, resolved, updateLevel); enableCache(state); } -function invalidateProjectAndScheduleBuilds(state: SolutionBuilderState, resolvedPath: ResolvedConfigFilePath, reloadLevel: ConfigFileProgramReloadLevel) { +function invalidateProjectAndScheduleBuilds(state: SolutionBuilderState, resolvedPath: ResolvedConfigFilePath, updateLevel: ProgramUpdateLevel) { state.reportFileChangeDetected = true; - invalidateProject(state, resolvedPath, reloadLevel); + invalidateProject(state, resolvedPath, updateLevel); scheduleBuildInvalidatedProject(state, 250, /*changeDetected*/ true); } @@ -2344,7 +2344,7 @@ function watchConfigFile(state: SolutionBuilderState invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.Full), + () => invalidateProjectAndScheduleBuilds(state, resolvedPath, ProgramUpdateLevel.Full), PollingInterval.High, parsed?.watchOptions, WatchType.ConfigFile, @@ -2362,7 +2362,7 @@ function watchExtendedConfigFiles(state: SolutionBuild watchFile( state, extendedConfigFileName, - () => state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath)?.projects.forEach(projectConfigFilePath => invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, ConfigFileProgramReloadLevel.Full)), + () => state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath)?.projects.forEach(projectConfigFilePath => invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, ProgramUpdateLevel.Full)), PollingInterval.High, parsed?.watchOptions, WatchType.ExtendedConfigFile, @@ -2395,7 +2395,7 @@ function watchWildCardDirectories(state: SolutionBuild }) ) return; - invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.Partial); + invalidateProjectAndScheduleBuilds(state, resolvedPath, ProgramUpdateLevel.RootNamesAndUpdate); }, flags, parsed?.watchOptions, @@ -2415,7 +2415,7 @@ function watchInputFiles(state: SolutionBuilderState invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.None), + () => invalidateProjectAndScheduleBuilds(state, resolvedPath, ProgramUpdateLevel.Update), PollingInterval.Low, parsed?.watchOptions, WatchType.SourceFile, @@ -2436,7 +2436,7 @@ function watchPackageJsonFiles(state: SolutionBuilderS watchFile( state, path, - () => invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.None), + () => invalidateProjectAndScheduleBuilds(state, resolvedPath, ProgramUpdateLevel.Update), PollingInterval.High, parsed?.watchOptions, WatchType.PackageJson, @@ -2503,7 +2503,7 @@ function createSolutionBuilderWorker(watch: boolean, h const configFilePath = toResolvedConfigFilePath(state, configFileName); return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFilePath); }, - invalidateProject: (configFilePath, reloadLevel) => invalidateProject(state, configFilePath, reloadLevel || ConfigFileProgramReloadLevel.None), + invalidateProject: (configFilePath, updateLevel) => invalidateProject(state, configFilePath, updateLevel || ProgramUpdateLevel.Update), close: () => stopWatching(state), }; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index d4860ec7621..927720e580d 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -851,25 +851,45 @@ export const enum NodeFlags { // dprint-ignore export const enum ModifierFlags { None = 0, - Export = 1 << 0, // Declarations - Ambient = 1 << 1, // Declarations - Public = 1 << 2, // Property/Method - Private = 1 << 3, // Property/Method - Protected = 1 << 4, // Property/Method - Static = 1 << 5, // Property/Method - Readonly = 1 << 6, // Property/Method - Accessor = 1 << 7, // Property - Abstract = 1 << 8, // Class/Method/ConstructSignature - Async = 1 << 9, // Property/Method/Function - Default = 1 << 10, // Function/Class (export default declaration) - Const = 1 << 11, // Const enum - HasComputedJSDocModifiers = 1 << 12, // Indicates the computed modifier flags include modifiers from JSDoc. - Deprecated = 1 << 13, // Deprecated tag. - Override = 1 << 14, // Override method. - In = 1 << 15, // Contravariance modifier - Out = 1 << 16, // Covariance modifier - Decorator = 1 << 17, // Contains a decorator. + // Syntactic/JSDoc modifiers + Public = 1 << 0, // Property/Method + Private = 1 << 1, // Property/Method + Protected = 1 << 2, // Property/Method + Readonly = 1 << 3, // Property/Method + Override = 1 << 4, // Override method. + + // Syntactic-only modifiers + Export = 1 << 5, // Declarations + Abstract = 1 << 6, // Class/Method/ConstructSignature + Ambient = 1 << 7, // Declarations + Static = 1 << 8, // Property/Method + Accessor = 1 << 9, // Property + Async = 1 << 10, // Property/Method/Function + Default = 1 << 11, // Function/Class (export default declaration) + Const = 1 << 12, // Const enum + In = 1 << 13, // Contravariance modifier + Out = 1 << 14, // Covariance modifier + Decorator = 1 << 15, // Contains a decorator. + + // JSDoc-only modifiers + Deprecated = 1 << 16, // Deprecated tag. + + // Cache-only JSDoc-modifiers. Should match order of Syntactic/JSDoc modifiers, above. + /** @internal */ JSDocPublic = 1 << 23, // if this value changes, `selectEffectiveModifierFlags` must change accordingly + /** @internal */ JSDocPrivate = 1 << 24, + /** @internal */ JSDocProtected = 1 << 25, + /** @internal */ JSDocReadonly = 1 << 26, + /** @internal */ JSDocOverride = 1 << 27, + + /** @internal */ SyntacticOrJSDocModifiers = Public | Private | Protected | Readonly | Override, + /** @internal */ SyntacticOnlyModifiers = Export | Ambient | Abstract | Static | Accessor | Async | Default | Const | In | Out | Decorator, + /** @internal */ SyntacticModifiers = SyntacticOrJSDocModifiers | SyntacticOnlyModifiers, + /** @internal */ JSDocCacheOnlyModifiers = JSDocPublic | JSDocPrivate | JSDocProtected | JSDocReadonly | JSDocOverride, + /** @internal */ JSDocOnlyModifiers = Deprecated, + /** @internal */ NonCacheOnlyModifiers = SyntacticOrJSDocModifiers | SyntacticOnlyModifiers | JSDocOnlyModifiers, + + HasComputedJSDocModifiers = 1 << 28, // Indicates the computed modifier flags include modifiers from JSDoc. HasComputedFlags = 1 << 29, // Modifier flags have been computed AccessibilityModifier = Public | Private | Protected, @@ -1692,7 +1712,7 @@ export interface QualifiedName extends Node, FlowContainer { export type EntityName = Identifier | QualifiedName; -export type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier; +export type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier; export type MemberName = Identifier | PrivateIdentifier; @@ -5043,7 +5063,7 @@ export interface TypeChecker { isUndefinedSymbol(symbol: Symbol): boolean; isArgumentsSymbol(symbol: Symbol): boolean; isUnknownSymbol(symbol: Symbol): boolean; - /** @internal */ getMergedSymbol(symbol: Symbol): Symbol; + getMergedSymbol(symbol: Symbol): Symbol; getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): string | number | undefined; isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName | ImportTypeNode, propertyName: string): boolean; @@ -5675,6 +5695,7 @@ export interface EmitResolver { isBindingCapturedByNode(node: Node, decl: VariableDeclaration | BindingElement): boolean; getDeclarationStatementsForSourceFile(node: SourceFile, flags: NodeBuilderFlags, tracker: SymbolTracker, bundled?: boolean): Statement[] | undefined; isImportRequiredByAugmentation(decl: ImportDeclaration): boolean; + tryFindAmbientModule(moduleReferenceExpression: Expression): Symbol | undefined; } // dprint-ignore @@ -6030,11 +6051,14 @@ export interface NodeLinks { assertionExpressionType?: Type; // Cached type of the expression of a type assertion } +/** @internal */ +export type TrackedSymbol = [symbol: Symbol, enclosingDeclaration: Node | undefined, meaning: SymbolFlags]; /** @internal */ export interface SerializedTypeEntry { node: TypeNode; truncating?: boolean; addedLength: number; + trackedSymbols: readonly TrackedSymbol[] | undefined; } // dprint-ignore @@ -9071,8 +9095,18 @@ export interface NodeFactory { * @internal */ cloneNode(node: T): T; - /** @internal */ updateModifiers(node: T, modifiers: readonly Modifier[] | ModifierFlags | undefined): T; - /** @internal */ updateModifierLike(node: T, modifierLike: readonly ModifierLike[] | undefined): T; + /** + * Updates a node that may contain modifiers, replacing only the modifiers of the node. + */ + replaceModifiers(node: T, modifiers: readonly Modifier[] | ModifierFlags | undefined): T; + /** + * Updates a node that may contain decorators or modifiers, replacing only the decorators and modifiers of the node. + */ + replaceDecoratorsAndModifiers(node: T, modifiers: readonly ModifierLike[] | undefined): T; + /** + * Updates a node that contains a property name, replacing only the name of the node. + */ + replacePropertyName(node: T, name: T["name"]): T; } /** @internal */ @@ -10013,6 +10047,7 @@ export interface UserPreferences { readonly interactiveInlayHints?: boolean; readonly allowRenameOfImportPath?: boolean; readonly autoImportFileExcludePatterns?: string[]; + readonly preferTypeOnlyAutoImports?: boolean; readonly organizeImportsIgnoreCase?: "auto" | boolean; readonly organizeImportsCollation?: "ordinal" | "unicode"; readonly organizeImportsLocale?: string; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 9d5e2de2bed..ac4e6cb95d5 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -3975,12 +3975,13 @@ export function isFunctionSymbol(symbol: Symbol | undefined) { } /** @internal */ -export function tryGetModuleSpecifierFromDeclaration(node: AnyImportOrBareOrAccessedRequire | AliasDeclarationNode): StringLiteralLike | undefined { +export function tryGetModuleSpecifierFromDeclaration(node: AnyImportOrBareOrAccessedRequire | AliasDeclarationNode | ExportDeclaration | ImportTypeNode): StringLiteralLike | undefined { switch (node.kind) { case SyntaxKind.VariableDeclaration: case SyntaxKind.BindingElement: return findAncestor(node.initializer, (node): node is RequireOrImportCall => isRequireCall(node, /*requireStringLiteralLikeArgument*/ true))?.arguments[0]; case SyntaxKind.ImportDeclaration: + case SyntaxKind.ExportDeclaration: return tryCast(node.moduleSpecifier, isStringLiteralLike); case SyntaxKind.ImportEqualsDeclaration: return tryCast(tryCast(node.moduleReference, isExternalModuleReference)?.expression, isStringLiteralLike); @@ -3992,6 +3993,8 @@ export function tryGetModuleSpecifierFromDeclaration(node: AnyImportOrBareOrAcce return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike); case SyntaxKind.ImportSpecifier: return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike); + case SyntaxKind.ImportType: + return isLiteralImportTypeNode(node) ? node.argument.literal : undefined; default: Debug.assertNever(node); } @@ -4331,7 +4334,7 @@ export function getNextJSDocCommentLocation(node: Node) { parent.kind === SyntaxKind.ExpressionStatement && node.kind === SyntaxKind.PropertyAccessExpression || parent.kind === SyntaxKind.ReturnStatement || getNestedModuleDeclaration(parent) || - isBinaryExpression(node) && node.operatorToken.kind === SyntaxKind.EqualsToken + isAssignmentExpression(node) ) { return parent; } @@ -4343,8 +4346,7 @@ export function getNextJSDocCommentLocation(node: Node) { // var x = function(name) { return name.length; } else if ( parent.parent && - (getSingleVariableOfVariableStatement(parent.parent) === node || - isBinaryExpression(parent) && parent.operatorToken.kind === SyntaxKind.EqualsToken) + (getSingleVariableOfVariableStatement(parent.parent) === node || isAssignmentExpression(parent)) ) { return parent.parent; } @@ -5062,6 +5064,7 @@ export function getPropertyNameForPropertyNameNode(name: PropertyName | JsxAttri case SyntaxKind.PrivateIdentifier: return name.escapedText; case SyntaxKind.StringLiteral: + case SyntaxKind.NoSubstitutionTemplateLiteral: case SyntaxKind.NumericLiteral: return escapeLeadingUnderscores(name.text); case SyntaxKind.ComputedPropertyName: @@ -6925,11 +6928,14 @@ function getModifierFlagsWorker(node: Node, includeJSDoc: boolean, alwaysInclude node.modifierFlagsCache = getSyntacticModifierFlagsNoCache(node) | ModifierFlags.HasComputedFlags; } - if (includeJSDoc && !(node.modifierFlagsCache & ModifierFlags.HasComputedJSDocModifiers) && (alwaysIncludeJSDoc || isInJSFile(node)) && node.parent) { - node.modifierFlagsCache |= getJSDocModifierFlagsNoCache(node) | ModifierFlags.HasComputedJSDocModifiers; + if (alwaysIncludeJSDoc || includeJSDoc && isInJSFile(node)) { + if (!(node.modifierFlagsCache & ModifierFlags.HasComputedJSDocModifiers) && node.parent) { + node.modifierFlagsCache |= getRawJSDocModifierFlagsNoCache(node) | ModifierFlags.HasComputedJSDocModifiers; + } + return selectEffectiveModifierFlags(node.modifierFlagsCache); } - return node.modifierFlagsCache & ~(ModifierFlags.HasComputedFlags | ModifierFlags.HasComputedJSDocModifiers); + return selectSyntacticModifierFlags(node.modifierFlagsCache); } /** @@ -6959,15 +6965,15 @@ export function getSyntacticModifierFlags(node: Node): ModifierFlags { return getModifierFlagsWorker(node, /*includeJSDoc*/ false); } -function getJSDocModifierFlagsNoCache(node: Node): ModifierFlags { +function getRawJSDocModifierFlagsNoCache(node: Node): ModifierFlags { let flags = ModifierFlags.None; if (!!node.parent && !isParameter(node)) { if (isInJSFile(node)) { - if (getJSDocPublicTagNoCache(node)) flags |= ModifierFlags.Public; - if (getJSDocPrivateTagNoCache(node)) flags |= ModifierFlags.Private; - if (getJSDocProtectedTagNoCache(node)) flags |= ModifierFlags.Protected; - if (getJSDocReadonlyTagNoCache(node)) flags |= ModifierFlags.Readonly; - if (getJSDocOverrideTagNoCache(node)) flags |= ModifierFlags.Override; + if (getJSDocPublicTagNoCache(node)) flags |= ModifierFlags.JSDocPublic; + if (getJSDocPrivateTagNoCache(node)) flags |= ModifierFlags.JSDocPrivate; + if (getJSDocProtectedTagNoCache(node)) flags |= ModifierFlags.JSDocProtected; + if (getJSDocReadonlyTagNoCache(node)) flags |= ModifierFlags.JSDocReadonly; + if (getJSDocOverrideTagNoCache(node)) flags |= ModifierFlags.JSDocOverride; } if (getJSDocDeprecatedTagNoCache(node)) flags |= ModifierFlags.Deprecated; } @@ -6975,6 +6981,19 @@ function getJSDocModifierFlagsNoCache(node: Node): ModifierFlags { return flags; } +function selectSyntacticModifierFlags(flags: ModifierFlags) { + return flags & ModifierFlags.SyntacticModifiers; +} + +function selectEffectiveModifierFlags(flags: ModifierFlags) { + return (flags & ModifierFlags.NonCacheOnlyModifiers) | + ((flags & ModifierFlags.JSDocCacheOnlyModifiers) >>> 23); // shift ModifierFlags.JSDoc* to match ModifierFlags.* +} + +function getJSDocModifierFlagsNoCache(node: Node): ModifierFlags { + return selectEffectiveModifierFlags(getRawJSDocModifierFlagsNoCache(node)); +} + /** * Gets the effective ModifierFlags for the provided node, including JSDoc modifiers. The modifier flags cache on the node is ignored. * diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 135c8bdc538..ac2c666ea89 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -12,7 +12,6 @@ import { CompilerHost, CompilerOptions, ConfigFileDiagnosticsReporter, - ConfigFileProgramReloadLevel, createBuilderProgramUsingProgramBuildInfo, createCachedDirectoryStructureHost, createCompilerDiagnostic, @@ -64,6 +63,7 @@ import { Path, perfLogger, PollingInterval, + ProgramUpdateLevel, ProjectReference, ResolutionCache, ResolutionCacheHost, @@ -399,8 +399,8 @@ interface ParsedConfig { watcher?: FileWatcher; /** Wild card directories watched from this config file */ watchedDirectories?: Map; - /** Reload to be done for this config file */ - reloadLevel?: ConfigFileProgramReloadLevel.Partial | ConfigFileProgramReloadLevel.Full; + /** Level of program update to be done for this config file */ + updateLevel?: ProgramUpdateLevel.RootNamesAndUpdate | ProgramUpdateLevel.Full; } // All of one and partial of the other, or vice versa. @@ -431,7 +431,7 @@ export function createWatchProgram(host: WatchCompiler type HostFileInfo = FilePresentOnHost | FileMissingOnHost | FilePresenceUnknownOnHost; let builderProgram: T; - let reloadLevel: ConfigFileProgramReloadLevel; // level to indicate if the program needs to be reloaded from config file/just filenames etc + let updateLevel: ProgramUpdateLevel; // level to indicate if the program needs to be reloaded from config file/just filenames etc let missingFilesMap: Map; // Map of file watchers for the missing files let watchedWildcardDirectories: Map; // map of watchers for the wild card directories in the config file let timerToUpdateProgram: any; // timer callback to recompile the program @@ -872,7 +872,7 @@ export function createWatchProgram(host: WatchCompiler function scheduleProgramReload() { Debug.assert(!!configFileName); - reloadLevel = ConfigFileProgramReloadLevel.Full; + updateLevel = ProgramUpdateLevel.Full; scheduleProgramUpdate(); } @@ -883,12 +883,12 @@ export function createWatchProgram(host: WatchCompiler } function updateProgram() { - switch (reloadLevel) { - case ConfigFileProgramReloadLevel.Partial: + switch (updateLevel) { + case ProgramUpdateLevel.RootNamesAndUpdate: perfLogger?.logStartUpdateProgram("PartialConfigReload"); reloadFileNamesFromConfigFile(); break; - case ConfigFileProgramReloadLevel.Full: + case ProgramUpdateLevel.Full: perfLogger?.logStartUpdateProgram("FullConfigReload"); reloadConfigFile(); break; @@ -907,7 +907,7 @@ export function createWatchProgram(host: WatchCompiler Debug.assert(compilerOptions); Debug.assert(configFileName); - reloadLevel = ConfigFileProgramReloadLevel.None; + updateLevel = ProgramUpdateLevel.Update; rootFileNames = getFileNamesFromConfigSpecs(compilerOptions.configFile!.configFileSpecs!, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost, extraFileExtensions); if (updateErrorForNoInputFiles(rootFileNames, getNormalizedAbsolutePath(configFileName, currentDirectory), compilerOptions.configFile!.configFileSpecs!, configFileParsingDiagnostics!, canConfigFileJsonReportNoInputFiles)) { hasChangedConfigFileParsingErrors = true; @@ -920,7 +920,7 @@ export function createWatchProgram(host: WatchCompiler function reloadConfigFile() { Debug.assert(configFileName); writeLog(`Reloading config file: ${configFileName}`); - reloadLevel = ConfigFileProgramReloadLevel.None; + updateLevel = ProgramUpdateLevel.Update; if (cachedDirectoryStructureHost) { cachedDirectoryStructureHost.clearCache(); @@ -965,9 +965,9 @@ export function createWatchProgram(host: WatchCompiler const configPath = toPath(configFileName); let config = parsedConfigs?.get(configPath); if (config) { - if (!config.reloadLevel) return config.parsedCommandLine; + if (!config.updateLevel) return config.parsedCommandLine; // With host implementing getParsedCommandLine we cant just update file names - if (config.parsedCommandLine && config.reloadLevel === ConfigFileProgramReloadLevel.Partial && !host.getParsedCommandLine) { + if (config.parsedCommandLine && config.updateLevel === ProgramUpdateLevel.RootNamesAndUpdate && !host.getParsedCommandLine) { writeLog("Reloading new file names and options"); Debug.assert(compilerOptions); const fileNames = getFileNamesFromConfigSpecs( @@ -977,7 +977,7 @@ export function createWatchProgram(host: WatchCompiler parseConfigFileHost, ); config.parsedCommandLine = { ...config.parsedCommandLine, fileNames }; - config.reloadLevel = undefined; + config.updateLevel = undefined; return config.parsedCommandLine; } } @@ -988,7 +988,7 @@ export function createWatchProgram(host: WatchCompiler getParsedCommandLineFromConfigFileHost(configFileName); if (config) { config.parsedCommandLine = parsedCommandLine; - config.reloadLevel = undefined; + config.updateLevel = undefined; } else { (parsedConfigs ||= new Map()).set(configPath, config = { parsedCommandLine }); @@ -1120,8 +1120,8 @@ export function createWatchProgram(host: WatchCompiler ) return; // Reload is pending, do the reload - if (reloadLevel !== ConfigFileProgramReloadLevel.Full) { - reloadLevel = ConfigFileProgramReloadLevel.Partial; + if (updateLevel !== ProgramUpdateLevel.Full) { + updateLevel = ProgramUpdateLevel.RootNamesAndUpdate; // Schedule Update the program scheduleProgramUpdate(); @@ -1152,12 +1152,12 @@ export function createWatchProgram(host: WatchCompiler projects.forEach(projectPath => { if (configFileName && toPath(configFileName) === projectPath) { // If this is the config file of the project, reload completely - reloadLevel = ConfigFileProgramReloadLevel.Full; + updateLevel = ProgramUpdateLevel.Full; } else { // Reload config for the referenced projects and remove the resolutions from referenced projects since the config file changed const config = parsedConfigs?.get(projectPath); - if (config) config.reloadLevel = ConfigFileProgramReloadLevel.Full; + if (config) config.updateLevel = ProgramUpdateLevel.Full; resolutionCache.removeResolutionsFromProjectReferenceRedirects(projectPath); } scheduleProgramUpdate(); @@ -1178,7 +1178,7 @@ export function createWatchProgram(host: WatchCompiler (_fileName, eventKind) => { updateCachedSystemWithFile(configFileName, configPath, eventKind); const config = parsedConfigs?.get(configPath); - if (config) config.reloadLevel = ConfigFileProgramReloadLevel.Full; + if (config) config.updateLevel = ProgramUpdateLevel.Full; resolutionCache.removeResolutionsFromProjectReferenceRedirects(configPath); scheduleProgramUpdate(); }, @@ -1220,8 +1220,8 @@ export function createWatchProgram(host: WatchCompiler ) return; // Reload is pending, do the reload - if (config.reloadLevel !== ConfigFileProgramReloadLevel.Full) { - config.reloadLevel = ConfigFileProgramReloadLevel.Partial; + if (config.updateLevel !== ProgramUpdateLevel.Full) { + config.updateLevel = ProgramUpdateLevel.RootNamesAndUpdate; // Schedule Update the program scheduleProgramUpdate(); diff --git a/src/compiler/watchUtilities.ts b/src/compiler/watchUtilities.ts index 422ec2f70be..c259f2ac9db 100644 --- a/src/compiler/watchUtilities.ts +++ b/src/compiler/watchUtilities.ts @@ -365,12 +365,18 @@ export function createCachedDirectoryStructureHost(host: DirectoryStructureHost, } } -/** @internal */ -export enum ConfigFileProgramReloadLevel { - None, - /** Update the file name list from the disk */ - Partial, - /** Reload completely by re-reading contents of config file from disk and updating program */ +export enum ProgramUpdateLevel { + /** Program is updated with same root file names and options */ + Update, + /** Loads program after updating root file names from the disk */ + RootNamesAndUpdate, + /** + * Loads program completely, including: + * - re-reading contents of config file from disk + * - calculating root file names for the program + * - Updating the program + */ + Full, } diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index d1ef154ffe4..2e05267fd2d 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -5,6 +5,9 @@ import * as ts from "./_namespaces/ts"; import * as Utils from "./_namespaces/Utils"; import * as vfs from "./_namespaces/vfs"; import * as vpath from "./_namespaces/vpath"; +import { + Logger, +} from "./tsserverLogger"; import ArrayOrSingle = FourSlashInterface.ArrayOrSingle; @@ -226,6 +229,12 @@ function realizeDiagnostic(diagnostic: ts.Diagnostic, newLine: string): Realized }; } +interface BaselineTest { + command: string; + actual: string; + ext: string | undefined; +} + export class TestState { // Language service instance private languageServiceAdapterHost: Harness.LanguageService.LanguageServiceAdapterHost; @@ -250,6 +259,8 @@ export class TestState { private inputFiles = new Map(); // Map between inputFile's fileName and its content for easily looking up when resolving references + private logger: Logger | undefined; + private static getDisplayPartsJson(displayParts: ts.SymbolDisplayPart[] | undefined) { let result = ""; ts.forEach(displayParts, part => { @@ -358,6 +369,7 @@ export class TestState { } const languageServiceAdapter = this.getLanguageServiceAdapter(testType, this.cancellationToken, compilationOptions); + this.logger = languageServiceAdapter.getLogger(); this.languageServiceAdapterHost = languageServiceAdapter.getHost(); this.languageService = memoWrap(languageServiceAdapter.getLanguageService(), this); // Wrap the LS to cache some expensive operations certain tests call repeatedly if (this.testType === FourSlashTestType.Server) { @@ -445,6 +457,11 @@ export class TestState { this.formatCodeSettings = ts.testFormatSettings; + if (this.logger?.loggingEnabled()) { + const patch = this.languageServiceAdapterHost.vfs.diff(); + this.logger.log(vfs.formatPatch(patch) || ""); + } + // Open the first file by default this.openFile(0); @@ -482,6 +499,31 @@ export class TestState { } } + private baselineFromTest: BaselineTest[] | undefined; + + private baseline(command: string, actual: string, ext?: string) { + if (!this.baselineFromTest) this.baselineFromTest = [{ command, actual, ext }]; + else this.baselineFromTest.push({ command, actual, ext }); + } + + baselineTest() { + if (this.baselineFromTest) { + Harness.Baseline.runBaseline( + this.getBaselineFileNameForContainingTestFile(this.baselineFromTest[0].ext), + this.baselineFromTest.map(({ command, actual }) => `// === ${command} ===\n${actual}`).join("\n\n\n\n"), + ); + } + } + + baselineTsserverLog() { + if (this.logger) { + Harness.Baseline.runBaseline( + `tsserver/fourslashServer/${ts.getBaseFileName(this.originalInputFileName).replace(".ts", ".js")}`, + this.logger.logs!.join("\n"), + ); + } + } + private getFileContent(fileName: string): string { return ts.Debug.checkDefined(this.tryGetFileContent(fileName)); } @@ -827,6 +869,71 @@ export class TestState { return baseline; } + public baselineGoToDefinition( + markerOrRange: MarkerOrNameOrRange[] | undefined, + rangeText: string[] | undefined, + ) { + this.baselineEachMarkerOrRange("goToDefinition", markerOrRange, rangeText, markerOrRange => + this.baselineGoToDefs( + "/*GOTO DEF*/", + markerOrRange, + () => this.getGoToDefinitionAndBoundSpan(), + )); + } + + public baselineGetDefinitionAtPosition( + markerOrRange: MarkerOrNameOrRange[] | undefined, + rangeText: string[] | undefined, + ) { + this.baselineEachMarkerOrRange("getDefinitionAtPosition", markerOrRange, rangeText, markerOrRange => + this.baselineGoToDefs( + "/*GOTO DEF POS*/", + markerOrRange, + () => this.getGoToDefinition(), + )); + } + + public baselineGoToSourceDefinition( + markerOrRange: MarkerOrNameOrRange[] | undefined, + rangeText: string[] | undefined, + ) { + if (this.testType !== FourSlashTestType.Server) { + this.raiseError("goToSourceDefinition may only be used in fourslash/server tests."); + } + this.baselineEachMarkerOrRange("goToSourceDefinition", markerOrRange, rangeText, markerOrRange => + this.baselineGoToDefs( + "/*GOTO SOURCE DEF*/", + markerOrRange, + () => + (this.languageService as ts.server.SessionClient) + .getSourceDefinitionAndBoundSpan(this.activeFile.fileName, this.currentCaretPosition), + )); + } + + public baselineGoToType( + markerOrRange: MarkerOrNameOrRange[] | undefined, + rangeText: string[] | undefined, + ) { + this.baselineEachMarkerOrRange("goToType", markerOrRange, rangeText, markerOrRange => + this.baselineGoToDefs( + "/*GOTO TYPE*/", + markerOrRange, + () => this.languageService.getTypeDefinitionAtPosition(this.activeFile.fileName, this.currentCaretPosition), + )); + } + + public baselineGoToImplementation( + markerOrRange: MarkerOrNameOrRange[] | undefined, + rangeText: string[] | undefined, + ) { + this.baselineEachMarkerOrRange("goToImplementation", markerOrRange, rangeText, markerOrRange => + this.baselineGoToDefs( + "/*GOTO IMPL*/", + markerOrRange, + () => this.languageService.getImplementationAtPosition(this.activeFile.fileName, this.currentCaretPosition), + )); + } + public verifyGetEmitOutputForCurrentFile(expected: string): void { const emit = this.languageService.getEmitOutput(this.activeFile.fileName); if (emit.outputFiles.length !== 1) { @@ -855,7 +962,6 @@ export class TestState { return a.position - b.position; }; - const baselineFile = this.getBaselineFileNameForContainingTestFile(); const fileName = this.activeFile.fileName; const hints = this.languageService.provideInlayHints(fileName, span, preferences); const annotations = ts.map(hints.sort(sortHints), hint => { @@ -880,7 +986,7 @@ export class TestState { annotations.push("=== No inlay hints ==="); } - Harness.Baseline.runBaseline(baselineFile, annotations.join("\n\n")); + this.baseline("Inlay Hints", annotations.join("\n\n")); } public verifyCompletions(options: FourSlashInterface.VerifyCompletionsOptions) { @@ -1220,184 +1326,106 @@ export class TestState { } } - public verifyBaselineCommands(...commands: FourSlashInterface.BaselineCommand[]) { - let baselineContent = ""; - const baselineEachMarkerOrRange = ( - command: FourSlashInterface.BaselineCommandWithMarkerOrRange, - worker: (markerORange: MarkerOrNameOrRange) => string, - ) => { - let done = false; - if (command.markerOrRange !== undefined) { - done = baselineArrayOrSingle(command, command.markerOrRange, worker); - } - if (command.rangeText !== undefined) { - toArray(command.rangeText).forEach(text => done = baselineArrayOrSingle(command, this.rangesByText().get(text)!, worker) || done); - } - if (!done) { - baselineArrayOrSingle(command, this.getRanges(), worker); - } - }; - commands.forEach(command => { - switch (command.type) { - case "findAllReferences": - return baselineEachMarkerOrRange( - command, - markerOrRange => this.baselineFindAllReferencesWorker(markerOrRange), - ); - case "getFileReferences": - return baselineArrayOrSingle( - command, - command.fileName, - fileName => this.baselineGetFileReferences(fileName), - ); - case "findRenameLocations": - return baselineEachMarkerOrRange( - command, - markerOrRange => this.baselineRenameWorker(markerOrRange, command.options), - ); - case "goToDefinition": - return baselineEachMarkerOrRange( - command, - markerOrRange => - this.baselineGoToDefs( - "/*GOTO DEF*/", - markerOrRange, - () => this.getGoToDefinitionAndBoundSpan(), - ), - ); - case "getDefinitionAtPosition": - return baselineEachMarkerOrRange( - command, - markerOrRange => - this.baselineGoToDefs( - "/*GOTO DEF POS*/", - markerOrRange, - () => this.getGoToDefinition(), - ), - ); - case "goToSourceDefinition": - if (this.testType !== FourSlashTestType.Server) { - this.raiseError("goToSourceDefinition may only be used in fourslash/server tests."); + private baselineEachMarkerOrRangeArrayOrSingle( + command: string, + markerOrRange: ArrayOrSingle | undefined, + rangeText: ArrayOrSingle | undefined, + worker: (markerORange: MarkerOrNameOrRange) => string, + ) { + return this.baselineEachMarkerOrRange( + command, + markerOrRange !== undefined ? toArray(markerOrRange) : undefined, + rangeText !== undefined ? toArray(rangeText) : undefined, + worker, + ); + } + + private baselineEachMarkerOrRange( + command: string, + markerOrRange: readonly MarkerOrNameOrRange[] | undefined, + rangeText: readonly string[] | undefined, + worker: (markerORange: MarkerOrNameOrRange) => string, + ) { + let done = false; + if (markerOrRange !== undefined) { + done = this.baselineArray(command, markerOrRange, worker); + } + if (rangeText !== undefined) { + toArray(rangeText).forEach(text => done = this.baselineArray(command, this.rangesByText().get(text)!, worker) || done); + } + if (!done) this.baselineArray(command, this.getRanges(), worker); + } + + private baselineArray( + command: string, + array: readonly T[], + worker: (single: T) => string, + ) { + array.forEach(single => this.baseline(command, worker(single), ".baseline.jsonc")); + return !!array.length; + } + + public baselineFindAllReferences( + markerOrRange: MarkerOrNameOrRange[] | undefined, + rangeText: string[] | undefined, + ) { + this.baselineEachMarkerOrRange("findAllReferences", markerOrRange, rangeText, markerOrRange => { + this.goToMarkerOrNameOrRange(markerOrRange); + const references = this.findReferencesAtCaret(); + const defIdMap = new Map(); + const markerInfo = { markerOrRange, markerName: "/*FIND ALL REFS*/" }; + let baseline = this.getBaselineForDocumentSpansWithFileContents( + ts.flatMap(references, (r, def) => { + if (references!.length > 1) { + defIdMap.set(r.definition, def); + r.references.forEach(r => defIdMap.set(r, def)); } - return baselineEachMarkerOrRange( - command, - markerOrRange => - this.baselineGoToDefs( - "/*GOTO SOURCE DEF*/", - markerOrRange, - () => - (this.languageService as ts.server.SessionClient) - .getSourceDefinitionAndBoundSpan(this.activeFile.fileName, this.currentCaretPosition), - ), - ); - case "goToType": - return baselineEachMarkerOrRange( - command, - markerOrRange => - this.baselineGoToDefs( - "/*GOTO TYPE*/", - markerOrRange, - () => this.languageService.getTypeDefinitionAtPosition(this.activeFile.fileName, this.currentCaretPosition), - ), - ); - case "goToImplementation": - return baselineEachMarkerOrRange( - command, - markerOrRange => - this.baselineGoToDefs( - "/*GOTO IMPL*/", - markerOrRange, - () => this.languageService.getImplementationAtPosition(this.activeFile.fileName, this.currentCaretPosition), - ), - ); - case "documentHighlights": - return baselineEachMarkerOrRange( - command, - markerOrRange => this.baselineGetDocumentHighlights(markerOrRange, command.options), - ); - case "customWork": - return addToBaseline(command, readableJsoncBaseline(command.work() || "")); - default: - ts.Debug.assertNever(command); - } - }); - Harness.Baseline.runBaseline(this.getBaselineFileNameForContainingTestFile(".baseline.jsonc"), baselineContent); - - function baselineArrayOrSingle( - command: FourSlashInterface.BaselineCommand, - arrayOrSingle: ArrayOrSingle, - worker: (single: T) => string, - ) { - if (ts.isArray(arrayOrSingle)) { - arrayOrSingle.forEach(single => addToBaseline(command, worker(single))); - return !!arrayOrSingle.length; - } - else { - addToBaseline(command, worker(arrayOrSingle)); - return true; - } - } - - function addToBaseline(command: FourSlashInterface.BaselineCommand, text: string) { - if (baselineContent) baselineContent += "\n\n\n\n"; - baselineContent += `// === ${command.type} ===\n` + text; - } - } - - private baselineFindAllReferencesWorker(markerOrRange: MarkerOrNameOrRange) { - this.goToMarkerOrNameOrRange(markerOrRange); - const references = this.findReferencesAtCaret(); - const defIdMap = new Map(); - const markerInfo = { markerOrRange, markerName: "/*FIND ALL REFS*/" }; - let baseline = this.getBaselineForDocumentSpansWithFileContents( - ts.flatMap(references, (r, def) => { - if (references!.length > 1) { - defIdMap.set(r.definition, def); - r.references.forEach(r => defIdMap.set(r, def)); - } - return r.references; - }), - { - markerInfo, - documentSpanId: defIdMap.size ? ref => `defId: ${defIdMap.get(ref)}` : undefined, - }, - ); - if (references?.length) { - baseline += "\n\n"; - baseline += indentJsonBaseline( - "// === Definitions ===\n" + - this.getBaselineForDocumentSpansWithFileContents( - references.map(r => r.definition), - { - markerInfo, - documentSpanId: defIdMap.size ? def => `defId: ${defIdMap.get(def)}` : undefined, - skipDocumentSpanDetails: true, - skipDocumentContainingOnlyMarker: true, - }, - ) + - "\n\n// === Details ===\n" + - JSON.stringify( - references.map(r => ({ - defId: defIdMap.get(r.definition), - ...r.definition, - fileName: undefined, - textSpan: undefined, - contextSpan: undefined, - })), - undefined, - " ", - ), + return r.references; + }), + { + markerInfo, + documentSpanId: defIdMap.size ? ref => `defId: ${defIdMap.get(ref)}` : undefined, + }, ); - } - return baseline; + if (references?.length) { + baseline += "\n\n"; + baseline += indentJsonBaseline( + "// === Definitions ===\n" + + this.getBaselineForDocumentSpansWithFileContents( + references.map(r => r.definition), + { + markerInfo, + documentSpanId: defIdMap.size ? def => `defId: ${defIdMap.get(def)}` : undefined, + skipDocumentSpanDetails: true, + skipDocumentContainingOnlyMarker: true, + }, + ) + + "\n\n// === Details ===\n" + + JSON.stringify( + references.map(r => ({ + defId: defIdMap.get(r.definition), + ...r.definition, + fileName: undefined, + textSpan: undefined, + contextSpan: undefined, + })), + undefined, + " ", + ), + ); + } + return baseline; + }); } - private baselineGetFileReferences(fileName: string) { - const references = this.languageService.getFileReferences(fileName); - return `// fileName: ${fileName}\n\n` + this.getBaselineForDocumentSpansWithFileContents( - references, - { markerInfo: undefined }, - ); + public baselineGetFileReferences(fileNames: string[]) { + this.baselineArray("getFileReferences", fileNames, fileName => { + const references = this.languageService.getFileReferences(fileName); + return `// fileName: ${fileName}\n\n` + this.getBaselineForDocumentSpansWithFileContents( + references, + { markerInfo: undefined }, + ); + }); } private getBaselineForDocumentSpansWithFileContents( @@ -1869,47 +1897,53 @@ export class TestState { } } - private baselineRenameWorker(markerOrRange: MarkerOrNameOrRange, options?: FourSlashInterface.RenameOptions) { - const { fileName, position } = ts.isString(markerOrRange) ? - this.getMarkerByName(markerOrRange) : - isMarker(markerOrRange) ? - markerOrRange : - { fileName: markerOrRange.fileName, position: markerOrRange.pos }; - const { - findInStrings = false, - findInComments = false, - providePrefixAndSuffixTextForRename = true, - quotePreference = "double", - } = options || {}; - const locations = this.languageService.findRenameLocations( - fileName, - position, - findInStrings, - findInComments, - { providePrefixAndSuffixTextForRename, quotePreference }, - ); + public baselineRename( + markerOrRange: ArrayOrSingle | undefined, + rangeText: ArrayOrSingle | undefined, + options: FourSlashInterface.RenameOptions | undefined, + ) { + this.baselineEachMarkerOrRangeArrayOrSingle("findRenameLocations", markerOrRange, rangeText, markerOrRange => { + const { fileName, position } = ts.isString(markerOrRange) ? + this.getMarkerByName(markerOrRange) : + isMarker(markerOrRange) ? + markerOrRange : + { fileName: markerOrRange.fileName, position: markerOrRange.pos }; + const { + findInStrings = false, + findInComments = false, + providePrefixAndSuffixTextForRename = true, + quotePreference = "double", + } = options || {}; + const locations = this.languageService.findRenameLocations( + fileName, + position, + findInStrings, + findInComments, + { providePrefixAndSuffixTextForRename, quotePreference }, + ); - if (!locations) { - this.raiseError(`baselineRename failed. Could not rename at the provided position.`); - } + if (!locations) { + this.raiseError(`baselineRename failed. Could not rename at the provided position.`); + } - const renameOptions = options ? - (options.findInStrings !== undefined ? `// @findInStrings: ${findInStrings}\n` : "") + - (options.findInComments !== undefined ? `// @findInComments: ${findInComments}\n` : "") + - (options.providePrefixAndSuffixTextForRename !== undefined ? `// @providePrefixAndSuffixTextForRename: ${providePrefixAndSuffixTextForRename}\n` : "") + - (options.quotePreference !== undefined ? `// @quotePreference: ${quotePreference}\n` : "") : - ""; + const renameOptions = options ? + (options.findInStrings !== undefined ? `// @findInStrings: ${findInStrings}\n` : "") + + (options.findInComments !== undefined ? `// @findInComments: ${findInComments}\n` : "") + + (options.providePrefixAndSuffixTextForRename !== undefined ? `// @providePrefixAndSuffixTextForRename: ${providePrefixAndSuffixTextForRename}\n` : "") + + (options.quotePreference !== undefined ? `// @quotePreference: ${quotePreference}\n` : "") : + ""; - return renameOptions + (renameOptions ? "\n" : "") + this.getBaselineForDocumentSpansWithFileContents( - locations, - { - markerInfo: { markerOrRange, markerName: "/*RENAME*/" }, - endMarker: "RENAME|]", - startMarkerPrefix: span => span.prefixText ? `/*START PREFIX*/${span.prefixText}` : "", - endMarkerSuffix: span => span.suffixText ? `${span.suffixText}/*END SUFFIX*/` : "", - ignoredDocumentSpanProperties: ["prefixText", "suffixText"], - }, - ); + return renameOptions + (renameOptions ? "\n" : "") + this.getBaselineForDocumentSpansWithFileContents( + locations, + { + markerInfo: { markerOrRange, markerName: "/*RENAME*/" }, + endMarker: "RENAME|]", + startMarkerPrefix: span => span.prefixText ? `/*START PREFIX*/${span.prefixText}` : "", + endMarkerSuffix: span => span.suffixText ? `${span.suffixText}/*END SUFFIX*/` : "", + ignoredDocumentSpanProperties: ["prefixText", "suffixText"], + }, + ); + }); } public verifyQuickInfoExists(negative: boolean) { @@ -2228,8 +2262,7 @@ export class TestState { } public baselineCurrentFileBreakpointLocations() { - const baselineFile = this.getBaselineFileNameForInternalFourslashFile().replace("breakpointValidation", "bpSpan"); - Harness.Baseline.runBaseline(baselineFile, this.baselineCurrentFileLocations(pos => this.getBreakpointStatementLocation(pos)!)); + this.baseline("breakpoints", this.baselineCurrentFileLocations(pos => this.getBreakpointStatementLocation(pos)!)); } private getEmitFiles(): readonly FourSlashFile[] { @@ -2293,7 +2326,7 @@ export class TestState { resultString += Harness.IO.newLine(); } - Harness.Baseline.runBaseline(ts.Debug.checkDefined(this.testData.globalOptions[MetadataOptionNames.baselineFile]), resultString); + this.baseline("EmitOutput", resultString); } private flattenChainedMessage(diag: ts.DiagnosticMessageChain, indent = " ") { @@ -2310,7 +2343,7 @@ export class TestState { public baselineSyntacticDiagnostics() { const files = this.getCompilerTestFiles(); const result = this.getSyntacticDiagnosticBaselineText(files); - Harness.Baseline.runBaseline(this.getBaselineFileNameForContainingTestFile(), result); + this.baseline("Syntax Diagnostics", result); } private getCompilerTestFiles() { @@ -2326,7 +2359,7 @@ export class TestState { + Harness.IO.newLine() + Harness.IO.newLine() + this.getSemanticDiagnosticBaselineText(files); - Harness.Baseline.runBaseline(this.getBaselineFileNameForContainingTestFile(), result); + this.baseline("Syntax and Semantic Diagnostics", result); } private getSyntacticDiagnosticBaselineText(files: Harness.Compiler.TestFile[]) { @@ -2346,7 +2379,6 @@ export class TestState { } public baselineQuickInfo() { - const baselineFile = this.getBaselineFileNameForContainingTestFile(); const result = ts.arrayFrom(this.testData.markerPositions.entries(), ([name, marker]) => ({ marker: { ...marker, name }, item: this.languageService.getQuickInfoAtPosition(marker.fileName, marker.position), @@ -2361,11 +2393,10 @@ export class TestState { ...(tags?.length ? tags.map(p => `@${p.name} ${p.text?.map(dp => dp.text).join("") ?? ""}`).join("\n").split("\n") : []), ], ); - Harness.Baseline.runBaseline(baselineFile, annotations + "\n\n" + stringify(result)); + this.baseline("QuickInfo", annotations + "\n\n" + stringify(result)); } public baselineSignatureHelp() { - const baselineFile = this.getBaselineFileNameForContainingTestFile(); const result = ts.arrayFrom(this.testData.markerPositions.entries(), ([name, marker]) => ({ marker: { ...marker, name }, item: this.languageService.getSignatureHelpItems(marker.fileName, marker.position, /*options*/ undefined), @@ -2396,11 +2427,10 @@ export class TestState { return tooltip; }, ); - Harness.Baseline.runBaseline(baselineFile, annotations + "\n\n" + stringify(result)); + this.baseline("SignatureHelp", annotations + "\n\n" + stringify(result)); } public baselineCompletions(preferences?: ts.UserPreferences) { - const baselineFile = this.getBaselineFileNameForContainingTestFile(); const result = ts.arrayFrom(this.testData.markerPositions.entries(), ([name, marker]) => { this.goToMarker(marker); const completions = this.getCompletionListAtCaret(preferences); @@ -2443,8 +2473,8 @@ export class TestState { } } } - Harness.Baseline.runBaseline( - baselineFile, + this.baseline( + "Completions", annotations + "\n\n" + stringify(result, (key, value) => { return key === "exportMapKey" ? value.replace(/ \d+ /g, " * ") @@ -2503,7 +2533,6 @@ export class TestState { public baselineSmartSelection() { const n = "\n"; - const baselineFile = this.getBaselineFileNameForContainingTestFile(); const markers = this.getMarkers(); const fileContent = this.activeFile.content; const text = markers.map(marker => { @@ -2531,7 +2560,7 @@ export class TestState { return baselineContent.join(fileContent.includes("\n") ? n + n : n); }).join(n.repeat(2) + "=".repeat(80) + n.repeat(2)); - Harness.Baseline.runBaseline(baselineFile, text); + this.baseline("Smart Selection", text); } public printBreakpointLocation(pos: number) { @@ -2589,11 +2618,6 @@ export class TestState { Harness.IO.log(stringify(help.items[help.selectedItemIndex])); } - private getBaselineFileNameForInternalFourslashFile(ext = ".baseline") { - return this.testData.globalOptions[MetadataOptionNames.baselineFile] || - ts.getBaseFileName(this.activeFile.fileName).replace(ts.Extension.Ts, ext); - } - private getBaselineFileNameForContainingTestFile(ext = ".baseline") { return this.testData.globalOptions[MetadataOptionNames.baselineFile] || ts.getBaseFileName(this.originalInputFileName).replace(ts.Extension.Ts, ext); @@ -3006,8 +3030,8 @@ export class TestState { } public baselineCurrentFileNameOrDottedNameSpans() { - Harness.Baseline.runBaseline( - this.testData.globalOptions[MetadataOptionNames.baselineFile], + this.baseline( + "NameOrDottedNameSpans", this.baselineCurrentFileLocations(pos => this.getNameOrDottedNameSpan(pos)!), ); } @@ -3323,12 +3347,16 @@ export class TestState { this.verifyRangeIs(expectedText, includeWhiteSpace); } - public verifyCodeFixAll({ fixId, fixAllDescription, newFileContent, commands: expectedCommands }: FourSlashInterface.VerifyCodeFixAllOptions): void { - const fixWithId = ts.find(this.getCodeFixes(this.activeFile.fileName), a => a.fixId === fixId); + public verifyCodeFixAll({ fixId, fixAllDescription, newFileContent, commands: expectedCommands, preferences }: FourSlashInterface.VerifyCodeFixAllOptions): void { + if (this.testType === FourSlashTestType.Server && preferences) { + this.configure(preferences); + } + + const fixWithId = ts.find(this.getCodeFixes(this.activeFile.fileName, /*errorCode*/ undefined, preferences), a => a.fixId === fixId); ts.Debug.assert(fixWithId !== undefined, "No available code fix has the expected id. Fix All is not available if there is only one potentially fixable diagnostic present.", () => `Expected '${fixId}'. Available actions:\n${ts.mapDefined(this.getCodeFixes(this.activeFile.fileName), a => `${a.fixName} (${a.fixId || "no fix id"})`).join("\n")}`); ts.Debug.assertEqual(fixWithId.fixAllDescription, fixAllDescription); - const { changes, commands } = this.languageService.getCombinedCodeFix({ type: "file", fileName: this.activeFile.fileName }, fixId, this.formatCodeSettings, ts.emptyOptions); + const { changes, commands } = this.languageService.getCombinedCodeFix({ type: "file", fileName: this.activeFile.fileName }, fixId, this.formatCodeSettings, preferences || ts.emptyOptions); assert.deepEqual(commands, expectedCommands); this.verifyNewContent({ newFileContent }, changes); } @@ -3583,7 +3611,6 @@ export class TestState { public baselineAutoImports(markerName: string, fullNamesForCodeFix?: string[], preferences?: ts.UserPreferences) { const marker = this.getMarkerByName(markerName); - const baselineFile = this.getBaselineFileNameForContainingTestFile(`.baseline.md`); const completionPreferences = { includeCompletionsForModuleExports: true, includeCompletionsWithInsertText: true, @@ -3651,7 +3678,7 @@ export class TestState { } } - Harness.Baseline.runBaseline(baselineFile, baselineText); + this.baseline("Auto Imports", baselineText, `.baseline.md`); } public verifyJsxClosingTag(map: { [markerName: string]: ts.JsxClosingTagInfo | undefined; }): void { @@ -3671,7 +3698,6 @@ export class TestState { } public baselineLinkedEditing(): void { - const baselineFile = this.getBaselineFileNameForContainingTestFile(".linkedEditing.txt"); const files = this.testData.files; let baselineContent = ""; @@ -3682,7 +3708,7 @@ export class TestState { offset = result.offset; } - Harness.Baseline.runBaseline(baselineFile, baselineContent); + this.baseline("Linked Editing", baselineContent, ".linkedEditing.txt"); function getLinkedEditingBaselineWorker(activeFile: FourSlashFile, offset: number, languageService: ts.LanguageService) { const fileName = activeFile.fileName; @@ -3858,19 +3884,30 @@ export class TestState { return this.languageService.getDocumentHighlights(this.activeFile.fileName, this.currentCaretPosition, filesToSearch); } - private baselineGetDocumentHighlights(markerOrRange: MarkerOrNameOrRange, options: FourSlashInterface.VerifyDocumentHighlightsOptions | undefined) { - this.goToMarkerOrNameOrRange(markerOrRange); - const highlights = this.getDocumentHighlightsAtCurrentPosition(ts.map(options?.filesToSearch, ts.normalizePath) || [this.activeFile.fileName]); + public baselineDocumentHighlights( + markerOrRange: ArrayOrSingle | undefined, + rangeText: ArrayOrSingle | undefined, + options: FourSlashInterface.VerifyDocumentHighlightsOptions | undefined, + ) { + this.baselineEachMarkerOrRangeArrayOrSingle( + "documentHighlights", + markerOrRange, + rangeText, + markerOrRange => { + this.goToMarkerOrNameOrRange(markerOrRange); + const highlights = this.getDocumentHighlightsAtCurrentPosition(ts.map(options?.filesToSearch, ts.normalizePath) || [this.activeFile.fileName]); - // Write input files - const filesToSearch = options ? "// filesToSearch:\n" + - options.filesToSearch.map(f => "// " + f).join("\n") + "\n\n" : - ""; - const baselineContent = this.getBaselineForGroupedDocumentSpansWithFileContents( - highlights?.map(h => h.highlightSpans.map(s => s.fileName ? s as ts.DocumentSpan : { ...s, fileName: h.fileName })) || ts.emptyArray, - { markerInfo: { markerOrRange, markerName: "/*HIGHLIGHTS*/" } }, + // Write input files + const filesToSearch = options ? "// filesToSearch:\n" + + options.filesToSearch.map(f => "// " + f).join("\n") + "\n\n" : + ""; + const baselineContent = this.getBaselineForGroupedDocumentSpansWithFileContents( + highlights?.map(h => h.highlightSpans.map(s => s.fileName ? s as ts.DocumentSpan : { ...s, fileName: h.fileName })) || ts.emptyArray, + { markerInfo: { markerOrRange, markerName: "/*HIGHLIGHTS*/" } }, + ); + return filesToSearch + baselineContent; + }, ); - return filesToSearch + baselineContent; } public verifyCodeFixAvailable(negative: boolean, expected: FourSlashInterface.VerifyCodeFixAvailableOptions[] | string | undefined): void { @@ -4275,10 +4312,9 @@ export class TestState { } public baselineCallHierarchy() { - const baselineFile = this.getBaselineFileNameForContainingTestFile(".callHierarchy.txt"); const callHierarchyItem = this.languageService.prepareCallHierarchy(this.activeFile.fileName, this.currentCaretPosition); const text = callHierarchyItem ? ts.mapOneOrMany(callHierarchyItem, item => this.formatCallHierarchy(item), result => result.join("")) : "none"; - Harness.Baseline.runBaseline(baselineFile, text); + this.baseline("Call Hierarchy", text, ".callHierarchy.txt"); } private getLineContent(index: number) { @@ -4503,12 +4539,16 @@ function renameKeys(obj: { readonly [key: string]: T; }, renameKey: (key: str return res; } -export function runFourSlashTest(basePath: string, testType: FourSlashTestType, fileName: string) { - const content = Harness.IO.readFile(fileName)!; - runFourSlashTestContent(basePath, testType, content, fileName); +export interface FourSlashServerLogBaseliner { + baseline?: () => void; } -export function runFourSlashTestContent(basePath: string, testType: FourSlashTestType, content: string, fileName: string): void { +export function runFourSlashTest(basePath: string, testType: FourSlashTestType, fileName: string, serverLogBaseliner?: FourSlashServerLogBaseliner) { + const content = Harness.IO.readFile(fileName)!; + runFourSlashTestContent(basePath, testType, content, fileName, serverLogBaseliner); +} + +export function runFourSlashTestContent(basePath: string, testType: FourSlashTestType, content: string, fileName: string, serverLogBaseliner?: FourSlashServerLogBaseliner): void { // Give file paths an absolute path for the virtual file system const absoluteBasePath = ts.combinePaths(Harness.virtualFileSystemRoot, basePath); const absoluteFileName = ts.combinePaths(Harness.virtualFileSystemRoot, fileName); @@ -4516,12 +4556,14 @@ export function runFourSlashTestContent(basePath: string, testType: FourSlashTes // Parse out the files and their metadata const testData = parseTestData(absoluteBasePath, content, absoluteFileName); const state = new TestState(absoluteFileName, absoluteBasePath, testType, testData); + if (serverLogBaseliner) serverLogBaseliner.baseline = () => state.baselineTsserverLog(); const actualFileName = Harness.IO.resolvePath(fileName) || absoluteFileName; const output = ts.transpileModule(content, { reportDiagnostics: true, fileName: actualFileName, compilerOptions: { target: ts.ScriptTarget.ES2015, inlineSourceMap: true, inlineSources: true } }); if (output.diagnostics!.length > 0) { throw new Error(`Syntax error in ${absoluteBasePath}: ${output.diagnostics![0].messageText}`); } runCode(output.outputText, state, actualFileName); + state.baselineTest(); } function runCode(code: string, state: TestState, fileName: string): void { diff --git a/src/harness/fourslashInterfaceImpl.ts b/src/harness/fourslashInterfaceImpl.ts index e9f9dd0b402..52e028c5070 100644 --- a/src/harness/fourslashInterfaceImpl.ts +++ b/src/harness/fourslashInterfaceImpl.ts @@ -333,68 +333,64 @@ export class Verify extends VerifyNegatable { this.state.verifyTypeAtLocation(range, expected); } - public baselineCommands(...commands: BaselineCommand[]) { - this.state.verifyBaselineCommands(...commands); - } - public baselineFindAllReferences(...markerOrRange: FourSlash.MarkerOrNameOrRange[]) { - this.state.verifyBaselineCommands({ type: "findAllReferences", markerOrRange }); + this.state.baselineFindAllReferences(markerOrRange, /*rangeText*/ undefined); } public baselineFindAllReferencesAtRangesWithText(...rangeText: string[]) { - this.state.verifyBaselineCommands({ type: "findAllReferences", rangeText }); + this.state.baselineFindAllReferences(/*markerOrRange*/ undefined, rangeText); } public baselineGetFileReferences(...fileName: string[]) { - this.state.verifyBaselineCommands({ type: "getFileReferences", fileName }); + this.state.baselineGetFileReferences(fileName); } public baselineGoToDefinition(...markerOrRange: FourSlash.MarkerOrNameOrRange[]) { - this.state.verifyBaselineCommands({ type: "goToDefinition", markerOrRange }); + this.state.baselineGoToDefinition(markerOrRange, /*rangeText*/ undefined); } public baselineGoToDefinitionAtRangesWithText(...rangeText: string[]) { - this.state.verifyBaselineCommands({ type: "goToDefinition", rangeText }); + this.state.baselineGoToDefinition(/*markerOrRange*/ undefined, rangeText); } public baselineGetDefinitionAtPosition(...markerOrRange: FourSlash.MarkerOrNameOrRange[]) { - this.state.verifyBaselineCommands({ type: "getDefinitionAtPosition", markerOrRange }); + this.state.baselineGetDefinitionAtPosition(markerOrRange, /*rangeText*/ undefined); } public baselineGetDefinitionAtRangesWithText(...rangeText: string[]) { - this.state.verifyBaselineCommands({ type: "getDefinitionAtPosition", rangeText }); + this.state.baselineGetDefinitionAtPosition(/*markerOrRange*/ undefined, rangeText); } public baselineGoToSourceDefinition(...markerOrRange: FourSlash.MarkerOrNameOrRange[]) { - this.state.verifyBaselineCommands({ type: "goToSourceDefinition", markerOrRange }); + this.state.baselineGoToSourceDefinition(markerOrRange, /*rangeText*/ undefined); } public baselineGoToSourceDefinitionAtRangesWithText(...rangeText: string[]) { - this.state.verifyBaselineCommands({ type: "goToSourceDefinition", rangeText }); + this.state.baselineGoToSourceDefinition(/*markerOrRange*/ undefined, rangeText); } public baselineGoToType(...markerOrRange: FourSlash.MarkerOrNameOrRange[]) { - this.state.verifyBaselineCommands({ type: "goToType", markerOrRange }); + this.state.baselineGoToType(markerOrRange, /*rangeText*/ undefined); } public baselineGoToTypeAtRangesWithText(...rangeText: string[]) { - this.state.verifyBaselineCommands({ type: "goToType", rangeText }); + this.state.baselineGoToType(/*markerOrRange*/ undefined, rangeText); } public baselineGoToImplementation(...markerOrRange: FourSlash.MarkerOrNameOrRange[]) { - this.state.verifyBaselineCommands({ type: "goToImplementation", markerOrRange }); + this.state.baselineGoToImplementation(markerOrRange, /*rangeText*/ undefined); } public baselineGoToImplementationAtRangesWithText(...rangeText: string[]) { - this.state.verifyBaselineCommands({ type: "goToImplementation", rangeText }); + this.state.baselineGoToImplementation(/*markerOrRange*/ undefined, rangeText); } public baselineDocumentHighlights(markerOrRange?: ArrayOrSingle, options?: VerifyDocumentHighlightsOptions) { - this.state.verifyBaselineCommands({ type: "documentHighlights", markerOrRange, options }); + this.state.baselineDocumentHighlights(markerOrRange, /*rangeText*/ undefined, options); } public baselineDocumentHighlightsAtRangesWithText(rangeText?: ArrayOrSingle, options?: VerifyDocumentHighlightsOptions) { - this.state.verifyBaselineCommands({ type: "documentHighlights", rangeText, options }); + this.state.baselineDocumentHighlights(/*markerOrRange*/ undefined, rangeText, options); } public noErrors() { @@ -574,11 +570,11 @@ export class Verify extends VerifyNegatable { } public baselineRename(markerOrRange?: ArrayOrSingle, options?: RenameOptions) { - this.state.verifyBaselineCommands({ type: "findRenameLocations", markerOrRange, options }); + this.state.baselineRename(markerOrRange, /*rangeText*/ undefined, options); } public baselineRenameAtRangesWithText(rangeText?: ArrayOrSingle, options?: RenameOptions) { - this.state.verifyBaselineCommands({ type: "findRenameLocations", rangeText, options }); + this.state.baselineRename(/*markerOrRange*/ undefined, rangeText, options); } public verifyQuickInfoDisplayParts(kind: string, kindModifiers: string, textSpan: FourSlash.TextSpan, displayParts: ts.SymbolDisplayPart[], documentation: ts.SymbolDisplayPart[], tags: ts.JSDocTagInfo[]) { @@ -1873,6 +1869,7 @@ export interface VerifyCodeFixAllOptions { fixAllDescription: string; newFileContent: NewFileContent; commands: readonly {}[]; + preferences?: ts.UserPreferences; } export interface VerifyRefactorOptions { @@ -1931,25 +1928,3 @@ export interface RenameOptions { readonly providePrefixAndSuffixTextForRename?: boolean; readonly quotePreference?: "auto" | "double" | "single"; } -export type BaselineCommandWithMarkerOrRange = { - type: "findAllReferences" | "goToDefinition" | "getDefinitionAtPosition" | "goToSourceDefinition" | "goToType" | "goToImplementation"; - markerOrRange?: ArrayOrSingle; - rangeText?: ArrayOrSingle; -} | { - type: "findRenameLocations"; - markerOrRange?: ArrayOrSingle; - rangeText?: ArrayOrSingle; - options?: RenameOptions; -} | { - type: "documentHighlights"; - markerOrRange?: ArrayOrSingle; - rangeText?: ArrayOrSingle; - options?: VerifyDocumentHighlightsOptions; -}; -export type BaselineCommand = BaselineCommandWithMarkerOrRange | { - type: "getFileReferences"; - fileName: ArrayOrSingle; -} | { - type: "customWork"; - work: () => string | undefined; -}; diff --git a/src/harness/harnessIO.ts b/src/harness/harnessIO.ts index 3ef0e2d0bea..298d8310161 100644 --- a/src/harness/harnessIO.ts +++ b/src/harness/harnessIO.ts @@ -262,7 +262,7 @@ export namespace Compiler { export const es2015DefaultLibFileName = "lib.es2015.d.ts"; // Cache of lib files from "built/local" - let libFileNameSourceFileMap: Map | undefined; + export let libFileNameSourceFileMap: Map | undefined; export function getDefaultLibrarySourceFile(fileName = defaultLibFileName): ts.SourceFile | undefined { if (!isDefaultLibraryFile(fileName)) { diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 3760206090a..b5dd1318f5e 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -14,6 +14,14 @@ import * as vpath from "./_namespaces/vpath"; import { incrementalVerifier, } from "./incrementalUtils"; +import { + createLoggerWithInMemoryLogs, + HarnessLSCouldNotResolveModule, + Logger, +} from "./tsserverLogger"; +import { + createWatchUtils, +} from "./watchUtils"; export function makeDefaultProxy(info: ts.server.PluginCreateInfo): ts.LanguageService { const proxy = Object.create(/*o*/ null); // eslint-disable-line no-null/no-null @@ -122,6 +130,7 @@ export interface LanguageServiceAdapter { getLanguageService(): ts.LanguageService; getClassifier(): ts.Classifier; getPreProcessedFileInfo(fileName: string, fileContents: string): ts.PreProcessedFileInfo; + getLogger(): Logger | undefined; } export abstract class LanguageServiceAdapterHost { @@ -326,6 +335,7 @@ class NativeLanguageServiceHost extends LanguageServiceAdapterHost implements ts export class NativeLanguageServiceAdapter implements LanguageServiceAdapter { private host: NativeLanguageServiceHost; + getLogger = ts.returnUndefined; constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { this.host = new NativeLanguageServiceHost(cancellationToken, options); } @@ -370,10 +380,18 @@ class SessionClientHost extends NativeLanguageServiceHost implements ts.server.S } } -class SessionServerHost implements ts.server.ServerHost, ts.server.Logger { +interface ServerHostFileWatcher { + cb: ts.FileWatcherCallback; + pollingInterval: ts.PollingInterval; +} +interface ServerHostDirectoryWatcher { + cb: ts.DirectoryWatcherCallback; +} +class SessionServerHost implements ts.server.ServerHost { args: string[] = []; newLine: string; useCaseSensitiveFileNames = false; + watchUtils = createWatchUtils("watchedFiles", "watchedDirectories"); constructor(private host: NativeLanguageServiceHost) { this.newLine = this.host.getNewLine(); @@ -440,61 +458,28 @@ class SessionServerHost implements ts.server.ServerHost, ts.server.Logger { return this.host.readDirectory(path, extensions, exclude, include, depth); } - watchFile(): ts.FileWatcher { - return { close: ts.noop }; + watchFile(file: string, cb: ts.FileWatcherCallback, pollingInterval: ts.PollingInterval) { + return this.watchUtils.pollingWatch(file, { cb, pollingInterval }); } - watchDirectory(): ts.FileWatcher { - return { close: ts.noop }; + watchDirectory(dir: string, cb: ts.DirectoryWatcherCallback, recursive: boolean): ts.FileWatcher { + return this.watchUtils.fsWatch(dir, recursive, { cb }); } - close = ts.noop; - - info(message: string): void { - this.host.log(message); + setTimeout(_callback: (...args: any[]) => void, _ms: number, ..._args: any[]): any { + // Currently none of the tests use this and we would want something thats deterministic like unittests where we tell which callbacks to invoke } - msg(message: string): void { - this.host.log(message); + clearTimeout(_timeoutId: any): void { + // Currently none of the tests use this and we would want something thats deterministic like unittests where we tell which callbacks to invoke } - loggingEnabled() { - return true; + setImmediate(_callback: (...args: any[]) => void, ..._args: any[]): any { + // Currently none of the tests use this and we would want something thats deterministic like unittests where we tell which callbacks to invoke } - getLogFileName(): string | undefined { - return undefined; - } - - hasLevel() { - return false; - } - - startGroup() { - throw ts.notImplemented(); - } - endGroup() { - throw ts.notImplemented(); - } - - perftrc(message: string): void { - return this.host.log(message); - } - - setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any { - return setTimeout(callback, ms, ...args); - } - - clearTimeout(timeoutId: any): void { - clearTimeout(timeoutId); - } - - setImmediate(callback: (...args: any[]) => void, _ms: number, ...args: any[]): any { - return setImmediate(callback, args); - } - - clearImmediate(timeoutId: any): void { - clearImmediate(timeoutId); + clearImmediate(_timeoutId: any): void { + // Currently none of the tests use this and we would want something thats deterministic like unittests where we tell which callbacks to invoke } createHash(s: string) { @@ -597,22 +582,36 @@ class SessionServerHost implements ts.server.ServerHost, ts.server.Logger { default: return { module: undefined, - error: new Error("Could not resolve module"), + error: new Error(HarnessLSCouldNotResolveModule), }; } } } class FourslashSession extends ts.server.Session { + constructor(opts: ts.server.SessionOptions, readonly baselineHost: (when: string) => void) { + super(opts); + } getText(fileName: string) { return ts.getSnapshotText(this.projectService.getDefaultProjectForFile(ts.server.toNormalizedPath(fileName), /*ensureProject*/ true)!.getScriptSnapshot(fileName)!); } + + protected override toStringMessage(message: string): string { + return JSON.stringify(JSON.parse(message), undefined, 2); + } + + public override onMessage(message: string): void { + this.baselineHost("Before Request"); + super.onMessage(message); + this.baselineHost("After Request"); + } } export class ServerLanguageServiceAdapter implements LanguageServiceAdapter { private host: SessionClientHost; private client: ts.server.SessionClient; private server: FourslashSession; + private logger: Logger; constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { // This is the main host that tests use to direct tests const clientHost = new SessionClientHost(cancellationToken, options); @@ -621,6 +620,7 @@ export class ServerLanguageServiceAdapter implements LanguageServiceAdapter { // This host is just a proxy for the clientHost, it uses the client // host to answer server queries about files on disk const serverHost = new SessionServerHost(clientHost); + this.logger = createLoggerWithInMemoryLogs(serverHost, /*sanitizeLibs*/ true); const opts: ts.server.SessionOptions = { host: serverHost, cancellationToken: ts.server.nullCancellationToken, @@ -629,11 +629,17 @@ export class ServerLanguageServiceAdapter implements LanguageServiceAdapter { typingsInstaller: { ...ts.server.nullTypingsInstaller, globalTypingsCacheLocation: "/Library/Caches/typescript" }, byteLength: Buffer.byteLength, hrtime: process.hrtime, - logger: serverHost, + logger: this.logger, canUseEvents: true, incrementalVerifier, }; - this.server = new FourslashSession(opts); + this.server = new FourslashSession(opts, when => { + const baseline = serverHost.watchUtils.serializeWatches(); + if (baseline.length) { + this.logger.log(when); + baseline.forEach(s => this.logger.log(s)); + } + }); // Fake the connection between the client and the server serverHost.writeMessage = client.onMessage.bind(client); @@ -647,6 +653,9 @@ export class ServerLanguageServiceAdapter implements LanguageServiceAdapter { this.client = client; this.host = clientHost; } + getLogger() { + return this.logger; + } getHost() { return this.host; } diff --git a/src/harness/incrementalUtils.ts b/src/harness/incrementalUtils.ts index bb27be203e2..742e0a88d8f 100644 --- a/src/harness/incrementalUtils.ts +++ b/src/harness/incrementalUtils.ts @@ -264,7 +264,7 @@ export function verifyResolutionCache( resolutionToExpected.get(resolution)!.refCount === resolution.refCount, `${projectName}:: Expected Resolution ref count ${resolutionToExpected.get(resolution)!.refCount} but got ${resolution.refCount}`, ); - verifySet(resolutionToExpected.get(resolution)!.files, resolution.files, `Resolution files`); + verifySet(resolutionToExpected.get(resolution)!.files, resolution.files, `${projectName}:: Resolution files`); }); verifyMapOfResolutionSet(expected.resolvedFileToResolution, actual.resolvedFileToResolution, `resolvedFileToResolution`); verifyResolutionSet(expected.resolutionsWithFailedLookups, actual.resolutionsWithFailedLookups, `resolutionsWithFailedLookups`); @@ -273,6 +273,7 @@ export function verifyResolutionCache( verifyFileWatchesOfAffectingLocations(expected.fileWatchesOfAffectingLocations, actual.fileWatchesOfAffectingLocations); // Stop watching resolutions to verify everything gets closed. + expected.startCachingPerDirectoryResolution(); actual.resolvedModuleNames.forEach((_resolutions, path) => expected.removeResolutionsOfFile(path)); actual.resolvedTypeReferenceDirectives.forEach((_resolutions, path) => expected.removeResolutionsOfFile(path)); expected.finishCachingPerDirectoryResolution(/*newProgram*/ undefined, actualProgram); @@ -339,35 +340,6 @@ export function verifyResolutionCache( return expectedResolution; } - function verifyMap( - expected: Map | undefined, - actual: Map | undefined, - verifyValue: (expected: Expected | undefined, actual: Actual | undefined, key: string) => void, - caption: string, - ) { - expected?.forEach((expected, path) => verifyValue(expected, actual?.get(path), `${caption}:: ${path}`)); - actual?.forEach((actual, path) => verifyValue(expected?.get(path), actual, `${caption}:: ${path}`)); - } - - function verifySet( - expected: Set | undefined, - actual: Set | undefined, - caption: string, - ) { - expected?.forEach(expected => - ts.Debug.assert( - actual?.has(expected), - `${projectName}:: ${caption}:: Expected should be present in actual`, - ) - ); - actual?.forEach(actual => - ts.Debug.assert( - expected?.has(actual), - `${projectName}:: ${caption}:: Actual should be present in expected`, - ) - ); - } - function verifyMapOfResolutionSet( expected: Map> | undefined, actual: Map> | undefined, @@ -421,6 +393,35 @@ export function verifyResolutionCache( } } +function verifyMap( + expected: Map | undefined, + actual: Map | undefined, + verifyValue: (expected: Expected | undefined, actual: Actual | undefined, key: string) => void, + caption: string, +) { + expected?.forEach((expected, path) => verifyValue(expected, actual?.get(path), `${caption}:: ${path}`)); + actual?.forEach((actual, path) => verifyValue(expected?.get(path), actual, `${caption}:: ${path}`)); +} + +function verifySet( + expected: Set | undefined, + actual: Set | undefined, + caption: string, +) { + expected?.forEach(expected => + ts.Debug.assert( + actual?.has(expected), + `${caption}:: Expected should be present in actual`, + ) + ); + actual?.forEach(actual => + ts.Debug.assert( + expected?.has(actual), + `${caption}:: Actual should be present in expected`, + ) + ); +} + function verifyProgram(service: ts.server.ProjectService, project: ts.server.Project) { if (service.serverMode === ts.LanguageServiceMode.Syntactic) return; const options = project.getCompilerOptions(); @@ -510,6 +511,74 @@ function verifyProgram(service: ts.server.ProjectService, project: ts.server.Pro verifyResolutionCache(project.resolutionCache, project.getCurrentProgram()!, resolutionHostCacheHost, project.projectName); } +interface ResolveSingleModuleNameWithoutWatchingData { + resolutionToData: Map>; + packageJsonMap: Map | undefined; +} + +function beforeResolveSingleModuleNameWithoutWatching( + moduleResolutionCache: ts.ModuleResolutionCache, +): ResolveSingleModuleNameWithoutWatchingData { + const resolutionToData: ResolveSingleModuleNameWithoutWatchingData["resolutionToData"] = new Map(); + // Currently it doesnt matter if moduleResolutionCache itself changes or not so just verify resolutions: + moduleResolutionCache.directoryToModuleNameMap.getOwnMap().forEach(cache => { + cache.forEach(resolution => { + if (resolutionToData.has(resolution)) return; + resolutionToData.set(resolution, { + failedLookupLocations: resolution.failedLookupLocations?.slice(), + affectingLocations: resolution.affectingLocations?.slice(), + resolutionDiagnostics: resolution.resolutionDiagnostics?.slice(), + }); + }); + }); + + // We also care about package json info cache + const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap(); + return { + resolutionToData, + packageJsonMap: packageJsonMap && new Map(packageJsonMap), + }; +} + +function afterResolveSingleModuleNameWithoutWatching( + moduleResolutionCache: ts.ModuleResolutionCache, + moduleName: string, + containingFile: string, + result: ts.ResolvedModuleWithFailedLookupLocations, + data: ResolveSingleModuleNameWithoutWatchingData, +) { + const existing = data.resolutionToData.get(result); + if (existing) { + verifyArrayLength(existing.failedLookupLocations, result.failedLookupLocations, "failedLookupLocations"); + verifyArrayLength(existing.affectingLocations, result.affectingLocations, "affectingLocations"); + verifyArrayLength(existing.resolutionDiagnostics, result.resolutionDiagnostics, "resolutionDiagnostics"); + } + + verifyMap( + data.packageJsonMap, + moduleResolutionCache.getPackageJsonInfoCache().getInternalMap(), + (expected, actual, caption) => ts.Debug.assert(expected === actual, caption), + `Expected packageJsonInfo to not change: ${moduleName} ${containingFile}`, + ); + + function verifyArrayLength(expected: T[] | undefined, actual: T[] | undefined, caption: string) { + ts.Debug.assert( + expected?.length === actual?.length, + `Expected ${caption} to not change: ${moduleName} ${containingFile}`, + () => + `Expected: ${JSON.stringify(expected, undefined, " ")}` + + `Actual: ${JSON.stringify(actual, undefined, " ")}`, + ); + } +} + +function onProjectCreation(project: ts.server.Project) { + if (project.projectKind !== ts.server.ProjectKind.Auxiliary) return; + + (project as ts.ResolutionCacheHost).beforeResolveSingleModuleNameWithoutWatching = beforeResolveSingleModuleNameWithoutWatching; + (project as ts.ResolutionCacheHost).afterResolveSingleModuleNameWithoutWatching = afterResolveSingleModuleNameWithoutWatching; +} + export interface IncrementalVerifierCallbacks { beforeVerification?(): any; afterVerification?(dataFromBefore: any): void; @@ -518,6 +587,7 @@ export interface IncrementalVerifierCallbacks { export function incrementalVerifier(service: ts.server.ProjectService) { service.verifyDocumentRegistry = withIncrementalVerifierCallbacks(service, verifyDocumentRegistry); service.verifyProgram = withIncrementalVerifierCallbacks(service, verifyProgram); + service.onProjectCreation = onProjectCreation; } function withIncrementalVerifierCallbacks( diff --git a/src/harness/tsserverLogger.ts b/src/harness/tsserverLogger.ts new file mode 100644 index 00000000000..ccc166fe1d3 --- /dev/null +++ b/src/harness/tsserverLogger.ts @@ -0,0 +1,150 @@ +import * as ts from "./_namespaces/ts"; +import { + Compiler, +} from "./harnessIO"; + +export const HarnessLSCouldNotResolveModule = "HarnessLanguageService:: Could not resolve module"; + +export function replaceAll(source: string, searchValue: string, replaceValue: string): string { + let result: string | undefined = (source as string & { replaceAll: typeof source.replace; }).replaceAll?.(searchValue, replaceValue); + + if (result !== undefined) { + return result; + } + + result = ""; + const searchLength = searchValue.length; + while (true) { + const index = source.indexOf(searchValue); + if (index < 0) { + break; + } + result += source.slice(0, index); + result += replaceValue; + source = source.slice(index + searchLength); + } + result += source; + return result; +} + +export interface Logger extends ts.server.Logger { + logs?: string[]; + log(s: string): void; + host?: ts.server.ServerHost; +} + +export function nullLogger(): Logger { + return { + close: ts.noop, + hasLevel: ts.returnFalse, + loggingEnabled: ts.returnFalse, + perftrc: ts.noop, + info: ts.noop, + msg: ts.noop, + startGroup: ts.noop, + endGroup: ts.noop, + getLogFileName: ts.returnUndefined, + log: ts.noop, + isTestLogger: true, + }; +} + +export function createHasErrorMessageLogger(): Logger { + return { + ...nullLogger(), + msg: (s, type) => ts.Debug.fail(`Error: ${s}, type: ${type}`), + }; +} +function handleLoggerGroup(logger: Logger): Logger { + let inGroup = false; + let firstInGroup = false; + logger.startGroup = () => { + inGroup = true; + firstInGroup = true; + }; + logger.endGroup = () => inGroup = false; + const originalInfo = logger.info; + logger.info = s => msg(s, ts.server.Msg.Info, s => originalInfo.call(logger, s)); + logger.log = s => originalInfo.call(logger, s); + return logger; + + function msg(s: string, type = ts.server.Msg.Err, write: (s: string) => void) { + s = `[${nowString(logger)}] ${s}`; + if (!inGroup || firstInGroup) s = padStringRight(type + " seq", " ") + s; + if (ts.Debug.isDebugging) console.log(s); + write(s); + } + + function padStringRight(str: string, padding: string) { + return (str + padding).slice(0, padding.length); + } +} + +export function nowString(logger: Logger) { + // E.g. "12:34:56.789" + logger.host?.now?.(); // To increment the time but not print it to avoid the baseline updates + return `hh:mm:ss:mss`; +} + +export function createLoggerWritingToConsole(host: ts.server.ServerHost) { + return handleLoggerGroup({ + ...nullLogger(), + hasLevel: ts.returnTrue, + loggingEnabled: ts.returnTrue, + perftrc: s => console.log(s), + info: s => console.log(s), + msg: (s, type) => console.log(`${type}:: ${s}`), + host, + }); +} + +export function sanitizeLog(s: string): string { + s = s.replace(/Elapsed::?\s*\d+(?:\.\d+)?ms/g, "Elapsed:: *ms"); + s = s.replace(/"updateGraphDurationMs":\s*\d+(?:\.\d+)?/g, `"updateGraphDurationMs": *`); + s = s.replace(/"createAutoImportProviderProgramDurationMs":\s*\d+(?:\.\d+)?/g, `"createAutoImportProviderProgramDurationMs": *`); + s = replaceAll(s, ts.version, "FakeVersion"); + s = s.replace(/getCompletionData: Get current token: \d+(?:\.\d+)?/g, `getCompletionData: Get current token: *`); + s = s.replace(/getCompletionData: Is inside comment: \d+(?:\.\d+)?/g, `getCompletionData: Is inside comment: *`); + s = s.replace(/getCompletionData: Get previous token: \d+(?:\.\d+)?/g, `getCompletionData: Get previous token: *`); + s = s.replace(/getCompletionsAtPosition: isCompletionListBlocker: \d+(?:\.\d+)?/g, `getCompletionsAtPosition: isCompletionListBlocker: *`); + s = s.replace(/getCompletionData: Semantic work: \d+(?:\.\d+)?/g, `getCompletionData: Semantic work: *`); + s = s.replace(/getCompletionsAtPosition: getCompletionEntriesFromSymbols: \d+(?:\.\d+)?/g, `getCompletionsAtPosition: getCompletionEntriesFromSymbols: *`); + s = s.replace(/forEachExternalModuleToImportFrom autoImportProvider: \d+(?:\.\d+)?/g, `forEachExternalModuleToImportFrom autoImportProvider: *`); + s = s.replace(/getExportInfoMap: done in \d+(?:\.\d+)?/g, `getExportInfoMap: done in *`); + s = s.replace(/collectAutoImports: \d+(?:\.\d+)?/g, `collectAutoImports: *`); + s = s.replace(/continuePreviousIncompleteResponse: \d+(?:\.\d+)?/g, `continuePreviousIncompleteResponse: *`); + s = s.replace(/dependencies in \d+(?:\.\d+)?/g, `dependencies in *`); + s = s.replace(/"exportMapKey":\s*"\d+ \d+ /g, match => match.replace(/ \d+ /, ` * `)); + s = s.replace(/getIndentationAtPosition: getCurrentSourceFile: \d+(?:\.\d+)?/, `getIndentationAtPosition: getCurrentSourceFile: *`); + s = s.replace(/getIndentationAtPosition: computeIndentation\s*: \d+(?:\.\d+)?/, `getIndentationAtPosition: computeIndentation: *`); + s = sanitizeHarnessLSException(s); + return s; +} + +function sanitizeHarnessLSException(s: string) { + const index = s.indexOf(HarnessLSCouldNotResolveModule); + if (index > 0) s = s.substring(0, index) + HarnessLSCouldNotResolveModule; + return s; +} + +export function sanitizeLibFileText(s: string): string { + Compiler.libFileNameSourceFileMap?.forEach((lib, fileName) => { + s = replaceAll(s, JSON.stringify(lib.text), `${fileName}-Text`); + s = replaceAll(s, lib.text, `${fileName}-Text`); + }); + return s; +} + +export function createLoggerWithInMemoryLogs(host: ts.server.ServerHost, sanitizeLibs?: true): Logger { + const logger = createHasErrorMessageLogger(); + const logs: string[] = []; + if (host) logs.push(`currentDirectory:: ${host.getCurrentDirectory()} useCaseSensitiveFileNames: ${host.useCaseSensitiveFileNames}`); + return handleLoggerGroup({ + ...logger, + logs, + hasLevel: ts.returnTrue, + loggingEnabled: ts.returnTrue, + info: s => logs.push((sanitizeLibs ? sanitizeLibFileText : ts.identity)(sanitizeLog(s))), + host, + }); +} diff --git a/src/harness/watchUtils.ts b/src/harness/watchUtils.ts new file mode 100644 index 00000000000..f05c81ae2ae --- /dev/null +++ b/src/harness/watchUtils.ts @@ -0,0 +1,147 @@ +import { + arrayFrom, + compareStringsCaseSensitive, + contains, + createMultiMap, + Debug, + FileWatcher, + FileWatcherCallback, + MultiMap, + PollingInterval, +} from "./_namespaces/ts"; + +export interface TestFileWatcher { + cb: FileWatcherCallback; + pollingInterval: PollingInterval; +} + +export interface TestFsWatcher { + cb: DirCallback; + inode: number | undefined; +} + +export interface WatchUtils { + pollingWatches: MultiMap; + fsWatches: MultiMap; + fsWatchesRecursive: MultiMap; + pollingWatch(path: Path, data: PollingWatcherData): FileWatcher; + fsWatch(path: Path, recursive: boolean, data: FsWatcherData): FileWatcher; + serializeWatches(baseline?: string[]): string[]; + getHasWatchChanges(): boolean; + setHasWatchChanges(): void; +} + +export function createWatchUtils( + pollingWatchesName: string, + fsWatchesName: string, +): WatchUtils { + const pollingWatches = createMultiMap(); + const fsWatches = createMultiMap(); + const fsWatchesRecursive = createMultiMap(); + + let hasWatchChanges = false; + + let serializedPollingWatches: Map | undefined; + let serializedFsWatches: Map | undefined; + let serializedFsWatchesRecursive: Map | undefined; + + return { + pollingWatches, + fsWatches, + fsWatchesRecursive, + pollingWatch, + fsWatch, + serializeWatches, + getHasWatchChanges: () => hasWatchChanges, + setHasWatchChanges: () => hasWatchChanges = true, + }; + + function createWatcher(map: MultiMap, path: Path, callback: T): FileWatcher { + hasWatchChanges = true; + map.add(path, callback); + let closed = false; + return { + close: () => { + Debug.assert(!closed); + map.remove(path, callback); + hasWatchChanges = true; + closed = true; + }, + }; + } + + function pollingWatch(path: Path, data: PollingWatcherData) { + return createWatcher( + pollingWatches, + path, + data, + ); + } + + function fsWatch(path: Path, recursive: boolean, data: FsWatcherData) { + return createWatcher( + recursive ? fsWatchesRecursive : fsWatches, + path, + data, + ); + } + + function serializeWatches(baseline: string[] = []) { + if (!hasWatchChanges) return baseline; + serializedPollingWatches = serializeMultiMap(baseline, pollingWatchesName, pollingWatches, serializedPollingWatches); + serializedFsWatches = serializeMultiMap(baseline, fsWatchesName, fsWatches, serializedFsWatches); + serializedFsWatchesRecursive = serializeMultiMap(baseline, `${fsWatchesName}Recursive`, fsWatchesRecursive, serializedFsWatchesRecursive); + hasWatchChanges = false; + return baseline; + } +} + +export function serializeMultiMap(baseline: string[], caption: string, multiMap: MultiMap, serialized: Map | undefined) { + let hasChange = diffMap(baseline, caption, multiMap, serialized, /*deleted*/ false); + hasChange = diffMap(baseline, caption, serialized, multiMap, /*deleted*/ true) || hasChange; + if (hasChange) { + serialized = new Map(); + multiMap.forEach((value, key) => serialized!.set(key, new Array(...value))); + } + return serialized; +} + +function diffMap( + baseline: string[], + caption: string, + map: Map | undefined, + old: Map | undefined, + deleted: boolean, +) { + let captionAdded = false; + let baselineChanged = false; + let hasChange = false; + if (map) { + for (const key of arrayFrom(map.keys()).sort(compareStringsCaseSensitive)) { + const existing = old?.get(key); + let addedKey = false; + const values = map.get(key)!; + for (const value of values) { + const hasExisting = contains(existing, value); + if (deleted && hasExisting) continue; + if (!hasExisting) hasChange = true; + if (!addedKey) { + addBaseline(`${key}:${deleted || existing ? "" : " *new*"}`); + addedKey = true; + } + addBaseline(` ${JSON.stringify(value)}${deleted || hasExisting || !existing ? "" : " *new*"}`); + } + } + } + if (baselineChanged) baseline.push(""); + return hasChange; + + function addBaseline(s: string) { + if (!captionAdded) { + baseline.push(`${caption}${deleted ? " *deleted*" : ""}::`); + captionAdded = true; + } + baseline.push(s); + baselineChanged = true; + } +} diff --git a/src/jsTyping/jsTyping.ts b/src/jsTyping/jsTyping.ts index b2c186d6ede..7416918ef87 100644 --- a/src/jsTyping/jsTyping.ts +++ b/src/jsTyping/jsTyping.ts @@ -30,6 +30,9 @@ import { Version, versionMajorMinor, } from "./_namespaces/ts"; +import { + stringifyIndented, +} from "./_namespaces/ts.server"; export interface TypingResolutionHost { directoryExists(path: string): boolean; @@ -174,7 +177,7 @@ export function discoverTypings( } // A typing name to typing file path mapping - const inferredTypings = new Map(); + const inferredTypings = new Map(); // Only infer typings for .js and .jsx files fileNames = mapDefined(fileNames, fileName => { @@ -211,24 +214,24 @@ export function discoverTypings( ); addInferredTypings(module, "Inferred typings from unresolved imports"); } - // Add the cached typing locations for inferred typings that are already installed - packageNameToTypingLocation.forEach((typing, name) => { - const registryEntry = typesRegistry.get(name); - if (inferredTypings.has(name) && inferredTypings.get(name) === undefined && registryEntry !== undefined && isTypingUpToDate(typing, registryEntry)) { - inferredTypings.set(name, typing.typingLocation); - } - }); - // Remove typings that the user has added to the exclude list for (const excludeTypingName of exclude) { const didDelete = inferredTypings.delete(excludeTypingName); if (didDelete && log) log(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`); } + // Add the cached typing locations for inferred typings that are already installed + packageNameToTypingLocation.forEach((typing, name) => { + const registryEntry = typesRegistry.get(name); + if (inferredTypings.get(name) === false && registryEntry !== undefined && isTypingUpToDate(typing, registryEntry)) { + inferredTypings.set(name, typing.typingLocation); + } + }); + const newTypingNames: string[] = []; const cachedTypingPaths: string[] = []; inferredTypings.forEach((inferred, typing) => { - if (inferred !== undefined) { + if (inferred) { cachedTypingPaths.push(inferred); } else { @@ -236,12 +239,12 @@ export function discoverTypings( } }); const result = { cachedTypingPaths, newTypingNames, filesToWatch }; - if (log) log(`Result: ${JSON.stringify(result)}`); + if (log) log(`Finished typings discovery:${stringifyIndented(result)}`); return result; function addInferredTyping(typingName: string) { if (!inferredTypings.has(typingName)) { - inferredTypings.set(typingName, undefined!); // TODO: GH#18217 + inferredTypings.set(typingName, false); } } function addInferredTypings(typingNames: readonly string[], message: string) { diff --git a/src/jsTyping/shared.ts b/src/jsTyping/shared.ts index 09deb0fc2c5..ef332009189 100644 --- a/src/jsTyping/shared.ts +++ b/src/jsTyping/shared.ts @@ -65,3 +65,19 @@ export function nowString() { const d = new Date(); return `${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}:${d.getSeconds().toString().padStart(2, "0")}.${d.getMilliseconds().toString().padStart(3, "0")}`; } + +const indentStr = "\n "; + +/** @internal */ +export function indent(str: string): string { + return indentStr + str.replace(/\n/g, indentStr); +} + +/** + * Put stringified JSON on the next line, indented. + * + * @internal + */ +export function stringifyIndented(json: {}): string { + return indent(JSON.stringify(json, undefined, 2)); +} diff --git a/src/lib/es2023.array.d.ts b/src/lib/es2023.array.d.ts index 8ccbca44bb8..d3219753355 100644 --- a/src/lib/es2023.array.d.ts +++ b/src/lib/es2023.array.d.ts @@ -191,7 +191,7 @@ interface Int8Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Uint8Array.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] @@ -255,7 +255,7 @@ interface Uint8Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Uint8Array.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] @@ -327,7 +327,7 @@ interface Uint8ClampedArray { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22] @@ -391,7 +391,7 @@ interface Int16Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Int16Array.from([11, 2, -22, 1]); * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11] @@ -463,7 +463,7 @@ interface Uint16Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Uint16Array.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22] @@ -527,7 +527,7 @@ interface Int32Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Int32Array.from([11, 2, -22, 1]); * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11] @@ -599,7 +599,7 @@ interface Uint32Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Uint32Array.from([11, 2, 22, 1]); * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22] @@ -671,7 +671,7 @@ interface Float32Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Float32Array.from([11.25, 2, -22.5, 1]); * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5] @@ -743,7 +743,7 @@ interface Float64Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = Float64Array.from([11.25, 2, -22.5, 1]); * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5] @@ -815,7 +815,7 @@ interface BigInt64Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]); * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n] @@ -887,7 +887,7 @@ interface BigUint64Array { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. + * value otherwise. If omitted, the elements are sorted in ascending order. * ```ts * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]); * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n] diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 9f3da93b674..e365a1212bb 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -14,7 +14,6 @@ import { CommandLineOption, CompilerOptions, CompletionInfo, - ConfigFileProgramReloadLevel, contains, containsPath, convertCompilerOptionsForTelemetry, @@ -95,6 +94,7 @@ import { PerformanceEvent, PluginImport, PollingInterval, + ProgramUpdateLevel, ProjectPackageJsonInfo, ProjectReference, ReadMapFile, @@ -140,6 +140,7 @@ import { ActionSet, asNormalizedPath, AutoImportProviderProject, + AuxiliaryProject, BeginEnablePluginResult, BeginInstallTypes, ConfiguredProject, @@ -153,6 +154,7 @@ import { hasNoTypeScriptSource, InferredProject, InvalidateCachedTypings, + isBackgroundProject, isConfiguredProject, isDynamicFileName, isInferredProject, @@ -874,7 +876,7 @@ export interface ParsedConfig { * true if watchedDirectories need to be updated as per parsedCommandLine's updated watched directories */ watchedDirectoriesStale?: boolean; - reloadLevel?: ConfigFileProgramReloadLevel.Partial | ConfigFileProgramReloadLevel.Full; + updateLevel?: ProgramUpdateLevel.RootNamesAndUpdate | ProgramUpdateLevel.Full; } function createProjectNameFactoryWithCounter(nameFactory: (counter: number) => string) { @@ -1129,6 +1131,7 @@ export class ProjectService { /** @internal */ verifyDocumentRegistry = noop; /** @internal */ verifyProgram: (project: Project) => void = noop; + /** @internal */ onProjectCreation: (project: Project) => void = noop; readonly jsDocParsingMode: JSDocParsingMode | undefined; @@ -1325,15 +1328,14 @@ export class ProjectService { private delayUpdateProjectGraph(project: Project) { project.markAsDirty(); - if (project.projectKind !== ProjectKind.AutoImportProvider && project.projectKind !== ProjectKind.Auxiliary) { - const projectName = project.getProjectName(); - this.pendingProjectUpdates.set(projectName, project); - this.throttledOperations.schedule(projectName, /*delay*/ 250, () => { - if (this.pendingProjectUpdates.delete(projectName)) { - updateProjectIfDirty(project); - } - }); - } + if (isBackgroundProject(project)) return; + const projectName = project.getProjectName(); + this.pendingProjectUpdates.set(projectName, project); + this.throttledOperations.schedule(projectName, /*delay*/ 250, () => { + if (this.pendingProjectUpdates.delete(projectName)) { + updateProjectIfDirty(project); + } + }); } /** @internal */ @@ -1671,7 +1673,7 @@ export class ProjectService { ) return; // Reload is pending, do the reload - if (config.reloadLevel !== ConfigFileProgramReloadLevel.Full) config.reloadLevel = ConfigFileProgramReloadLevel.Partial; + if (config.updateLevel !== ProgramUpdateLevel.Full) config.updateLevel = ProgramUpdateLevel.RootNamesAndUpdate; config.projects.forEach((watchWildcardDirectories, projectCanonicalPath) => { if (!watchWildcardDirectories) return; const project = this.getConfiguredProjectByCanonicalConfigFilePath(projectCanonicalPath); @@ -1679,23 +1681,23 @@ export class ProjectService { // Load root file names for configured project with the config file name // But only schedule update if project references this config file - const reloadLevel = configuredProjectForConfig === project ? ConfigFileProgramReloadLevel.Partial : ConfigFileProgramReloadLevel.None; - if (project.pendingReload !== undefined && project.pendingReload > reloadLevel) return; + const updateLevel = configuredProjectForConfig === project ? ProgramUpdateLevel.RootNamesAndUpdate : ProgramUpdateLevel.Update; + if (project.pendingUpdateLevel !== undefined && project.pendingUpdateLevel > updateLevel) return; // don't trigger callback on open, existing files if (this.openFiles.has(fileOrDirectoryPath)) { const info = Debug.checkDefined(this.getScriptInfoForPath(fileOrDirectoryPath)); if (info.isAttached(project)) { - const loadLevelToSet = Math.max(reloadLevel, project.openFileWatchTriggered.get(fileOrDirectoryPath) || ConfigFileProgramReloadLevel.None) as ConfigFileProgramReloadLevel; + const loadLevelToSet = Math.max(updateLevel, project.openFileWatchTriggered.get(fileOrDirectoryPath) || ProgramUpdateLevel.Update) as ProgramUpdateLevel; project.openFileWatchTriggered.set(fileOrDirectoryPath, loadLevelToSet); } else { - project.pendingReload = reloadLevel; + project.pendingUpdateLevel = updateLevel; this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(project); } } else { - project.pendingReload = reloadLevel; + project.pendingUpdateLevel = updateLevel; this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(project); } }); @@ -1708,12 +1710,12 @@ export class ProjectService { } /** @internal */ - private delayUpdateProjectsFromParsedConfigOnConfigFileChange(canonicalConfigFilePath: NormalizedPath, reloadReason: string) { + private delayUpdateProjectsFromParsedConfigOnConfigFileChange(canonicalConfigFilePath: NormalizedPath, loadReason: string) { const configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath); if (!configFileExistenceInfo?.config) return false; let scheduledAnyProjectUpdate = false; // Update projects watching cached config - configFileExistenceInfo.config.reloadLevel = ConfigFileProgramReloadLevel.Full; + configFileExistenceInfo.config.updateLevel = ProgramUpdateLevel.Full; configFileExistenceInfo.config.projects.forEach((_watchWildcardDirectories, projectCanonicalPath) => { const project = this.getConfiguredProjectByCanonicalConfigFilePath(projectCanonicalPath); @@ -1723,8 +1725,8 @@ export class ProjectService { if (projectCanonicalPath === canonicalConfigFilePath) { // Skip refresh if project is not yet loaded if (project.isInitialLoadPending()) return; - project.pendingReload = ConfigFileProgramReloadLevel.Full; - project.pendingReloadReason = reloadReason; + project.pendingUpdateLevel = ProgramUpdateLevel.Full; + project.pendingUpdateReason = loadReason; this.delayUpdateProjectGraph(project); } else { @@ -1922,11 +1924,11 @@ export class ProjectService { // If project had open file affecting // Reload the root Files from config if its not already scheduled - const reloadLevel = p.openFileWatchTriggered.get(info.path); - if (reloadLevel !== undefined) { + const updateLevel = p.openFileWatchTriggered.get(info.path); + if (updateLevel !== undefined) { p.openFileWatchTriggered.delete(info.path); - if (p.pendingReload !== undefined && p.pendingReload < reloadLevel) { - p.pendingReload = reloadLevel; + if (p.pendingUpdateLevel !== undefined && p.pendingUpdateLevel < updateLevel) { + p.pendingUpdateLevel = updateLevel; p.markFileAsDirty(info.path); } } @@ -2418,6 +2420,7 @@ export class ProjectService { private addFilesToNonInferredProject(project: ConfiguredProject | ExternalProject, files: T[], propertyReader: FilePropertyReader, typeAcquisition: TypeAcquisition): void { this.updateNonInferredProjectFiles(project, files, propertyReader); project.setTypeAcquisition(typeAcquisition); + project.markAsDirty(); } /** @internal */ @@ -2438,7 +2441,7 @@ export class ProjectService { configFileExistenceInfo.config = { cachedDirectoryStructureHost: createCachedDirectoryStructureHost(this.host, this.host.getCurrentDirectory(), this.host.useCaseSensitiveFileNames)!, projects: new Map(), - reloadLevel: ConfigFileProgramReloadLevel.Full, + updateLevel: ProgramUpdateLevel.Full, }; } @@ -2457,8 +2460,8 @@ export class ProjectService { /** @internal */ private createConfiguredProjectWithDelayLoad(configFileName: NormalizedPath, reason: string) { const project = this.createConfiguredProject(configFileName); - project.pendingReload = ConfigFileProgramReloadLevel.Full; - project.pendingReloadReason = reason; + project.pendingUpdateLevel = ProgramUpdateLevel.Full; + project.pendingUpdateReason = reason; return project; } @@ -2521,7 +2524,7 @@ export class ProjectService { this.watchWildcards(configFilename, configFileExistenceInfo, project); } project.enablePluginsWithOptions(compilerOptions); - const filesToAdd = parsedCommandLine.fileNames.concat(project.getExternalFiles()); + const filesToAdd = parsedCommandLine.fileNames.concat(project.getExternalFiles(ProgramUpdateLevel.Full)); this.updateRootAndOptionsOfNonInferredProject(project, filesToAdd, fileNamePropertyReader, compilerOptions, parsedCommandLine.typeAcquisition!, parsedCommandLine.compileOnSave, parsedCommandLine.watchOptions); tracing?.pop(); } @@ -2529,8 +2532,8 @@ export class ProjectService { /** @internal */ ensureParsedConfigUptoDate(configFilename: NormalizedPath, canonicalConfigFilePath: NormalizedPath, configFileExistenceInfo: ConfigFileExistenceInfo, forProject: ConfiguredProject): ConfigFileExistenceInfo { if (configFileExistenceInfo.config) { - if (!configFileExistenceInfo.config.reloadLevel) return configFileExistenceInfo; - if (configFileExistenceInfo.config.reloadLevel === ConfigFileProgramReloadLevel.Partial) { + if (!configFileExistenceInfo.config.updateLevel) return configFileExistenceInfo; + if (configFileExistenceInfo.config.updateLevel === ProgramUpdateLevel.RootNamesAndUpdate) { this.reloadFileNamesOfParsedConfig(configFilename, configFileExistenceInfo.config); return configFileExistenceInfo; } @@ -2580,7 +2583,7 @@ export class ProjectService { else { configFileExistenceInfo.config.parsedCommandLine = parsedCommandLine; configFileExistenceInfo.config.watchedDirectoriesStale = true; - configFileExistenceInfo.config.reloadLevel = undefined; + configFileExistenceInfo.config.updateLevel = undefined; } // If watch options different than older options when setting for the first time, update the config file watcher @@ -2669,7 +2672,7 @@ export class ProjectService { configFileExistenceInfo.config.watchedDirectoriesStale = undefined; } - private updateNonInferredProjectFiles(project: Project, files: T[], propertyReader: FilePropertyReader) { + private updateNonInferredProjectFiles(project: Project, files: readonly T[], propertyReader: FilePropertyReader) { const projectRootFilesMap = project.getRootFilesMap(); const newRootScriptInfoMap = new Map(); @@ -2736,10 +2739,6 @@ export class ProjectService { } }); } - - // Just to ensure that even if root files dont change, the changes to the non root file are picked up, - // mark the project as dirty unconditionally - project.markAsDirty(); } private updateRootAndOptionsOfNonInferredProject(project: ExternalProject | ConfiguredProject, newUncheckedFiles: T[], propertyReader: FilePropertyReader, newOptions: CompilerOptions, newTypeAcquisition: TypeAcquisition, compileOnSave: boolean | undefined, watchOptions: WatchOptions | undefined) { @@ -2761,14 +2760,15 @@ export class ProjectService { reloadFileNamesOfConfiguredProject(project: ConfiguredProject) { const fileNames = this.reloadFileNamesOfParsedConfig(project.getConfigFilePath(), this.configFileExistenceInfoCache.get(project.canonicalConfigFilePath)!.config!); project.updateErrorOnNoInputFiles(fileNames); - this.updateNonInferredProjectFiles(project, fileNames.concat(project.getExternalFiles()), fileNamePropertyReader); + this.updateNonInferredProjectFiles(project, fileNames.concat(project.getExternalFiles(ProgramUpdateLevel.RootNamesAndUpdate)), fileNamePropertyReader); + project.markAsDirty(); return project.updateGraph(); } /** @internal */ private reloadFileNamesOfParsedConfig(configFileName: NormalizedPath, config: ParsedConfig) { - if (config.reloadLevel === undefined) return config.parsedCommandLine!.fileNames; - Debug.assert(config.reloadLevel === ConfigFileProgramReloadLevel.Partial); + if (config.updateLevel === undefined) return config.parsedCommandLine!.fileNames; + Debug.assert(config.updateLevel === ProgramUpdateLevel.RootNamesAndUpdate); const configFileSpecs = config.parsedCommandLine!.options.configFile!.configFileSpecs!; const fileNames = getFileNamesFromConfigSpecs( configFileSpecs, @@ -2782,7 +2782,7 @@ export class ProjectService { } /** @internal */ - setFileNamesOfAutoImportProviderProject(project: AutoImportProviderProject, fileNames: string[]) { + setFileNamesOfAutpImportProviderOrAuxillaryProject(project: AutoImportProviderProject | AuxiliaryProject, fileNames: readonly string[]) { this.updateNonInferredProjectFiles(project, fileNames, fileNamePropertyReader); } @@ -3398,7 +3398,7 @@ export class ProjectService { this.configuredProjects.forEach(project => { if ( project.hasExternalProjectRef() && - project.pendingReload === ConfigFileProgramReloadLevel.Full && + project.pendingUpdateLevel === ProgramUpdateLevel.Full && !this.pendingProjectUpdates.has(project.getProjectName()) ) { project.updateGraph(); @@ -3468,7 +3468,7 @@ export class ProjectService { // Ensure everything is reloaded for cached configs this.configFileExistenceInfoCache.forEach(info => { - if (info.config) info.config.reloadLevel = ConfigFileProgramReloadLevel.Full; + if (info.config) info.config.updateLevel = ProgramUpdateLevel.Full; }); // Reload Projects @@ -3517,8 +3517,8 @@ export class ProjectService { if (!updatedProjects.has(project.canonicalConfigFilePath)) { updatedProjects.set(project.canonicalConfigFilePath, true); if (delayReload) { - project.pendingReload = ConfigFileProgramReloadLevel.Full; - project.pendingReloadReason = reason; + project.pendingUpdateLevel = ProgramUpdateLevel.Full; + project.pendingUpdateReason = reason; if (clearSemanticCache) this.clearSemanticCache(project); this.delayUpdateProjectGraph(project); } diff --git a/src/server/project.ts b/src/server/project.ts index 8bffa1f281a..e0a21ed7701 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -17,7 +17,6 @@ import { CompilerHost, CompilerOptions, concatenate, - ConfigFileProgramReloadLevel, containsPath, createCacheableExportInfoMap, createLanguageService, @@ -98,6 +97,7 @@ import { PluginImport, PollingInterval, Program, + ProgramUpdateLevel, ProjectPackageJsonInfo, ProjectReference, removeFileExtension, @@ -254,7 +254,7 @@ export interface PluginCreateInfo { export interface PluginModule { create(createInfo: PluginCreateInfo): LanguageService; - getExternalFiles?(proj: Project): string[]; + getExternalFiles?(proj: Project, updateLevel: ProgramUpdateLevel): string[]; onConfigurationChanged?(config: any): void; } @@ -579,9 +579,10 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo this.disableLanguageService(lastFileExceededProgramSize); } this.markAsDirty(); - if (projectKind !== ProjectKind.AutoImportProvider) { + if (!isBackgroundProject(this)) { this.projectService.pendingEnsureProjectForOpenFiles = true; } + this.projectService.onProjectCreation(this); } isKnownTypesPackageName(name: string): boolean { @@ -727,6 +728,7 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo return this.resolutionCache.resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames); } + /** @internal */ getModuleResolutionCache(): ModuleResolutionCache | undefined { return this.resolutionCache.getModuleResolutionCache(); } @@ -1027,11 +1029,11 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo return { ...newTypeAcquisition, include: this.removeExistingTypings(newTypeAcquisition.include) }; } - getExternalFiles(): SortedReadonlyArray { + getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray { return sort(flatMap(this.plugins, plugin => { if (typeof plugin.module.getExternalFiles !== "function") return; try { - return plugin.module.getExternalFiles(this); + return plugin.module.getExternalFiles(this, updateLevel || ProgramUpdateLevel.Update); } catch (e) { this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`); @@ -1892,10 +1894,10 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo } // compute and return the difference const lastReportedFileNames = this.lastReportedFileNames; - const externalFiles = this.getExternalFiles().map((f): protocol.FileWithProjectReferenceRedirectInfo => ({ + const externalFiles = this.externalFiles?.map((f): protocol.FileWithProjectReferenceRedirectInfo => ({ fileName: toNormalizedPath(f), isSourceOfProjectReferenceRedirect: false, - })); + })) || emptyArray; const currentFiles = arrayToMap( this.getFileNamesWithRedirectInfo(!!includeProjectReferenceRedirectInfo).concat(externalFiles), info => info.fileName, @@ -1945,10 +1947,10 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo else { // unknown version - return everything const projectFileNames = this.getFileNamesWithRedirectInfo(!!includeProjectReferenceRedirectInfo); - const externalFiles = this.getExternalFiles().map((f): protocol.FileWithProjectReferenceRedirectInfo => ({ + const externalFiles = this.externalFiles?.map((f): protocol.FileWithProjectReferenceRedirectInfo => ({ fileName: toNormalizedPath(f), isSourceOfProjectReferenceRedirect: false, - })); + })) || emptyArray; const allFiles = projectFileNames.concat(externalFiles); this.lastReportedFileNames = arrayToMap( allFiles, @@ -2185,35 +2187,15 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo } /** @internal */ - getNoDtsResolutionProject(rootFileNames: readonly string[]): Project { + getNoDtsResolutionProject(rootFile: NormalizedPath): AuxiliaryProject { Debug.assert(this.projectService.serverMode === LanguageServiceMode.Semantic); if (!this.noDtsResolutionProject) { this.noDtsResolutionProject = new AuxiliaryProject(this.projectService, this.documentRegistry, this.getCompilerOptionsForNoDtsResolutionProject(), this.currentDirectory); } - - enumerateInsertsAndDeletes( - rootFileNames.map(toNormalizedPath), - this.noDtsResolutionProject.getRootFiles(), - getStringComparer(!this.useCaseSensitiveFileNames()), - pathToAdd => { - const info = this.projectService.getOrCreateScriptInfoNotOpenedByClient( - pathToAdd, - this.currentDirectory, - this.noDtsResolutionProject!.directoryStructureHost, - ); - if (info) { - this.noDtsResolutionProject!.addRoot(info, pathToAdd); - } - }, - pathToRemove => { - // It may be preferable to remove roots only once project grows to a certain size? - const info = this.noDtsResolutionProject!.getScriptInfo(pathToRemove); - if (info) { - this.noDtsResolutionProject!.removeRoot(info); - } - }, - ); - + if (this.noDtsResolutionProject.rootFile !== rootFile) { + this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject, [rootFile]); + this.noDtsResolutionProject.rootFile = rootFile; + } return this.noDtsResolutionProject; } @@ -2394,6 +2376,7 @@ export class InferredProject extends Project { /** @internal */ export class AuxiliaryProject extends Project { + /** @internal */ rootFile: NormalizedPath | undefined; constructor(projectService: ProjectService, documentRegistry: DocumentRegistry, compilerOptions: CompilerOptions, currentDirectory: string) { super(projectService.newAuxiliaryProjectName(), ProjectKind.Auxiliary, projectService, documentRegistry, /*hasExplicitListOfFiles*/ false, /*lastFileExceededProgramSize*/ undefined, compilerOptions, /*compileOnSaveEnabled*/ false, /*watchOptions*/ undefined, projectService.host, currentDirectory); } @@ -2601,7 +2584,7 @@ export class AutoImportProviderProject extends Project { ); } - this.projectService.setFileNamesOfAutoImportProviderProject(this, rootFileNames); + this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this, rootFileNames); this.rootFileNames = rootFileNames; const oldProgram = this.getCurrentProgram(); const hasSameSetOfFiles = super.updateGraph(); @@ -2657,10 +2640,6 @@ export class AutoImportProviderProject extends Project { return PackageJsonAutoImportPreference.Off; } - override getTypeAcquisition(): TypeAcquisition { - return { enable: false }; - } - /** @internal */ override getSymlinkCache() { return this.hostProject.getSymlinkCache(); @@ -2679,12 +2658,12 @@ export class AutoImportProviderProject extends Project { */ export class ConfiguredProject extends Project { /** @internal */ - pendingReload: ConfigFileProgramReloadLevel | undefined; + pendingUpdateLevel: ProgramUpdateLevel | undefined; /** @internal */ - pendingReloadReason: string | undefined; + pendingUpdateReason: string | undefined; /** @internal */ - openFileWatchTriggered = new Map(); + openFileWatchTriggered = new Map(); /** @internal */ canConfigFileJsonReportNoInputFiles = false; @@ -2775,18 +2754,18 @@ export class ConfiguredProject extends Project { override updateGraph(): boolean { const isInitialLoad = this.isInitialLoadPending(); this.isInitialLoadPending = returnFalse; - const reloadLevel = this.pendingReload; - this.pendingReload = ConfigFileProgramReloadLevel.None; + const updateLevel = this.pendingUpdateLevel; + this.pendingUpdateLevel = ProgramUpdateLevel.Update; let result: boolean; - switch (reloadLevel) { - case ConfigFileProgramReloadLevel.Partial: + switch (updateLevel) { + case ProgramUpdateLevel.RootNamesAndUpdate: this.openFileWatchTriggered.clear(); result = this.projectService.reloadFileNamesOfConfiguredProject(this); break; - case ConfigFileProgramReloadLevel.Full: + case ProgramUpdateLevel.Full: this.openFileWatchTriggered.clear(); - const reason = Debug.checkDefined(this.pendingReloadReason); - this.pendingReloadReason = undefined; + const reason = Debug.checkDefined(this.pendingUpdateReason); + this.pendingUpdateReason = undefined; this.projectService.reloadConfiguredProject(this, reason, isInitialLoad, /*clearSemanticCache*/ false); result = true; break; @@ -3015,3 +2994,8 @@ export function isConfiguredProject(project: Project): project is ConfiguredProj export function isExternalProject(project: Project): project is ExternalProject { return project.projectKind === ProjectKind.External; } + +/**@internal */ +export function isBackgroundProject(project: Project): project is AutoImportProviderProject | AuxiliaryProject { + return project.projectKind === ProjectKind.AutoImportProvider || project.projectKind === ProjectKind.Auxiliary; +} diff --git a/src/server/scriptInfo.ts b/src/server/scriptInfo.ts index ca9f11d2e61..d99a5e88eb0 100644 --- a/src/server/scriptInfo.ts +++ b/src/server/scriptInfo.ts @@ -40,13 +40,13 @@ import { Errors, ExternalProject, InferredProject, + isBackgroundProject, isConfiguredProject, isExternalProject, isInferredProject, maxFileSize, NormalizedPath, Project, - ProjectKind, ScriptVersionCache, ServerHost, } from "./_namespaces/ts.server"; @@ -682,7 +682,7 @@ export class ScriptInfo { isContainedByBackgroundProject() { return some( this.containingProjects, - p => p.projectKind === ProjectKind.AutoImportProvider || p.projectKind === ProjectKind.Auxiliary, + isBackgroundProject, ); } @@ -730,7 +730,7 @@ export class ScriptInfo { * reported as the default project for a ScriptInfo. */ function ensurePrimaryProjectKind(project: Project | undefined) { - if (!project || project.projectKind === ProjectKind.AutoImportProvider || project.projectKind === ProjectKind.Auxiliary) { + if (!project || isBackgroundProject(project)) { return Errors.ThrowNoProject(); } return project; diff --git a/src/server/session.ts b/src/server/session.ts index 42d1f526851..e97e5ca86a3 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -139,6 +139,7 @@ import { WithMetadata, } from "./_namespaces/ts"; import { + AuxiliaryProject, CloseFileWatcherEvent, ConfigFileDiagEvent, ConfiguredProject, @@ -322,7 +323,7 @@ export function formatMessage(msg: T, logger: Logger const json = JSON.stringify(msg); if (verboseLogging) { - logger.info(`${msg.type}:${indent(JSON.stringify(msg, undefined, " "))}`); + logger.info(`${msg.type}:${stringifyIndented(msg)}`); } const len = byteLength(json, "utf8"); @@ -1542,7 +1543,7 @@ export class Session implements EventSender { if (needsJsResolution) { const definitionSet = createSet(d => d.textSpan.start, documentSpansEqual); definitions?.forEach(d => definitionSet.add(d)); - const noDtsProject = project.getNoDtsResolutionProject([file]); + const noDtsProject = project.getNoDtsResolutionProject(file); const ls = noDtsProject.getLanguageService(); const jsDefinitions = ls.getDefinitionAtPosition(file, position, /*searchOtherFilesOnly*/ true, /*stopAtAlias*/ false) ?.filter(d => toNormalizedPath(d.fileName) !== file); @@ -1564,8 +1565,16 @@ export class Session implements EventSender { const ambientCandidates = definitions.filter(d => toNormalizedPath(d.fileName) !== file && d.isAmbient); for (const candidate of some(ambientCandidates) ? ambientCandidates : getAmbientCandidatesByClimbingAccessChain()) { const fileNameToSearch = findImplementationFileFromDtsFileName(candidate.fileName, file, noDtsProject); - if (!fileNameToSearch || !ensureRoot(noDtsProject, fileNameToSearch)) { - continue; + if (!fileNameToSearch) continue; + const info = this.projectService.getOrCreateScriptInfoNotOpenedByClient( + fileNameToSearch, + noDtsProject.currentDirectory, + noDtsProject.directoryStructureHost, + ); + if (!info) continue; + if (!noDtsProject.containsScriptInfo(info)) { + noDtsProject.addRoot(info); + noDtsProject.updateGraph(); } const noDtsProgram = ls.getProgram()!; const fileToSearch = Debug.checkDefined(noDtsProgram.getSourceFile(fileNameToSearch)); @@ -1580,7 +1589,7 @@ export class Session implements EventSender { definitions = definitions.filter(d => !d.isAmbient && !d.failedAliasResolution); return this.mapDefinitionInfo(definitions, project); - function findImplementationFileFromDtsFileName(fileName: string, resolveFromFile: string, auxiliaryProject: Project) { + function findImplementationFileFromDtsFileName(fileName: string, resolveFromFile: string, auxiliaryProject: AuxiliaryProject) { const nodeModulesPathParts = getNodeModulePathParts(fileName); if (nodeModulesPathParts && fileName.lastIndexOf(nodeModulesPathPart) === nodeModulesPathParts.topLevelNodeModulesIndex) { // Second check ensures the fileName only contains one `/node_modules/`. If there's more than one I give up. @@ -1671,16 +1680,6 @@ export class Session implements EventSender { } }); } - - function ensureRoot(project: Project, fileName: string) { - const info = project.getScriptInfo(fileName); - if (!info) return false; - if (!project.containsScriptInfo(info)) { - project.addRoot(info); - project.updateGraph(); - } - return true; - } } private getEmitOutput(args: protocol.EmitOutputRequestArgs): EmitOutput | protocol.EmitOutput { diff --git a/src/server/utilities.ts b/src/server/utilities.ts index c9bd0ea1c67..088a2f9f166 100644 --- a/src/server/utilities.ts +++ b/src/server/utilities.ts @@ -110,19 +110,3 @@ export function removeSorted(array: SortedArray, remove: T, compare: Compa array.splice(removeIndex, 1); } } - -const indentStr = "\n "; - -/** @internal */ -export function indent(str: string): string { - return indentStr + str.replace(/\n/g, indentStr); -} - -/** - * Put stringified JSON on the next line, indented. - * - * @internal - */ -export function stringifyIndented(json: {}): string { - return indentStr + JSON.stringify(json); -} diff --git a/src/services/codefixes/addMissingAsync.ts b/src/services/codefixes/addMissingAsync.ts index ef1087ad0ba..39a6f97c8ba 100644 --- a/src/services/codefixes/addMissingAsync.ts +++ b/src/services/codefixes/addMissingAsync.ts @@ -87,7 +87,7 @@ function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: Source } } fixedDeclarations?.add(getNodeId(insertionSite)); - const cloneWithModifier = factory.updateModifiers( + const cloneWithModifier = factory.replaceModifiers( getSynthesizedDeepClone(insertionSite, /*includeTrivia*/ true), factory.createNodeArray(factory.createModifiersFromModifierFlags(getSyntacticModifierFlags(insertionSite) | ModifierFlags.Async)), ); diff --git a/src/services/codefixes/fixSpelling.ts b/src/services/codefixes/fixSpelling.ts index 687c16cbb99..ede869cfea9 100644 --- a/src/services/codefixes/fixSpelling.ts +++ b/src/services/codefixes/fixSpelling.ts @@ -10,7 +10,7 @@ import { getModeForUsageLocation, getTextOfNode, getTokenAtPosition, - hasSyntacticModifier, + hasOverrideModifier, ImportDeclaration, isBinaryExpression, isClassElement, @@ -27,7 +27,6 @@ import { isPropertyAccessExpression, isQualifiedName, isStringLiteralLike, - ModifierFlags, Node, NodeFlags, ScriptTarget, @@ -131,7 +130,7 @@ function getInfo(sourceFile: SourceFile, pos: number, context: CodeFixContextBas const props = checker.getContextualTypeForArgumentAtIndex(tag, 0); suggestedSymbol = checker.getSuggestedSymbolForNonexistentJSXAttribute(node, props!); } - else if (hasSyntacticModifier(parent, ModifierFlags.Override) && isClassElement(parent) && parent.name === node) { + else if (hasOverrideModifier(parent) && isClassElement(parent) && parent.name === node) { const baseDeclaration = findAncestor(node, isClassLike); const baseTypeNode = baseDeclaration ? getEffectiveBaseTypeNode(baseDeclaration) : undefined; const baseType = baseTypeNode ? checker.getTypeAtLocation(baseTypeNode) : undefined; diff --git a/src/services/codefixes/importFixes.ts b/src/services/codefixes/importFixes.ts index b0466d065d9..8fe41f53eea 100644 --- a/src/services/codefixes/importFixes.ts +++ b/src/services/codefixes/importFixes.ts @@ -389,6 +389,7 @@ function createImportAdderWorker(sourceFile: SourceFile, program: Program, useAu namedImports && arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })), namespaceLikeImport, compilerOptions, + preferences, ); newDeclarations = combine(newDeclarations, declarations); }); @@ -877,7 +878,7 @@ function getNewImportFixes( const rejectNodeModulesRelativePaths = moduleResolutionUsesNodeModules(moduleResolution); const getModuleSpecifiers = fromCacheOnly ? (moduleSymbol: Symbol) => ({ moduleSpecifiers: moduleSpecifiers.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) - : (moduleSymbol: Symbol, checker: TypeChecker) => moduleSpecifiers.getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, sourceFile, moduleSpecifierResolutionHost, preferences); + : (moduleSymbol: Symbol, checker: TypeChecker) => moduleSpecifiers.getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, sourceFile, moduleSpecifierResolutionHost, preferences, /*options*/ undefined, /*forAutoImport*/ true); let computedWithoutCacheCount = 0; const fixes = flatMap(exportInfo, (exportInfo, i) => { @@ -1348,6 +1349,7 @@ function codeActionForFixWorker( namedImports, namespaceLikeImport, program.getCompilerOptions(), + preferences, ), /*blankLineBetween*/ true, preferences, @@ -1505,7 +1507,7 @@ function doAddExistingFix( const newSpecifiers = stableSort( namedImports.map(namedImport => factory.createImportSpecifier( - (!clause.isTypeOnly || promoteFromTypeOnly) && needsTypeOnly(namedImport), + (!clause.isTypeOnly || promoteFromTypeOnly) && shouldUseTypeOnly(namedImport, preferences), /*propertyName*/ undefined, factory.createIdentifier(namedImport.name), ) @@ -1604,6 +1606,10 @@ function needsTypeOnly({ addAsTypeOnly }: { addAsTypeOnly: AddAsTypeOnly; }): bo return addAsTypeOnly === AddAsTypeOnly.Required; } +function shouldUseTypeOnly(info: { addAsTypeOnly: AddAsTypeOnly; }, preferences: UserPreferences): boolean { + return needsTypeOnly(info) || !!preferences.preferTypeOnlyAutoImports && info.addAsTypeOnly !== AddAsTypeOnly.NotAllowed; +} + function getNewImports( moduleSpecifier: string, quotePreference: QuotePreference, @@ -1611,6 +1617,7 @@ function getNewImports( namedImports: readonly Import[] | undefined, namespaceLikeImport: Import & { importKind: ImportKind.CommonJS | ImportKind.Namespace; } | undefined, compilerOptions: CompilerOptions, + preferences: UserPreferences, ): AnyImportSyntax | readonly AnyImportSyntax[] { const quotedModuleSpecifier = makeStringLiteral(moduleSpecifier, quotePreference); let statements: AnyImportSyntax | readonly AnyImportSyntax[] | undefined; @@ -1618,18 +1625,18 @@ function getNewImports( // `verbatimModuleSyntax` should prefer top-level `import type` - // even though it's not an error, it would add unnecessary runtime emit. const topLevelTypeOnly = (!defaultImport || needsTypeOnly(defaultImport)) && every(namedImports, needsTypeOnly) || - compilerOptions.verbatimModuleSyntax && + (compilerOptions.verbatimModuleSyntax || preferences.preferTypeOnlyAutoImports) && defaultImport?.addAsTypeOnly !== AddAsTypeOnly.NotAllowed && !some(namedImports, i => i.addAsTypeOnly === AddAsTypeOnly.NotAllowed); statements = combine( statements, makeImport( defaultImport && factory.createIdentifier(defaultImport.name), - namedImports?.map(({ addAsTypeOnly, name }) => + namedImports?.map(namedImport => factory.createImportSpecifier( - !topLevelTypeOnly && addAsTypeOnly === AddAsTypeOnly.Required, + !topLevelTypeOnly && shouldUseTypeOnly(namedImport, preferences), /*propertyName*/ undefined, - factory.createIdentifier(name), + factory.createIdentifier(namedImport.name), ) ), moduleSpecifier, @@ -1643,14 +1650,14 @@ function getNewImports( const declaration = namespaceLikeImport.importKind === ImportKind.CommonJS ? factory.createImportEqualsDeclaration( /*modifiers*/ undefined, - needsTypeOnly(namespaceLikeImport), + shouldUseTypeOnly(namespaceLikeImport, preferences), factory.createIdentifier(namespaceLikeImport.name), factory.createExternalModuleReference(quotedModuleSpecifier), ) : factory.createImportDeclaration( /*modifiers*/ undefined, factory.createImportClause( - needsTypeOnly(namespaceLikeImport), + shouldUseTypeOnly(namespaceLikeImport, preferences), /*name*/ undefined, factory.createNamespaceImport(factory.createIdentifier(namespaceLikeImport.name)), ), diff --git a/src/services/completions.ts b/src/services/completions.ts index 11e4396ae73..11fbce92c6b 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -1329,7 +1329,11 @@ function completionInfoFromData( if (keywordFilters !== KeywordCompletionFilters.None) { for (const keywordEntry of getKeywordCompletions(keywordFilters, !insideJsDocTagTypeExpression && isSourceFileJS(sourceFile))) { - if (isTypeOnlyLocation && isTypeKeyword(stringToToken(keywordEntry.name)!) || !uniqueNames.has(keywordEntry.name)) { + if ( + isTypeOnlyLocation && isTypeKeyword(stringToToken(keywordEntry.name)!) || + !isTypeOnlyLocation && isContextualKeywordInAutoImportableExpressionSpace(keywordEntry.name) || + !uniqueNames.has(keywordEntry.name) + ) { uniqueNames.add(keywordEntry.name); insertSorted(entries, keywordEntry, compareCompletionEntries, /*allowDuplicates*/ true); } @@ -1984,7 +1988,7 @@ function getEntryForMemberCompletion( // and we need to make sure the modifiers are uniform for all nodes/signatures. modifiers = node.modifierFlagsCache | requiredModifiers; } - node = factory.updateModifiers(node, modifiers); + node = factory.replaceModifiers(node, modifiers); completionNodes.push(node); }, body, @@ -2014,12 +2018,12 @@ function getEntryForMemberCompletion( modifiers &= ~ModifierFlags.Public; } modifiers |= allowedAndPresent; - completionNodes = completionNodes.map(node => factory.updateModifiers(node, modifiers)); + completionNodes = completionNodes.map(node => factory.replaceModifiers(node, modifiers)); // Add back the decorators that were already present. if (presentDecorators?.length) { const lastNode = completionNodes[completionNodes.length - 1]; if (canHaveDecorators(lastNode)) { - completionNodes[completionNodes.length - 1] = factory.updateModifierLike(lastNode, (presentDecorators as ModifierLike[]).concat(getModifiers(lastNode) || [])); + completionNodes[completionNodes.length - 1] = factory.replaceDecoratorsAndModifiers(lastNode, (presentDecorators as ModifierLike[]).concat(getModifiers(lastNode) || [])); } } @@ -2824,7 +2828,7 @@ export function getCompletionEntryDetails( return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), ScriptElementKind.string, typeof literal === "string" ? SymbolDisplayPartKind.stringLiteral : SymbolDisplayPartKind.numericLiteral); } case "cases": { - const { entry, importAdder } = getExhaustiveCaseSnippets( + const snippets = getExhaustiveCaseSnippets( contextToken!.parent as CaseBlock, sourceFile, preferences, @@ -2832,8 +2836,10 @@ export function getCompletionEntryDetails( host, program, /*formatContext*/ undefined, - )!; - if (importAdder.hasFixes()) { + ); + + if (snippets?.importAdder.hasFixes()) { + const { entry, importAdder } = snippets; const changes = textChanges.ChangeTracker.with( { host, formatContext, preferences }, importAdder.writeFixes, @@ -2850,8 +2856,9 @@ export function getCompletionEntryDetails( }], }; } + return { - name: entry.name, + name, kind: ScriptElementKind.unknown, kindModifiers: "", displayParts: [], @@ -5826,3 +5833,31 @@ function toUpperCharCode(charCode: number) { } return charCode; } + +/** + * These are all the contextual keywords that would be valid to auto-import + * in expression space and also a valid keyword in the same location, depending + * on what gets typed afterwards. In these cases, we want to offer both the + * auto-import and the keyword completion. For example, + * + * ```ts + * type + * ``` + * + * may be the beginning of a type alias declaration (keyword completion), or + * it may be the beginning of + * + * ```ts + * import { type } from "os"; + * type() === "Darwin" ? doSomething() : doSomethingElse(); + * ``` + */ +function isContextualKeywordInAutoImportableExpressionSpace(keyword: string) { + return keyword === "abstract" || + keyword === "async" || + keyword === "await" || + keyword === "declare" || + keyword === "module" || + keyword === "namespace" || + keyword === "type"; +} diff --git a/src/services/inlayHints.ts b/src/services/inlayHints.ts index 934bf0ca739..fffe89dac5f 100644 --- a/src/services/inlayHints.ts +++ b/src/services/inlayHints.ts @@ -3,6 +3,7 @@ import { ArrayTypeNode, ArrowFunction, CallExpression, + CharacterCodes, ConditionalTypeNode, ConstructorTypeNode, createPrinterWithRemoveComments, @@ -12,6 +13,7 @@ import { EmitHint, EnumMember, equateStringsCaseInsensitive, + escapeString, Expression, findChildOfKind, findIndex, @@ -26,6 +28,7 @@ import { getLanguageVariant, getLeadingCommentRanges, getNameOfDeclaration, + getQuotePreference, hasContextSensitiveParameters, Identifier, idText, @@ -59,9 +62,11 @@ import { isPropertyAccessExpression, isPropertyDeclaration, isSpreadElement, + isStringLiteral, isTypeNode, isVarConst, isVariableDeclaration, + LiteralExpression, LiteralTypeNode, MappedTypeNode, MethodDeclaration, @@ -70,7 +75,6 @@ import { Node, NodeArray, NodeBuilderFlags, - NumericLiteral, OptionalTypeNode, ParameterDeclaration, ParenthesizedTypeNode, @@ -78,11 +82,11 @@ import { PropertyDeclaration, PropertySignature, QualifiedName, + QuotePreference, RestTypeNode, Signature, skipParentheses, some, - StringLiteral, Symbol, SymbolFlags, SyntaxKind, @@ -125,6 +129,7 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] { const { file, program, span, cancellationToken, preferences } = context; const sourceFileText = file.text; const compilerOptions = program.getCompilerOptions(); + const quotePreference = getQuotePreference(file, preferences); const checker = program.getTypeChecker(); const result: InlayHint[] = []; @@ -473,6 +478,11 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] { return; } + if (isLiteralExpression(node)) { + parts.push({ text: getLiteralText(node) }); + return; + } + switch (node.kind) { case SyntaxKind.Identifier: const identifier = node as Identifier; @@ -485,12 +495,6 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] { parts.push({ text: identifierText }); } break; - case SyntaxKind.NumericLiteral: - parts.push({ text: (node as NumericLiteral).text }); - break; - case SyntaxKind.StringLiteral: - parts.push({ text: `"${(node as StringLiteral).text}"` }); - break; case SyntaxKind.QualifiedName: const qualifiedName = node as QualifiedName; visitForDisplayParts(qualifiedName.left); @@ -749,6 +753,13 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] { visitForDisplayParts(node); }); } + + function getLiteralText(node: LiteralExpression) { + if (isStringLiteral(node)) { + return quotePreference === QuotePreference.Single ? `'${escapeString(node.text, CharacterCodes.singleQuote)}'` : `"${escapeString(node.text, CharacterCodes.doubleQuote)}"`; + } + return node.text; + } } function isUndefined(name: __String) { diff --git a/src/services/jsDoc.ts b/src/services/jsDoc.ts index 27d57464b5a..8ca6a6c7cae 100644 --- a/src/services/jsDoc.ts +++ b/src/services/jsDoc.ts @@ -43,6 +43,7 @@ import { isFunctionTypeNode, isIdentifier, isJSDoc, + isJSDocOverloadTag, isJSDocParameterTag, isJSDocPropertyLikeTag, isJSDocTypeLiteral, @@ -230,6 +231,11 @@ function getCommentHavingNodes(declaration: Declaration): readonly (JSDoc | JSDo case SyntaxKind.JSDocCallbackTag: case SyntaxKind.JSDocTypedefTag: return [declaration as JSDocTypedefTag, (declaration as JSDocTypedefTag).parent]; + case SyntaxKind.JSDocSignature: + if (isJSDocOverloadTag(declaration.parent)) { + return [declaration.parent.parent]; + } + // falls through default: return getJSDocCommentsAndTags(declaration); } diff --git a/src/services/outliningElementsCollector.ts b/src/services/outliningElementsCollector.ts index 87ac0d10ba9..754541ed507 100644 --- a/src/services/outliningElementsCollector.ts +++ b/src/services/outliningElementsCollector.ts @@ -1,6 +1,5 @@ import { ArrowFunction, - AssertClause, Block, CallExpression, CancellationToken, @@ -302,11 +301,10 @@ function getOutliningSpanForNode(n: Node, sourceFile: SourceFile): OutliningSpan case SyntaxKind.NamedImports: case SyntaxKind.NamedExports: case SyntaxKind.ImportAttributes: - case SyntaxKind.AssertClause: - return spanForImportExportElements(n as NamedImports | NamedExports | AssertClause | ImportAttributes); + return spanForImportExportElements(n as NamedImports | NamedExports | ImportAttributes); } - function spanForImportExportElements(node: NamedImports | NamedExports | AssertClause | ImportAttributes) { + function spanForImportExportElements(node: NamedImports | NamedExports | ImportAttributes) { if (!node.elements.length) { return undefined; } diff --git a/src/services/refactors/extractType.ts b/src/services/refactors/extractType.ts index 205a2334593..f8ddcaedbf0 100644 --- a/src/services/refactors/extractType.ts +++ b/src/services/refactors/extractType.ts @@ -25,6 +25,7 @@ import { getTokenAtPosition, getUniqueName, ignoreSourceNewlines, + isArray, isConditionalTypeNode, isFunctionLike, isIdentifier, @@ -44,6 +45,7 @@ import { isTypePredicateNode, isTypeQueryNode, isTypeReferenceNode, + isUnionTypeNode, JSDocTag, JSDocTemplateTag, Node, @@ -59,6 +61,7 @@ import { SymbolFlags, textChanges, TextRange, + toArray, TypeChecker, TypeElement, TypeNode, @@ -151,7 +154,7 @@ registerRefactor(refactorName, { interface TypeAliasInfo { isJS: boolean; - selection: TypeNode; + selection: TypeNode | TypeNode[]; enclosingNode: Node; typeParameters: readonly TypeParameterDeclaration[]; typeElements?: readonly TypeElement[]; @@ -159,7 +162,7 @@ interface TypeAliasInfo { interface InterfaceInfo { isJS: boolean; - selection: TypeNode; + selection: TypeNode | TypeNode[]; enclosingNode: Node; typeParameters: readonly TypeParameterDeclaration[]; typeElements: readonly TypeElement[]; @@ -173,16 +176,32 @@ function getRangeToExtract(context: RefactorContext, considerEmptySpans = true): const current = getTokenAtPosition(file, startPosition); const range = createTextRangeFromSpan(getRefactorContextSpan(context)); const cursorRequest = range.pos === range.end && considerEmptySpans; + const overlappingRange = nodeOverlapsWithStartEnd(current, file, range.pos, range.end); - const selection = findAncestor(current, node => + const firstType = findAncestor(current, node => node.parent && isTypeNode(node) && !rangeContainsSkipTrivia(range, node.parent, file) && - (cursorRequest || nodeOverlapsWithStartEnd(current, file, range.pos, range.end))); - if (!selection || !isTypeNode(selection)) return { error: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_type_node) }; + (cursorRequest || overlappingRange)); + if (!firstType || !isTypeNode(firstType)) return { error: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_type_node) }; const checker = context.program.getTypeChecker(); - const enclosingNode = getEnclosingNode(selection, isJS); + const enclosingNode = getEnclosingNode(firstType, isJS); if (enclosingNode === undefined) return { error: getLocaleSpecificMessage(Diagnostics.No_type_could_be_extracted_from_this_type_node) }; + const expandedFirstType = getExpandedSelectionNode(firstType, enclosingNode); + if (!isTypeNode(expandedFirstType)) return { error: getLocaleSpecificMessage(Diagnostics.Selection_is_not_a_valid_type_node) }; + + const typeList: TypeNode[] = []; + if ((isUnionTypeNode(expandedFirstType.parent) || isIntersectionTypeNode(expandedFirstType.parent)) && range.end > firstType.end) { + // the only extraction cases in which multiple nodes may need to be selected to capture the entire type are union and intersection types + addRange( + typeList, + expandedFirstType.parent.types.filter(type => { + return nodeOverlapsWithStartEnd(type, file, range.pos, range.end); + }), + ); + } + const selection = typeList.length > 1 ? typeList : expandedFirstType; + const typeParameters = collectTypeParameters(checker, selection, enclosingNode, file); if (!typeParameters) return { error: getLocaleSpecificMessage(Diagnostics.No_type_could_be_extracted_from_this_type_node) }; @@ -190,12 +209,21 @@ function getRangeToExtract(context: RefactorContext, considerEmptySpans = true): return { isJS, selection, enclosingNode, typeParameters, typeElements }; } -function flattenTypeLiteralNodeReference(checker: TypeChecker, node: TypeNode | undefined): readonly TypeElement[] | undefined { - if (!node) return undefined; - if (isIntersectionTypeNode(node)) { +function flattenTypeLiteralNodeReference(checker: TypeChecker, selection: TypeNode | TypeNode[] | undefined): readonly TypeElement[] | undefined { + if (!selection) return undefined; + if (isArray(selection)) { + const result: TypeElement[] = []; + for (const type of selection) { + const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type); + if (!flattenedTypeMembers) return undefined; + addRange(result, flattenedTypeMembers); + } + return result; + } + if (isIntersectionTypeNode(selection)) { const result: TypeElement[] = []; const seen = new Map(); - for (const type of node.types) { + for (const type of selection.types) { const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type); if (!flattenedTypeMembers || !flattenedTypeMembers.every(type => type.name && addToSeen(seen, getNameFromPropertyName(type.name) as string))) { return undefined; @@ -205,22 +233,27 @@ function flattenTypeLiteralNodeReference(checker: TypeChecker, node: TypeNode | } return result; } - else if (isParenthesizedTypeNode(node)) { - return flattenTypeLiteralNodeReference(checker, node.type); + else if (isParenthesizedTypeNode(selection)) { + return flattenTypeLiteralNodeReference(checker, selection.type); } - else if (isTypeLiteralNode(node)) { - return node.members; + else if (isTypeLiteralNode(selection)) { + return selection.members; } return undefined; } -function rangeContainsSkipTrivia(r1: TextRange, node: Node, file: SourceFile): boolean { +function rangeContainsSkipTrivia(r1: TextRange, node: TextRange, file: SourceFile): boolean { return rangeContainsStartEnd(r1, skipTrivia(file.text, node.pos), node.end); } -function collectTypeParameters(checker: TypeChecker, selection: TypeNode, enclosingNode: Node, file: SourceFile): TypeParameterDeclaration[] | undefined { +function collectTypeParameters(checker: TypeChecker, selection: TypeNode | TypeNode[], enclosingNode: Node, file: SourceFile): TypeParameterDeclaration[] | undefined { const result: TypeParameterDeclaration[] = []; - return visitor(selection) ? undefined : result; + const selectionArray = toArray(selection); + const selectionRange = { pos: selectionArray[0].pos, end: selectionArray[selectionArray.length - 1].end }; + for (const t of selectionArray) { + if (visitor(t)) return undefined; + } + return result; function visitor(node: Node): true | undefined { if (isTypeReferenceNode(node)) { @@ -231,11 +264,11 @@ function collectTypeParameters(checker: TypeChecker, selection: TypeNode, enclos if (isTypeParameterDeclaration(decl) && decl.getSourceFile() === file) { // skip extraction if the type node is in the range of the type parameter declaration. // function foo(): void; - if (decl.name.escapedText === typeName.escapedText && rangeContainsSkipTrivia(decl, selection, file)) { + if (decl.name.escapedText === typeName.escapedText && rangeContainsSkipTrivia(decl, selectionRange, file)) { return true; } - if (rangeContainsSkipTrivia(enclosingNode, decl, file) && !rangeContainsSkipTrivia(selection, decl, file)) { + if (rangeContainsSkipTrivia(enclosingNode, decl, file) && !rangeContainsSkipTrivia(selectionRange, decl, file)) { pushIfUnique(result, decl); break; } @@ -245,25 +278,25 @@ function collectTypeParameters(checker: TypeChecker, selection: TypeNode, enclos } else if (isInferTypeNode(node)) { const conditionalTypeNode = findAncestor(node, n => isConditionalTypeNode(n) && rangeContainsSkipTrivia(n.extendsType, node, file)); - if (!conditionalTypeNode || !rangeContainsSkipTrivia(selection, conditionalTypeNode, file)) { + if (!conditionalTypeNode || !rangeContainsSkipTrivia(selectionRange, conditionalTypeNode, file)) { return true; } } else if ((isTypePredicateNode(node) || isThisTypeNode(node))) { const functionLikeNode = findAncestor(node.parent, isFunctionLike); - if (functionLikeNode && functionLikeNode.type && rangeContainsSkipTrivia(functionLikeNode.type, node, file) && !rangeContainsSkipTrivia(selection, functionLikeNode, file)) { + if (functionLikeNode && functionLikeNode.type && rangeContainsSkipTrivia(functionLikeNode.type, node, file) && !rangeContainsSkipTrivia(selectionRange, functionLikeNode, file)) { return true; } } else if (isTypeQueryNode(node)) { if (isIdentifier(node.exprName)) { const symbol = checker.resolveName(node.exprName.text, node.exprName, SymbolFlags.Value, /*excludeGlobals*/ false); - if (symbol?.valueDeclaration && rangeContainsSkipTrivia(enclosingNode, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, symbol.valueDeclaration, file)) { + if (symbol?.valueDeclaration && rangeContainsSkipTrivia(enclosingNode, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selectionRange, symbol.valueDeclaration, file)) { return true; } } else { - if (isThisIdentifier(node.exprName.left) && !rangeContainsSkipTrivia(selection, node.parent, file)) { + if (isThisIdentifier(node.exprName.left) && !rangeContainsSkipTrivia(selectionRange, node.parent, file)) { return true; } } @@ -278,20 +311,20 @@ function collectTypeParameters(checker: TypeChecker, selection: TypeNode, enclos } function doTypeAliasChange(changes: textChanges.ChangeTracker, file: SourceFile, name: string, info: TypeAliasInfo) { - const { enclosingNode, selection, typeParameters } = info; - - const newTypeNode = factory.createTypeAliasDeclaration( + const { enclosingNode, typeParameters } = info; + const { firstTypeNode, lastTypeNode, newTypeNode } = getNodesToEdit(info); + const newTypeDeclaration = factory.createTypeAliasDeclaration( /*modifiers*/ undefined, name, typeParameters.map(id => factory.updateTypeParameterDeclaration(id, id.modifiers, id.name, id.constraint, /*defaultType*/ undefined)), - selection, + newTypeNode, ); - changes.insertNodeBefore(file, enclosingNode, ignoreSourceNewlines(newTypeNode), /*blankLineBetween*/ true); - changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map(id => factory.createTypeReferenceNode(id.name, /*typeArguments*/ undefined))), { leadingTriviaOption: textChanges.LeadingTriviaOption.Exclude, trailingTriviaOption: textChanges.TrailingTriviaOption.ExcludeWhitespace }); + changes.insertNodeBefore(file, enclosingNode, ignoreSourceNewlines(newTypeDeclaration), /*blankLineBetween*/ true); + changes.replaceNodeRange(file, firstTypeNode, lastTypeNode, factory.createTypeReferenceNode(name, typeParameters.map(id => factory.createTypeReferenceNode(id.name, /*typeArguments*/ undefined))), { leadingTriviaOption: textChanges.LeadingTriviaOption.Exclude, trailingTriviaOption: textChanges.TrailingTriviaOption.ExcludeWhitespace }); } function doInterfaceChange(changes: textChanges.ChangeTracker, file: SourceFile, name: string, info: InterfaceInfo) { - const { enclosingNode, selection, typeParameters, typeElements } = info; + const { enclosingNode, typeParameters, typeElements } = info; const newTypeNode = factory.createInterfaceDeclaration( /*modifiers*/ undefined, @@ -302,17 +335,21 @@ function doInterfaceChange(changes: textChanges.ChangeTracker, file: SourceFile, ); setTextRange(newTypeNode, typeElements[0]?.parent); changes.insertNodeBefore(file, enclosingNode, ignoreSourceNewlines(newTypeNode), /*blankLineBetween*/ true); - changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map(id => factory.createTypeReferenceNode(id.name, /*typeArguments*/ undefined))), { leadingTriviaOption: textChanges.LeadingTriviaOption.Exclude, trailingTriviaOption: textChanges.TrailingTriviaOption.ExcludeWhitespace }); + + const { firstTypeNode, lastTypeNode } = getNodesToEdit(info); + changes.replaceNodeRange(file, firstTypeNode, lastTypeNode, factory.createTypeReferenceNode(name, typeParameters.map(id => factory.createTypeReferenceNode(id.name, /*typeArguments*/ undefined))), { leadingTriviaOption: textChanges.LeadingTriviaOption.Exclude, trailingTriviaOption: textChanges.TrailingTriviaOption.ExcludeWhitespace }); } function doTypedefChange(changes: textChanges.ChangeTracker, context: RefactorContext, file: SourceFile, name: string, info: ExtractInfo) { - const { enclosingNode, selection, typeParameters } = info; - - setEmitFlags(selection, EmitFlags.NoComments | EmitFlags.NoNestedComments); + toArray(info.selection).forEach(typeNode => { + setEmitFlags(typeNode, EmitFlags.NoComments | EmitFlags.NoNestedComments); + }); + const { enclosingNode, typeParameters } = info; + const { firstTypeNode, lastTypeNode, newTypeNode } = getNodesToEdit(info); const node = factory.createJSDocTypedefTag( factory.createIdentifier("typedef"), - factory.createJSDocTypeExpression(selection), + factory.createJSDocTypeExpression(newTypeNode), factory.createIdentifier(name), ); @@ -339,9 +376,36 @@ function doTypedefChange(changes: textChanges.ChangeTracker, context: RefactorCo else { changes.insertNodeBefore(file, enclosingNode, jsDoc, /*blankLineBetween*/ true); } - changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map(id => factory.createTypeReferenceNode(id.name, /*typeArguments*/ undefined)))); + changes.replaceNodeRange(file, firstTypeNode, lastTypeNode, factory.createTypeReferenceNode(name, typeParameters.map(id => factory.createTypeReferenceNode(id.name, /*typeArguments*/ undefined)))); +} + +function getNodesToEdit(info: ExtractInfo) { + if (isArray(info.selection)) { + return { + firstTypeNode: info.selection[0], + lastTypeNode: info.selection[info.selection.length - 1], + newTypeNode: isUnionTypeNode(info.selection[0].parent) ? factory.createUnionTypeNode(info.selection) : factory.createIntersectionTypeNode(info.selection), + }; + } + return { + firstTypeNode: info.selection, + lastTypeNode: info.selection, + newTypeNode: info.selection, + }; } function getEnclosingNode(node: Node, isJS: boolean) { return findAncestor(node, isStatement) || (isJS ? findAncestor(node, isJSDoc) : undefined); } + +function getExpandedSelectionNode(firstType: Node, enclosingNode: Node) { + // intended to capture the entire type in cases where the user selection is not exactly the entire type + // currently only implemented for union and intersection types + return findAncestor(firstType, node => { + if (node === enclosingNode) return "quit"; + if (isUnionTypeNode(node.parent) || isIntersectionTypeNode(node.parent)) { + return true; + } + return false; + }) ?? firstType; +} diff --git a/src/services/refactors/inferFunctionReturnType.ts b/src/services/refactors/inferFunctionReturnType.ts index d4f4a5c871c..dc3a9adbd0d 100644 --- a/src/services/refactors/inferFunctionReturnType.ts +++ b/src/services/refactors/inferFunctionReturnType.ts @@ -10,7 +10,7 @@ import { FunctionDeclaration, FunctionExpression, getLocaleSpecificMessage, - getTokenAtPosition, + getTouchingPropertyName, isArrowFunction, isBlock, isInJSFile, @@ -104,7 +104,7 @@ function doChange(sourceFile: SourceFile, changes: textChanges.ChangeTracker, de function getInfo(context: RefactorContext): FunctionInfo | RefactorErrorInfo | undefined { if (isInJSFile(context.file) || !refactorKindBeginsWith(inferReturnTypeAction.kind, context.kind)) return; - const token = getTokenAtPosition(context.file, context.startPosition); + const token = getTouchingPropertyName(context.file, context.startPosition); const declaration = findAncestor(token, n => isBlock(n) || n.parent && isArrowFunction(n.parent) && (n.kind === SyntaxKind.EqualsGreaterThanToken || n.parent.body === n) ? "quit" : isConvertibleDeclaration(n)) as ConvertibleDeclaration | undefined; diff --git a/src/services/refactors/moveToFile.ts b/src/services/refactors/moveToFile.ts index 29aa22de802..7d99368a385 100644 --- a/src/services/refactors/moveToFile.ts +++ b/src/services/refactors/moveToFile.ts @@ -68,6 +68,7 @@ import { Identifier, ImportDeclaration, ImportEqualsDeclaration, + importFromModuleSpecifier, insertImports, InterfaceDeclaration, InternalSymbolName, @@ -84,6 +85,8 @@ import { isImportDeclaration, isImportEqualsDeclaration, isNamedExports, + isNamedImports, + isObjectBindingPattern, isObjectLiteralExpression, isOmittedExpression, isPrologueDirective, @@ -96,6 +99,7 @@ import { isStringLiteralLike, isValidTypeOnlyAliasUseSite, isVariableDeclaration, + isVariableDeclarationInitializedToRequire, isVariableDeclarationList, isVariableStatement, LanguageServiceHost, @@ -194,16 +198,15 @@ function error(notApplicableReason: string) { function doChange(context: RefactorContext, oldFile: SourceFile, targetFile: string, program: Program, toMove: ToMove, changes: textChanges.ChangeTracker, host: LanguageServiceHost, preferences: UserPreferences): void { const checker = program.getTypeChecker(); - const usage = getUsageInfo(oldFile, toMove.all, checker); // For a new file if (!host.fileExists(targetFile)) { - changes.createNewFile(oldFile, targetFile, getNewStatementsAndRemoveFromOldFile(oldFile, targetFile, usage, changes, toMove, program, host, preferences)); + changes.createNewFile(oldFile, targetFile, getNewStatementsAndRemoveFromOldFile(oldFile, targetFile, getUsageInfo(oldFile, toMove.all, checker), changes, toMove, program, host, preferences)); addNewFileToTsconfig(program, changes, oldFile.fileName, targetFile, hostGetCanonicalFileName(host)); } else { const targetSourceFile = Debug.checkDefined(program.getSourceFile(targetFile)); const importAdder = codefix.createImportAdder(targetSourceFile, context.program, context.preferences, context.host); - getNewStatementsAndRemoveFromOldFile(oldFile, targetSourceFile, usage, changes, toMove, program, host, preferences, importAdder); + getNewStatementsAndRemoveFromOldFile(oldFile, targetSourceFile, getUsageInfo(oldFile, toMove.all, checker, getExistingImports(targetSourceFile, checker)), changes, toMove, program, host, preferences, importAdder); } } @@ -993,7 +996,7 @@ function isPureImport(node: Node): boolean { } /** @internal */ -export function getUsageInfo(oldFile: SourceFile, toMove: readonly Statement[], checker: TypeChecker): UsageInfo { +export function getUsageInfo(oldFile: SourceFile, toMove: readonly Statement[], checker: TypeChecker, existingTargetImports: ReadonlySet = new Set()): UsageInfo { const movedSymbols = new Set(); const oldImportsNeededByTargetFile = new Map(); const targetFileImportsFromOldFile = new Set(); @@ -1010,9 +1013,17 @@ export function getUsageInfo(oldFile: SourceFile, toMove: readonly Statement[], movedSymbols.add(Debug.checkDefined(isExpressionStatement(decl) ? checker.getSymbolAtLocation(decl.expression.left) : decl.symbol, "Need a symbol here")); }); } + + const unusedImportsFromOldFile = new Set(); for (const statement of toMove) { forEachReference(statement, checker, (symbol, isValidTypeOnlyUseSite) => { - if (!symbol.declarations) return; + if (!symbol.declarations) { + return; + } + if (existingTargetImports.has(skipAlias(symbol, checker))) { + unusedImportsFromOldFile.add(symbol); + return; + } for (const decl of symbol.declarations) { if (isInImport(decl)) { const prevIsTypeOnly = oldImportsNeededByTargetFile.get(symbol); @@ -1024,7 +1035,10 @@ export function getUsageInfo(oldFile: SourceFile, toMove: readonly Statement[], } }); } - const unusedImportsFromOldFile = new Set(oldImportsNeededByTargetFile.keys()); + + for (const unusedImport of oldImportsNeededByTargetFile.keys()) { + unusedImportsFromOldFile.add(unusedImport); + } const oldFileImportsFromTargetFile = new Set(); for (const statement of oldFile.statements) { @@ -1228,3 +1242,30 @@ function getOverloadRangeToMove(sourceFile: SourceFile, statement: Statement) { } return undefined; } + +function getExistingImports(sourceFile: SourceFile, checker: TypeChecker) { + const imports = new Set(); + for (const moduleSpecifier of sourceFile.imports) { + const declaration = importFromModuleSpecifier(moduleSpecifier); + if ( + isImportDeclaration(declaration) && declaration.importClause && + declaration.importClause.namedBindings && isNamedImports(declaration.importClause.namedBindings) + ) { + for (const e of declaration.importClause.namedBindings.elements) { + const symbol = checker.getSymbolAtLocation(e.propertyName || e.name); + if (symbol) { + imports.add(skipAlias(symbol, checker)); + } + } + } + if (isVariableDeclarationInitializedToRequire(declaration.parent) && isObjectBindingPattern(declaration.parent.name)) { + for (const e of declaration.parent.name.elements) { + const symbol = checker.getSymbolAtLocation(e.propertyName || e.name); + if (symbol) { + imports.add(skipAlias(symbol, checker)); + } + } + } + } + return imports; +} diff --git a/src/services/stringCompletions.ts b/src/services/stringCompletions.ts index 47ec1126728..b5c28a312d9 100644 --- a/src/services/stringCompletions.ts +++ b/src/services/stringCompletions.ts @@ -96,7 +96,6 @@ import { LiteralTypeNode, mapDefined, MapLike, - ModuleKind, moduleResolutionUsesNodeModules, ModuleSpecifierEnding, moduleSpecifiers, @@ -952,7 +951,7 @@ function getCompletionEntriesForNonRelativeModules( } const keys = getOwnKeys(exports); const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : ""); - const conditions = getConditions(compilerOptions, mode === ModuleKind.ESNext); + const conditions = getConditions(compilerOptions, mode); addCompletionEntriesFromPathsOrExports( result, fragmentSubpath, diff --git a/src/testRunner/fourslashRunner.ts b/src/testRunner/fourslashRunner.ts index cbf2bf7d87e..689cdcceca9 100644 --- a/src/testRunner/fourslashRunner.ts +++ b/src/testRunner/fourslashRunner.ts @@ -52,9 +52,18 @@ export class FourSlashRunner extends RunnerBase { if (testIndex >= 0) fn = fn.substr(testIndex); if (justName !== "fourslash.ts") { - it(this.testSuiteName + " test " + justName + " runs correctly", () => { - FourSlash.runFourSlashTest(this.basePath, this.testType, fn); + let serverLogBaseliner: FourSlash.FourSlashServerLogBaseliner = {}; + after(() => { + serverLogBaseliner = undefined!; }); + it(this.testSuiteName + " test " + justName + " runs correctly", () => { + FourSlash.runFourSlashTest(this.basePath, this.testType, fn, serverLogBaseliner); + }); + if (this.testType === FourSlash.FourSlashTestType.Server) { + it(this.testSuiteName + " test " + justName + " tsserver log", () => { + serverLogBaseliner.baseline?.(); + }); + } } }); }); diff --git a/src/testRunner/unittests/config/commandLineParsing.ts b/src/testRunner/unittests/config/commandLineParsing.ts index cb40ec6527a..2187978de38 100644 --- a/src/testRunner/unittests/config/commandLineParsing.ts +++ b/src/testRunner/unittests/config/commandLineParsing.ts @@ -1,5 +1,8 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: config:: commandLineParsing:: parseCommandLine", () => { function assertParseResult(subScenario: string, commandLine: string[], workerDiagnostic?: () => ts.ParseCommandLineWorkerDiagnostics) { @@ -8,9 +11,9 @@ describe("unittests:: config:: commandLineParsing:: parseCommandLine", () => { baseline.push(commandLine.join(" ")); const parsed = ts.parseCommandLineWorker(workerDiagnostic?.() || ts.compilerOptionsDidYouMeanDiagnostics, commandLine); baseline.push("CompilerOptions::"); - baseline.push(JSON.stringify(parsed.options, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.options)); baseline.push("WatchOptions::"); - baseline.push(JSON.stringify(parsed.watchOptions, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.watchOptions)); baseline.push("FileNames::"); baseline.push(parsed.fileNames.join()); baseline.push("Errors::"); @@ -200,9 +203,9 @@ describe("unittests:: config:: commandLineParsing:: parseBuildOptions", () => { baseline.push(commandLine.join(" ")); const parsed = ts.parseBuildCommand(commandLine); baseline.push("buildOptions::"); - baseline.push(JSON.stringify(parsed.buildOptions, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.buildOptions)); baseline.push("WatchOptions::"); - baseline.push(JSON.stringify(parsed.watchOptions, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.watchOptions)); baseline.push("Projects::"); baseline.push(parsed.projects.join()); baseline.push("Errors::"); diff --git a/src/testRunner/unittests/config/configurationExtension.ts b/src/testRunner/unittests/config/configurationExtension.ts index 96bfc206db8..1d6149bc1a2 100644 --- a/src/testRunner/unittests/config/configurationExtension.ts +++ b/src/testRunner/unittests/config/configurationExtension.ts @@ -2,6 +2,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, baselineParseConfigHost, @@ -12,122 +15,122 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { cwd, files: { [root]: { - "dev/node_modules/@foo/tsconfig/package.json": JSON.stringify({ + "dev/node_modules/@foo/tsconfig/package.json": jsonToReadableText({ name: "@foo/tsconfig", version: "1.0.0", exports: { ".": "./src/tsconfig.json", }, }), - "dev/node_modules/@foo/tsconfig/src/tsconfig.json": JSON.stringify({ + "dev/node_modules/@foo/tsconfig/src/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true, }, }), - "dev/tsconfig.extendsFoo.json": JSON.stringify({ + "dev/tsconfig.extendsFoo.json": jsonToReadableText({ extends: "@foo/tsconfig", files: [ "main.ts", ], }), - "dev/node_modules/config-box/package.json": JSON.stringify({ + "dev/node_modules/config-box/package.json": jsonToReadableText({ name: "config-box", version: "1.0.0", tsconfig: "./strict.json", }), - "dev/node_modules/config-box/strict.json": JSON.stringify({ + "dev/node_modules/config-box/strict.json": jsonToReadableText({ compilerOptions: { strict: true, }, }), - "dev/node_modules/config-box/unstrict.json": JSON.stringify({ + "dev/node_modules/config-box/unstrict.json": jsonToReadableText({ compilerOptions: { strict: false, }, }), - "dev/tsconfig.extendsBox.json": JSON.stringify({ + "dev/tsconfig.extendsBox.json": jsonToReadableText({ extends: "config-box", files: [ "main.ts", ], }), - "dev/tsconfig.extendsStrict.json": JSON.stringify({ + "dev/tsconfig.extendsStrict.json": jsonToReadableText({ extends: "config-box/strict", files: [ "main.ts", ], }), - "dev/tsconfig.extendsUnStrict.json": JSON.stringify({ + "dev/tsconfig.extendsUnStrict.json": jsonToReadableText({ extends: "config-box/unstrict", files: [ "main.ts", ], }), - "dev/tsconfig.extendsStrictExtension.json": JSON.stringify({ + "dev/tsconfig.extendsStrictExtension.json": jsonToReadableText({ extends: "config-box/strict.json", files: [ "main.ts", ], }), - "dev/node_modules/config-box-implied/package.json": JSON.stringify({ + "dev/node_modules/config-box-implied/package.json": jsonToReadableText({ name: "config-box-implied", version: "1.0.0", }), - "dev/node_modules/config-box-implied/tsconfig.json": JSON.stringify({ + "dev/node_modules/config-box-implied/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true, }, }), - "dev/node_modules/config-box-implied/unstrict/tsconfig.json": JSON.stringify({ + "dev/node_modules/config-box-implied/unstrict/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: false, }, }), - "dev/tsconfig.extendsBoxImplied.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImplied.json": jsonToReadableText({ extends: "config-box-implied", files: [ "main.ts", ], }), - "dev/tsconfig.extendsBoxImpliedUnstrict.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImpliedUnstrict.json": jsonToReadableText({ extends: "config-box-implied/unstrict", files: [ "main.ts", ], }), - "dev/tsconfig.extendsBoxImpliedUnstrictExtension.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImpliedUnstrictExtension.json": jsonToReadableText({ extends: "config-box-implied/unstrict/tsconfig", files: [ "main.ts", ], }), - "dev/tsconfig.extendsBoxImpliedPath.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImpliedPath.json": jsonToReadableText({ extends: "config-box-implied/tsconfig.json", files: [ "main.ts", ], }), - "dev/tsconfig.json": JSON.stringify({ + "dev/tsconfig.json": jsonToReadableText({ extends: "./configs/base", files: [ "main.ts", "supplemental.ts", ], }), - "dev/tsconfig.nostrictnull.json": JSON.stringify({ + "dev/tsconfig.nostrictnull.json": jsonToReadableText({ extends: "./tsconfig", compilerOptions: { strictNullChecks: false, }, }), - "dev/configs/base.json": JSON.stringify({ + "dev/configs/base.json": jsonToReadableText({ compilerOptions: { allowJs: true, noImplicitAny: true, strictNullChecks: true, }, }), - "dev/configs/tests.json": JSON.stringify({ + "dev/configs/tests.json": jsonToReadableText({ compilerOptions: { preserveConstEnums: true, removeComments: false, @@ -141,55 +144,55 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { "../tests/**/*.ts", ], }), - "dev/circular.json": JSON.stringify({ + "dev/circular.json": jsonToReadableText({ extends: "./circular2", compilerOptions: { module: "amd", }, }), - "dev/circular2.json": JSON.stringify({ + "dev/circular2.json": jsonToReadableText({ extends: "./circular", compilerOptions: { module: "commonjs", }, }), - "dev/missing.json": JSON.stringify({ + "dev/missing.json": jsonToReadableText({ extends: "./missing2", compilerOptions: { types: [], }, }), - "dev/failure.json": JSON.stringify({ + "dev/failure.json": jsonToReadableText({ extends: "./failure2.json", compilerOptions: { typeRoots: [], }, }), - "dev/failure2.json": JSON.stringify({ + "dev/failure2.json": jsonToReadableText({ excludes: ["*.js"], }), - "dev/configs/first.json": JSON.stringify({ + "dev/configs/first.json": jsonToReadableText({ extends: "./base", compilerOptions: { module: "commonjs", }, files: ["../main.ts"], }), - "dev/configs/second.json": JSON.stringify({ + "dev/configs/second.json": jsonToReadableText({ extends: "./base", compilerOptions: { module: "amd", }, include: ["../supplemental.*"], }), - "dev/configs/third.json": JSON.stringify({ + "dev/configs/third.json": jsonToReadableText({ extends: "./second", compilerOptions: { module: null, // eslint-disable-line no-null/no-null }, include: ["../supplemental.*"], }), - "dev/configs/fourth.json": JSON.stringify({ + "dev/configs/fourth.json": jsonToReadableText({ extends: "./third", compilerOptions: { module: "system", @@ -197,35 +200,35 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { include: null, // eslint-disable-line no-null/no-null files: ["../main.ts"], }), - "dev/configs/fifth.json": JSON.stringify({ + "dev/configs/fifth.json": jsonToReadableText({ extends: "./fourth", include: ["../tests/utils.ts"], files: [], }), - "dev/extends.json": JSON.stringify({ extends: 42 }), - "dev/extends2.json": JSON.stringify({ extends: "configs/base" }), - "dev/extends3.json": JSON.stringify({ extends: "" }), - "dev/extends4.json": JSON.stringify({ extends: [""] }), + "dev/extends.json": jsonToReadableText({ extends: 42 }), + "dev/extends2.json": jsonToReadableText({ extends: "configs/base" }), + "dev/extends3.json": jsonToReadableText({ extends: "" }), + "dev/extends4.json": jsonToReadableText({ extends: [""] }), "dev/main.ts": "", "dev/supplemental.ts": "", "dev/tests/unit/spec.ts": "", "dev/tests/utils.ts": "", "dev/tests/scenarios/first.json": "", "dev/tests/baselines/first/output.ts": "", - "dev/configs/extendsArrayFirst.json": JSON.stringify({ + "dev/configs/extendsArrayFirst.json": jsonToReadableText({ compilerOptions: { allowJs: true, noImplicitAny: true, strictNullChecks: true, }, }), - "dev/configs/extendsArraySecond.json": JSON.stringify({ + "dev/configs/extendsArraySecond.json": jsonToReadableText({ compilerOptions: { module: "amd", }, include: ["../supplemental.*"], }), - "dev/configs/extendsArrayThird.json": JSON.stringify({ + "dev/configs/extendsArrayThird.json": jsonToReadableText({ compilerOptions: { module: null, // eslint-disable-line no-null/no-null noImplicitAny: false, @@ -233,7 +236,7 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { extends: "./extendsArrayFirst", include: ["../supplemental.*"], }), - "dev/configs/extendsArrayFourth.json": JSON.stringify({ + "dev/configs/extendsArrayFourth.json": jsonToReadableText({ compilerOptions: { module: "system", strictNullChecks: false, @@ -241,17 +244,17 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { include: null, // eslint-disable-line no-null/no-null files: ["../main.ts"], }), - "dev/configs/extendsArrayFifth.json": JSON.stringify({ + "dev/configs/extendsArrayFifth.json": jsonToReadableText({ extends: ["./extendsArrayFirst", "./extendsArraySecond", "./extendsArrayThird", "./extendsArrayFourth"], files: [], }), - "dev/extendsArrayFails.json": JSON.stringify({ + "dev/extendsArrayFails.json": jsonToReadableText({ extends: ["./missingFile"], compilerOptions: { types: [], }, }), - "dev/extendsArrayFails2.json": JSON.stringify({ extends: [42] }), + "dev/extendsArrayFails2.json": jsonToReadableText({ extends: [42] }), }, }, }); @@ -314,7 +317,7 @@ describe("unittests:: config:: configurationExtension", () => { configFileName: entry, baselineParsed: (baseline, parsed) => { baseline.push("CompilerOptions::"); - baseline.push(JSON.stringify(parsed.options, undefined, " ")); + baseline.push(jsonToReadableText(parsed.options)); baseline.push("FileNames::"); baseline.push(parsed.fileNames.join()); }, diff --git a/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts b/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts index aa0f4eb239d..31d9ff664d3 100644 --- a/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts +++ b/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -8,7 +11,7 @@ describe("unittests:: config:: convertCompilerOptionsFromJson", () => { function baselineCompilerOptions(subScenario: string, json: any, configFileName: string) { baselineCompilerOptionsJsonText( subScenario, - JSON.stringify(json, undefined, " "), + jsonToReadableText(json), configFileName, /*skipJson*/ false, ); @@ -36,7 +39,7 @@ describe("unittests:: config:: convertCompilerOptionsFromJson", () => { jsonText, configFileName, basePath: "/apath", - baselineParsed: (baseline, parsed) => baseline.push("CompilerOptions::", JSON.stringify(parsed.options, undefined, " ")), + baselineParsed: (baseline, parsed) => baseline.push("CompilerOptions::", jsonToReadableText(parsed.options)), }], skipJson, }); diff --git a/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts b/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts index a24e5f61b75..22d346a7145 100644 --- a/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts +++ b/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -10,7 +13,7 @@ describe("unittests:: config:: convertTypeAcquisitionFromJson", () => { scenario: "convertTypeAcquisitionFromJson", subScenario, input: () => { - const jsonText = JSON.stringify(json, undefined, " "); + const jsonText = jsonToReadableText(json); return [{ createHost: () => new fakes.ParseConfigHost( @@ -29,7 +32,7 @@ describe("unittests:: config:: convertTypeAcquisitionFromJson", () => { jsonText, configFileName, basePath: "/apath", - baselineParsed: (baseline, parsed) => baseline.push("TypeAcquisition::", JSON.stringify(parsed.typeAcquisition, undefined, " ")), + baselineParsed: (baseline, parsed) => baseline.push("TypeAcquisition::", jsonToReadableText(parsed.typeAcquisition)), }]; }, }); diff --git a/src/testRunner/unittests/config/matchFiles.ts b/src/testRunner/unittests/config/matchFiles.ts index 97481f50dc9..40fe85fb6cc 100644 --- a/src/testRunner/unittests/config/matchFiles.ts +++ b/src/testRunner/unittests/config/matchFiles.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -162,7 +165,7 @@ const caseInsensitiveHostWithSameFileNamesWithDifferentExtensions = new fakes.Pa ); function baselineMatches(subScenario: string, json: any, host: fakes.ParseConfigHost, basePath: string) { - const jsonText = JSON.stringify(json, undefined, " "); + const jsonText = jsonToReadableText(json); baselineParseConfig({ scenario: "matchFiles", subScenario, @@ -176,15 +179,11 @@ function baselineMatches(subScenario: string, json: any, host: fakes.ParseConfig if (parsed.wildcardDirectories) ts.getOwnKeys(parsed.wildcardDirectories).forEach(dir => wildcardDirectories![dir] = `WatchDirectoryFlags.${(ts as any).WatchDirectoryFlags[parsed.wildcardDirectories![dir]]}`); baseline.push( "Result", - JSON.stringify( - { - ...parsed, - errors: undefined, - wildcardDirectories, - }, - undefined, - " ", - ), + jsonToReadableText({ + ...parsed, + errors: undefined, + wildcardDirectories, + }), ); }, }], diff --git a/src/testRunner/unittests/config/tsconfigParsing.ts b/src/testRunner/unittests/config/tsconfigParsing.ts index e0121594605..1b050c6a20c 100644 --- a/src/testRunner/unittests/config/tsconfigParsing.ts +++ b/src/testRunner/unittests/config/tsconfigParsing.ts @@ -2,6 +2,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -20,7 +23,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () for (const jsonText of jsonTexts()) { baseline.push("Input::", jsonText); const parsed = ts.parseConfigFileTextToJson("/apath/tsconfig.json", jsonText); - baseline.push("Config::", JSON.stringify(parsed.config, /*replacer*/ undefined, " ")); + baseline.push("Config::", jsonToReadableText(parsed.config)); baseline.push("Errors::"); baseline.push(formatErrors(parsed.error ? [parsed.error] : ts.emptyArray)); baseline.push(""); @@ -232,7 +235,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () baseline.push("Initial::", content); const result = ts.parseJsonText("config.json", content); const configJsonObject = ts.convertToObject(result, result.parseDiagnostics); - baseline.push("Result::", JSON.stringify(configJsonObject, undefined, " ")); + baseline.push("Result::", jsonToReadableText(configJsonObject)); baseline.push("Errors::", formatErrors(result.parseDiagnostics)); Harness.Baseline.runBaseline(`config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js`, baseline.join("\n")); }); @@ -320,7 +323,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () }], /*skipJson*/ true); baselinedParsed("generates errors when files is not string", () => [{ - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ files: [{ compilerOptions: { experimentalDecorators: true, @@ -334,7 +337,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () }]); baselinedParsed("generates errors when include is not string", () => [{ - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ include: [ ["./**/*.ts"], ], @@ -345,7 +348,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () }]); baselinedParsed("generates errors when commandline option is in tsconfig", () => [{ - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ compilerOptions: { help: true, }, @@ -382,7 +385,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () baselineWildcards("parses wildcard directories even when parent directories have dots", () => [{ configFileName: "/foo.bar/tsconfig.json", - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ include: ["src"], }), basePath: "/foo.bar", @@ -390,7 +393,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () baselineWildcards("correctly parses wild card directories from implicit glob when two keys differ only in directory seperator", () => [{ configFileName: "/foo.bar/tsconfig.json", - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ include: ["./", "./**/*.json"], }), basePath: "/foo", diff --git a/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts b/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts index 10a6cf35c37..2df76a14a40 100644 --- a/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts +++ b/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -18,7 +21,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText subScenario, input: () => scenario().map(({ json, additionalFiles, existingWatchOptions }) => { - const jsonText = JSON.stringify(json, undefined, " "); + const jsonText = jsonToReadableText(json); return { createHost: () => new fakes.ParseConfigHost( @@ -39,7 +42,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText existingWatchOptions, baselineParsed: (baseline, parsed) => { baseline.push(`Result: WatchOptions::`); - baseline.push(JSON.stringify(parsed.watchOptions, undefined, " ")); + baseline.push(jsonToReadableText(parsed.watchOptions)); }, }; }), @@ -77,7 +80,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText }, }, additionalFiles: { - "/base.json": JSON.stringify({ + "/base.json": jsonToReadableText({ watchOptions: { watchFile: "UseFsEventsOnParentDirectory", watchDirectory: "FixedPollingInterval", @@ -90,7 +93,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText extends: "./base.json", }, additionalFiles: { - "/base.json": JSON.stringify({ + "/base.json": jsonToReadableText({ watchOptions: { watchFile: "UseFsEventsOnParentDirectory", watchDirectory: "FixedPollingInterval", diff --git a/src/testRunner/unittests/evaluation/asyncGenerator.ts b/src/testRunner/unittests/evaluation/asyncGenerator.ts index a912a143ae5..f067c872aaf 100644 --- a/src/testRunner/unittests/evaluation/asyncGenerator.ts +++ b/src/testRunner/unittests/evaluation/asyncGenerator.ts @@ -62,4 +62,25 @@ describe("unittests:: evaluation:: asyncGeneratorEvaluation", () => { { done: true, value: undefined }, ]); }); + it("pass promise to gen.return()", async () => { + const result = evaluator.evaluateTypeScript( + ` + export const output = []; + async function* fn() { + yield* [1] + return 3 + } + export async function main() { + const it = fn(); + output.push(await it.next()); + output.push(await it.return(Promise.resolve(2))); + }`, + { target: ts.ScriptTarget.ES2017 }, + ); + await result.main(); + assert.deepEqual(result.output, [ + { done: false, value: 1 }, + { done: true, value: 2 }, + ]); + }); }); diff --git a/src/testRunner/unittests/helpers.ts b/src/testRunner/unittests/helpers.ts index b01502e93b8..fb5b95a2480 100644 --- a/src/testRunner/unittests/helpers.ts +++ b/src/testRunner/unittests/helpers.ts @@ -167,3 +167,7 @@ export function updateProgramText(files: readonly NamedSourceText[], fileName: s const file = ts.find(files, f => f.name === fileName)!; file.text = file.text.updateProgram(newProgramText); } + +export function jsonToReadableText(json: any) { + return JSON.stringify(json, undefined, 2); +} diff --git a/src/testRunner/unittests/helpers/baseline.ts b/src/testRunner/unittests/helpers/baseline.ts index 7daec608c0e..29391ebf4b3 100644 --- a/src/testRunner/unittests/helpers/baseline.ts +++ b/src/testRunner/unittests/helpers/baseline.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { TscCompileSystem, } from "./tsc"; @@ -54,8 +57,8 @@ export function baselinePrograms(baseline: string[], programs: readonly CommandL function baselineProgram(baseline: string[], [program, builderProgram]: CommandLineProgram, oldProgram: CommandLineProgram | undefined, baselineDependencies: boolean | undefined) { if (program !== oldProgram?.[0]) { const options = program.getCompilerOptions(); - baseline.push(`Program root files: ${JSON.stringify(program.getRootFileNames())}`); - baseline.push(`Program options: ${JSON.stringify(options)}`); + baseline.push(`Program root files: ${jsonToReadableText(program.getRootFileNames())}`); + baseline.push(`Program options: ${jsonToReadableText(options)}`); baseline.push(`Program structureReused: ${(ts as any).StructureIsReused[program.structureIsReused]}`); baseline.push("Program files::"); for (const file of program.getSourceFiles()) { @@ -275,7 +278,7 @@ function generateBuildInfoProgramBaseline(sys: ts.System, buildInfoPath: string, size: ts.getBuildInfoText({ ...buildInfo, version }).length, }; // For now its just JSON.stringify - sys.writeFile(`${buildInfoPath}.readable.baseline.txt`, JSON.stringify(result, /*replacer*/ undefined, 2)); + sys.writeFile(`${buildInfoPath}.readable.baseline.txt`, jsonToReadableText(result)); function toFileName(fileId: ts.ProgramBuildInfoFileId) { return buildInfo.program!.fileNames[fileId - 1]; diff --git a/src/testRunner/unittests/helpers/contents.ts b/src/testRunner/unittests/helpers/contents.ts index d31379328ee..95ad33c060c 100644 --- a/src/testRunner/unittests/helpers/contents.ts +++ b/src/testRunner/unittests/helpers/contents.ts @@ -25,3 +25,7 @@ interface Symbol { export interface FsContents { [path: string]: string; } + +export function libPath(forLib: string) { + return `${ts.getDirectoryPath(libFile.path)}/lib.${forLib}.d.ts`; +} diff --git a/src/testRunner/unittests/helpers/demoProjectReferences.ts b/src/testRunner/unittests/helpers/demoProjectReferences.ts new file mode 100644 index 00000000000..d6bf1741b2e --- /dev/null +++ b/src/testRunner/unittests/helpers/demoProjectReferences.ts @@ -0,0 +1,154 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, + libContent, +} from "./contents"; +import { + loadProjectFromFiles, +} from "./vfs"; +import { + createWatchedSystem, + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForDemoProjectReferencesCoreConfig(additional?: object) { + return jsonToReadableText({ + extends: "../tsconfig-base.json", + compilerOptions: { + outDir: "../lib/core", + rootDir: ".", + }, + ...additional, + }); +} +export function getFsContentsForDemoProjectReferences(): FsContents { + return { + "/user/username/projects/demo/animals/animal.ts": dedent` + export type Size = "small" | "medium" | "large"; + export default interface Animal { + size: Size; + } + `, + "/user/username/projects/demo/animals/dog.ts": dedent` + import Animal from '.'; + import { makeRandomName } from '../core/utilities'; + + export interface Dog extends Animal { + woof(): void; + name: string; + } + + export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(\`\${ this.name } says "Woof"!\`); + }, + name: makeRandomName() + }); + } + `, + "/user/username/projects/demo/animals/index.ts": dedent` + import Animal from './animal'; + + export default Animal; + import { createDog, Dog } from './dog'; + export { createDog, Dog }; + `, + "/user/username/projects/demo/animals/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig-base.json", + compilerOptions: { + outDir: "../lib/animals", + rootDir: ".", + }, + references: [ + { path: "../core" }, + ], + }), + "/user/username/projects/demo/core/utilities.ts": dedent` + + export function makeRandomName() { + return "Bob!?! "; + } + + export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; + } + `, + "/user/username/projects/demo/core/tsconfig.json": getFsContentsForDemoProjectReferencesCoreConfig(), + "/user/username/projects/demo/zoo/zoo.ts": dedent` + import { Dog, createDog } from '../animals/index'; + + export function createZoo(): Array { + return [ + createDog() + ]; + } + `, + "/user/username/projects/demo/zoo/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig-base.json", + compilerOptions: { + outDir: "../lib/zoo", + rootDir: ".", + }, + references: [ + { + path: "../animals", + }, + ], + }), + "/user/username/projects/demo/tsconfig-base.json": jsonToReadableText({ + compilerOptions: { + declaration: true, + target: "es5", + module: "commonjs", + strict: true, + noUnusedLocals: true, + noUnusedParameters: true, + noImplicitReturns: true, + noFallthroughCasesInSwitch: true, + composite: true, + }, + }), + "/user/username/projects/demo/tsconfig.json": jsonToReadableText({ + files: [], + references: [ + { + path: "./core", + }, + { + path: "./animals", + }, + { + path: "./zoo", + }, + ], + }), + [libFile.path]: libContent, + }; +} + +export function getFsForDemoProjectReferences() { + return loadProjectFromFiles( + getFsContentsForDemoProjectReferences(), + { + cwd: "/user/username/projects/demo", + executingFilePath: libFile.path, + }, + ); +} + +export function getSysForDemoProjectReferences() { + return createWatchedSystem( + getFsContentsForDemoProjectReferences(), + { + currentDirectory: "/user/username/projects/demo", + }, + ); +} diff --git a/src/testRunner/unittests/helpers/extends.ts b/src/testRunner/unittests/helpers/extends.ts index f4eccbe3573..88768c4cea0 100644 --- a/src/testRunner/unittests/helpers/extends.ts +++ b/src/testRunner/unittests/helpers/extends.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { createServerHost, createWatchedSystem, @@ -10,20 +13,20 @@ import { export function getSymlinkedExtendsSys(forTsserver?: true): TestServerHost { return (!forTsserver ? createWatchedSystem : createServerHost)({ - "/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json": JSON.stringify({ + "/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json": jsonToReadableText({ extends: "@something/tsconfig-base/tsconfig.json", compilerOptions: { removeComments: true, }, }), - "/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json": JSON.stringify({ + "/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, }), "/users/user/projects/myproject/src/index.ts": dedent` // some comment export const x = 10; `, - "/users/user/projects/myproject/src/tsconfig.json": JSON.stringify({ + "/users/user/projects/myproject/src/tsconfig.json": jsonToReadableText({ extends: "@something/tsconfig-node/tsconfig.json", }), "/users/user/projects/myproject/node_modules/@something/tsconfig-node": { diff --git a/src/testRunner/unittests/helpers/libraryResolution.ts b/src/testRunner/unittests/helpers/libraryResolution.ts index d435a4c2892..983acc12325 100644 --- a/src/testRunner/unittests/helpers/libraryResolution.ts +++ b/src/testRunner/unittests/helpers/libraryResolution.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { FsContents, libContent, @@ -24,23 +27,23 @@ function getFsContentsForLibResolution(libRedirection?: boolean): FsContents { /// /// `, - "/home/src/projects/project1/tsconfig.json": JSON.stringify({ + "/home/src/projects/project1/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], lib: ["es5", "dom"], traceResolution: true }, }), "/home/src/projects/project1/typeroot1/sometype/index.d.ts": `export type TheNum = "type1";`, "/home/src/projects/project2/utils.d.ts": `export const y = 10;`, "/home/src/projects/project2/index.ts": `export const y = 10`, - "/home/src/projects/project2/tsconfig.json": JSON.stringify({ + "/home/src/projects/project2/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true }, }), "/home/src/projects/project3/utils.d.ts": `export const y = 10;`, "/home/src/projects/project3/index.ts": `export const z = 10`, - "/home/src/projects/project3/tsconfig.json": JSON.stringify({ + "/home/src/projects/project3/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true }, }), "/home/src/projects/project4/utils.d.ts": `export const y = 10;`, "/home/src/projects/project4/index.ts": `export const z = 10`, - "/home/src/projects/project4/tsconfig.json": JSON.stringify({ + "/home/src/projects/project4/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, lib: ["esnext", "dom", "webworker"], traceResolution: true }, }), "/home/src/lib/lib.es5.d.ts": libContent, @@ -79,7 +82,7 @@ export function getSysForLibResolution(libRedirection?: true) { ); } -export function getServerHosForLibResolution(libRedirection?: true) { +export function getServerHostForLibResolution(libRedirection?: true) { return createServerHost( getFsContentsForLibResolution(libRedirection), { diff --git a/src/testRunner/unittests/helpers/noEmitOnError.ts b/src/testRunner/unittests/helpers/noEmitOnError.ts new file mode 100644 index 00000000000..31443193675 --- /dev/null +++ b/src/testRunner/unittests/helpers/noEmitOnError.ts @@ -0,0 +1,63 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, + libContent, +} from "./contents"; +import { + loadProjectFromFiles, +} from "./vfs"; +import { + createWatchedSystem, + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForNoEmitOnError(): FsContents { + return { + "/user/username/projects/noEmitOnError/tsconfig.json": jsonToReadableText({ + compilerOptions: { + outDir: "./dev-build", + noEmitOnError: true, + }, + }), + "/user/username/projects/noEmitOnError/shared/types/db.ts": dedent` + export interface A { + name: string; + } + `, + "/user/username/projects/noEmitOnError/src/main.ts": dedent` + import { A } from "../shared/types/db"; + const a = { + lastName: 'sdsd' + ; + `, + "/user/username/projects/noEmitOnError/src/other.ts": dedent` + console.log("hi"); + export { } + `, + [libFile.path]: libContent, + }; +} + +export function getFsForNoEmitOnError() { + return loadProjectFromFiles( + getFsContentsForNoEmitOnError(), + { + cwd: "/user/username/projects/noEmitOnError", + executingFilePath: libFile.path, + }, + ); +} + +export function getSysForNoEmitOnError() { + return createWatchedSystem( + getFsContentsForNoEmitOnError(), + { + currentDirectory: "/user/username/projects/noEmitOnError", + }, + ); +} diff --git a/src/testRunner/unittests/helpers/node10Result.ts b/src/testRunner/unittests/helpers/node10Result.ts index 7ab2f528b42..a904c52d9ec 100644 --- a/src/testRunner/unittests/helpers/node10Result.ts +++ b/src/testRunner/unittests/helpers/node10Result.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { FsContents, } from "./contents"; @@ -9,41 +12,33 @@ import { } from "./virtualFileSystemWithWatch"; export function getFsConentsForNode10ResultAtTypesPackageJson(packageName: string, addTypesCondition: boolean) { - return JSON.stringify( - { - name: `@types/${packageName}`, - version: "1.0.0", - types: "index.d.ts", - exports: { - ".": { - ...(addTypesCondition ? { types: "./index.d.ts" } : {}), - require: "./index.d.ts", - }, + return jsonToReadableText({ + name: `@types/${packageName}`, + version: "1.0.0", + types: "index.d.ts", + exports: { + ".": { + ...(addTypesCondition ? { types: "./index.d.ts" } : {}), + require: "./index.d.ts", }, }, - undefined, - " ", - ); + }); } export function getFsContentsForNode10ResultPackageJson(packageName: string, addTypes: boolean, addTypesCondition: boolean) { - return JSON.stringify( - { - name: packageName, - version: "1.0.0", - main: "index.js", - ...(addTypes ? { types: "index.d.ts" } : {}), - exports: { - ".": { - ...(addTypesCondition ? { types: "./index.d.ts" } : {}), - import: "./index.mjs", - require: "./index.js", - }, + return jsonToReadableText({ + name: packageName, + version: "1.0.0", + main: "index.js", + ...(addTypes ? { types: "index.d.ts" } : {}), + exports: { + ".": { + ...(addTypesCondition ? { types: "./index.d.ts" } : {}), + import: "./index.mjs", + require: "./index.js", }, }, - undefined, - " ", - ); + }); } export function getFsContentsForNode10ResultDts(packageName: string) { @@ -84,7 +79,7 @@ export function getFsContentsForNode10Result(): FsContents { import { foo2 } from "foo2"; import { bar2 } from "bar2"; `, - "/home/src/projects/project/tsconfig.json": JSON.stringify({ + "/home/src/projects/project/tsconfig.json": jsonToReadableText({ compilerOptions: { moduleResolution: "node16", traceResolution: true, diff --git a/src/testRunner/unittests/helpers/sampleProjectReferences.ts b/src/testRunner/unittests/helpers/sampleProjectReferences.ts new file mode 100644 index 00000000000..c4a1623f9fd --- /dev/null +++ b/src/testRunner/unittests/helpers/sampleProjectReferences.ts @@ -0,0 +1,112 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, +} from "./contents"; +import { + loadProjectFromFiles, +} from "./vfs"; +import { + createServerHost, + createWatchedSystem, + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForSampleProjectReferencesLogicConfig() { + return jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + sourceMap: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + references: [ + { path: "../core" }, + ], + }); +} +export function getFsContentsForSampleProjectReferences(): FsContents { + return { + [libFile.path]: libFile.content, + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + declarationMap: true, + skipDefaultLibCheck: true, + }, + }), + "/user/username/projects/sample1/core/index.ts": dedent` + export const someString: string = "HELLO WORLD"; + export function leftPad(s: string, n: number) { return s + n; } + export function multiply(a: number, b: number) { return a * b; } + `, + "/user/username/projects/sample1/core/some_decl.d.ts": `declare const dts: any;`, + "/user/username/projects/sample1/core/anotherModule.ts": `export const World = "hello";`, + "/user/username/projects/sample1/logic/tsconfig.json": getFsContentsForSampleProjectReferencesLogicConfig(), + "/user/username/projects/sample1/logic/index.ts": dedent` + import * as c from '../core/index'; + export function getSecondsInDay() { + return c.multiply(10, 15); + } + import * as mod from '../core/anotherModule'; + export const m = mod; + `, + "/user/username/projects/sample1/tests/tsconfig.json": jsonToReadableText({ + references: [ + { path: "../core" }, + { path: "../logic" }, + ], + files: ["index.ts"], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + }), + "/user/username/projects/sample1/tests/index.ts": dedent` + import * as c from '../core/index'; + import * as logic from '../logic/index'; + + c.leftPad("", 10); + logic.getSecondsInDay(); + + import * as mod from '../core/anotherModule'; + export const m = mod; + `, + }; +} + +export function getFsForSampleProjectReferences() { + return loadProjectFromFiles( + getFsContentsForSampleProjectReferences(), + { + cwd: "/user/username/projects/sample1", + executingFilePath: libFile.path, + }, + ); +} + +export function getSysForSampleProjectReferences() { + return createWatchedSystem( + getFsContentsForSampleProjectReferences(), + { + currentDirectory: "/user/username/projects/sample1", + }, + ); +} + +export function getServerHostForSampleProjectReferences() { + return createServerHost( + getFsContentsForSampleProjectReferences(), + { + currentDirectory: "/user/username/projects/sample1", + }, + ); +} diff --git a/src/testRunner/unittests/helpers/solutionBuilder.ts b/src/testRunner/unittests/helpers/solutionBuilder.ts index da77ca79ed0..f47871c8c35 100644 --- a/src/testRunner/unittests/helpers/solutionBuilder.ts +++ b/src/testRunner/unittests/helpers/solutionBuilder.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commandLineCallbacks, } from "./baseline"; @@ -9,11 +12,7 @@ import { } from "./tsc"; import { changeToHostTrackingWrittenFiles, - createWatchedSystem, - FileOrFolderOrSymLink, - FileOrFolderOrSymLinkMap, TestServerHost, - TestServerHostCreationParameters, } from "./virtualFileSystemWithWatch"; export function createSolutionBuilderHostForBaseline( @@ -37,7 +36,7 @@ export function createSolutionBuilder(system: TestServerHost, rootNames: readonl export function ensureErrorFreeBuild(host: TestServerHost, rootNames: readonly string[]) { // ts build should succeed solutionBuildWithBaseline(host, rootNames); - assert.equal(host.getOutput().length, 0, JSON.stringify(host.getOutput(), /*replacer*/ undefined, " ")); + assert.equal(host.getOutput().length, 0, jsonToReadableText(host.getOutput())); } export function solutionBuildWithBaseline(sys: TestServerHost, solutionRoots: readonly string[], originalRead?: TestServerHost["readFile"]) { @@ -59,7 +58,3 @@ export function solutionBuildWithBaseline(sys: TestServerHost, solutionRoots: re sys.writtenFiles = undefined; return sys; } - -export function createSystemWithSolutionBuild(solutionRoots: readonly string[], files: FileOrFolderOrSymLinkMap | readonly FileOrFolderOrSymLink[], params?: TestServerHostCreationParameters) { - return solutionBuildWithBaseline(createWatchedSystem(files, params), solutionRoots); -} diff --git a/src/testRunner/unittests/helpers/transitiveReferences.ts b/src/testRunner/unittests/helpers/transitiveReferences.ts new file mode 100644 index 00000000000..291fc11b562 --- /dev/null +++ b/src/testRunner/unittests/helpers/transitiveReferences.ts @@ -0,0 +1,73 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, + libContent, +} from "./contents"; +import { + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForTransitiveReferencesRefsAdts() { + return dedent` + export class X {} + export class A {} + `; +} + +export function getFsContentsForTransitiveReferencesBConfig() { + return jsonToReadableText({ + compilerOptions: { + composite: true, + baseUrl: "./", + paths: { + "@ref/*": ["./*"], + }, + }, + files: ["b.ts"], + references: [{ path: "tsconfig.a.json" }], + }); +} + +export function getFsContentsForTransitiveReferencesAConfig() { + return jsonToReadableText({ + compilerOptions: { composite: true }, + files: ["a.ts"], + }); +} + +export function getFsContentsForTransitiveReferences(): FsContents { + return { + "/user/username/projects/transitiveReferences/refs/a.d.ts": getFsContentsForTransitiveReferencesRefsAdts(), + "/user/username/projects/transitiveReferences/a.ts": dedent` + export class A {} + `, + "/user/username/projects/transitiveReferences/b.ts": dedent` + import {A} from '@ref/a'; + export const b = new A(); + `, + "/user/username/projects/transitiveReferences/c.ts": dedent` + import {b} from './b'; + import {X} from "@ref/a"; + b; + X; + `, + "/user/username/projects/transitiveReferences/tsconfig.a.json": getFsContentsForTransitiveReferencesAConfig(), + "/user/username/projects/transitiveReferences/tsconfig.b.json": getFsContentsForTransitiveReferencesBConfig(), + "/user/username/projects/transitiveReferences/tsconfig.c.json": jsonToReadableText({ + files: ["c.ts"], + compilerOptions: { + baseUrl: "./", + paths: { + "@ref/*": ["./refs/*"], + }, + }, + references: [{ path: "tsconfig.b.json" }], + }), + [libFile.path]: libContent, + }; +} diff --git a/src/testRunner/unittests/helpers/tsc.ts b/src/testRunner/unittests/helpers/tsc.ts index 46b2a754c8d..5a06b49502d 100644 --- a/src/testRunner/unittests/helpers/tsc.ts +++ b/src/testRunner/unittests/helpers/tsc.ts @@ -2,6 +2,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselinePrograms, CommandLineCallbacks, @@ -136,13 +139,15 @@ export function testTscCompile(input: TestTscCompile) { makeSystemReadyForBaseline(sys); actualReadFileMap = {}; const originalReadFile = sys.readFile; - sys.readFile = path => { - // Dont record libs - if (path.startsWith("/src/")) { - actualReadFileMap![path] = (ts.getProperty(actualReadFileMap!, path) || 0) + 1; - } - return originalReadFile.call(sys, path); - }; + if (input.baselineReadFileCalls) { + sys.readFile = path => { + // Dont record libs + if (!path.startsWith(ts.getDirectoryPath(sys.getExecutingFilePath()))) { + actualReadFileMap![path] = (ts.getProperty(actualReadFileMap!, path) || 0) + 1; + } + return originalReadFile.call(sys, path); + }; + } const result = commandLineCallbacks(sys, originalReadFile); ts.executeCommandLine( @@ -164,7 +169,7 @@ export function testTscCompile(input: TestTscCompile) { sys.write(baseline.join("\n")); } if (baselineReadFileCalls) { - sys.write(`readFiles:: ${JSON.stringify(actualReadFileMap, /*replacer*/ undefined, " ")} `); + sys.write(`readFiles:: ${jsonToReadableText(actualReadFileMap)} `); } if (baselineSourceMap) generateSourceMapBaselineFiles(sys); actualReadFileMap = undefined; @@ -302,9 +307,9 @@ function verifyTscEditDiscrepancies({ if (!incrementalFileInfo || !cleanFileInfo || incrementalFileInfo.signature !== cleanFileInfo.signature && (!dtsForKey || incrementalFileInfo.signature !== dtsForKey.signature)) { return [ `Incremental signature is neither dts signature nor file version for File:: ${key}`, - `Incremental:: ${JSON.stringify(incrementalFileInfo, /*replacer*/ undefined, 2)}`, - `Clean:: ${JSON.stringify(cleanFileInfo, /*replacer*/ undefined, 2)}`, - `Dts Signature:: $${JSON.stringify(dtsForKey?.signature)}`, + `Incremental:: ${jsonToReadableText(incrementalFileInfo)}`, + `Clean:: ${jsonToReadableText(cleanFileInfo)}`, + `Dts Signature:: $${jsonToReadableText(dtsForKey?.signature)}`, ]; } }, @@ -324,9 +329,9 @@ function verifyTscEditDiscrepancies({ ) { return [ `Incremental Reference set is neither from dts nor files reference map for File:: ${key}::`, - `Incremental:: ${JSON.stringify(incrementalReferenceSet, /*replacer*/ undefined, 2)}`, - `Clean:: ${JSON.stringify(cleanReferenceSet, /*replacer*/ undefined, 2)}`, - `DtsExportsMap:: ${JSON.stringify(dtsForKey?.exportedModules, /*replacer*/ undefined, 2)}`, + `Incremental:: ${jsonToReadableText(incrementalReferenceSet)}`, + `Clean:: ${jsonToReadableText(cleanReferenceSet)}`, + `DtsExportsMap:: ${jsonToReadableText(dtsForKey?.exportedModules)}`, ]; } }, @@ -405,9 +410,9 @@ function verifyTscEditDiscrepancies({ addBaseline( message, "CleanBuild:", - ts.isString(expected) ? expected : JSON.stringify(expected), + ts.isString(expected) ? expected : jsonToReadableText(expected), "IncrementalBuild:", - ts.isString(actual) ? actual : JSON.stringify(actual), + ts.isString(actual) ? actual : jsonToReadableText(actual), ); } @@ -437,25 +442,21 @@ function getBuildInfoForIncrementalCorrectnessCheck(text: string | undefined): { } } return { - buildInfo: JSON.stringify( - { - ...readableBuildInfo, - program: readableBuildInfo.program && { - ...readableBuildInfo.program, - fileNames: undefined, - fileNamesList: undefined, - fileInfos: sanitizedFileInfos, - // Ignore noEmit since that shouldnt be reason to emit the tsbuild info and presence of it in the buildinfo file does not matter - options: { ...readableBuildInfo.program.options, noEmit: undefined }, - exportedModulesMap: undefined, - affectedFilesPendingEmit: undefined, - latestChangedDtsFile: readableBuildInfo.program.latestChangedDtsFile ? "FakeFileName" : undefined, - }, - size: undefined, // Size doesnt need to be equal + buildInfo: jsonToReadableText({ + ...readableBuildInfo, + program: readableBuildInfo.program && { + ...readableBuildInfo.program, + fileNames: undefined, + fileNamesList: undefined, + fileInfos: sanitizedFileInfos, + // Ignore noEmit since that shouldnt be reason to emit the tsbuild info and presence of it in the buildinfo file does not matter + options: { ...readableBuildInfo.program.options, noEmit: undefined }, + exportedModulesMap: undefined, + affectedFilesPendingEmit: undefined, + latestChangedDtsFile: readableBuildInfo.program.latestChangedDtsFile ? "FakeFileName" : undefined, }, - /*replacer*/ undefined, - 2, - ), + size: undefined, // Size doesnt need to be equal + }), readableBuildInfo, }; } diff --git a/src/testRunner/unittests/helpers/tsserver.ts b/src/testRunner/unittests/helpers/tsserver.ts index c02774d8123..e88d01170f6 100644 --- a/src/testRunner/unittests/helpers/tsserver.ts +++ b/src/testRunner/unittests/helpers/tsserver.ts @@ -1,14 +1,21 @@ import { incrementalVerifier, } from "../../../harness/incrementalUtils"; +import { + createHasErrorMessageLogger, + createLoggerWithInMemoryLogs, + Logger, +} from "../../../harness/tsserverLogger"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; -import { - ActionWatchTypingLocations, -} from "../../_namespaces/ts.server"; import { ensureErrorFreeBuild, } from "./solutionBuilder"; +import { + customTypesMap, + TestTypingsInstaller, + TestTypingsInstallerOptions, +} from "./typingsInstaller"; import { changeToHostTrackingWrittenFiles, createServerHost, @@ -19,164 +26,6 @@ import { TestServerHostTrackingWrittenFiles, } from "./virtualFileSystemWithWatch"; -export const customTypesMap = { - path: "/typesMap.json" as ts.Path, - content: `{ - "typesMap": { - "jquery": { - "match": "jquery(-(\\\\.?\\\\d+)+)?(\\\\.intellisense)?(\\\\.min)?\\\\.js$", - "types": ["jquery"] - }, - "quack": { - "match": "/duckquack-(\\\\d+)\\\\.min\\\\.js", - "types": ["duck-types"] - } - }, - "simpleMap": { - "Bacon": "baconjs", - "bliss": "blissfuljs", - "commander": "commander", - "cordova": "cordova", - "react": "react", - "lodash": "lodash" - } - }`, -}; - -function replaceAll(source: string, searchValue: string, replaceValue: string): string { - let result: string | undefined = (source as string & { replaceAll: typeof source.replace; }).replaceAll?.(searchValue, replaceValue); - - if (result !== undefined) { - return result; - } - - result = ""; - const searchLength = searchValue.length; - while (true) { - const index = source.indexOf(searchValue); - if (index < 0) { - break; - } - result += source.slice(0, index); - result += replaceValue; - source = source.slice(index + searchLength); - } - result += source; - return result; -} - -export interface PostExecAction { - readonly success: boolean; - requestId: number; - readonly packageNames: readonly string[]; - readonly callback: ts.server.typingsInstaller.RequestCompletedAction; -} - -export interface Logger extends ts.server.Logger { - logs?: string[]; - log(s: string): void; - host?: TestServerHost; -} - -export function nullLogger(): Logger { - return { - close: ts.noop, - hasLevel: ts.returnFalse, - loggingEnabled: ts.returnFalse, - perftrc: ts.noop, - info: ts.noop, - msg: ts.noop, - startGroup: ts.noop, - endGroup: ts.noop, - getLogFileName: ts.returnUndefined, - log: ts.noop, - isTestLogger: true, - }; -} - -export function createHasErrorMessageLogger(): Logger { - return { - ...nullLogger(), - msg: (s, type) => ts.Debug.fail(`Error: ${s}, type: ${type}`), - }; -} - -function handleLoggerGroup(logger: Logger, host: TestServerHost | undefined): Logger { - let inGroup = false; - let firstInGroup = false; - logger.startGroup = () => { - inGroup = true; - firstInGroup = true; - }; - logger.endGroup = () => inGroup = false; - logger.host = host; - const originalInfo = logger.info; - logger.info = s => msg(s, ts.server.Msg.Info, s => originalInfo.call(logger, s)); - logger.log = s => originalInfo.call(logger, s); - return logger; - - function msg(s: string, type = ts.server.Msg.Err, write: (s: string) => void) { - s = `[${nowString(logger.host!)}] ${s}`; - if (!inGroup || firstInGroup) s = padStringRight(type + " seq", " ") + s; - if (ts.Debug.isDebugging) console.log(s); - write(s); - } - - function padStringRight(str: string, padding: string) { - return (str + padding).slice(0, padding.length); - } -} - -function nowString(host: TestServerHost) { - // E.g. "12:34:56.789" - host.now(); // To increment the time but not print it to avoid the baseline updates - return `hh:mm:ss:mss`; -} - -export function createLoggerWritingToConsole(host: TestServerHost): Logger { - return handleLoggerGroup({ - ...nullLogger(), - hasLevel: ts.returnTrue, - loggingEnabled: ts.returnTrue, - perftrc: s => console.log(s), - info: s => console.log(s), - msg: (s, type) => console.log(`${type}:: ${s}`), - }, host); -} - -function sanitizeLog(s: string): string { - s = s.replace(/Elapsed::?\s*\d+(?:\.\d+)?ms/g, "Elapsed:: *ms"); - s = s.replace(/"updateGraphDurationMs":\s*\d+(?:\.\d+)?/g, `"updateGraphDurationMs": *`); - s = s.replace(/"createAutoImportProviderProgramDurationMs":\s*\d+(?:\.\d+)?/g, `"createAutoImportProviderProgramDurationMs": *`); - s = replaceAll(s, ts.version, "FakeVersion"); - s = s.replace(/getCompletionData: Get current token: \d+(?:\.\d+)?/g, `getCompletionData: Get current token: *`); - s = s.replace(/getCompletionData: Is inside comment: \d+(?:\.\d+)?/g, `getCompletionData: Is inside comment: *`); - s = s.replace(/getCompletionData: Get previous token: \d+(?:\.\d+)?/g, `getCompletionData: Get previous token: *`); - s = s.replace(/getCompletionsAtPosition: isCompletionListBlocker: \d+(?:\.\d+)?/g, `getCompletionsAtPosition: isCompletionListBlocker: *`); - s = s.replace(/getCompletionData: Semantic work: \d+(?:\.\d+)?/g, `getCompletionData: Semantic work: *`); - s = s.replace(/getCompletionsAtPosition: getCompletionEntriesFromSymbols: \d+(?:\.\d+)?/g, `getCompletionsAtPosition: getCompletionEntriesFromSymbols: *`); - s = s.replace(/forEachExternalModuleToImportFrom autoImportProvider: \d+(?:\.\d+)?/g, `forEachExternalModuleToImportFrom autoImportProvider: *`); - s = s.replace(/getExportInfoMap: done in \d+(?:\.\d+)?/g, `getExportInfoMap: done in *`); - s = s.replace(/collectAutoImports: \d+(?:\.\d+)?/g, `collectAutoImports: *`); - s = s.replace(/continuePreviousIncompleteResponse: \d+(?:\.\d+)?/g, `continuePreviousIncompleteResponse: *`); - s = s.replace(/dependencies in \d+(?:\.\d+)?/g, `dependencies in *`); - s = s.replace(/"exportMapKey":\s*"\d+ \d+ /g, match => match.replace(/ \d+ /, ` * `)); - return s; -} - -export function createLoggerWithInMemoryLogs(host: TestServerHost): Logger { - const logger = createHasErrorMessageLogger(); - const logs: string[] = []; - if (host) logs.push(`currentDirectory:: ${host.getCurrentDirectory()} useCaseSensitiveFileNames: ${host.useCaseSensitiveFileNames}`); - return handleLoggerGroup({ - ...logger, - logs, - hasLevel: ts.returnTrue, - loggingEnabled: ts.returnTrue, - info: s => logs.push(sanitizeLog(s)), - }, host); -} - export function baselineTsserverLogs(scenario: string, subScenario: string, sessionOrService: { logger: Logger; }) { ts.Debug.assert(sessionOrService.logger.logs?.length); // Ensure caller used in memory logger Harness.Baseline.runBaseline(`tsserver/${scenario}/${subScenario.split(" ").join("-")}.js`, sessionOrService.logger.logs.join("\r\n")); @@ -189,231 +38,6 @@ export function appendAllScriptInfos(session: TestSession) { session.logger.log(""); } -function loggerToTypingsInstallerLog(logger: Logger): ts.server.typingsInstaller.Log | undefined { - return logger?.loggingEnabled() ? { - isEnabled: ts.returnTrue, - writeLine: s => { - // This is a VERY VERY NAIVE sanitization strategy. - // If a substring containing the exact TypeScript version is found, - // even if it's unrelated to TypeScript itself, then it will be replaced, - // leaving us with two options: - // - // 1. Deal with flip-flopping baselines. - // 2. Change the TypeScript version until no matching substring is found. - // - const initialLog = sanitizeLog(s); - const pseudoSanitizedLog = replaceAll(initialLog, `@ts${ts.versionMajorMinor}`, `@tsFakeMajor.Minor`); - return logger.log(`TI:: [${nowString(logger.host!)}] ${pseudoSanitizedLog}`); - }, - } : undefined; -} - -interface TypesRegistryFile { - entries: ts.MapLike>; -} - -function loadTypesRegistryFile(typesRegistryFilePath: string, host: TestServerHost, log: ts.server.typingsInstaller.Log): Map> { - if (!host.fileExists(typesRegistryFilePath)) { - if (log.isEnabled()) { - log.writeLine(`Types registry file '${typesRegistryFilePath}' does not exist`); - } - return new Map>(); - } - try { - const content = JSON.parse(host.readFile(typesRegistryFilePath)!) as TypesRegistryFile; - return new Map(Object.entries(content.entries)); - } - catch (e) { - if (log.isEnabled()) { - log.writeLine(`Error when loading types registry file '${typesRegistryFilePath}': ${(e as Error).message}, ${(e as Error).stack}`); - } - return new Map>(); - } -} - -const typesRegistryPackageName = "types-registry"; -function getTypesRegistryFileLocation(globalTypingsCacheLocation: string): string { - return ts.combinePaths(ts.normalizeSlashes(globalTypingsCacheLocation), `node_modules/${typesRegistryPackageName}/index.json`); -} - -export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.TypingsInstaller { - readonly typesRegistry: Map>; - protected projectService!: ts.server.ProjectService; - constructor( - readonly globalTypingsCacheLocation: string, - throttleLimit: number, - installTypingHost: TestServerHost, - logger: Logger, - typesRegistry?: string | readonly string[], - ) { - const log = loggerToTypingsInstallerLog(logger); - if (log?.isEnabled()) { - patchHostTimeouts( - changeToHostTrackingWrittenFiles(installTypingHost), - logger, - ); - (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: Creating typing installer"); - } - super( - installTypingHost, - globalTypingsCacheLocation, - "/safeList.json" as ts.Path, - customTypesMap.path, - throttleLimit, - log, - ); - - this.ensurePackageDirectoryExists(globalTypingsCacheLocation); - - if (this.log.isEnabled()) { - this.log.writeLine(`Updating ${typesRegistryPackageName} npm package...`); - this.log.writeLine(`npm install --ignore-scripts ${typesRegistryPackageName}@${this.latestDistTag}`); - } - installTypingHost.ensureFileOrFolder({ - path: getTypesRegistryFileLocation(globalTypingsCacheLocation), - content: JSON.stringify( - createTypesRegistryFileContent( - typesRegistry ? - ts.isString(typesRegistry) ? - [typesRegistry] : - typesRegistry : - ts.emptyArray, - ), - undefined, - " ", - ), - }); - if (this.log.isEnabled()) { - this.log.writeLine(`TI:: Updated ${typesRegistryPackageName} npm package`); - } - this.typesRegistry = loadTypesRegistryFile(getTypesRegistryFileLocation(globalTypingsCacheLocation), installTypingHost, this.log); - if (this.log.isEnabled()) { - (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: typing installer creation complete"); - } - } - - protected postExecActions: PostExecAction[] = []; - - executePendingCommands() { - const actionsToRun = this.postExecActions; - this.postExecActions = []; - for (const action of actionsToRun) { - if (this.log.isEnabled()) { - this.log.writeLine(`#${action.requestId} with arguments'${JSON.stringify(action.packageNames)}':: ${action.success}`); - } - action.callback(action.success); - } - } - - attach(projectService: ts.server.ProjectService) { - this.projectService = projectService; - } - - getInstallTypingHost() { - return this.installTypingHost; - } - - installWorker(requestId: number, packageNames: string[], _cwd: string, cb: ts.server.typingsInstaller.RequestCompletedAction): void { - if (this.log.isEnabled()) { - this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(packageNames)}'.`); - } - this.addPostExecAction("success", requestId, packageNames, cb); - } - - sendResponse(response: ts.server.SetTypings | ts.server.InvalidateCachedTypings | ts.server.WatchTypingLocations) { - if (this.log.isEnabled()) { - this.log.writeLine(`Sending response:\n ${JSON.stringify(response)}`); - } - if (response.kind !== ActionWatchTypingLocations) this.projectService.updateTypingsForProject(response); - else this.projectService.watchTypingLocations(response); - } - - enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { - const request = ts.server.createInstallTypingsRequest(project, typeAcquisition, unresolvedImports, this.globalTypingsCacheLocation); - this.install(request); - } - - addPostExecAction(stdout: string | string[], requestId: number, packageNames: string[], cb: ts.server.typingsInstaller.RequestCompletedAction) { - const out = ts.isString(stdout) ? stdout : createNpmPackageJsonString(stdout); - const action: PostExecAction = { - success: !!out, - requestId, - packageNames, - callback: cb, - }; - this.postExecActions.push(action); - } -} - -export class TestTypingsInstaller implements ts.server.ITypingsInstaller { - protected projectService!: ts.server.ProjectService; - public installer!: T; - constructor( - readonly globalTypingsCacheLocation: string, - private throttleLimit: number, - private installTypingHost: TestServerHost, - private logger: Logger, - private workerConstructor?: new (...args: ConstructorParameters) => T, - private typesRegistry?: string | readonly string[], - ) { - } - - isKnownTypesPackageName = ts.notImplemented; - installPackage = ts.notImplemented; - - attach(projectService: ts.server.ProjectService) { - this.projectService = projectService; - } - - onProjectClosed(p: ts.server.Project) { - this.installer?.closeProject({ projectName: p.getProjectName(), kind: "closeProject" }); - } - - enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { - if (!this.installer) { - if (this.workerConstructor) { - this.installer ??= new this.workerConstructor(this.globalTypingsCacheLocation, this.throttleLimit, this.installTypingHost, this.logger, this.typesRegistry); - } - else { - this.installer = new TestTypingsInstallerWorker(this.globalTypingsCacheLocation, this.throttleLimit, this.installTypingHost, this.logger, this.typesRegistry) as T; - } - this.installer.attach(this.projectService); - } - this.installer.enqueueInstallTypingsRequest(project, typeAcquisition, unresolvedImports); - } -} - -function createNpmPackageJsonString(installedTypings: string[]): string { - const dependencies: ts.MapLike = {}; - for (const typing of installedTypings) { - dependencies[typing] = "1.0.0"; - } - return JSON.stringify({ dependencies }); -} - -function createTypesRegistryFileContent(list: readonly string[]): TypesRegistryFile { - const versionMap = { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0", - }; - const entries: ts.MapLike> = {}; - for (const l of list) { - entries[l] = versionMap; - } - return { entries }; -} - -export function createTypesRegistry(...list: string[]) { - return new Map(Object.entries(createTypesRegistryFileContent(list).entries)); -} - export function toExternalFile(fileName: string): ts.server.protocol.ExternalFile { return { fileName }; } @@ -427,7 +51,7 @@ export type TestSessionAndServiceHost = TestServerHostTrackingWrittenFiles & { baselineHost(title: string): void; logTimeoutQueueLength(): void; }; -function patchHostTimeouts( +export function patchHostTimeouts( inputHost: TestServerHostTrackingWrittenFiles, logger: Logger, ) { @@ -486,7 +110,7 @@ function patchHostTimeouts( } } -export interface TestSessionOptions extends ts.server.SessionOptions { +export interface TestSessionOptions extends ts.server.SessionOptions, TestTypingsInstallerOptions { logger: Logger; allowNonBaseliningLogger?: boolean; disableAutomaticTypingAcquisition?: boolean; @@ -523,11 +147,11 @@ export class TestSession extends ts.server.Session { public override executeCommand(request: ts.server.protocol.Request) { if (this.logger.hasLevel(ts.server.LogLevel.verbose)) { this.testhost.baselineHost("Before request"); - this.logger.info(`request:${ts.server.indent(JSON.stringify(request, undefined, 2))}`); + this.logger.info(`request:${ts.server.stringifyIndented(request)}`); } const response = super.executeCommand(request); if (this.logger.hasLevel(ts.server.LogLevel.verbose)) { - this.logger.info(`response:${ts.server.indent(JSON.stringify(response.response === ts.getSupportedCodeFixes() ? { ...response, response: "ts.getSupportedCodeFixes()" } : response, undefined, 2))}`); + this.logger.info(`response:${ts.server.stringifyIndented(response.response === ts.getSupportedCodeFixes() ? { ...response, response: "ts.getSupportedCodeFixes()" } : response)}`); this.testhost.baselineHost("After request"); } return response; @@ -545,7 +169,11 @@ export class TestSession extends ts.server.Session { export function createSession(host: TestServerHost, opts: Partial = {}) { const logger = opts.logger || createHasErrorMessageLogger(); if (!opts.disableAutomaticTypingAcquisition && opts.typingsInstaller === undefined) { - opts.typingsInstaller = new TestTypingsInstaller(host.getHostSpecificPath("/a/data/"), /*throttleLimit*/ 5, host, logger); + opts.typingsInstaller = new TestTypingsInstaller( + host, + logger, + opts, + ); } if (opts.eventHandler !== undefined) { diff --git a/src/testRunner/unittests/helpers/typingsInstaller.ts b/src/testRunner/unittests/helpers/typingsInstaller.ts new file mode 100644 index 00000000000..025ebe4b84c --- /dev/null +++ b/src/testRunner/unittests/helpers/typingsInstaller.ts @@ -0,0 +1,334 @@ +import { + Logger, + nowString, + replaceAll, + sanitizeLog, +} from "../../../harness/tsserverLogger"; +import * as ts from "../../_namespaces/ts"; +import { + ActionWatchTypingLocations, + stringifyIndented, +} from "../../_namespaces/ts.server"; +import { + jsonToReadableText, +} from "../helpers"; +import { + patchHostTimeouts, + TestSessionAndServiceHost, +} from "./tsserver"; +import { + changeToHostTrackingWrittenFiles, + File, + TestServerHost, +} from "./virtualFileSystemWithWatch"; + +export const customTypesMap = { + path: "/typesMap.json" as ts.Path, + content: `{ + "typesMap": { + "jquery": { + "match": "jquery(-(\\\\.?\\\\d+)+)?(\\\\.intellisense)?(\\\\.min)?\\\\.js$", + "types": ["jquery"] + }, + "quack": { + "match": "/duckquack-(\\\\d+)\\\\.min\\\\.js", + "types": ["duck-types"] + } + }, + "simpleMap": { + "Bacon": "baconjs", + "bliss": "blissfuljs", + "commander": "commander", + "cordova": "cordova", + "react": "react", + "lodash": "lodash" + } + }`, +}; + +export interface PostExecAction { + readonly success: boolean; + requestId: number; + readonly packageNames: readonly string[]; + readonly callback: ts.server.typingsInstaller.RequestCompletedAction; +} +export function loggerToTypingsInstallerLog(logger: Logger): ts.server.typingsInstaller.Log | undefined { + return logger?.loggingEnabled() ? { + isEnabled: ts.returnTrue, + writeLine: s => { + // This is a VERY VERY NAIVE sanitization strategy. + // If a substring containing the exact TypeScript version is found, + // even if it's unrelated to TypeScript itself, then it will be replaced, + // leaving us with two options: + // + // 1. Deal with flip-flopping baselines. + // 2. Change the TypeScript version until no matching substring is found. + // + const initialLog = sanitizeLog(s); + const pseudoSanitizedLog = replaceAll(initialLog, `@ts${ts.versionMajorMinor}`, `@tsFakeMajor.Minor`); + return logger.log(`TI:: [${nowString(logger)}] ${pseudoSanitizedLog}`); + }, + } : undefined; +} +interface TypesRegistryFile { + entries: ts.MapLike>; +} +function loadTypesRegistryFile(typesRegistryFilePath: string, host: TestServerHost, log: ts.server.typingsInstaller.Log): Map> { + if (!host.fileExists(typesRegistryFilePath)) { + if (log.isEnabled()) { + log.writeLine(`Types registry file '${typesRegistryFilePath}' does not exist`); + } + return new Map>(); + } + try { + const content = JSON.parse(host.readFile(typesRegistryFilePath)!) as TypesRegistryFile; + return new Map(Object.entries(content.entries)); + } + catch (e) { + if (log.isEnabled()) { + log.writeLine(`Error when loading types registry file '${typesRegistryFilePath}': ${(e as Error).message}, ${(e as Error).stack}`); + } + return new Map>(); + } +} +const typesRegistryPackageName = "types-registry"; +function getTypesRegistryFileLocation(globalTypingsCacheLocation: string): string { + return ts.combinePaths(ts.normalizeSlashes(globalTypingsCacheLocation), `node_modules/${typesRegistryPackageName}/index.json`); +} + +export interface FileWithPackageName extends File { + package: string; +} +export type InstallActionThrowingError = string; +export type InstallActionWithTypingFiles = [installedTypings: string[] | string, typingFiles: File[]]; +export type InstallActionWithFilteredTypings = [typingFiles: FileWithPackageName[]]; +export type InstallAction = InstallActionThrowingError | InstallActionWithTypingFiles | InstallActionWithFilteredTypings; +export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.TypingsInstaller { + readonly typesRegistry: Map>; + protected projectService!: ts.server.ProjectService; + constructor( + readonly globalTypingsCacheLocation: string, + throttleLimit: number, + installTypingHost: TestServerHost, + logger: Logger, + typesRegistry: string | readonly string[] | undefined, + private installAction: InstallAction | undefined, + ) { + const log = loggerToTypingsInstallerLog(logger); + if (log?.isEnabled()) { + patchHostTimeouts( + changeToHostTrackingWrittenFiles(installTypingHost), + logger, + ); + (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: Creating typing installer"); + } + super( + installTypingHost, + globalTypingsCacheLocation, + "/safeList.json" as ts.Path, + customTypesMap.path, + throttleLimit, + log, + ); + + this.ensurePackageDirectoryExists(globalTypingsCacheLocation); + + if (this.log.isEnabled()) { + this.log.writeLine(`Updating ${typesRegistryPackageName} npm package...`); + this.log.writeLine(`npm install --ignore-scripts ${typesRegistryPackageName}@${this.latestDistTag}`); + } + installTypingHost.ensureFileOrFolder({ + path: getTypesRegistryFileLocation(globalTypingsCacheLocation), + content: jsonToReadableText(createTypesRegistryFileContent( + typesRegistry ? + ts.isString(typesRegistry) ? + [typesRegistry] : + typesRegistry : + ts.emptyArray, + )), + }); + if (this.log.isEnabled()) { + this.log.writeLine(`TI:: Updated ${typesRegistryPackageName} npm package`); + } + this.typesRegistry = loadTypesRegistryFile(getTypesRegistryFileLocation(globalTypingsCacheLocation), installTypingHost, this.log); + if (this.log.isEnabled()) { + (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: typing installer creation complete"); + } + } + + protected postExecActions: PostExecAction[] = []; + + executePendingCommands() { + const actionsToRun = this.postExecActions; + this.postExecActions = []; + for (const action of actionsToRun) { + if (this.log.isEnabled()) { + this.log.writeLine(`#${action.requestId} with arguments'${jsonToReadableText(action.packageNames)}':: ${action.success}`); + } + action.callback(action.success); + } + } + + attach(projectService: ts.server.ProjectService) { + this.projectService = projectService; + } + + getInstallTypingHost() { + return this.installTypingHost; + } + + installWorker(requestId: number, packageNames: string[], _cwd: string, cb: ts.server.typingsInstaller.RequestCompletedAction): void { + if (this.log.isEnabled()) { + this.log.writeLine(`#${requestId} with arguments'${jsonToReadableText(packageNames)}'.`); + } + if (!this.installAction) { + this.addPostExecAction("success", requestId, packageNames, cb); + } + else if (ts.isString(this.installAction)) { + assert(false, this.installAction); + } + else if (this.installAction.length === 2) { + this.executeInstallWithTypingFiles( + requestId, + packageNames, + this.installAction[0], + this.installAction[1], + cb, + ); + } + else { + const typingFiles = this.installAction[0].filter(f => packageNames.includes(ts.server.typingsInstaller.typingsName(f.package))); + this.executeInstallWithTypingFiles( + requestId, + packageNames, + typingFiles.map(f => f.package), + typingFiles, + cb, + ); + } + } + + executeInstallWithTypingFiles( + requestId: number, + packageNames: string[], + installedTypings: string[] | string, + typingFiles: File[], + cb: ts.server.typingsInstaller.RequestCompletedAction, + ): void { + this.addPostExecAction(installedTypings, requestId, packageNames, success => { + const host = this.getInstallTypingHost() as TestSessionAndServiceHost; + host.baselineHost("TI:: Before installWorker"); + for (const file of typingFiles) { + host.ensureFileOrFolder(file); + } + host.baselineHost("TI:: After installWorker"); + cb(success); + }); + } + + sendResponse(response: ts.server.SetTypings | ts.server.InvalidateCachedTypings | ts.server.WatchTypingLocations) { + if (this.log.isEnabled()) { + this.log.writeLine(`Sending response:${stringifyIndented(response)}`); + } + if (response.kind !== ActionWatchTypingLocations) this.projectService.updateTypingsForProject(response); + else this.projectService.watchTypingLocations(response); + } + + enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { + const request = ts.server.createInstallTypingsRequest(project, typeAcquisition, unresolvedImports, this.globalTypingsCacheLocation); + this.install(request); + } + + addPostExecAction(stdout: string | string[], requestId: number, packageNames: string[], cb: ts.server.typingsInstaller.RequestCompletedAction) { + const out = ts.isString(stdout) ? stdout : createNpmPackageJsonString(stdout); + const action: PostExecAction = { + success: !!out, + requestId, + packageNames, + callback: cb, + }; + this.postExecActions.push(action); + } +} + +export interface TestTypingsInstallerOptions { + globalTypingsCacheLocation?: string; + throttleLimit?: number; + installAction?: InstallAction; + typesRegistry?: string | readonly string[]; +} + +export class TestTypingsInstaller implements ts.server.ITypingsInstaller { + protected projectService!: ts.server.ProjectService; + public installer!: TestTypingsInstallerWorker; + readonly globalTypingsCacheLocation: string; + private readonly throttleLimit: number; + private installAction?: InstallAction; + private typesRegistry?: string | readonly string[]; + + constructor( + private installTypingHost: TestServerHost, + private logger: Logger, + options?: TestTypingsInstallerOptions, + ) { + this.globalTypingsCacheLocation = options?.globalTypingsCacheLocation || this.installTypingHost.getHostSpecificPath("/a/data"); + this.throttleLimit = options?.throttleLimit || 5; + this.installAction = options?.installAction; + this.typesRegistry = options?.typesRegistry; + } + + isKnownTypesPackageName = ts.notImplemented; + installPackage = ts.notImplemented; + + attach(projectService: ts.server.ProjectService) { + this.projectService = projectService; + } + + onProjectClosed(p: ts.server.Project) { + this.installer?.closeProject({ projectName: p.getProjectName(), kind: "closeProject" }); + } + + enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { + if (!this.installer) { + this.installer = new TestTypingsInstallerWorker( + this.globalTypingsCacheLocation, + this.throttleLimit, + this.installTypingHost, + this.logger, + this.typesRegistry, + this.installAction, + ); + this.installer.attach(this.projectService); + } + this.installer.enqueueInstallTypingsRequest(project, typeAcquisition, unresolvedImports); + } +} +function createNpmPackageJsonString(installedTypings: string[]): string { + const dependencies: ts.MapLike = {}; + for (const typing of installedTypings) { + dependencies[typing] = "1.0.0"; + } + return jsonToReadableText({ dependencies }); +} +function createTypesRegistryFileContent(list: readonly string[]): TypesRegistryFile { + const versionMap = { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0", + }; + const entries: ts.MapLike> = {}; + for (const l of list) { + entries[l] = versionMap; + } + return { entries }; +} + +export function createTypesRegistry(...list: string[]) { + return new Map(Object.entries(createTypesRegistryFileContent(list).entries)); +} diff --git a/src/testRunner/unittests/helpers/vfs.ts b/src/testRunner/unittests/helpers/vfs.ts index 31ef31e8b09..feb2a973f09 100644 --- a/src/testRunner/unittests/helpers/vfs.ts +++ b/src/testRunner/unittests/helpers/vfs.ts @@ -1,9 +1,7 @@ -import * as Harness from "../../_namespaces/Harness"; import { getDirectoryPath, } from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; -import * as vpath from "../../_namespaces/vpath"; import { libContent, } from "./contents"; @@ -21,19 +19,6 @@ function valueOfFsOptions(options: FsOptionsOrLibContentsToAppend | undefined, k options?.[key]; } -/** - * Load project from disk into /src folder - */ -export function loadProjectFromDisk( - root: string, - options?: FsOptionsOrLibContentsToAppend, -): vfs.FileSystem { - const resolver = vfs.createResolver(Harness.IO); - return loadProjectFromFiles({ - ["/src"]: new vfs.Mount(vpath.resolve(Harness.IO.getWorkspaceRoot(), root), resolver), - }, options); -} - /** * All the files must be in /src */ diff --git a/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts b/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts index 7079bb01c0a..3ec2eaac63b 100644 --- a/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts +++ b/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts @@ -1,18 +1,16 @@ -import * as Harness from "../../_namespaces/Harness"; import { - arrayFrom, + createWatchUtils, +} from "../../../harness/watchUtils"; +import { clear, clone, combinePaths, compareStringsCaseSensitive, - contains, createGetCanonicalFileName, - createMultiMap, createSystemWatchFunctions, Debug, directorySeparator, FileSystemEntryKind, - FileWatcher, FileWatcherCallback, FileWatcherEventKind, filterMutate, @@ -285,9 +283,7 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost, readonly immediateCallbacks = new Callbacks(this, "Immedidate"); readonly screenClears: number[] = []; - readonly watchedFiles = createMultiMap(); - readonly fsWatches = createMultiMap(); - readonly fsWatchesRecursive = createMultiMap(); + readonly watchUtils = createWatchUtils("PolledWatches", "FsWatches"); runWithFallbackPolling: boolean; public readonly useCaseSensitiveFileNames: boolean; public readonly newLine: string; @@ -623,24 +619,8 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost, this.removeFileOrFolder(currentEntry); } - hasWatchChanges?: boolean; - private createWatcher(map: MultiMap, path: Path, callback: T): FileWatcher { - this.hasWatchChanges = true; - map.add(path, callback); - let closed = false; - return { - close: () => { - Debug.assert(!closed); - map.remove(path, callback); - this.hasWatchChanges = true; - closed = true; - }, - }; - } - private watchFileWorker(fileName: string, cb: FileWatcherCallback, pollingInterval: PollingInterval) { - return this.createWatcher( - this.watchedFiles, + return this.watchUtils.pollingWatch( this.toFullPath(fileName), { cb, pollingInterval }, ); @@ -655,9 +635,9 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost, const path = this.toFullPath(fileOrDirectory); // Error if the path does not exist if (this.inodeWatching && !this.inodes?.has(path)) throw new Error(); - const result = this.createWatcher( - recursive ? this.fsWatchesRecursive : this.fsWatches, + const result = this.watchUtils.fsWatch( path, + recursive, { cb, inode: this.inodes?.get(path), @@ -668,7 +648,7 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost, } invokeFileWatcher(fileFullPath: string, eventKind: FileWatcherEventKind, modifiedTime: Date | undefined) { - invokeWatcherCallbacks(this.watchedFiles.get(this.toPath(fileFullPath)), ({ cb }) => cb(fileFullPath, eventKind, modifiedTime)); + invokeWatcherCallbacks(this.watchUtils.pollingWatches.get(this.toPath(fileFullPath)), ({ cb }) => cb(fileFullPath, eventKind, modifiedTime)); } private fsWatchCallback(map: MultiMap, fullPath: string, eventName: "rename" | "change", modifiedTime: Date | undefined, entryFullPath: string | undefined, useTildeSuffix: boolean | undefined) { @@ -684,11 +664,11 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost, } invokeFsWatchesCallbacks(fullPath: string, eventName: "rename" | "change", modifiedTime?: Date, entryFullPath?: string, useTildeSuffix?: boolean) { - this.fsWatchCallback(this.fsWatches, fullPath, eventName, modifiedTime, entryFullPath, useTildeSuffix); + this.fsWatchCallback(this.watchUtils.fsWatches, fullPath, eventName, modifiedTime, entryFullPath, useTildeSuffix); } invokeFsWatchesRecursiveCallbacks(fullPath: string, eventName: "rename" | "change", modifiedTime?: Date, entryFullPath?: string, useTildeSuffix?: boolean) { - this.fsWatchCallback(this.fsWatchesRecursive, fullPath, eventName, modifiedTime, entryFullPath, useTildeSuffix); + this.fsWatchCallback(this.watchUtils.fsWatchesRecursive, fullPath, eventName, modifiedTime, entryFullPath, useTildeSuffix); } private getRelativePathToDirectory(directoryFullPath: string, fileFullPath: string) { @@ -1004,16 +984,8 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost, baseline.push(""); } - private serializedWatchedFiles: Map | undefined; - private serializedFsWatches: Map | undefined; - private serializedFsWatchesRecursive: Map | undefined; - serializeWatches(baseline: string[] = []) { - if (!this.hasWatchChanges) return baseline; - this.serializedWatchedFiles = serializeMultiMap(baseline, "PolledWatches", this.watchedFiles, this.serializedWatchedFiles); - this.serializedFsWatches = serializeMultiMap(baseline, "FsWatches", this.fsWatches, this.serializedFsWatches); - this.serializedFsWatchesRecursive = serializeMultiMap(baseline, "FsWatchesRecursive", this.fsWatchesRecursive, this.serializedFsWatchesRecursive); - this.hasWatchChanges = false; - return baseline; + serializeWatches(baseline?: string[]) { + return this.watchUtils.serializeWatches(baseline); } realpath(s: string): string { @@ -1115,56 +1087,6 @@ function diffFsEntry(baseline: string[], oldFsEntry: FSEntry | undefined, newFsE } } -export function serializeMultiMap(baseline: string[], caption: string, multiMap: MultiMap, serialized: Map | undefined) { - let hasChange = diffMap(baseline, caption, multiMap, serialized, /*deleted*/ false); - hasChange = diffMap(baseline, caption, serialized, multiMap, /*deleted*/ true) || hasChange; - if (hasChange) { - serialized = new Map(); - multiMap.forEach((value, key) => serialized!.set(key, new Array(...value))); - } - return serialized; -} - -function diffMap( - baseline: string[], - caption: string, - map: Map | undefined, - old: Map | undefined, - deleted: boolean, -) { - let captionAdded = false; - let baselineChanged = false; - let hasChange = false; - if (map) { - for (const key of arrayFrom(map.keys()).sort(compareStringsCaseSensitive)) { - const existing = old?.get(key); - let addedKey = false; - const values = map.get(key)!; - for (const value of values) { - const hasExisting = contains(existing, value); - if (deleted && hasExisting) continue; - if (!hasExisting) hasChange = true; - if (!addedKey) { - addBaseline(`${key}:${deleted || existing ? "" : " *new*"}`); - addedKey = true; - } - addBaseline(` ${JSON.stringify(value)}${deleted || hasExisting || !existing ? "" : " *new*"}`); - } - } - } - if (baselineChanged) baseline.push(""); - return hasChange; - - function addBaseline(s: string) { - if (!captionAdded) { - baseline.push(`${caption}${deleted ? " *deleted*" : ""}::`); - captionAdded = true; - } - baseline.push(s); - baselineChanged = true; - } -} - function baselineOutputs(baseline: string[], output: readonly string[], start: number, end = output.length) { let baselinedOutput: string[] | undefined; for (let i = start; i < end; i++) { @@ -1187,14 +1109,3 @@ export function changeToHostTrackingWrittenFiles(inputHost: TestServerHost) { }; return host; } - -export function getTsBuildProjectFilePath(project: string, file: string) { - return `/user/username/projects/${project}/${file}`; -} - -export function getTsBuildProjectFile(project: string, file: string): File { - return { - path: getTsBuildProjectFilePath(project, file), - content: Harness.IO.readFile(`${Harness.IO.getWorkspaceRoot()}/tests/projects/${project}/${file}`)!, - }; -} diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts index 1d349555399..f4afa5184ef 100644 --- a/src/testRunner/unittests/moduleResolution.ts +++ b/src/testRunner/unittests/moduleResolution.ts @@ -1,5 +1,8 @@ import * as Harness from "../_namespaces/Harness"; import * as ts from "../_namespaces/ts"; +import { + jsonToReadableText, +} from "./helpers"; interface File { name: string; @@ -84,7 +87,7 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths const moduleFile = { name: moduleFileNameNoExt + ext }; baselines.push(`Resolving "${moduleName}" from ${containingFile.name} when module has extension: ${ext}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver(moduleName, containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } } @@ -104,11 +107,11 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths function test(hasDirectoryExists: boolean) { const containingFile = { name: containingFileName }; - const packageJson = { name: packageJsonFileName, content: JSON.stringify({ typings: fieldRef }) }; + const packageJson = { name: packageJsonFileName, content: jsonToReadableText({ typings: fieldRef }) }; const moduleFile = { name: moduleFileName }; baselines.push(`Resolving "${moduleName}" from ${containingFile.name} with typings: ${fieldRef}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver(moduleName, containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, packageJson, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } } @@ -128,15 +131,15 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths test(/*hasDirectoryExists*/ false); function test(hasDirectoryExists: boolean) { const containingFile = { name: "/a/b.ts" }; - const packageJson = { name: "/node_modules/b/package.json", content: JSON.stringify({ typings }) }; + const packageJson = { name: "/node_modules/b/package.json", content: jsonToReadableText({ typings }) }; const moduleFile = { name: "/a/b.d.ts" }; const indexPath = "/node_modules/b/index.d.ts"; const indexFile = { name: indexPath }; - baselines.push(`Resolving "b" from ${containingFile.name} with typings: ${JSON.stringify(typings)}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); + baselines.push(`Resolving "b" from ${containingFile.name} with typings: ${jsonToReadableText(typings)}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("b", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, packageJson, moduleFile, indexFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } } @@ -149,11 +152,11 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths function test(hasDirectoryExists: boolean) { const containingFile = { name: "/a/b/c.ts" }; - const packageJson = { name: "/a/b/foo/package.json", content: JSON.stringify({ main: "/c/d" }) }; + const packageJson = { name: "/a/b/foo/package.json", content: jsonToReadableText({ main: "/c/d" }) }; const indexFile = { name: "/a/b/foo/index.d.ts" }; baselines.push(`Resolving "./foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("./foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, packageJson, indexFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -265,7 +268,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p const moduleFile = { name: "/a/b/node_modules/foo.ts" }; baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -281,7 +284,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p const moduleFile = { name: "/a/b/node_modules/foo.d.ts" }; baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -297,7 +300,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p const moduleFile: File = { name: "/a/node_modules/foo/index.d.ts" }; baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -314,11 +317,11 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p baselines, /*hasDirectoryExists*/ true, { name: realFileName, symlinks: [symlinkFileName] }, - { name: "/app/node_modules/linked/package.json", content: '{"version": "0.0.0", "main": "./index"}' }, + { name: "/app/node_modules/linked/package.json", content: jsonToReadableText({ version: "0.0.0", main: "./index" }) }, ); baselines.push(`Resolving "linked" from /app/app.ts when preserveSymlinks is ${preserveSymlinks}`); const resolution = ts.nodeModuleNameResolver("linked", "/app/app.ts", { preserveSymlinks }, host); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -334,24 +337,24 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p }, { name: "/sub/node_modules/a/package.json", - content: '{"version": "0.0.0", "main": "./index"}', + content: jsonToReadableText({ version: "0.0.0", main: "./index" }), }, ); const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10 }; const cache = ts.createModuleResolutionCache("/", f => f); baselines.push(`Resolving "a" from /sub/dir/foo.ts`); let resolution = ts.resolveModuleName("a", "/sub/dir/foo.ts", compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); baselines.push(`Resolving "a" from /sub/foo.ts`); resolution = ts.resolveModuleName("a", "/sub/foo.ts", compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); baselines.push(`Resolving "a" from /foo.ts`); resolution = ts.resolveModuleName("a", "/foo.ts", compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); runBaseline("non relative uses originalPath for caching", baselines); }); @@ -362,7 +365,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p baselines, /*hasDirectoryExists*/ true, { name: "/linked/index.d.ts", symlinks: ["/app/node_modules/linked/index.d.ts"] }, - { name: "/app/node_modules/linked/package.json", content: '{"version": "0.0.0", "main": "./index"}' }, + { name: "/app/node_modules/linked/package.json", content: jsonToReadableText({ version: "0.0.0", main: "./index" }) }, ); const cache = ts.createModuleResolutionCache("/", f => f); const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10 }; @@ -373,7 +376,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p function baselineResolution(containingFile: string) { baselines.push(`Resolving "linked" from ${containingFile}`); const resolution = ts.resolveModuleName("linked", containingFile, compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -657,19 +660,19 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( { baselines.push(`Resolving "folder2/file2" from ${file1.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("folder2/file2", file1.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } { baselines.push(`Resolving "./file3" from ${file2.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("./file3", file2.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } { baselines.push(`Resolving "/root/folder1/file1" from ${file2.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("/root/folder1/file1", file2.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -687,7 +690,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const main: File = { name: "/root/a/b/main.ts" }; const m1: File = { name: "/root/m1.ts" }; // load file as module const m2: File = { name: "/root/m2/index.d.ts" }; // load folder as module - const m3: File = { name: "/root/m3/package.json", content: JSON.stringify({ typings: "dist/typings.d.ts" }) }; + const m3: File = { name: "/root/m3/package.json", content: jsonToReadableText({ typings: "dist/typings.d.ts" }) }; const m3Typings: File = { name: "/root/m3/dist/typings.d.ts" }; const m4: File = { name: "/root/node_modules/m4.ts" }; // fallback to node @@ -702,7 +705,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, caller: File) { baselines.push(`Resolving "${name}" from ${caller.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, caller.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -728,7 +731,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, caller: File) { baselines.push(`Resolving "${name}" from ${caller.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, caller.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -746,7 +749,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const file1: File = { name: "/root/folder1/file1.ts" }; const file2: File = { name: "/root/generated/folder1/file2.ts" }; // load remapped file as module const file3: File = { name: "/root/generated/folder2/file3/index.d.ts" }; // load folder a module - const file4Typings: File = { name: "/root/generated/folder2/file4/package.json", content: JSON.stringify({ typings: "dist/types.d.ts" }) }; + const file4Typings: File = { name: "/root/generated/folder2/file4/package.json", content: jsonToReadableText({ typings: "dist/types.d.ts" }) }; const file4: File = { name: "/root/generated/folder2/file4/dist/types.d.ts" }; // load file pointed by typings const file5: File = { name: "/root/someanotherfolder/file5/index.d.ts" }; // load remapped module from folder const file6: File = { name: "/root/node_modules/file6.ts" }; // fallback to node @@ -780,7 +783,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string) { baselines.push(`Resolving "${name}" from ${main.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, main.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -825,7 +828,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string) { baselines.push(`Resolving "${name}" from ${main.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, main.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -857,7 +860,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, container: File) { baselines.push(`Resolving "${name}" from ${container.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, container.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -889,7 +892,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, container: File) { baselines.push(`Resolving "${name}" from ${container.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, container.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -903,7 +906,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function test(hasDirectoryExists: boolean) { const app: File = { name: "/root/src/app.ts" }; - const libsPackage: File = { name: "/root/src/libs/guid/package.json", content: JSON.stringify({ typings: "dist/guid.d.ts" }) }; + const libsPackage: File = { name: "/root/src/libs/guid/package.json", content: jsonToReadableText({ typings: "dist/guid.d.ts" }) }; const libsTypings: File = { name: "/root/src/libs/guid/dist/guid.d.ts" }; const host = createModuleResolutionHost(baselines, hasDirectoryExists, app, libsPackage, libsTypings); const options: ts.CompilerOptions = { @@ -915,7 +918,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( }; baselines.push(`Resolving "libs/guid" from ${app.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("libs/guid", app.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } }); @@ -939,7 +942,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", const host = createModuleResolutionHost(baselines, hasDirectoryExists, ...[initialFile, targetFile].concat(...otherFiles)); baselines.push(`Resolving "${typeDirective}" from ${initialFile.name} typesRoots: ${typesRoot ? `[${typesRoot}]` : undefined}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveTypeReferenceDirective(typeDirective, initialFile.name, typesRoot ? { typeRoots: [typesRoot] } : {}, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } @@ -957,7 +960,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/src/types/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/src/types/lib/package.json", content: JSON.stringify({ types: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/src/types/lib/package.json", content: jsonToReadableText({ types: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } { @@ -968,7 +971,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/src/node_modules/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/src/node_modules/lib/package.json", content: JSON.stringify({ types: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/src/node_modules/lib/package.json", content: jsonToReadableText({ types: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } { @@ -979,7 +982,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/src/node_modules/@types/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/src/node_modules/@types/lib/package.json", content: JSON.stringify({ types: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/src/node_modules/@types/lib/package.json", content: jsonToReadableText({ types: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } runBaseline("type reference from primary location", baselines); @@ -999,7 +1002,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/node_modules/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/node_modules/lib/package.json", content: JSON.stringify({ typings: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/node_modules/lib/package.json", content: jsonToReadableText({ typings: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } { @@ -1010,7 +1013,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/node_modules/@types/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/node_modules/@types/lib/package.json", content: JSON.stringify({ typings: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/node_modules/@types/lib/package.json", content: jsonToReadableText({ typings: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } runBaseline("type reference from secondary location", baselines); diff --git a/src/testRunner/unittests/programApi.ts b/src/testRunner/unittests/programApi.ts index 1d3d9528db3..b1aba4bb9c2 100644 --- a/src/testRunner/unittests/programApi.ts +++ b/src/testRunner/unittests/programApi.ts @@ -3,6 +3,9 @@ import * as fakes from "../_namespaces/fakes"; import * as Harness from "../_namespaces/Harness"; import * as ts from "../_namespaces/ts"; import * as vfs from "../_namespaces/vfs"; +import { + jsonToReadableText, +} from "./helpers"; function verifyMissingFilePaths(missingPaths: readonly ts.Path[], expected: readonly string[]) { assert.isDefined(missingPaths); @@ -145,7 +148,7 @@ describe("unittests:: Program.isSourceFileFromExternalLibrary", () => { // In this example '/node_modules/foo/index.d.ts' will redirect to '/node_modules/bar/node_modules/foo/index.d.ts'. const a = new documents.TextDocument("/a.ts", 'import * as bar from "bar"; import * as foo from "foo";'); const bar = new documents.TextDocument("/node_modules/bar/index.d.ts", 'import * as foo from "foo";'); - const fooPackageJsonText = '{ "name": "foo", "version": "1.2.3" }'; + const fooPackageJsonText = jsonToReadableText({ name: "foo", version: "1.2.3" }); const fooIndexText = "export const x: number;"; const barFooPackage = new documents.TextDocument("/node_modules/bar/node_modules/foo/package.json", fooPackageJsonText); const barFooIndex = new documents.TextDocument("/node_modules/bar/node_modules/foo/index.d.ts", fooIndexText); @@ -177,7 +180,7 @@ describe("unittests:: Program.isSourceFileFromExternalLibrary", () => { describe("unittests:: Program.getNodeCount / Program.getIdentifierCount", () => { it("works on projects that have .json files", () => { const main = new documents.TextDocument("/main.ts", 'export { version } from "./package.json";'); - const pkg = new documents.TextDocument("/package.json", '{"version": "1.0.0"}'); + const pkg = new documents.TextDocument("/package.json", jsonToReadableText({ version: "1.0.0" })); const fs = vfs.createFromFileSystem(Harness.IO, /*ignoreCase*/ false, { documents: [main, pkg], cwd: "/" }); const program = ts.createProgram(["/main.ts"], { resolveJsonModule: true }, new fakes.CompilerHost(fs, { newLine: ts.NewLineKind.LineFeed })); diff --git a/src/testRunner/unittests/publicApi.ts b/src/testRunner/unittests/publicApi.ts index 7fb4fb096c1..1b5ab93f0a1 100644 --- a/src/testRunner/unittests/publicApi.ts +++ b/src/testRunner/unittests/publicApi.ts @@ -231,3 +231,34 @@ describe("unittests:: Public APIs:: getChild* methods on EndOfFileToken with JSD assert.notEqual(endOfFileToken.getChildAt(0), /*expected*/ undefined); }); }); + +describe("unittests:: Public APIs:: get syntactic and effective modifiers", () => { + it("caches and reports correct flags in TS file", () => { + // https://github.com/microsoft/TypeScript/issues/42189 + const content = ` +class C { + /** @private */ + prop = 1; +}`; + const sourceFile = ts.createSourceFile("/file.ts", content, ts.ScriptTarget.ESNext, /*setParentNodes*/ true); + const classNode = sourceFile.statements[0] as ts.ClassDeclaration; + const propNode = classNode.members[0] as ts.PropertyDeclaration; + assert.equal(ts.ModifierFlags.None, ts.getSyntacticModifierFlags(propNode)); + assert.equal(ts.ModifierFlags.None, ts.getEffectiveModifierFlags(propNode)); + assert.equal(ts.ModifierFlags.None, ts.getSyntacticModifierFlags(propNode)); + }); + it("caches and reports correct flags in JS file", () => { + // https://github.com/microsoft/TypeScript/issues/42189 + const content = ` +class C { + /** @private */ + prop = 1; +}`; + const sourceFile = ts.createSourceFile("/file.js", content, ts.ScriptTarget.ESNext, /*setParentNodes*/ true); + const classNode = sourceFile.statements[0] as ts.ClassDeclaration; + const propNode = classNode.members[0] as ts.PropertyDeclaration; + assert.equal(ts.ModifierFlags.None, ts.getSyntacticModifierFlags(propNode)); + assert.equal(ts.ModifierFlags.Private, ts.getEffectiveModifierFlags(propNode)); + assert.equal(ts.ModifierFlags.None, ts.getSyntacticModifierFlags(propNode)); + }); +}); diff --git a/src/testRunner/unittests/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index dfd917adff9..00ca7b35369 100644 --- a/src/testRunner/unittests/reuseProgramStructure.ts +++ b/src/testRunner/unittests/reuseProgramStructure.ts @@ -3,6 +3,7 @@ import * as ts from "../_namespaces/ts"; import * as Utils from "../_namespaces/Utils"; import { createTestCompilerHost, + jsonToReadableText, NamedSourceText, newLine, newProgram, @@ -36,7 +37,7 @@ describe("unittests:: Reuse program structure:: General", () => { addedHeader = true; baselines.push(`${cacheType}:`); } - baselines.push(`${key}: ${mode ? ts.getNameOfCompilerOptionValue(mode, ts.moduleOptionDeclaration.type) + ": " : ""}${JSON.stringify(resolved, /*replacer*/ undefined, 2)}`); + baselines.push(`${key}: ${mode ? ts.getNameOfCompilerOptionValue(mode, ts.moduleOptionDeclaration.type) + ": " : ""}${jsonToReadableText(resolved)}`); } } function baselineProgram(baselines: string[], program: ts.Program, host?: TestCompilerHost) { @@ -52,7 +53,7 @@ describe("unittests:: Reuse program structure:: General", () => { host.getTrace().forEach(trace => baselines.push(Utils.sanitizeTraceResolutionLogEntry(trace))); host.clearTrace(); baselines.push(""); - baselines.push(`MissingPaths:: ${JSON.stringify(program.getMissingFilePaths())}`); + baselines.push(`MissingPaths:: ${jsonToReadableText(program.getMissingFilePaths())}`); baselines.push(""); baselines.push(ts.formatDiagnostics(program.getSemanticDiagnostics(), { getCurrentDirectory: () => program.getCurrentDirectory(), @@ -103,7 +104,7 @@ describe("unittests:: Reuse program structure:: General", () => { { name: "/a.ts", text: SourceText.New("", "import {b} from 'b'", "var a = b;") }, { name: "/node_modules/b/index.d.ts", text: SourceText.New("", "export * from './internal';", "") }, { name: "/node_modules/b/internal.d.ts", text: SourceText.New("", "", "export const b = 1;") }, - { name: "/node_modules/b/package.json", text: SourceText.New("", "", JSON.stringify({ name: "b", version: "1.2.3" })) }, + { name: "/node_modules/b/package.json", text: SourceText.New("", "", jsonToReadableText({ name: "b", version: "1.2.3" })) }, ]; const options: ts.CompilerOptions = { target, moduleResolution: ts.ModuleResolutionKind.Node10 }; @@ -462,7 +463,7 @@ describe("unittests:: Reuse program structure:: General", () => { }, { name: axPackage, - text: SourceText.New("", "", JSON.stringify({ name: "x", version: "1.2.3" })), + text: SourceText.New("", "", jsonToReadableText({ name: "x", version: "1.2.3" })), }, { name: "/node_modules/b/index.d.ts", @@ -474,7 +475,7 @@ describe("unittests:: Reuse program structure:: General", () => { }, { name: bxPackage, - text: SourceText.New("", "", JSON.stringify({ name: "x", version: options ? options.bVersion : "1.2.3" })), + text: SourceText.New("", "", jsonToReadableText({ name: "x", version: options ? options.bVersion : "1.2.3" })), }, { name: root, @@ -513,7 +514,7 @@ describe("unittests:: Reuse program structure:: General", () => { const program2 = updateRedirectProgram(program1, files => { updateProgramText(files, axIndex, "export default class X { private x: number; private y: number; }"); - updateProgramText(files, axPackage, JSON.stringify('{ name: "x", version: "1.2.4" }')); + updateProgramText(files, axPackage, jsonToReadableText('{ name: "x", version: "1.2.4" }')); }, useGetSourceFileByPath); baselineProgram(baselines, program2); runRedirectsBaseline("target changes", useGetSourceFileByPath, baselines); @@ -526,7 +527,7 @@ describe("unittests:: Reuse program structure:: General", () => { const program2 = updateRedirectProgram(program1, files => { updateProgramText(files, bxIndex, "export default class X { private x: number; private y: number; }"); - updateProgramText(files, bxPackage, JSON.stringify({ name: "x", version: "1.2.4" })); + updateProgramText(files, bxPackage, jsonToReadableText({ name: "x", version: "1.2.4" })); }, useGetSourceFileByPath); baselineProgram(baselines, program2); runRedirectsBaseline("underlying changes", useGetSourceFileByPath, baselines); @@ -539,7 +540,7 @@ describe("unittests:: Reuse program structure:: General", () => { const program2 = updateRedirectProgram(program1, files => { updateProgramText(files, bxIndex, "export default class X { private x: number; }"); - updateProgramText(files, bxPackage, JSON.stringify({ name: "x", version: "1.2.3" })); + updateProgramText(files, bxPackage, jsonToReadableText({ name: "x", version: "1.2.3" })); }, useGetSourceFileByPath); baselineProgram(baselines, program2); runRedirectsBaseline(`previous duplicate packages`, useGetSourceFileByPath, baselines); @@ -584,7 +585,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { function duplicate(options: ts.CompilerOptions): ts.CompilerOptions; function duplicate(fileNames: string[]): string[]; function duplicate(filesOrOptions: ts.CompilerOptions | string[]) { - return JSON.parse(JSON.stringify(filesOrOptions)); + return JSON.parse(jsonToReadableText(filesOrOptions)); } describe("should return true when there is no change in compiler options and", () => { @@ -646,7 +647,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { }; const configFile: File = { path: "/src/tsconfig.json", - content: JSON.stringify({ compilerOptions }), + content: jsonToReadableText({ compilerOptions }), }; const es5Lib: File = { path: "/compiler/lib.es5.d.ts", @@ -692,7 +693,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { }; const configFile: File = { path: "/src/tsconfig.json", - content: JSON.stringify({ compilerOptions }), + content: jsonToReadableText({ compilerOptions }), }; verifyProgram([app, module1, module2, module3, libFile, configFile], [app.path], compilerOptions, configFile.path); @@ -730,7 +731,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { }; const configFile: File = { path: "/src/tsconfig.json", - content: JSON.stringify({ compilerOptions, include: ["packages/**/*.ts"] }), + content: jsonToReadableText({ compilerOptions, include: ["packages/**/*.ts"] }), }; verifyProgramWithConfigFile(createWatchedSystem([app, module1, module2, module3, libFile, configFile]), configFile.path); }); diff --git a/src/testRunner/unittests/services/languageService.ts b/src/testRunner/unittests/services/languageService.ts index 128eec74a2a..96ea65170b6 100644 --- a/src/testRunner/unittests/services/languageService.ts +++ b/src/testRunner/unittests/services/languageService.ts @@ -3,6 +3,9 @@ import { } from "chai"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createServerHost, File, @@ -152,7 +155,7 @@ export function Component(x: Config): any;`, function setup(useSourceOfProjectReferenceRedirect: (() => boolean) | undefined) { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -170,7 +173,7 @@ export function Component(x: Config): any;`, }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, diff --git a/src/testRunner/unittests/services/preProcessFile.ts b/src/testRunner/unittests/services/preProcessFile.ts index 1bd38bb2e08..05bf0d3db9c 100644 --- a/src/testRunner/unittests/services/preProcessFile.ts +++ b/src/testRunner/unittests/services/preProcessFile.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: services:: PreProcessFile:", () => { function test(sourceText: string, readImportFile: boolean, detectJavaScriptImports: boolean, expectedPreProcess: ts.PreProcessedFileInfo): void { @@ -18,7 +21,7 @@ describe("unittests:: services:: PreProcessFile:", () => { if (expected === actual) { return; } - assert.deepEqual(actual, expected, `Expected [${kind}] ${JSON.stringify(expected)}, got ${JSON.stringify(actual)}`); + assert.deepEqual(actual, expected, `Expected [${kind}] ${jsonToReadableText(expected)}, got ${jsonToReadableText(actual)}`); } describe("Test preProcessFiles,", () => { diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index cb1f7ba78a9..13304ea0b41 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -1,5 +1,11 @@ import * as ts from "../../_namespaces/ts"; +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -11,7 +17,7 @@ import { addTripleSlashRef, appendText, enableStrict, - loadProjectFromDisk, + loadProjectFromFiles, removeRest, replaceText, } from "../helpers/vfs"; @@ -19,7 +25,45 @@ import { describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { let outFileFs: vfs.FileSystem; before(() => { - outFileFs = loadProjectFromDisk("tests/projects/amdModulesWithOut"); + outFileFs = loadProjectFromFiles({ + "/src/app/file3.ts": dedent` + export const z = 30; + import { x } from "file1"; + `, + "/src/app/file4.ts": `const myVar = 30;`, + "/src/app/tsconfig.json": jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + target: "es5", + module: "amd", + composite: true, + strict: false, + sourceMap: true, + declarationMap: true, + outFile: "module.js", + }, + exclude: ["module.d.ts"], + references: [ + { path: "../lib", prepend: true }, + ], + }), + "/src/lib/file0.ts": `const myGlob = 20;`, + "/src/lib/file1.ts": `export const x = 10;`, + "/src/lib/file2.ts": `export const y = 20;`, + "/src/lib/global.ts": `const globalConst = 10;`, + "/src/lib/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + module: "amd", + composite: true, + sourceMap: true, + declarationMap: true, + strict: false, + outFile: "module.js", + }, + exclude: ["module.d.ts"], + }), + }); }); after(() => { outFileFs = undefined!; diff --git a/src/testRunner/unittests/tsbuild/clean.ts b/src/testRunner/unittests/tsbuild/clean.ts index 5df00878fa0..5742fd0bed6 100644 --- a/src/testRunner/unittests/tsbuild/clean.ts +++ b/src/testRunner/unittests/tsbuild/clean.ts @@ -1,6 +1,9 @@ import { noop, } from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, verifyTsc, @@ -18,7 +21,7 @@ describe("unittests:: tsbuild - clean::", () => { loadProjectFromFiles({ "/src/index.js": "", "/src/bar.ts": "", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { allowJs: true }, }), }), @@ -30,7 +33,7 @@ describe("unittests:: tsbuild - clean::", () => { fs: () => loadProjectFromFiles({ "/src/project/src/main.tsx": "export const x = 10;", - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { declaration: true }, include: ["src/**/*.tsx", "src/**/*.ts"], }), diff --git a/src/testRunner/unittests/tsbuild/commandLine.ts b/src/testRunner/unittests/tsbuild/commandLine.ts index 56f7aa0d988..213245d7119 100644 --- a/src/testRunner/unittests/tsbuild/commandLine.ts +++ b/src/testRunner/unittests/tsbuild/commandLine.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, } from "../helpers/contents"; @@ -71,7 +74,7 @@ describe("unittests:: tsbuild:: commandLine::", () => { } function fs(options: ts.CompilerOptions) { return loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: compilerOptionsToConfigJson(options) }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options) }), "/src/project/a.ts": `export const a = 10;const aLocal = 10;`, "/src/project/b.ts": `export const b = 10;const bLocal = 10;`, "/src/project/c.ts": `import { a } from "./a";export const c = a;`, @@ -168,14 +171,14 @@ describe("unittests:: tsbuild:: commandLine::", () => { describe("emitDeclarationOnly::", () => { function fs(options: ts.CompilerOptions) { return loadProjectFromFiles({ - "/src/project1/src/tsconfig.json": JSON.stringify({ + "/src/project1/src/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options), }), "/src/project1/src/a.ts": `export const a = 10;const aLocal = 10;`, "/src/project1/src/b.ts": `export const b = 10;const bLocal = 10;`, "/src/project1/src/c.ts": `import { a } from "./a";export const c = a;`, "/src/project1/src/d.ts": `import { b } from "./b";export const d = b;`, - "/src/project2/src/tsconfig.json": JSON.stringify({ + "/src/project2/src/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options), references: [{ path: "../../project1/src" }], }), diff --git a/src/testRunner/unittests/tsbuild/configFileErrors.ts b/src/testRunner/unittests/tsbuild/configFileErrors.ts index 57d74d9f34f..6e288575ded 100644 --- a/src/testRunner/unittests/tsbuild/configFileErrors.ts +++ b/src/testRunner/unittests/tsbuild/configFileErrors.ts @@ -1,13 +1,15 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, verifyTsc, } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, loadProjectFromFiles, replaceText, } from "../helpers/vfs"; @@ -16,7 +18,30 @@ describe("unittests:: tsbuild:: configFileErrors:: when tsconfig extends the mis verifyTsc({ scenario: "configFileErrors", subScenario: "when tsconfig extends the missing file", - fs: () => loadProjectFromDisk("tests/projects/missingExtendedConfig"), + fs: () => + loadProjectFromFiles({ + "/src/tsconfig.first.json": jsonToReadableText({ + extends: "./foobar.json", + compilerOptions: { + composite: true, + }, + }), + "/src/tsconfig.second.json": jsonToReadableText({ + extends: "./foobar.json", + compilerOptions: { + composite: true, + }, + }), + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + }, + references: [ + { path: "./tsconfig.first.json" }, + { path: "./tsconfig.second.json" }, + ], + }), + }), commandLineArgs: ["--b", "/src/tsconfig.json"], }); }); @@ -66,7 +91,7 @@ describe("unittests:: tsbuild:: configFileErrors:: reports syntax errors in conf edit: fs => fs.writeFileSync( "/src/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declaration: true }, files: ["a.ts", "b.ts"], }), diff --git a/src/testRunner/unittests/tsbuild/configFileExtends.ts b/src/testRunner/unittests/tsbuild/configFileExtends.ts index ce0ac78d971..87951370032 100644 --- a/src/testRunner/unittests/tsbuild/configFileExtends.ts +++ b/src/testRunner/unittests/tsbuild/configFileExtends.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -8,18 +11,18 @@ import { describe("unittests:: tsbuild:: configFileExtends:: when tsconfig extends another config", () => { function getConfigExtendsWithIncludeFs() { return loadProjectFromFiles({ - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ references: [ { path: "./shared/tsconfig.json" }, { path: "./webpack/tsconfig.json" }, ], files: [], }), - "/src/shared/tsconfig-base.json": JSON.stringify({ + "/src/shared/tsconfig-base.json": jsonToReadableText({ include: ["./typings-base/"], }), "/src/shared/typings-base/globals.d.ts": `type Unrestricted = any;`, - "/src/shared/tsconfig.json": JSON.stringify({ + "/src/shared/tsconfig.json": jsonToReadableText({ extends: "./tsconfig-base.json", compilerOptions: { composite: true, @@ -29,7 +32,7 @@ describe("unittests:: tsbuild:: configFileExtends:: when tsconfig extends anothe files: ["./index.ts"], }), "/src/shared/index.ts": `export const a: Unrestricted = 1;`, - "/src/webpack/tsconfig.json": JSON.stringify({ + "/src/webpack/tsconfig.json": jsonToReadableText({ extends: "../shared/tsconfig-base.json", compilerOptions: { composite: true, diff --git a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts index 27fa3377b97..366d72699f7 100644 --- a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts +++ b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts @@ -1,9 +1,11 @@ +import { + jsonToReadableText, +} from "../helpers"; import { noChangeOnlyRuns, verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, loadProjectFromFiles, replaceText, } from "../helpers/vfs"; @@ -12,7 +14,53 @@ describe("unittests:: tsbuild:: when containerOnly project is referenced", () => verifyTsc({ scenario: "containerOnlyReferenced", subScenario: "verify that subsequent builds after initial build doesnt build anything", - fs: () => loadProjectFromDisk("tests/projects/containerOnlyReferenced"), + fs: () => + loadProjectFromFiles({ + "/src/src/folder/index.ts": `export const x = 10;`, + "/src/src/folder/tsconfig.json": jsonToReadableText({ + files: ["index.ts"], + compilerOptions: { + composite: true, + }, + }), + "/src/src/folder2/index.ts": `export const x = 10;`, + "/src/src/folder2/tsconfig.json": jsonToReadableText({ + files: ["index.ts"], + compilerOptions: { + composite: true, + }, + }), + "/src/src/tsconfig.json": jsonToReadableText({ + files: [], + compilerOptions: { + composite: true, + }, + references: [ + { path: "./folder" }, + { path: "./folder2" }, + ], + }), + "/src/tests/index.ts": `export const x = 10;`, + "/src/tests/tsconfig.json": jsonToReadableText({ + files: ["index.ts"], + compilerOptions: { + composite: true, + }, + references: [ + { path: "../src" }, + ], + }), + "/src/tsconfig.json": jsonToReadableText({ + files: [], + compilerOptions: { + composite: true, + }, + references: [ + { path: "./src" }, + { path: "./tests" }, + ], + }), + }), commandLineArgs: ["--b", "/src", "--verbose"], edits: noChangeOnlyRuns, }); @@ -22,21 +70,21 @@ describe("unittests:: tsbuild:: when containerOnly project is referenced", () => subScenario: "when solution is referenced indirectly", fs: () => loadProjectFromFiles({ - "/src/project1/tsconfig.json": JSON.stringify({ + "/src/project1/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [], }), - "/src/project2/tsconfig.json": JSON.stringify({ + "/src/project2/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [], }), "/src/project2/src/b.ts": "export const b = 10;", - "/src/project3/tsconfig.json": JSON.stringify({ + "/src/project3/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../project1" }, { path: "../project2" }], }), "/src/project3/src/c.ts": "export const c = 10;", - "/src/project4/tsconfig.json": JSON.stringify({ + "/src/project4/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../project3" }], }), diff --git a/src/testRunner/unittests/tsbuild/declarationEmit.ts b/src/testRunner/unittests/tsbuild/declarationEmit.ts index acc0e3efadc..521190eda8a 100644 --- a/src/testRunner/unittests/tsbuild/declarationEmit.ts +++ b/src/testRunner/unittests/tsbuild/declarationEmit.ts @@ -1,5 +1,12 @@ -import * as Utils from "../../_namespaces/Utils"; -import * as vfs from "../../_namespaces/vfs"; +import { + dedent, +} from "../../_namespaces/Utils"; +import { + FileSet, +} from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -8,40 +15,40 @@ import { } from "../helpers/vfs"; describe("unittests:: tsbuild:: declarationEmit", () => { - function getFiles(): vfs.FileSet { + function getFiles(): FileSet { return { - "/src/solution/tsconfig.base.json": JSON.stringify({ + "/src/solution/tsconfig.base.json": jsonToReadableText({ compilerOptions: { rootDir: "./", outDir: "lib", }, }), - "/src/solution/tsconfig.json": JSON.stringify({ + "/src/solution/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "./src" }], include: [], }), - "/src/solution/src/tsconfig.json": JSON.stringify({ + "/src/solution/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "./subProject" }, { path: "./subProject2" }], include: [], }), - "/src/solution/src/subProject/tsconfig.json": JSON.stringify({ + "/src/solution/src/subProject/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig.base.json", compilerOptions: { composite: true }, references: [{ path: "../common" }], include: ["./index.ts"], }), - "/src/solution/src/subProject/index.ts": Utils.dedent` + "/src/solution/src/subProject/index.ts": dedent` import { Nominal } from '../common/nominal'; export type MyNominal = Nominal;`, - "/src/solution/src/subProject2/tsconfig.json": JSON.stringify({ + "/src/solution/src/subProject2/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig.base.json", compilerOptions: { composite: true }, references: [{ path: "../subProject" }], include: ["./index.ts"], }), - "/src/solution/src/subProject2/index.ts": Utils.dedent` + "/src/solution/src/subProject2/index.ts": dedent` import { MyNominal } from '../subProject/index'; const variable = { key: 'value' as MyNominal, @@ -49,15 +56,15 @@ const variable = { export function getVar(): keyof typeof variable { return 'key'; }`, - "/src/solution/src/common/tsconfig.json": JSON.stringify({ + "/src/solution/src/common/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig.base.json", compilerOptions: { composite: true }, include: ["./nominal.ts"], }), - "/src/solution/src/common/nominal.ts": Utils.dedent` + "/src/solution/src/common/nominal.ts": dedent` /// export declare type Nominal = MyNominal;`, - "/src/solution/src/common/types.d.ts": Utils.dedent` + "/src/solution/src/common/types.d.ts": dedent` declare type MyNominal = T & { specialKey: Name; };`, @@ -76,7 +83,7 @@ declare type MyNominal = T & { fs: () => loadProjectFromFiles({ ...getFiles(), - "/src/solution/tsconfig.json": JSON.stringify({ + "/src/solution/tsconfig.json": jsonToReadableText({ extends: "./tsconfig.base.json", compilerOptions: { composite: true }, include: ["./src/**/*.ts"], @@ -90,32 +97,32 @@ declare type MyNominal = T & { subScenario: "when declaration file used inferred type from referenced project", fs: () => loadProjectFromFiles({ - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, baseUrl: ".", paths: { "@fluentui/*": ["packages/*/src"] }, }, }), - "/src/packages/pkg1/src/index.ts": Utils.dedent` + "/src/packages/pkg1/src/index.ts": dedent` export interface IThing { a: string; } export interface IThings { thing1: IThing; }`, - "/src/packages/pkg1/tsconfig.json": JSON.stringify({ + "/src/packages/pkg1/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig", compilerOptions: { outDir: "lib" }, include: ["src"], }), - "/src/packages/pkg2/src/index.ts": Utils.dedent` + "/src/packages/pkg2/src/index.ts": dedent` import { IThings } from '@fluentui/pkg1'; export function fn4() { const a: IThings = { thing1: { a: 'b' } }; return a.thing1; }`, - "/src/packages/pkg2/tsconfig.json": JSON.stringify({ + "/src/packages/pkg2/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig", compilerOptions: { outDir: "lib" }, include: ["src"], diff --git a/src/testRunner/unittests/tsbuild/demo.ts b/src/testRunner/unittests/tsbuild/demo.ts index 4c1def473bb..174ccd1ce48 100644 --- a/src/testRunner/unittests/tsbuild/demo.ts +++ b/src/testRunner/unittests/tsbuild/demo.ts @@ -1,17 +1,19 @@ import * as vfs from "../../_namespaces/vfs"; +import { + getFsContentsForDemoProjectReferencesCoreConfig, + getFsForDemoProjectReferences, +} from "../helpers/demoProjectReferences"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, prependText, - replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: on demo project", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/demo"); + projFs = getFsForDemoProjectReferences(); }); after(() => { @@ -22,36 +24,33 @@ describe("unittests:: tsbuild:: on demo project", () => { scenario: "demo", subScenario: "in master branch with everything setup correctly and reports no error", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], + commandLineArgs: ["--b", "--verbose"], }); verifyTsc({ scenario: "demo", subScenario: "in circular branch reports the error about it by stopping build", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], + commandLineArgs: ["--b", "--verbose"], modifyFs: fs => - replaceText( - fs, - "/src/core/tsconfig.json", - "}", - `}, - "references": [ - { - "path": "../zoo" - } - ]`, + fs.writeFileSync( + "core/tsconfig.json", + getFsContentsForDemoProjectReferencesCoreConfig({ + references: [{ + path: "../zoo", + }], + }), ), }); verifyTsc({ scenario: "demo", subScenario: "in bad-ref branch reports the error about files not in rootDir at the import location", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], + commandLineArgs: ["--b", "--verbose"], modifyFs: fs => prependText( fs, - "/src/core/utilities.ts", + "core/utilities.ts", `import * as A from '../animals'; `, ), diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index a6ad5a31984..03e9bd3b871 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -1,16 +1,66 @@ +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: on project with emitDeclarationOnly set to true", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/emitDeclarationOnly"); + projFs = loadProjectFromFiles({ + "/src/src/a.ts": dedent` + import { B } from "./b"; + + export interface A { + b: B; + } + `, + "/src/src/b.ts": dedent` + import { C } from "./c"; + + export interface B { + b: C; + } + `, + "/src/src/c.ts": dedent` + import { A } from "./a"; + + export interface C { + a: A; + } + `, + "/src/src/index.ts": dedent` + export { A } from "./a"; + export { B } from "./b"; + export { C } from "./c"; + `, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + incremental: true, + target: "es5", + module: "commonjs", + declaration: true, + declarationMap: true, + sourceMap: true, + outDir: "./lib", + composite: true, + strict: true, + esModuleInterop: true, + alwaysStrict: true, + rootDir: "src", + emitDeclarationOnly: true, + }, + }), + }); }); after(() => { projFs = undefined!; diff --git a/src/testRunner/unittests/tsbuild/emptyFiles.ts b/src/testRunner/unittests/tsbuild/emptyFiles.ts index db36b9f88cd..779f0a05186 100644 --- a/src/testRunner/unittests/tsbuild/emptyFiles.ts +++ b/src/testRunner/unittests/tsbuild/emptyFiles.ts @@ -1,31 +1,60 @@ -import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, } from "../helpers/vfs"; describe("unittests:: tsbuild - empty files option in tsconfig", () => { - let projFs: vfs.FileSystem; - before(() => { - projFs = loadProjectFromDisk("tests/projects/empty-files"); - }); - after(() => { - projFs = undefined!; - }); - verifyTsc({ scenario: "emptyFiles", subScenario: "has empty files diagnostic when files is empty and no references are provided", - fs: () => projFs, + fs: () => + loadProjectFromFiles({ + "/src/no-references/tsconfig.json": jsonToReadableText({ + references: [], + files: [], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + }), + }), commandLineArgs: ["--b", "/src/no-references"], }); verifyTsc({ scenario: "emptyFiles", subScenario: "does not have empty files diagnostic when files is empty and references are provided", - fs: () => projFs, + fs: () => + loadProjectFromFiles({ + "/src/core/index.ts": "export function multiply(a: number, b: number) { return a * b; }", + "/src/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + declarationMap: true, + skipDefaultLibCheck: true, + }, + }), + "/src/with-references/tsconfig.json": jsonToReadableText({ + references: [ + { path: "../core" }, + ], + files: [], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + }), + }), commandLineArgs: ["--b", "/src/with-references"], }); }); diff --git a/src/testRunner/unittests/tsbuild/fileDelete.ts b/src/testRunner/unittests/tsbuild/fileDelete.ts index c748507ff62..dbaf4a791c7 100644 --- a/src/testRunner/unittests/tsbuild/fileDelete.ts +++ b/src/testRunner/unittests/tsbuild/fileDelete.ts @@ -2,6 +2,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, } from "../helpers/contents"; @@ -25,7 +28,7 @@ describe("unittests:: tsbuild:: fileDelete::", () => { export function child2() { } `, - "/src/child/tsconfig.json": JSON.stringify({ + "/src/child/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(childOptions), }), ...(mainOptions ? { @@ -35,7 +38,7 @@ describe("unittests:: tsbuild:: fileDelete::", () => { child(); } `, - "/src/main/tsconfig.json": JSON.stringify({ + "/src/main/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(mainOptions), references: [{ path: "../child" }], }), diff --git a/src/testRunner/unittests/tsbuild/graphOrdering.ts b/src/testRunner/unittests/tsbuild/graphOrdering.ts index 26e87c266a6..1b2adbb160e 100644 --- a/src/testRunner/unittests/tsbuild/graphOrdering.ts +++ b/src/testRunner/unittests/tsbuild/graphOrdering.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: tsbuild - graph-ordering", () => { let host: fakes.SolutionBuilderHost | undefined; @@ -80,15 +83,11 @@ describe("unittests:: tsbuild - graph-ordering", () => { fileSystem.mkdirpSync(`/project/${proj}`); fileSystem.writeFileSync(`/project/${proj}/${proj}.ts`, "export {}"); const configFileName = getProjectFileName(proj); - const configContent = JSON.stringify( - { - compilerOptions: { composite: true }, - files: [`./${proj}.ts`], - references: deps.filter(d => d[0] === proj).map(d => ({ path: `../${d[1]}` })), - }, - undefined, - 2, - ); + const configContent = jsonToReadableText({ + compilerOptions: { composite: true }, + files: [`./${proj}.ts`], + references: deps.filter(d => d[0] === proj).map(d => ({ path: `../${d[1]}` })), + }); fileSystem.writeFileSync(configFileName, configContent); projFileNames.push(configFileName); } diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index 52ac511c517..95cef8c1d24 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -1,17 +1,74 @@ +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: inferredTypeFromTransitiveModule::", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/inferredTypeFromTransitiveModule"); + projFs = loadProjectFromFiles({ + "/src/bar.ts": dedent` + interface RawAction { + (...args: any[]): Promise | void; + } + interface ActionFactory { + (target: T): T; + } + declare function foo(): ActionFactory; + export default foo()(function foobar(param: string): void { + }); + `, + "/src/bundling.ts": dedent` + export class LazyModule { + constructor(private importCallback: () => Promise) {} + } + + export class LazyAction< + TAction extends (...args: any[]) => any, + TModule + > { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } + } + `, + "/src/global.d.ts": dedent` + interface PromiseConstructor { + new (): Promise; + } + declare var Promise: PromiseConstructor; + interface Promise { + } + `, + "/src/index.ts": dedent` + import { LazyAction, LazyModule } from './bundling'; + const lazyModule = new LazyModule(() => + import('./lazyIndex') + ); + export const lazyBar = new LazyAction(lazyModule, m => m.bar); + `, + "/src/lazyIndex.ts": dedent` + export { default as bar } from './bar'; + `, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + declaration: true, + outDir: "obj", + incremental: true, + }, + }), + }); }); after(() => { projFs = undefined!; diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index 3d47aaad020..e6b8d275bb9 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -1,16 +1,50 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: lateBoundSymbol:: interface is merged and contains late bound member", () => { verifyTsc({ subScenario: "interface is merged and contains late bound member", - fs: () => loadProjectFromDisk("tests/projects/lateBoundSymbol"), + fs: () => + loadProjectFromFiles({ + "/src/src/globals.d.ts": dedent` + interface SymbolConstructor { + (description?: string | number): symbol; + } + declare var Symbol: SymbolConstructor; + `, + "/src/src/hkt.ts": `export interface HKT { }`, + "/src/src/main.ts": dedent` + import { HKT } from "./hkt"; + + const sym = Symbol(); + + declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } + } + const x = 10; + type A = HKT[typeof sym]; + `, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + rootDir: "src", + incremental: true, + }, + }), + }), scenario: "lateBoundSymbol", commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], edits: [ diff --git a/src/testRunner/unittests/tsbuild/moduleResolution.ts b/src/testRunner/unittests/tsbuild/moduleResolution.ts index 2a239547eef..7085ff7c0cb 100644 --- a/src/testRunner/unittests/tsbuild/moduleResolution.ts +++ b/src/testRunner/unittests/tsbuild/moduleResolution.ts @@ -1,5 +1,8 @@ import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeOnlyRuns, verifyTsc, @@ -26,7 +29,7 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", ...optionsToExtend }, references: [{ path: "../pkg2" }], }), @@ -41,7 +44,7 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio }, { path: `/user/username/projects/myproject/packages/pkg2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "build", @@ -52,7 +55,7 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", @@ -86,13 +89,13 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio fs: () => loadProjectFromFiles({ "/src/packages/pkg1_index.ts": `export const theNum: TheNum = "type1";`, - "/src/packages/pkg1.tsconfig.json": JSON.stringify({ + "/src/packages/pkg1.tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"] }, files: ["./pkg1_index.ts"], }), "/src/packages/typeroot1/sometype/index.d.ts": Utils.dedent`declare type TheNum = "type1";`, "/src/packages/pkg2_index.ts": `export const theNum: TheNum2 = "type2";`, - "/src/packages/pkg2.tsconfig.json": JSON.stringify({ + "/src/packages/pkg2.tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot2"] }, files: ["./pkg2_index.ts"], }), @@ -109,22 +112,22 @@ describe("unittests:: tsbuild:: moduleResolution:: impliedNodeFormat differs bet fs: () => loadProjectFromFiles({ "/src/projects/a/src/index.ts": "", - "/src/projects/a/tsconfig.json": JSON.stringify({ + "/src/projects/a/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true }, }), "/src/projects/b/src/index.ts": Utils.dedent` import pg from "pg"; pg.foo(); `, - "/src/projects/b/tsconfig.json": JSON.stringify({ + "/src/projects/b/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true, module: "node16" }, }), - "/src/projects/b/package.json": JSON.stringify({ + "/src/projects/b/package.json": jsonToReadableText({ name: "b", type: "module", }), "/src/projects/node_modules/@types/pg/index.d.ts": "export function foo(): void;", - "/src/projects/node_modules/@types/pg/package.json": JSON.stringify({ + "/src/projects/node_modules/@types/pg/package.json": jsonToReadableText({ name: "@types/pg", types: "index.d.ts", }), diff --git a/src/testRunner/unittests/tsbuild/noEmit.ts b/src/testRunner/unittests/tsbuild/noEmit.ts index 39b1282c8e0..58e2a779fd3 100644 --- a/src/testRunner/unittests/tsbuild/noEmit.ts +++ b/src/testRunner/unittests/tsbuild/noEmit.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, verifyTsc, @@ -14,7 +17,7 @@ describe("unittests:: tsbuild:: noEmit", () => { fs: () => loadProjectFromFiles({ "/src/a.ts": aTsContent, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { noEmit: true }, }), }), diff --git a/src/testRunner/unittests/tsbuild/noEmitOnError.ts b/src/testRunner/unittests/tsbuild/noEmitOnError.ts index 182e6322ab5..996ff3c3e3b 100644 --- a/src/testRunner/unittests/tsbuild/noEmitOnError.ts +++ b/src/testRunner/unittests/tsbuild/noEmitOnError.ts @@ -1,16 +1,16 @@ import * as vfs from "../../_namespaces/vfs"; +import { + getFsForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { noChangeRun, verifyTsc, } from "../helpers/tsc"; -import { - loadProjectFromDisk, -} from "../helpers/vfs"; describe("unittests:: tsbuild - with noEmitOnError", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/noEmitOnError"); + projFs = getFsForNoEmitOnError(); }); after(() => { projFs = undefined!; @@ -20,14 +20,14 @@ describe("unittests:: tsbuild - with noEmitOnError", () => { scenario: "noEmitOnError", subScenario: "syntax errors", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json"], + commandLineArgs: ["--b"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -44,14 +44,14 @@ const a = { scenario: "noEmitOnError", subScenario: "syntax errors with incremental", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--incremental"], + commandLineArgs: ["--b", "--incremental"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -70,19 +70,19 @@ const a = { fs: () => projFs, modifyFs: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = 10;`, "utf-8", ), - commandLineArgs: ["--b", "/src/tsconfig.json"], + commandLineArgs: ["--b"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = "hello";`, "utf-8", @@ -99,19 +99,19 @@ const a: string = "hello";`, fs: () => projFs, modifyFs: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = 10;`, "utf-8", ), - commandLineArgs: ["--b", "/src/tsconfig.json", "--incremental"], + commandLineArgs: ["--b", "--incremental"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = "hello";`, "utf-8", diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index 92df313b097..3d7af3010e2 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -1,6 +1,12 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { createSolutionBuilderHostForBaseline, } from "../helpers/solutionBuilder"; @@ -22,7 +28,7 @@ import { appendText, changeStubToRest, enableStrict, - loadProjectFromDisk, + loadProjectFromFiles, prependText, removeRest, replaceText, @@ -32,7 +38,107 @@ describe("unittests:: tsbuild:: outFile::", () => { let outFileFs: vfs.FileSystem; let outFileWithBuildFs: vfs.FileSystem; before(() => { - outFileFs = loadProjectFromDisk("tests/projects/outfile-concat"); + outFileFs = loadProjectFromFiles({ + "/src/first/first_PART1.ts": dedent` + interface TheFirst { + none: any; + } + + const s = "Hello, world"; + + interface NoJsForHereEither { + none: any; + } + + console.log(s); + `, + "/src/first/first_part2.ts": dedent` + console.log(f()); + `, + "/src/first/first_part3.ts": dedent` + function f() { + return "JS does hoists"; + } + `, + "/src/first/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + composite: true, + removeComments: true, + strict: false, + sourceMap: true, + declarationMap: true, + outFile: "./bin/first-output.js", + skipDefaultLibCheck: true, + }, + files: [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts", + ], + references: [], + }), + "/src/second/second_part1.ts": dedent` + namespace N { + // Comment text + } + + namespace N { + function f() { + console.log('testing'); + } + + f(); + } + `, + "/src/second/second_part2.ts": dedent` + class C { + doSomething() { + console.log("something got done"); + } + } + `, + "/src/second/tsconfig.json": jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + target: "es5", + composite: true, + removeComments: true, + strict: false, + sourceMap: true, + declarationMap: true, + declaration: true, + outFile: "../2/second-output.js", + skipDefaultLibCheck: true, + }, + references: [], + }), + "/src/third/third_part1.ts": dedent` + var c = new C(); + c.doSomething(); + `, + "/src/third/tsconfig.json": jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + target: "es5", + composite: true, + removeComments: true, + strict: false, + sourceMap: true, + declarationMap: true, + declaration: true, + outFile: "./thirdjs/output/third-output.js", + skipDefaultLibCheck: true, + }, + files: [ + "third_part1.ts", + ], + references: [ + { path: "../first", prepend: true }, + { path: "../second", prepend: true }, + ], + }), + }); }); after(() => { outFileFs = undefined!; @@ -497,9 +603,15 @@ ${internal} enum internalEnum { a, b, c }`, "/src/second/tsconfig.json", "[", `[ - { "path": "../first", "prepend": true }`, + { "path": "../first", "prepend": true }\n `, + ); + fs.writeFileSync( + "/src/third/tsconfig.json", + jsonToReadableText({ + ...JSON.parse(fs.readFileSync("/src/third/tsconfig.json", "utf-8")!), + references: [{ path: "../second", prepend: true }], + }), ); - replaceText(fs, "/src/third/tsconfig.json", `{ "path": "../first", "prepend": true },`, ""); } function stripInternalWithDependentOrder(fs: vfs.FileSystem, removeCommentsDisabled?: boolean, jsDocStyle?: boolean) { @@ -632,7 +744,7 @@ ${internal} enum internalEnum { a, b, c }`, fs.writeFileSync("/src/third/third_part1.ts", "const B = 2;"); fs.writeFileSync( "/src/first/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, @@ -646,7 +758,7 @@ ${internal} enum internalEnum { a, b, c }`, ); fs.writeFileSync( "/src/third/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { ignoreDeprecations: "5.0", composite: true, @@ -700,8 +812,8 @@ ${internal} enum internalEnum { a, b, c }`, commandLineArgs: ["--b", "/src/third", "--verbose"], modifyFs: fs => { // No prepend - replaceText(fs, "/src/third/tsconfig.json", `{ "path": "../first", "prepend": true }`, `{ "path": "../first" }`); - replaceText(fs, "/src/third/tsconfig.json", `{ "path": "../second", "prepend": true }`, `{ "path": "../second" }`); + replaceText(fs, "/src/third/tsconfig.json", `"prepend": true`, ""); + replaceText(fs, "/src/third/tsconfig.json", `"prepend": true`, ""); // Non Modules replaceText(fs, "/src/first/tsconfig.json", `"composite": true,`, `"composite": true, "module": "none",`); diff --git a/src/testRunner/unittests/tsbuild/outputPaths.ts b/src/testRunner/unittests/tsbuild/outputPaths.ts index 5383e9129db..d0547071413 100644 --- a/src/testRunner/unittests/tsbuild/outputPaths.ts +++ b/src/testRunner/unittests/tsbuild/outputPaths.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, TestTscEdit, @@ -48,7 +51,7 @@ describe("unittests:: tsbuild - output file paths", () => { fs: () => loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", }, @@ -62,7 +65,7 @@ describe("unittests:: tsbuild - output file paths", () => { fs: () => loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", composite: true, @@ -77,7 +80,7 @@ describe("unittests:: tsbuild - output file paths", () => { fs: () => loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", @@ -93,7 +96,7 @@ describe("unittests:: tsbuild - output file paths", () => { loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", "/src/types/type.ts": "export type t = string;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", @@ -109,7 +112,7 @@ describe("unittests:: tsbuild - output file paths", () => { loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", "/src/types/type.ts": "export type t = string;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", diff --git a/src/testRunner/unittests/tsbuild/publicApi.ts b/src/testRunner/unittests/tsbuild/publicApi.ts index 0fc52db89c4..7c7f91bac23 100644 --- a/src/testRunner/unittests/tsbuild/publicApi.ts +++ b/src/testRunner/unittests/tsbuild/publicApi.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselinePrograms, commandLineCallbacks, @@ -18,14 +21,14 @@ describe("unittests:: tsbuild:: Public API with custom transformers when passed let sys: TscCompileSystem; before(() => { const inputFs = loadProjectFromFiles({ - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ references: [ { path: "./shared/tsconfig.json" }, { path: "./webpack/tsconfig.json" }, ], files: [], }), - "/src/shared/tsconfig.json": JSON.stringify({ + "/src/shared/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, }), "/src/shared/index.ts": `export function f1() { } @@ -33,7 +36,7 @@ export class c { } export enum e { } // leading export function f2() { } // trailing`, - "/src/webpack/tsconfig.json": JSON.stringify({ + "/src/webpack/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, }, diff --git a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts index db3a0bcda42..1ad927b06b6 100644 --- a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts +++ b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts @@ -1,16 +1,54 @@ +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: with rootDir of project reference in parentDirectory", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/projectReferenceWithRootDirInParent"); + projFs = loadProjectFromFiles({ + "/src/src/main/a.ts": dedent` + import { b } from './b'; + const a = b; + `, + "/src/src/main/b.ts": dedent` + export const b = 0; + `, + "/src/src/main/tsconfig.json": jsonToReadableText({ + extends: "../../tsconfig.base.json", + references: [ + { path: "../other" }, + ], + }), + "/src/src/other/other.ts": dedent` + export const Other = 0; + `, + "/src/src/other/tsconfig.json": jsonToReadableText({ + extends: "../../tsconfig.base.json", + }), + "/src/tsconfig.base.json": jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + rootDir: "./src/", + outDir: "./dist/", + skipDefaultLibCheck: true, + }, + exclude: [ + "node_modules", + ], + }), + }); }); after(() => { @@ -40,14 +78,14 @@ describe("unittests:: tsbuild:: with rootDir of project reference in parentDirec modifyFs: fs => { fs.writeFileSync( "/src/src/main/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, references: [{ path: "../other" }], }), ); fs.writeFileSync( "/src/src/other/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, }), ); @@ -64,14 +102,14 @@ describe("unittests:: tsbuild:: with rootDir of project reference in parentDirec fs.renameSync("/src/src/other/tsconfig.json", "/src/src/other/tsconfig.other.json"); fs.writeFileSync( "/src/src/main/tsconfig.main.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, references: [{ path: "../other/tsconfig.other.json" }], }), ); fs.writeFileSync( "/src/src/other/tsconfig.other.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, }), ); diff --git a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts index 4159b340dbb..b0b1bef064b 100644 --- a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts +++ b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts @@ -4,6 +4,9 @@ import { import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeOnlyRuns, verifyTsc, @@ -17,35 +20,27 @@ import { describe("unittests:: tsbuild:: with resolveJsonModule option on project resolveJsonModuleAndComposite", () => { function getProjFs(tsconfigFiles: object, additionalCompilerOptions?: CompilerOptions) { return loadProjectFromFiles({ - "/src/src/hello.json": JSON.stringify( - { - hello: "world", - }, - undefined, - " ", - ), + "/src/src/hello.json": jsonToReadableText({ + hello: "world", + }), "/src/src/index.ts": dedent` import hello from "./hello.json" export default hello.hello `, - "/src/tsconfig.json": JSON.stringify( - { - compilerOptions: { - composite: true, - moduleResolution: "node", - module: "commonjs", - resolveJsonModule: true, - esModuleInterop: true, - allowSyntheticDefaultImports: true, - outDir: "dist", - skipDefaultLibCheck: true, - ...additionalCompilerOptions, - }, - ...tsconfigFiles, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + moduleResolution: "node", + module: "commonjs", + resolveJsonModule: true, + esModuleInterop: true, + allowSyntheticDefaultImports: true, + outDir: "dist", + skipDefaultLibCheck: true, + ...additionalCompilerOptions, }, - undefined, - " ", - ), + ...tsconfigFiles, + }), }); } @@ -169,59 +164,43 @@ describe("unittests:: tsbuild:: with resolveJsonModule option on project importJ subScenario: "importing json module from project reference", fs: () => loadProjectFromFiles({ - "/src/strings/foo.json": JSON.stringify( - { - foo: "bar baz", - }, - undefined, - " ", - ), - "/src/strings/tsconfig.json": JSON.stringify( - { - extends: "../tsconfig.json", - include: ["foo.json"], - references: [], - }, - undefined, - " ", - ), + "/src/strings/foo.json": jsonToReadableText({ + foo: "bar baz", + }), + "/src/strings/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig.json", + include: ["foo.json"], + references: [], + }), "/src/main/index.ts": dedent` import { foo } from '../strings/foo.json'; console.log(foo); `, - "/src/main/tsconfig.json": JSON.stringify( - { - extends: "../tsconfig.json", - include: [ - "./**/*.ts", - ], - references: [{ - path: "../strings/tsconfig.json", - }], + "/src/main/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig.json", + include: [ + "./**/*.ts", + ], + references: [{ + path: "../strings/tsconfig.json", + }], + }), + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + module: "commonjs", + rootDir: "./", + composite: true, + resolveJsonModule: true, + strict: true, + esModuleInterop: true, }, - undefined, - " ", - ), - "/src/tsconfig.json": JSON.stringify( - { - compilerOptions: { - target: "es5", - module: "commonjs", - rootDir: "./", - composite: true, - resolveJsonModule: true, - strict: true, - esModuleInterop: true, - }, - references: [ - { path: "./strings/tsconfig.json" }, - { path: "./main/tsconfig.json" }, - ], - files: [], - }, - undefined, - " ", - ), + references: [ + { path: "./strings/tsconfig.json" }, + { path: "./main/tsconfig.json" }, + ], + files: [], + }), }), commandLineArgs: ["--b", "src/tsconfig.json", "--verbose", "--explainFiles"], edits: noChangeOnlyRuns, diff --git a/src/testRunner/unittests/tsbuild/roots.ts b/src/testRunner/unittests/tsbuild/roots.ts index 0be83bc907a..e8c3cb3a5c0 100644 --- a/src/testRunner/unittests/tsbuild/roots.ts +++ b/src/testRunner/unittests/tsbuild/roots.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -17,7 +20,7 @@ describe("unittests:: tsbuild:: roots::", () => { loadProjectFromFiles({ "/src/file1.ts": `export const x = "hello";`, "/src/file2.ts": `export const y = "world";`, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["*.ts"], }), @@ -42,7 +45,7 @@ describe("unittests:: tsbuild:: roots::", () => { "/src/file2.ts": `export const y = "world";`, "/src/file3.ts": `export const y = "world";`, "/src/file4.ts": `export const y = "world";`, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["*.ts"], }), @@ -69,7 +72,7 @@ describe("unittests:: tsbuild:: roots::", () => { import { random } from "./random"; export const y = "world"; `, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["file*.ts"], }), @@ -109,7 +112,7 @@ describe("unittests:: tsbuild:: roots::", () => { import { random } from "./random2"; export const nonConsecutive = "hello"; `, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["file*.ts", "nonconsecutive*.ts", "asArray*.ts", "anotherNonConsecutive.ts"], }), diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 6bea86bc8f0..86ddc0b5d97 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -2,9 +2,17 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, + libPath, } from "../helpers/contents"; +import { + getFsForSampleProjectReferences, + getSysForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { createSolutionBuilderHostForBaseline, } from "../helpers/solutionBuilder"; @@ -19,16 +27,12 @@ import { } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, loadProjectFromFiles, prependText, replaceText, } from "../helpers/vfs"; import { changeToHostTrackingWrittenFiles, - createWatchedSystem, - File, - getTsBuildProjectFilePath, libFile, TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; @@ -37,7 +41,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { let projFs: vfs.FileSystem; let projFsWithBuild: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/sample1"); + projFs = getFsForSampleProjectReferences(); }); after(() => { @@ -45,19 +49,12 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { projFsWithBuild = undefined!; }); - function getTsBuildProjectFile(project: string, file: string): File { - return { - path: getTsBuildProjectFilePath(project, file), - content: projFs.readFileSync(`/src/${project}/${file}`, "utf8")!, - }; - } - function getSampleFsAfterBuild() { if (projFsWithBuild) return projFsWithBuild; const fs = projFs.shadow(); - const sys = new fakes.System(fs, { executingFilePath: "/lib/tsc" }); + const sys = new fakes.System(fs, { executingFilePath: libFile.path }); const host = createSolutionBuilderHostForBaseline(sys as TscCompileSystem); - const builder = ts.createSolutionBuilder(host, ["/src/tests"], {}); + const builder = ts.createSolutionBuilder(host, ["tests"], {}); builder.build(); fs.makeReadonly(); return projFsWithBuild = fs; @@ -68,11 +65,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds correctly when outDir is specified", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests"], + commandLineArgs: ["--b", "tests"], modifyFs: fs => fs.writeFileSync( - "/src/logic/tsconfig.json", - JSON.stringify({ + "logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, sourceMap: true, outDir: "outDir" }, references: [{ path: "../core" }], }), @@ -83,11 +80,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds correctly when declarationDir is specified", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests"], + commandLineArgs: ["--b", "tests"], modifyFs: fs => fs.writeFileSync( - "/src/logic/tsconfig.json", - JSON.stringify({ + "logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, sourceMap: true, declarationDir: "out/decls" }, references: [{ path: "../core" }], }), @@ -98,8 +95,8 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds correctly when project is not composite or doesnt have any references", fs: () => projFs, - commandLineArgs: ["--b", "/src/core", "--verbose"], - modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"composite": true,`, ""), + commandLineArgs: ["--b", "core", "--verbose"], + modifyFs: fs => replaceText(fs, "core/tsconfig.json", `"composite": true,`, ""), }); }); @@ -108,7 +105,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "does not write any files in a dry build", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--dry"], + commandLineArgs: ["--b", "tests", "--dry"], }); }); @@ -117,7 +114,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "removes all files it built", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--clean"], + commandLineArgs: ["--b", "tests", "--clean"], edits: noChangeOnlyRuns, }); @@ -125,11 +122,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "cleans till project specified", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/logic", "--clean"], + commandLineArgs: ["--b", "logic", "--clean"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/third/tsconfig.json"], {}); - sys.exit(builder.clean("/src/logic")); + const builder = ts.createSolutionBuilder(buildHost, ["third/tsconfig.json"], {}); + sys.exit(builder.clean("logic")); }, }); @@ -137,11 +134,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "cleaning project in not build order doesnt throw error", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/logic2", "--clean"], + commandLineArgs: ["--b", "logic2", "--clean"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/third/tsconfig.json"], {}); - sys.exit(builder.clean("/src/logic2")); + const builder = ts.createSolutionBuilder(buildHost, ["third/tsconfig.json"], {}); + sys.exit(builder.clean("logic2")); }, }); }); @@ -151,7 +148,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "always builds under with force option", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--force"], + commandLineArgs: ["--b", "tests", "--force"], edits: noChangeOnlyRuns, }); }); @@ -161,23 +158,23 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "can detect when and what to rebuild", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], edits: [ // Update a file in the leaf node (tests), only it should rebuild the last one { caption: "Only builds the leaf node project", - edit: fs => fs.writeFileSync("/src/tests/index.ts", "const m = 10;"), + edit: fs => fs.writeFileSync("tests/index.ts", "const m = 10;"), }, // Update a file in the parent (without affecting types), should get fast downstream builds { caption: "Detects type-only changes in upstream projects", - edit: fs => replaceText(fs, "/src/core/index.ts", "HELLO WORLD", "WELCOME PLANET"), + edit: fs => replaceText(fs, "core/index.ts", "HELLO WORLD", "WELCOME PLANET"), }, { caption: "rebuilds when tsconfig changes", edit: fs => { - replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es2020"`); - fs.writeFileSync("/lib/lib.es2020.full.d.ts", libContent); + replaceText(fs, "tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es2020"`); + fs.writeFileSync(libPath("es2020.full"), libContent); }, }, ], @@ -187,13 +184,13 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "when input file text does not change but its modified time changes", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], edits: [ { caption: "upstream project changes without changing file text", edit: fs => { const time = new Date(fs.time()); - fs.utimesSync("/src/core/index.ts", time, time); + fs.utimesSync("core/index.ts", time, time); }, }, ], @@ -203,15 +200,15 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "when declarationMap changes", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], edits: [ { caption: "Disable declarationMap", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"declarationMap": true,`, `"declarationMap": false,`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"declarationMap": true,`, `"declarationMap": false,`), }, { caption: "Enable declarationMap", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"declarationMap": false,`, `"declarationMap": true,`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"declarationMap": false,`, `"declarationMap": true,`), }, ], }); @@ -220,14 +217,14 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "indicates that it would skip builds during a dry build", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--dry"], + commandLineArgs: ["--b", "tests", "--dry"], }); verifyTsc({ scenario: "sample1", subScenario: "rebuilds from start if force option is set", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--verbose", "--force"], + commandLineArgs: ["--b", "tests", "--verbose", "--force"], }); verifyTsc({ @@ -250,11 +247,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "rebuilds completely when version in tsbuildinfo doesnt match ts version", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], compile: sys => { // Buildinfo will have version which does not match with current ts version const buildHost = createSolutionBuilderHostForBaseline(sys, "FakeTSCurrentVersion"); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], { verbose: true }); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], { verbose: true }); sys.exit(builder.build()); }, }); @@ -265,16 +262,16 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { fs: () => { const fs = projFs.shadow(); const host = fakes.SolutionBuilderHost.create(fs, /*options*/ undefined, /*setParentNodes*/ undefined, ts.createAbstractBuilder); - const builder = ts.createSolutionBuilder(host, ["/src/tests"], { verbose: true }); + const builder = ts.createSolutionBuilder(host, ["tests"], { verbose: true }); builder.build(); fs.makeReadonly(); return fs; }, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], compile: sys => { // Buildinfo will have version which does not match with current ts version const buildHost = createSolutionBuilderHostForBaseline(sys, "FakeTSCurrentVersion"); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], { verbose: true }); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], { verbose: true }); sys.exit(builder.build()); }, }); @@ -283,14 +280,14 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "rebuilds when extended config file changes", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], modifyFs: fs => { - fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: { target: "es3" } })); - replaceText(fs, "/src/tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json", "references": [`); + fs.writeFileSync("tests/tsconfig.base.json", jsonToReadableText({ compilerOptions: { target: "es3" } })); + replaceText(fs, "tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json", "references": [`); }, edits: [{ caption: "incremental-declaration-changes", - edit: fs => fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: {} })), + edit: fs => fs.writeFileSync("tests/tsconfig.base.json", jsonToReadableText({ compilerOptions: {} })), }], }); @@ -298,11 +295,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds till project specified", fs: () => projFs, - commandLineArgs: ["--build", "/src/logic/tsconfig.json"], + commandLineArgs: ["--build", "logic/tsconfig.json"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], {}); - sys.exit(builder.build("/src/logic/tsconfig.json")); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], {}); + sys.exit(builder.build("logic/tsconfig.json")); }, }); @@ -310,43 +307,25 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "building project in not build order doesnt throw error", fs: () => projFs, - commandLineArgs: ["--build", "/src/logic2/tsconfig.json"], + commandLineArgs: ["--build", "logic2/tsconfig.json"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], {}); - sys.exit(builder.build("/src/logic2/tsconfig.json")); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], {}); + sys.exit(builder.build("logic2/tsconfig.json")); }, }); it("building using getNextInvalidatedProject", () => { - const coreConfig = getTsBuildProjectFile("core", "tsconfig.json"); - const coreIndex = getTsBuildProjectFile("core", "index.ts"); - const coreDecl = getTsBuildProjectFile("core", "some_decl.d.ts"); - const coreAnotherModule = getTsBuildProjectFile("core", "anotherModule.ts"); - const logicConfig = getTsBuildProjectFile("logic", "tsconfig.json"); - const logicIndex = getTsBuildProjectFile("logic", "index.ts"); - const testsConfig = getTsBuildProjectFile("tests", "tsconfig.json"); - const testsIndex = getTsBuildProjectFile("tests", "index.ts"); const baseline: string[] = []; let oldSnap: ReturnType | undefined; const system = changeToHostTrackingWrittenFiles( fakes.patchHostForBuildInfoReadWrite( - createWatchedSystem([ - coreConfig, - coreIndex, - coreDecl, - coreAnotherModule, - logicConfig, - logicIndex, - testsConfig, - testsIndex, - libFile, - ]), + getSysForSampleProjectReferences(), ), ); const host = createSolutionBuilderHostForBaseline(system); - const builder = ts.createSolutionBuilder(host, [testsConfig.path], {}); + const builder = ts.createSolutionBuilder(host, ["tests"], {}); baseline.push("Input::"); baselineState(); verifyBuildNextResult(); // core @@ -358,7 +337,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { function verifyBuildNextResult() { const project = builder.getNextInvalidatedProject(); const result = project && project.done(); - baseline.push(`Project Result:: ${JSON.stringify({ project: project?.project, result })}`); + baseline.push(`Project Result:: ${jsonToReadableText({ project: project?.project, result })}`); baselineState(); } @@ -374,11 +353,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "building using buildReferencedProject", fs: () => projFs, - commandLineArgs: ["--build", "/src/logic2/tsconfig.json"], + commandLineArgs: ["--build", "logic2/tsconfig.json"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], { verbose: true }); - sys.exit(builder.buildReferences("/src/tests")); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], { verbose: true }); + sys.exit(builder.buildReferences("tests")); }, }); }); @@ -388,61 +367,43 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "does not build downstream projects if upstream projects have errors", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], - modifyFs: fs => replaceText(fs, "/src/logic/index.ts", "c.multiply(10, 15)", `c.muitply()`), + commandLineArgs: ["--b", "tests", "--verbose"], + modifyFs: fs => replaceText(fs, "logic/index.ts", "c.multiply(10, 15)", `c.muitply()`), edits: noChangeOnlyRuns, }); }); describe("project invalidation", () => { it("invalidates projects correctly", () => { - const coreConfig = getTsBuildProjectFile("core", "tsconfig.json"); - const coreIndex = getTsBuildProjectFile("core", "index.ts"); - const coreDecl = getTsBuildProjectFile("core", "some_decl.d.ts"); - const coreAnotherModule = getTsBuildProjectFile("core", "anotherModule.ts"); - const logicConfig = getTsBuildProjectFile("logic", "tsconfig.json"); - const logicIndex = getTsBuildProjectFile("logic", "index.ts"); - const testsConfig = getTsBuildProjectFile("tests", "tsconfig.json"); - const testsIndex = getTsBuildProjectFile("tests", "index.ts"); const baseline: string[] = []; let oldSnap: ReturnType | undefined; const system = changeToHostTrackingWrittenFiles( fakes.patchHostForBuildInfoReadWrite( - createWatchedSystem([ - coreConfig, - coreIndex, - coreDecl, - coreAnotherModule, - logicConfig, - logicIndex, - testsConfig, - testsIndex, - libFile, - ]), + getSysForSampleProjectReferences(), ), ); const host = createSolutionBuilderHostForBaseline(system); - const builder = ts.createSolutionBuilder(host, [testsConfig.path], { dry: false, force: false, verbose: false }); + const builder = ts.createSolutionBuilder(host, ["tests"], { dry: false, force: false, verbose: false }); builder.build(); baselineState("Build of project"); // Update a timestamp in the middle project - system.appendFile(logicIndex.path, "function foo() {}"); + system.appendFile("logic/index.ts", "function foo() {}"); // Because we haven't reset the build context, the builder should assume there's nothing to do right now - const status = builder.getUpToDateStatusOfProject(logicConfig.path); + const status = builder.getUpToDateStatusOfProject("logic/tsconfig.json"); baseline.push(`Project should still be upto date: ${ts.UpToDateStatusType[status.type]}`); verifyInvalidation("non Dts change to logic"); // Rebuild this project - system.appendFile(logicIndex.path, `export class cNew {}`); + system.appendFile("logic/index.ts", `export class cNew {}`); verifyInvalidation("Dts change to Logic"); Harness.Baseline.runBaseline(`tsbuild/sample1/invalidates-projects-correctly.js`, baseline.join("\r\n")); function verifyInvalidation(heading: string) { // Rebuild this project - builder.invalidateProject(logicConfig.path as ts.ResolvedConfigFilePath); + builder.invalidateProject("/user/username/projects/sample1/logic/tsconfig.json" as ts.ResolvedConfigFilePath); builder.getNextInvalidatedProject()?.done(); baselineState(`${heading}:: After rebuilding logicConfig`); @@ -467,7 +428,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { edit: fs => appendText( fs, - "/src/core/index.ts", + "core/index.ts", ` export class someClass { }`, ), @@ -477,7 +438,7 @@ export class someClass { }`, edit: fs => appendText( fs, - "/src/core/index.ts", + "core/index.ts", ` class someClass2 { }`, ), @@ -490,21 +451,21 @@ class someClass2 { }`, scenario: "sample1", subScenario: "listFiles", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--listFiles"], + commandLineArgs: ["--b", "tests", "--listFiles"], edits: coreChanges, }); verifyTsc({ scenario: "sample1", subScenario: "listEmittedFiles", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--listEmittedFiles"], + commandLineArgs: ["--b", "tests", "--listEmittedFiles"], edits: coreChanges, }); verifyTsc({ scenario: "sample1", subScenario: "explainFiles", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--explainFiles", "--v"], + commandLineArgs: ["--b", "tests", "--explainFiles", "--v"], edits: coreChanges, }); }); @@ -514,7 +475,7 @@ class someClass2 { }`, subScenario: "sample", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], baselineSourceMap: true, baselineReadFileCalls: true, edits: [ @@ -524,7 +485,7 @@ class someClass2 { }`, edit: fs => replaceText( fs, - "/src/logic/tsconfig.json", + "logic/tsconfig.json", `"declaration": true,`, `"declaration": true, "declarationDir": "decls",`, @@ -541,12 +502,12 @@ class someClass2 { }`, modifyFs: fs => replaceText( fs, - "/src/logic/tsconfig.json", + "logic/tsconfig.json", `"composite": true,`, `"composite": true, - "tsBuildInfoFile": "ownFile.tsbuildinfo",`, + "tsBuildInfoFile": "ownFile.tsbuildinfo",`, ), - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], baselineSourceMap: true, baselineReadFileCalls: true, }); @@ -555,20 +516,20 @@ class someClass2 { }`, subScenario: "when declaration option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/core", "--verbose"], + commandLineArgs: ["--b", "core", "--verbose"], modifyFs: fs => fs.writeFileSync( - "/src/core/tsconfig.json", - `{ - "compilerOptions": { - "incremental": true, - "skipDefaultLibCheck": true - } -}`, + "core/tsconfig.json", + jsonToReadableText({ + compilerOptions: { + incremental: true, + skipDefaultLibCheck: true, + }, + }), ), edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"incremental": true,`, `"incremental": true, "declaration": true,`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"incremental": true,`, `"incremental": true, "declaration": true,`), }], }); @@ -576,34 +537,34 @@ class someClass2 { }`, subScenario: "when target option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/core", "--verbose"], + commandLineArgs: ["--b", "core", "--verbose"], modifyFs: fs => { fs.writeFileSync( - "/lib/lib.esnext.full.d.ts", + libPath("esnext.full"), `/// /// `, ); - fs.writeFileSync("/lib/lib.esnext.d.ts", libContent); + fs.writeFileSync(libPath("esnext"), libContent); fs.writeFileSync( - "/lib/lib.d.ts", + libFile.path, `/// /// `, ); fs.writeFileSync( - "/src/core/tsconfig.json", - `{ - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "esnext", - } -}`, + "core/tsconfig.json", + jsonToReadableText({ + compilerOptions: { + incremental: true, + listFiles: true, + listEmittedFiles: true, + target: "esnext", + }, + }), ); }, edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", "esnext", "es5"), + edit: fs => replaceText(fs, "core/tsconfig.json", "esnext", "es5"), }], }); @@ -611,20 +572,20 @@ class someClass2 { }`, subScenario: "when module option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/core", "--verbose"], + commandLineArgs: ["--b", "core", "--verbose"], modifyFs: fs => fs.writeFileSync( - "/src/core/tsconfig.json", - `{ - "compilerOptions": { - "incremental": true, - "module": "commonjs" - } -}`, + "core/tsconfig.json", + jsonToReadableText({ + compilerOptions: { + incremental: true, + module: "commonjs", + }, + }), ), edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"module": "commonjs"`, `"module": "amd"`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"module": "commonjs"`, `"module": "amd"`), }], }); @@ -632,28 +593,28 @@ class someClass2 { }`, subScenario: "when esModuleInterop option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], modifyFs: fs => fs.writeFileSync( - "/src/tests/tsconfig.json", - `{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": false - } -}`, + "tests/tsconfig.json", + jsonToReadableText({ + references: [ + { path: "../core" }, + { path: "../logic" }, + ], + files: ["index.ts"], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + esModuleInterop: false, + }, + }), ), edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/tests/tsconfig.json", `"esModuleInterop": false`, `"esModuleInterop": true`), + edit: fs => replaceText(fs, "tests/tsconfig.json", `"esModuleInterop": false`, `"esModuleInterop": true`), }], }); @@ -661,16 +622,16 @@ class someClass2 { }`, scenario: "sample1", subScenario: "reports error if input file is missing", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--v"], + commandLineArgs: ["--b", "tests", "--v"], modifyFs: fs => { fs.writeFileSync( - "/src/core/tsconfig.json", - JSON.stringify({ + "core/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true }, files: ["anotherModule.ts", "index.ts", "some_decl.d.ts"], }), ); - fs.unlinkSync("/src/core/anotherModule.ts"); + fs.unlinkSync("core/anotherModule.ts"); }, }); @@ -678,16 +639,16 @@ class someClass2 { }`, scenario: "sample1", subScenario: "reports error if input file is missing with force", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--v", "--f"], + commandLineArgs: ["--b", "tests", "--v", "--f"], modifyFs: fs => { fs.writeFileSync( - "/src/core/tsconfig.json", - JSON.stringify({ + "core/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true }, files: ["anotherModule.ts", "index.ts", "some_decl.d.ts"], }), ); - fs.unlinkSync("/src/core/anotherModule.ts"); + fs.unlinkSync("core/anotherModule.ts"); }, }); }); diff --git a/src/testRunner/unittests/tsbuild/transitiveReferences.ts b/src/testRunner/unittests/tsbuild/transitiveReferences.ts index b75a98f0df8..08cc01572f5 100644 --- a/src/testRunner/unittests/tsbuild/transitiveReferences.ts +++ b/src/testRunner/unittests/tsbuild/transitiveReferences.ts @@ -1,15 +1,30 @@ import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; +import { + getFsContentsForTransitiveReferences, +} from "../helpers/transitiveReferences"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, } from "../helpers/vfs"; +import { + libFile, +} from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuild:: when project reference is referenced transitively", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/transitiveReferences"); + projFs = loadProjectFromFiles( + getFsContentsForTransitiveReferences(), + { + cwd: "/user/username/projects/transitiveReferences", + executingFilePath: libFile.path, + }, + ); }); after(() => { projFs = undefined!; // Release the contents @@ -17,13 +32,13 @@ describe("unittests:: tsbuild:: when project reference is referenced transitivel function modifyFsBTsToNonRelativeImport(fs: vfs.FileSystem, moduleResolution: "node" | "classic") { fs.writeFileSync( - "/src/b.ts", + "b.ts", `import {A} from 'a'; export const b = new A();`, ); fs.writeFileSync( - "/src/tsconfig.b.json", - JSON.stringify({ + "tsconfig.b.json", + jsonToReadableText({ compilerOptions: { composite: true, moduleResolution, @@ -38,14 +53,14 @@ export const b = new A();`, scenario: "transitiveReferences", subScenario: "builds correctly", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.c.json", "--listFiles"], + commandLineArgs: ["--b", "tsconfig.c.json", "--listFiles"], }); verifyTsc({ scenario: "transitiveReferences", subScenario: "builds correctly when the referenced project uses different module resolution", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.c.json", "--listFiles"], + commandLineArgs: ["--b", "tsconfig.c.json", "--listFiles"], modifyFs: fs => modifyFsBTsToNonRelativeImport(fs, "classic"), }); @@ -53,7 +68,7 @@ export const b = new A();`, scenario: "transitiveReferences", subScenario: "reports error about module not found with node resolution with external module name", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.c.json", "--listFiles"], + commandLineArgs: ["--b", "tsconfig.c.json", "--listFiles"], modifyFs: fs => modifyFsBTsToNonRelativeImport(fs, "node"), }); }); diff --git a/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts b/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts index 1c47250803a..2f18df2f91f 100644 --- a/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts +++ b/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -63,7 +66,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: configFileErrors:: reports synt edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declaration: true }, files: ["a.ts", "b.ts"], }), diff --git a/src/testRunner/unittests/tsbuildWatch/demo.ts b/src/testRunner/unittests/tsbuildWatch/demo.ts index 891c57e593f..f67df1a2f70 100644 --- a/src/testRunner/unittests/tsbuildWatch/demo.ts +++ b/src/testRunner/unittests/tsbuildWatch/demo.ts @@ -1,66 +1,35 @@ import { - libContent, -} from "../helpers/contents"; + dedent, +} from "../../_namespaces/Utils"; +import { + getFsContentsForDemoProjectReferencesCoreConfig, + getSysForDemoProjectReferences, +} from "../helpers/demoProjectReferences"; import { verifyTscWatch, } from "../helpers/tscWatch"; -import { - createWatchedSystem, - File, - getTsBuildProjectFile, - libFile, -} from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuildWatch:: watchMode:: with demo project", () => { - const projectLocation = `/user/username/projects/demo`; - let coreFiles: File[]; - let animalFiles: File[]; - let zooFiles: File[]; - let solutionFile: File; - let baseConfig: File; - let allFiles: File[]; - before(() => { - coreFiles = subProjectFiles("core", ["tsconfig.json", "utilities.ts"]); - animalFiles = subProjectFiles("animals", ["tsconfig.json", "animal.ts", "dog.ts", "index.ts"]); - zooFiles = subProjectFiles("zoo", ["tsconfig.json", "zoo.ts"]); - solutionFile = projectFile("tsconfig.json"); - baseConfig = projectFile("tsconfig-base.json"); - allFiles = [...coreFiles, ...animalFiles, ...zooFiles, solutionFile, baseConfig, { path: libFile.path, content: libContent }]; - }); - - after(() => { - coreFiles = undefined!; - animalFiles = undefined!; - zooFiles = undefined!; - solutionFile = undefined!; - baseConfig = undefined!; - allFiles = undefined!; - }); - verifyTscWatch({ scenario: "demo", subScenario: "updates with circular reference", commandLineArgs: ["-b", "-w", "-verbose"], sys: () => { - const sys = createWatchedSystem(allFiles, { currentDirectory: projectLocation }); + const sys = getSysForDemoProjectReferences(); sys.writeFile( - coreFiles[0].path, - coreFiles[0].content.replace( - "}", - `}, - "references": [ - { - "path": "../zoo" - } - ]`, - ), + "core/tsconfig.json", + getFsContentsForDemoProjectReferencesCoreConfig({ + references: [{ + path: "../zoo", + }], + }), ); return sys; }, edits: [ { caption: "Fix error", - edit: sys => sys.writeFile(coreFiles[0].path, coreFiles[0].content), + edit: sys => sys.writeFile("core/tsconfig.json", getFsContentsForDemoProjectReferencesCoreConfig()), timeouts: sys => { sys.runQueuedTimeoutCallbacks(); // build core sys.runQueuedTimeoutCallbacks(); // build animals, zoo and solution @@ -74,35 +43,22 @@ describe("unittests:: tsbuildWatch:: watchMode:: with demo project", () => { subScenario: "updates with bad reference", commandLineArgs: ["-b", "-w", "-verbose"], sys: () => { - const sys = createWatchedSystem(allFiles, { currentDirectory: projectLocation }); - sys.writeFile( - coreFiles[1].path, - `import * as A from '../animals'; -${coreFiles[1].content}`, + const sys = getSysForDemoProjectReferences(); + sys.prependFile( + "core/utilities.ts", + dedent` + import * as A from '../animals'; + `, ); return sys; }, edits: [ { caption: "Prepend a line", - edit: sys => - sys.writeFile( - coreFiles[1].path, - ` -import * as A from '../animals'; -${coreFiles[1].content}`, - ), + edit: sys => sys.prependFile("core/utilities.ts", "\n"), // build core timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], }); - - function subProjectFiles(subProject: string, fileNames: readonly string[]): File[] { - return fileNames.map(file => projectFile(`${subProject}/${file}`)); - } - - function projectFile(fileName: string): File { - return getTsBuildProjectFile("demo", fileName); - } }); diff --git a/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts b/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts index 9c2a9a72814..3088691fcdb 100644 --- a/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts +++ b/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -20,7 +23,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { { path: `/user/username/projects/myproject/project1/node_modules/file/index.d.ts`, content: "export const foo = 10;" }, { path: `/user/username/projects/myproject/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, types: ["foo", "bar"] }, files: ["index.ts"], }), @@ -29,7 +32,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { { path: `/user/username/projects/myproject/project2/file.d.ts`, content: "export const foo = 10;" }, { path: `/user/username/projects/myproject/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, types: ["foo"], moduleResolution: "classic" }, files: ["index.ts"], }), @@ -38,7 +41,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { { path: `/user/username/projects/myproject/node_modules/@types/bar/index.d.ts`, content: "export const bar = 10;" }, { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], references: [ { path: "./project1" }, @@ -67,7 +70,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/packages/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "1.0.0", main: "build/index.js", @@ -82,7 +85,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", module: "node16", @@ -100,7 +103,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "build", @@ -110,7 +113,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", @@ -161,7 +164,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/packages/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "1.0.0", main: "build/index.js", @@ -175,7 +178,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", }, @@ -184,7 +187,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "build", @@ -206,7 +209,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", diff --git a/src/testRunner/unittests/tsbuildWatch/noEmit.ts b/src/testRunner/unittests/tsbuildWatch/noEmit.ts index 161f6dbefcd..dca46f0ecf1 100644 --- a/src/testRunner/unittests/tsbuildWatch/noEmit.ts +++ b/src/testRunner/unittests/tsbuildWatch/noEmit.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -15,15 +18,12 @@ describe("unittests:: tsbuildWatch:: watchMode:: with noEmit", () => { subScenario: "does not go in loop when watching when no files are emitted", commandLineArgs: ["-b", "-w", "-verbose"], sys: () => - createWatchedSystem( - [ - { path: libFile.path, content: libContent }, - { path: `/user/username/projects/myproject/a.js`, content: "" }, - { path: `/user/username/projects/myproject/b.ts`, content: "" }, - { path: `/user/username/projects/myproject/tsconfig.json`, content: JSON.stringify({ compilerOptions: { allowJs: true, noEmit: true } }) }, - ], - { currentDirectory: "/user/username/projects/myproject" }, - ), + createWatchedSystem({ + [libFile.path]: libContent, + "/user/username/projects/myproject/a.js": "", + "/user/username/projects/myproject/b.ts": "", + "/user/username/projects/myproject/tsconfig.json": jsonToReadableText({ compilerOptions: { allowJs: true, noEmit: true } }), + }, { currentDirectory: "/user/username/projects/myproject" }), edits: [ { caption: "No change", diff --git a/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts b/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts index 22e5a713141..8ef96500031 100644 --- a/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts +++ b/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts @@ -1,15 +1,10 @@ import { - libContent, -} from "../helpers/contents"; + getSysForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { TscWatchCompileChange, verifyTscWatch, } from "../helpers/tscWatch"; -import { - createWatchedSystem, - getTsBuildProjectFile, - libFile, -} from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuildWatch:: watchMode:: with noEmitOnError", () => { function change(caption: string, content: string): TscWatchCompileChange { @@ -31,15 +26,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: with noEmitOnError", () => { scenario: "noEmitOnError", subScenario: "does not emit any files on error", commandLineArgs: ["-b", "-w", "-verbose"], - sys: () => - createWatchedSystem( - [ - ...["tsconfig.json", "shared/types/db.ts", "src/main.ts", "src/other.ts"] - .map(f => getTsBuildProjectFile("noEmitOnError", f)), - { path: libFile.path, content: libContent }, - ], - { currentDirectory: `/user/username/projects/noEmitOnError` }, - ), + sys: getSysForNoEmitOnError, edits: [ noChange, change( diff --git a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts index 6e418029d90..e482c646cca 100644 --- a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts +++ b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts @@ -1,4 +1,15 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, +} from "../helpers/contents"; +import { + getFsContentsForSampleProjectReferences, + getFsContentsForSampleProjectReferencesLogicConfig, + getSysForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { commonFile1, commonFile2, @@ -12,86 +23,22 @@ import { import { createWatchedSystem, File, - getTsBuildProjectFile, - getTsBuildProjectFilePath, libFile, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { - const enum SubProject { - core = "core", - logic = "logic", - tests = "tests", - ui = "ui", - } - type ReadonlyFile = Readonly; - /** [tsconfig, index] | [tsconfig, index, anotherModule, someDecl] */ - type SubProjectFiles = [tsconfig: ReadonlyFile, index: ReadonlyFile] | [tsconfig: ReadonlyFile, index: ReadonlyFile, anotherModule: ReadonlyFile, someDecl: ReadonlyFile]; - function projectFilePath(subProject: SubProject, baseFileName: string) { - return `${getTsBuildProjectFilePath("sample1", subProject)}/${baseFileName.toLowerCase()}`; - } - - function projectFile(subProject: SubProject, baseFileName: string): File { - return getTsBuildProjectFile("sample1", `${subProject}/${baseFileName}`); - } - - function subProjectFiles(subProject: SubProject, anotherModuleAndSomeDecl?: true): SubProjectFiles { - const tsconfig = projectFile(subProject, "tsconfig.json"); - const index = projectFile(subProject, "index.ts"); - if (!anotherModuleAndSomeDecl) { - return [tsconfig, index]; - } - const anotherModule = projectFile(SubProject.core, "anotherModule.ts"); - const someDecl = projectFile(SubProject.core, "some_decl.ts"); - return [tsconfig, index, anotherModule, someDecl]; - } - - function changeFile(fileName: string | (() => string), content: string | (() => string), caption: string): TscWatchCompileChange { - return { - caption, - edit: sys => sys.writeFile(ts.isString(fileName) ? fileName : fileName(), ts.isString(content) ? content : content()), - timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core - }; - } - - function changeCore(content: () => string, caption: string) { - return changeFile(() => core[1].path, content, caption); - } - - let core: SubProjectFiles; - let logic: SubProjectFiles; - let tests: SubProjectFiles; - let ui: SubProjectFiles; - let allFiles: readonly File[]; - - before(() => { - core = subProjectFiles(SubProject.core, /*anotherModuleAndSomeDecl*/ true); - logic = subProjectFiles(SubProject.logic); - tests = subProjectFiles(SubProject.tests); - ui = subProjectFiles(SubProject.ui); - allFiles = [libFile, ...core, ...logic, ...tests, ...ui]; - }); - - after(() => { - core = undefined!; - logic = undefined!; - tests = undefined!; - ui = undefined!; - allFiles = undefined!; - }); - verifyTscWatch({ scenario: "programUpdates", subScenario: "creates solution in watch mode", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], - sys: () => createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "tests"], + sys: getSysForSampleProjectReferences, }); it("verify building references watches only those projects", () => { - const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" })); + const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(getSysForSampleProjectReferences()); const host = createSolutionBuilderWithWatchHostForBaseline(sys, cb); - const solutionBuilder = ts.createSolutionBuilderWithWatch(host, [`sample1/${SubProject.tests}`], { watch: true }); - solutionBuilder.buildReferences(`sample1/${SubProject.tests}`); + const solutionBuilder = ts.createSolutionBuilderWithWatch(host, ["tests"], { watch: true }); + solutionBuilder.buildReferences("tests"); runWatchBaseline({ scenario: "programUpdates", subScenario: "verify building references watches only those projects", @@ -105,13 +52,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { }); describe("validates the changes and watched files", () => { - const newFileWithoutExtension = "newFile"; - const newFile: File = { - path: projectFilePath(SubProject.core, `${newFileWithoutExtension}.ts`), - content: `export const newFileConst = 30;`, - }; - - function verifyProjectChanges(subScenario: string, allFilesGetter: () => readonly File[]) { + function verifyProjectChanges(subScenario: string, allFilesGetter: () => FsContents) { const buildLogicAndTests: TscWatchCompileChange = { caption: "Build logic and tests", edit: ts.noop, @@ -121,33 +62,31 @@ describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { verifyTscWatch({ scenario: "programUpdates", subScenario: `${subScenario}/change builds changes and reports found errors message`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], + commandLineArgs: ["-b", "-w", "sample1/tests"], sys: () => createWatchedSystem( allFilesGetter(), { currentDirectory: "/user/username/projects" }, ), edits: [ - changeCore(() => - `${core[1].content} -export class someClass { }`, "Make change to core"), + { + caption: "Make change to core", + edit: sys => sys.appendFile("sample1/core/index.ts", `\nexport class someClass { }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, // Another change requeues and builds it - changeCore(() => core[1].content, "Revert core file"), + { + caption: "Revert core file", + edit: sys => sys.replaceFileText("sample1/core/index.ts", `\nexport class someClass { }`, ""), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, { caption: "Make two changes", edit: sys => { - const change1 = `${core[1].content} -export class someClass { }`; - sys.writeFile(core[1].path, change1); - assert.equal(sys.writtenFiles.size, 1); - sys.writtenFiles.clear(); - sys.writeFile( - core[1].path, - `${change1} -export class someClass2 { }`, - ); + sys.appendFile("sample1/core/index.ts", `\nexport class someClass { }`); + sys.appendFile("sample1/core/index.ts", `\nexport class someClass2 { }`); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core }, @@ -158,36 +97,40 @@ export class someClass2 { }`, verifyTscWatch({ scenario: "programUpdates", subScenario: `${subScenario}/non local change does not start build of referencing projects`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], + commandLineArgs: ["-b", "-w", "sample1/tests"], sys: () => createWatchedSystem( allFilesGetter(), { currentDirectory: "/user/username/projects" }, ), - edits: [ - changeCore(() => - `${core[1].content} -function foo() { }`, "Make local change to core"), - ], + edits: [{ + caption: "Make local change to core", + edit: sys => sys.appendFile("sample1/core/index.ts", `\nfunction foo() { }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }], }); - function changeNewFile(newFileContent: string) { - return changeFile(newFile.path, newFileContent, "Change to new File and build core"); - } verifyTscWatch({ scenario: "programUpdates", subScenario: `${subScenario}/builds when new file is added, and its subsequent updates`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], + commandLineArgs: ["-b", "-w", "sample1/tests"], sys: () => createWatchedSystem( allFilesGetter(), { currentDirectory: "/user/username/projects" }, ), edits: [ - changeNewFile(newFile.content), + { + caption: "Change to new File and build core", + edit: sys => sys.writeFile("sample1/core/newfile.ts", `export const newFileConst = 30;`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, - changeNewFile(`${newFile.content} -export class someClass2 { }`), + { + caption: "Change to new File and build core", + edit: sys => sys.appendFile("sample1/core/newfile.ts", `\nexport class someClass2 { }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, ], }); @@ -196,24 +139,20 @@ export class someClass2 { }`), describe("with simple project reference graph", () => { verifyProjectChanges( "with simple project reference graph", - () => allFiles, + getFsContentsForSampleProjectReferences, ); }); describe("with circular project reference", () => { verifyProjectChanges( "with circular project reference", - () => { - const [coreTsconfig, ...otherCoreFiles] = core; - const circularCoreConfig: File = { - path: coreTsconfig.path, - content: JSON.stringify({ - compilerOptions: { composite: true, declaration: true }, - references: [{ path: "../tests", circular: true }], - }), - }; - return [libFile, circularCoreConfig, ...otherCoreFiles, ...logic, ...tests]; - }, + () => ({ + ...getFsContentsForSampleProjectReferences(), + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { composite: true, declaration: true }, + references: [{ path: "../tests", circular: true }], + }), + }), ); }); }); @@ -221,16 +160,16 @@ export class someClass2 { }`), verifyTscWatch({ scenario: "programUpdates", subScenario: "watches config files that are not present", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], - sys: () => - createWatchedSystem( - [libFile, ...core, logic[1], ...tests], - { currentDirectory: "/user/username/projects" }, - ), + commandLineArgs: ["-b", "-w", "tests"], + sys: () => { + const sys = getSysForSampleProjectReferences(); + sys.deleteFile("logic/tsconfig.json"); + return sys; + }, edits: [ { caption: "Write logic tsconfig and build logic", - edit: sys => sys.writeFile(logic[0].path, logic[0].content), + edit: sys => sys.writeFile("logic/tsconfig.json", getFsContentsForSampleProjectReferencesLogicConfig()), timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds logic }, { @@ -242,58 +181,47 @@ export class someClass2 { }`), ], }); - describe("when referenced using prepend, builds referencing project even for non local change", () => { - let coreIndex: File; - before(() => { - coreIndex = { - path: core[1].path, - content: `function foo() { return 10; }`, - }; - }); - after(() => { - coreIndex = undefined!; - }); - const buildLogic: TscWatchCompileChange = { - caption: "Build logic", - edit: ts.noop, - // Builds logic - timeouts: sys => sys.runQueuedTimeoutCallbacks(), - }; - verifyTscWatch({ - scenario: "programUpdates", - subScenario: "when referenced using prepend builds referencing project even for non local change", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.logic}`], - sys: () => { - const coreTsConfig: File = { - path: core[0].path, - content: JSON.stringify({ - compilerOptions: { composite: true, declaration: true, outFile: "index.js" }, - }), - }; - const logicTsConfig: File = { - path: logic[0].path, - content: JSON.stringify({ - compilerOptions: { ignoreDeprecations: "5.0", composite: true, declaration: true, outFile: "index.js" }, - references: [{ path: "../core", prepend: true }], - }), - }; - const logicIndex: File = { - path: logic[1].path, - content: `function bar() { return foo() + 1 };`, - }; - return createWatchedSystem([libFile, coreTsConfig, coreIndex, logicTsConfig, logicIndex], { currentDirectory: "/user/username/projects" }); + verifyTscWatch({ + scenario: "programUpdates", + subScenario: "when referenced using prepend builds referencing project even for non local change", + commandLineArgs: ["-b", "-w", "sample1/logic"], + sys: () => + createWatchedSystem({ + [libFile.path]: libFile.content, + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { composite: true, declaration: true, outFile: "index.js" }, + }), + "/user/username/projects/sample1/core/index.ts": `function foo() { return 10; }`, + "/user/username/projects/sample1/logic/tsconfig.json": jsonToReadableText({ + compilerOptions: { ignoreDeprecations: "5.0", composite: true, declaration: true, outFile: "index.js" }, + references: [{ path: "../core", prepend: true }], + }), + "/user/username/projects/sample1/logic/index.ts": `function bar() { return foo() + 1 };`, + }, { currentDirectory: "/user/username/projects" }), + edits: [ + { + caption: "Make non local change and build core", + edit: sys => sys.appendFile("sample1/core/index.ts", `\nfunction myFunc() { return 10; }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core }, - edits: [ - changeCore(() => - `${coreIndex.content} -function myFunc() { return 10; }`, "Make non local change and build core"), - buildLogic, - changeCore(() => - `${coreIndex.content} -function myFunc() { return 100; }`, "Make local change and build core"), - buildLogic, - ], - }); + { + caption: "Build logic", + edit: ts.noop, + // Builds logic + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "Make local change and build core", + edit: sys => sys.replaceFileText("sample1/core/index.ts", `\nfunction myFunc() { return 10; }`, `\nfunction myFunc() { return 100; }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, + { + caption: "Build logic", + edit: ts.noop, + // Builds logic + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + ], }); describe("when referenced project change introduces error in the down stream project and then fixes it", () => { @@ -320,7 +248,7 @@ export function createSomeObject(): SomeObject sys: () => { const libraryTsconfig: File = { path: `${subProjectLibrary}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true } }), + content: jsonToReadableText({ compilerOptions: { composite: true } }), }; const subProjectApp = `${"/user/username/projects"}/sample1/App`; const appTs: File = { @@ -330,7 +258,7 @@ createSomeObject().message;`, }; const appTsconfig: File = { path: `${subProjectApp}/tsconfig.json`, - content: JSON.stringify({ references: [{ path: "../Library" }] }), + content: jsonToReadableText({ references: [{ path: "../Library" }] }), }; const files = [libFile, libraryTs, libraryTsconfig, appTs, appTsconfig]; @@ -364,28 +292,18 @@ createSomeObject().message;`, verifyTscWatch({ scenario: "programUpdates", subScenario: `reportErrors/${subScenario}`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`, ...buildOptions], - sys: () => createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "tests", ...buildOptions], + sys: getSysForSampleProjectReferences, edits: [ { caption: "change logic", - edit: sys => - sys.writeFile( - logic[1].path, - `${logic[1].content} -let y: string = 10;`, - ), + edit: sys => sys.appendFile("logic/index.ts", `\nlet y: string = 10;`), // Builds logic timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "change core", - edit: sys => - sys.writeFile( - core[1].path, - `${core[1].content} -let x: string = 10;`, - ), + edit: sys => sys.appendFile("core/index.ts", `\nlet x: string = 10;`), // Builds core timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, @@ -416,7 +334,7 @@ let x: string = 10;`, }; const tsconfig: File = { path: `${subProjectLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true } }), + content: jsonToReadableText({ compilerOptions: { composite: true } }), }; const fixError: TscWatchCompileChange = { @@ -503,27 +421,17 @@ let x: string = 10;`, verifyTscWatch({ scenario: "programUpdates", subScenario: "incremental updates in verbose mode", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`, "-verbose"], - sys: () => createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "tests", "-verbose"], + sys: getSysForSampleProjectReferences, edits: [ { caption: "Make non dts change", - edit: sys => - sys.writeFile( - logic[1].path, - `${logic[1].content} -function someFn() { }`, - ), + edit: sys => sys.appendFile("logic/index.ts", `\nfunction someFn() { }`), timeouts: sys => sys.runQueuedTimeoutCallbacks(), // build logic and updates tests }, { caption: "Make dts change", - edit: sys => - sys.writeFile( - logic[1].path, - `${logic[1].content} -export function someFn() { }`, - ), + edit: sys => sys.replaceFileText("logic/index.ts", `\nfunction someFn() { }`, `\nexport function someFn() { }`), timeouts: sys => { sys.runQueuedTimeoutCallbacks(); // build logic sys.runQueuedTimeoutCallbacks(); // build tests @@ -543,7 +451,7 @@ export function someFn() { }`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { noUnusedParameters: true, }, @@ -557,7 +465,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { noUnusedParameters: false, }, @@ -571,13 +479,13 @@ export function someFn() { }`, verifyTscWatch({ scenario: "programUpdates", subScenario: "should not trigger recompilation because of program emit", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.core}`, "-verbose"], - sys: () => createWatchedSystem([libFile, ...core], { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "core", "-verbose"], + sys: getSysForSampleProjectReferences, edits: [ noopChange, { caption: "Add new file", - edit: sys => sys.writeFile(`sample1/${SubProject.core}/file3.ts`, `export const y = 10;`), + edit: sys => sys.writeFile("core/file3.ts", `export const y = 10;`), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, noopChange, @@ -587,17 +495,19 @@ export function someFn() { }`, verifyTscWatch({ scenario: "programUpdates", subScenario: "should not trigger recompilation because of program emit with outDir specified", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.core}`, "-verbose"], - sys: () => { - const [coreConfig, ...rest] = core; - const newCoreConfig: File = { path: coreConfig.path, content: JSON.stringify({ compilerOptions: { composite: true, outDir: "outDir" } }) }; - return createWatchedSystem([libFile, newCoreConfig, ...rest], { currentDirectory: "/user/username/projects" }); - }, + commandLineArgs: ["-b", "-w", "sample1/core", "-verbose"], + sys: () => + createWatchedSystem({ + ...getFsContentsForSampleProjectReferences(), + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { composite: true, outDir: "outDir" }, + }), + }, { currentDirectory: "/user/username/projects" }), edits: [ noopChange, { caption: "Add new file", - edit: sys => sys.writeFile(`sample1/${SubProject.core}/file3.ts`, `export const y = 10;`), + edit: sys => sys.writeFile("sample1/core/file3.ts", `export const y = 10;`), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, noopChange, @@ -615,7 +525,7 @@ export function someFn() { }`, }; const project1Config: File = { path: "/a/b/project1.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { composite: true, @@ -625,7 +535,7 @@ export function someFn() { }`, }; const bravoExtendedConfigFile: File = { path: "/a/b/bravo.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", }), }; @@ -635,7 +545,7 @@ export function someFn() { }`, }; const project2Config: File = { path: "/a/b/project2.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./bravo.tsconfig.json", compilerOptions: { composite: true, @@ -649,7 +559,7 @@ export function someFn() { }`, }; const extendsConfigFile1: File = { path: "/a/b/extendsConfig1.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -657,7 +567,7 @@ export function someFn() { }`, }; const extendsConfigFile2: File = { path: "/a/b/extendsConfig2.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strictNullChecks: false, }, @@ -665,7 +575,7 @@ export function someFn() { }`, }; const extendsConfigFile3: File = { path: "/a/b/extendsConfig3.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { noImplicitAny: true, }, @@ -673,7 +583,7 @@ export function someFn() { }`, }; const project3Config: File = { path: "/a/b/project3.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: ["./extendsConfig1.tsconfig.json", "./extendsConfig2.tsconfig.json", "./extendsConfig3.tsconfig.json"], compilerOptions: { composite: false, @@ -703,7 +613,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/alpha.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strict: true }, }), ), @@ -719,7 +629,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/bravo.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { strict: false }, }), @@ -731,7 +641,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/project2.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: "./alpha.tsconfig.json", }), ), @@ -752,7 +662,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/extendsConfig2.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strictNullChecks: true }, }), ), @@ -763,7 +673,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/project3.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: ["./extendsConfig1.tsconfig.json", "./extendsConfig2.tsconfig.json"], compilerOptions: { composite: false }, files: ["/a/b/other2.ts"], @@ -786,7 +696,7 @@ export function someFn() { }`, sys: () => { const alphaExtendedConfigFile: File = { path: "/a/b/alpha.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, }, @@ -794,7 +704,7 @@ export function someFn() { }`, }; const project1Config: File = { path: "/a/b/project1.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { composite: true, @@ -804,7 +714,7 @@ export function someFn() { }`, }; const bravoExtendedConfigFile: File = { path: "/a/b/bravo.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, }, @@ -816,7 +726,7 @@ export function someFn() { }`, }; const project2Config: File = { path: "/a/b/project2.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./bravo.tsconfig.json", compilerOptions: { composite: true, @@ -826,7 +736,7 @@ export function someFn() { }`, }; const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ references: [ { path: "./project1.tsconfig.json", @@ -856,7 +766,7 @@ export function someFn() { }`, edit: sys => sys.modifyFile( "/a/b/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ references: [ { path: "./project1.tsconfig.json", diff --git a/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts b/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts index 851af314be0..f14506e74d6 100644 --- a/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts +++ b/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { noopChange, TscWatchCompileChange, @@ -29,7 +32,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: projectsBuilding", () => { }, { path: `/user/username/projects/myproject/pkg${index}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, references: index === 0 ? undefined : @@ -41,7 +44,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: projectsBuilding", () => { function solution(maxPkgs: number): File { return { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ references: pkgs(createPkgReference, maxPkgs), files: [], }), diff --git a/src/testRunner/unittests/tsbuildWatch/publicApi.ts b/src/testRunner/unittests/tsbuildWatch/publicApi.ts index 2f5ba8f5f64..c4fa1b74734 100644 --- a/src/testRunner/unittests/tsbuildWatch/publicApi.ts +++ b/src/testRunner/unittests/tsbuildWatch/publicApi.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createBaseline, createSolutionBuilderWithWatchHostForBaseline, @@ -13,7 +16,7 @@ import { it("unittests:: tsbuildWatch:: watchMode:: Public API with custom transformers", () => { const solution: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ references: [ { path: "./shared/tsconfig.json" }, { path: "./webpack/tsconfig.json" }, @@ -23,7 +26,7 @@ it("unittests:: tsbuildWatch:: watchMode:: Public API with custom transformers", }; const sharedConfig: File = { path: `/user/username/projects/myproject/shared/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, }), }; @@ -37,7 +40,7 @@ export function f2() { } // trailing`, }; const webpackConfig: File = { path: `/user/username/projects/myproject/webpack/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../shared/tsconfig.json" }], }), diff --git a/src/testRunner/unittests/tsbuildWatch/reexport.ts b/src/testRunner/unittests/tsbuildWatch/reexport.ts index 1184a781da5..61088df8c86 100644 --- a/src/testRunner/unittests/tsbuildWatch/reexport.ts +++ b/src/testRunner/unittests/tsbuildWatch/reexport.ts @@ -1,3 +1,9 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -6,7 +12,6 @@ import { } from "../helpers/tscWatch"; import { createWatchedSystem, - getTsBuildProjectFile, libFile, } from "../helpers/virtualFileSystemWithWatch"; @@ -16,21 +21,44 @@ describe("unittests:: tsbuildWatch:: watchMode:: with reexport when referenced p subScenario: "Reports errors correctly", commandLineArgs: ["-b", "-w", "-verbose", "src"], sys: () => - createWatchedSystem( - [ - ...[ - "src/tsconfig.json", - "src/main/tsconfig.json", - "src/main/index.ts", - "src/pure/tsconfig.json", - "src/pure/index.ts", - "src/pure/session.ts", - ] - .map(f => getTsBuildProjectFile("reexport", f)), - { path: libFile.path, content: libContent }, - ], - { currentDirectory: `/user/username/projects/reexport` }, - ), + createWatchedSystem({ + "/user/username/projects/reexport/src/tsconfig.json": jsonToReadableText({ + files: [], + include: [], + references: [{ path: "./pure" }, { path: "./main" }], + }), + "/user/username/projects/reexport/src/main/tsconfig.json": jsonToReadableText({ + compilerOptions: { + outDir: "../../out", + rootDir: "../", + }, + include: ["**/*.ts"], + references: [{ path: "../pure" }], + }), + "/user/username/projects/reexport/src/main/index.ts": dedent` + import { Session } from "../pure"; + + export const session: Session = { + foo: 1 + }; + `, + "/user/username/projects/reexport/src/pure/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + outDir: "../../out", + rootDir: "../", + }, + include: ["**/*.ts"], + }), + "/user/username/projects/reexport/src/pure/index.ts": `export * from "./session";\n`, + "/user/username/projects/reexport/src/pure/session.ts": dedent` + export interface Session { + foo: number; + // bar: number; + } + `, + [libFile.path]: libContent, + }, { currentDirectory: `/user/username/projects/reexport` }), edits: [ { caption: "Introduce error", diff --git a/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts b/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts index 64904c3e6e9..e17f46ade75 100644 --- a/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts +++ b/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createBaseline, createSolutionBuilderWithWatchHostForBaseline, @@ -101,7 +104,7 @@ describe("unittests:: tsbuildWatch:: watchEnvironment:: tsbuild:: watchMode:: wi }, { path: `${project}/pkg${index}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ complerOptions: { composite: true }, include: [ "**/*.ts", @@ -114,7 +117,7 @@ describe("unittests:: tsbuildWatch:: watchEnvironment:: tsbuild:: watchMode:: wi function writePkgReferences(system: TestServerHost) { system.writeFile( configPath, - JSON.stringify({ + jsonToReadableText({ files: [], include: [], references: pkgs(createPkgReference), diff --git a/src/testRunner/unittests/tsc/cancellationToken.ts b/src/testRunner/unittests/tsc/cancellationToken.ts index 8deb7cee760..c710adf9f72 100644 --- a/src/testRunner/unittests/tsc/cancellationToken.ts +++ b/src/testRunner/unittests/tsc/cancellationToken.ts @@ -1,6 +1,9 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineBuildInfo, CommandLineProgram, @@ -50,7 +53,7 @@ describe("unittests:: tsc:: builder cancellationToken", () => { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { incremental: true, declaration: true } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, declaration: true } }), }; const { sys, baseline, oldSnap: originalSnap } = createBaseline(createWatchedSystem( [aFile, bFile, cFile, dFile, config, libFile], diff --git a/src/testRunner/unittests/tsc/composite.ts b/src/testRunner/unittests/tsc/composite.ts index a42d0cb4cc5..4b3ad541e8b 100644 --- a/src/testRunner/unittests/tsc/composite.ts +++ b/src/testRunner/unittests/tsc/composite.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -100,7 +103,7 @@ describe("unittests:: tsc:: composite::", () => { fs: () => loadProjectFromFiles({ "/src/project/src/main.ts": "const x = 10;", - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "none", composite: true, diff --git a/src/testRunner/unittests/tsc/declarationEmit.ts b/src/testRunner/unittests/tsc/declarationEmit.ts index 097f86d3080..9b531010e6d 100644 --- a/src/testRunner/unittests/tsc/declarationEmit.ts +++ b/src/testRunner/unittests/tsc/declarationEmit.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -50,7 +53,7 @@ describe("unittests:: tsc:: declarationEmit::", () => { describe("with symlinks in sibling folders and common package referenced from both folders", () => { function pluginOneConfig() { - return JSON.stringify({ + return jsonToReadableText({ compilerOptions: { target: "es5", declaration: true, @@ -93,7 +96,7 @@ describe("unittests:: tsc:: declarationEmit::", () => { export default _default;`; } function fsaPackageJson() { - return JSON.stringify({ + return jsonToReadableText({ name: "typescript-fsa", version: "3.0.0-beta-2", }); @@ -139,7 +142,7 @@ describe("unittests:: tsc:: declarationEmit::", () => { files: [ { path: `/user/username/projects/myproject/plugin-two/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "plugin-two", version: "0.1.3", main: "dist/commonjs/index.js", @@ -192,7 +195,7 @@ ${pluginOneAction()}`, }, { path: `/user/username/projects/myproject/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@raymondfeng/pkg1", version: "1.0.0", main: "dist/index.js", @@ -211,7 +214,7 @@ ${pluginOneAction()}`, }, { path: `/user/username/projects/myproject/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@raymondfeng/pkg2", version: "1.0.0", main: "dist/index.js", @@ -231,7 +234,7 @@ ${pluginOneAction()}`, }, { path: `/user/username/projects/myproject/pkg3/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", diff --git a/src/testRunner/unittests/tsc/incremental.ts b/src/testRunner/unittests/tsc/incremental.ts index 6232fc3b59b..3ed324afd73 100644 --- a/src/testRunner/unittests/tsc/incremental.ts +++ b/src/testRunner/unittests/tsc/incremental.ts @@ -1,10 +1,16 @@ import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, libContent, } from "../helpers/contents"; +import { + getFsForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { noChangeOnlyRuns, noChangeRun, @@ -13,7 +19,6 @@ import { } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, loadProjectFromFiles, prependText, replaceText, @@ -116,7 +121,7 @@ describe("unittests:: tsc:: incremental::", () => { describe("with noEmitOnError", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/noEmitOnError"); + projFs = getFsForNoEmitOnError(); }); after(() => { projFs = undefined!; @@ -127,7 +132,7 @@ describe("unittests:: tsc:: incremental::", () => { scenario: "incremental", subScenario, fs: () => projFs, - commandLineArgs: ["--incremental", "-p", "src"], + commandLineArgs: ["--incremental"], modifyFs, edits: [ noChangeRun, @@ -144,7 +149,7 @@ describe("unittests:: tsc:: incremental::", () => { "with noEmitOnError syntax errors", fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -157,14 +162,14 @@ const a = { "with noEmitOnError semantic errors", fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = "hello";`, "utf-8", ), fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = 10;`, "utf-8", @@ -295,7 +300,7 @@ const a: string = 10;`, "/src/project/src/noChangeFileWithEmitSpecificError.ts": Utils.dedent` function someFunc(arguments: boolean, ...rest: any[]) { }`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions }), }); } } @@ -317,7 +322,7 @@ const a: string = 10;`, function anotherFileWithSameReferenes() { } `, "/src/project/src/filePresent.ts": `function something() { return 10; }`, - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["src/**/*.ts"], }), @@ -382,7 +387,7 @@ declare global { "/src/project/node_modules/react/jsx-runtime.js": "export {}", // js needs to be present so there's a resolution result "/src/project/node_modules/@types/react/index.d.ts": getJsxLibraryContent(), // doesn't contain a jsx-runtime definition "/src/project/src/index.tsx": `export const App = () =>
;`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), }), commandLineArgs: ["--p", "src/project"], }); @@ -395,7 +400,7 @@ declare global { "/src/project/node_modules/react/jsx-runtime.js": "export {}", // js needs to be present so there's a resolution result "/src/project/node_modules/@types/react/index.d.ts": getJsxLibraryContent(), // doesn't contain a jsx-runtime definition "/src/project/src/index.tsx": `export const App = () =>
;`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), }), commandLineArgs: ["--p", "src/project", "--strict"], }); @@ -407,7 +412,7 @@ declare global { commandLineArgs: ["-i", "-p", `src/projects/project2`], fs: () => loadProjectFromFiles({ - "/src/projects/project1/tsconfig.json": JSON.stringify({ + "/src/projects/project1/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -416,7 +421,7 @@ declare global { }), "/src/projects/project1/class1.ts": `class class1 {}`, "/src/projects/project1/class1.d.ts": `declare class class1 {}`, - "/src/projects/project2/tsconfig.json": JSON.stringify({ + "/src/projects/project2/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -468,7 +473,7 @@ declare global { commandLineArgs: ["-noEmit", "-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { incremental: true, strict: true, @@ -486,7 +491,7 @@ declare global { commandLineArgs: ["-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { incremental: true, strict: true, @@ -550,7 +555,7 @@ declare global { commandLineArgs: ["-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { composite: true } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true } }), "/src/project/class1.ts": `const a: MagicNumber = 1; console.log(a);`, "/src/project/constants.ts": "export default 1;", @@ -568,7 +573,7 @@ console.log(a);`, commandLineArgs: ["-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { composite: true } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true } }), "/src/project/class1.ts": `const a: MagicNumber = 1; console.log(a);`, "/src/project/constants.ts": "export default 1;", @@ -588,7 +593,7 @@ console.log(a);`, commandLineArgs: ["-p", "src/project", "--incremental"], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { declaration } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { declaration } }), "/src/project/main.ts": Utils.dedent` import MessageablePerson from './MessageablePerson.js'; function logMessage( person: MessageablePerson ) { @@ -632,7 +637,7 @@ console.log(a);`, subScenario: `when declarationMap changes`, fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { noEmitOnError: true, declaration: true, @@ -667,7 +672,7 @@ console.log(a);`, subScenario: `when declarationMap changes with outFile`, fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { noEmitOnError: true, declaration: true, @@ -750,7 +755,7 @@ console.log(a);`, } function fs(options: ts.CompilerOptions) { return loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: compilerOptionsToConfigJson(options) }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options) }), "/src/project/a.ts": `export const a = 10;const aLocal = 10;`, "/src/project/b.ts": `export const b = 10;const bLocal = 10;`, "/src/project/c.ts": `import { a } from "./a";export const c = a;`, @@ -763,7 +768,7 @@ console.log(a);`, edit: fs => { const config = JSON.parse(fs.readFileSync("/src/project/tsconfig.json", "utf-8")); config.compilerOptions.declarationMap = true; - fs.writeFileSync("/src/project/tsconfig.json", JSON.stringify(config)); + fs.writeFileSync("/src/project/tsconfig.json", jsonToReadableText(config)); }, }; } @@ -865,7 +870,7 @@ console.log(a);`, commandLineArgs: ["-p", `/src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, outDir: "outDir", @@ -887,7 +892,7 @@ console.log(a);`, subScenario: "file deleted before fixing error with noEmitOnError", fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "outDir", noEmitOnError: true, @@ -903,4 +908,55 @@ console.log(a);`, }], baselinePrograms: true, }); + + verifyTsc({ + scenario: "incremental", + subScenario: "generates typerefs correctly", + commandLineArgs: ["-p", `/src/project`], + fs: () => + loadProjectFromFiles({ + "/src/project/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + outDir: "outDir", + checkJs: true, + }, + include: ["src"], + }), + "/src/project/src/box.ts": Utils.dedent` + export interface Box { + unbox(): T + } + `, + "/src/project/src/bug.js": Utils.dedent` + import * as B from "./box.js" + import * as W from "./wrap.js" + + /** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ + const wrap = source => { + throw source + } + + /** + * @returns {B.Box} + */ + const box = (n = 0) => ({ unbox: () => n }) + + export const bug = wrap({ n: box(1) }); + `, + "/src/project/src/wrap.ts": Utils.dedent` + export type Wrap = { + [K in keyof C]: { wrapped: C[K] } + } + `, + }), + edits: [{ + caption: "modify js file", + edit: fs => appendText(fs, "/src/project/src/bug.js", `export const something = 1;`), + }], + }); }); diff --git a/src/testRunner/unittests/tsc/projectReferences.ts b/src/testRunner/unittests/tsc/projectReferences.ts index bd3df222617..8a0a9394e73 100644 --- a/src/testRunner/unittests/tsc/projectReferences.ts +++ b/src/testRunner/unittests/tsc/projectReferences.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -12,7 +15,7 @@ describe("unittests:: tsc:: projectReferences::", () => { fs: () => loadProjectFromFiles({ "/src/project/src/main.ts": "export const x = 10;", - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "amd", outFile: "theApp.js", @@ -31,14 +34,14 @@ describe("unittests:: tsc:: projectReferences::", () => { fs: () => loadProjectFromFiles({ "/src/utils/index.ts": "export const x = 10;", - "/src/utils/tsconfig.json": JSON.stringify({ + "/src/utils/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, noEmit: true, }, }), "/src/project/index.ts": `import { x } from "../utils";`, - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ references: [ { path: "../utils" }, ], diff --git a/src/testRunner/unittests/tsc/projectReferencesConfig.ts b/src/testRunner/unittests/tsc/projectReferencesConfig.ts index 4a631c94670..b641bb30384 100644 --- a/src/testRunner/unittests/tsc/projectReferencesConfig.ts +++ b/src/testRunner/unittests/tsc/projectReferencesConfig.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -23,24 +26,20 @@ function getConfig({ references, options, config }: { options?: ts.CompilerOptions; config?: object; } = {}) { - return JSON.stringify( - { - compilerOptions: { - composite: true, - outDir: "bin", - ...options, - }, - references: references?.map(r => { - if (typeof r === "string") { - return { path: r }; - } - return r; - }) || [], - ...config, + return jsonToReadableText({ + compilerOptions: { + composite: true, + outDir: "bin", + ...options, }, - undefined, - " ", - ); + references: references?.map(r => { + if (typeof r === "string") { + return { path: r }; + } + return r; + }) || [], + ...config, + }); } describe("unittests:: config:: project-references meta check", () => { diff --git a/src/testRunner/unittests/tsc/redirect.ts b/src/testRunner/unittests/tsc/redirect.ts index 83328e47c05..37646f7479a 100644 --- a/src/testRunner/unittests/tsc/redirect.ts +++ b/src/testRunner/unittests/tsc/redirect.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -11,7 +14,7 @@ describe("unittests:: tsc:: redirect::", () => { subScenario: "when redirecting ts file", fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "out", }, @@ -22,14 +25,14 @@ describe("unittests:: tsc:: redirect::", () => { }), "/src/project/copy1/node_modules/target/index.ts": "export const a = 1;", "/src/project/copy1/node_modules/target/import.ts": `import {} from "./";`, - "/src/project/copy1/node_modules/target/package.json": JSON.stringify({ + "/src/project/copy1/node_modules/target/package.json": jsonToReadableText({ name: "target", version: "1.0.0", main: "index.js", }), "/src/project/copy2/node_modules/target/index.ts": "export const a = 1;", "/src/project/copy2/node_modules/target/import.ts": `import {} from "./";`, - "/src/project/copy2/node_modules/target/package.json": JSON.stringify({ + "/src/project/copy2/node_modules/target/package.json": jsonToReadableText({ name: "target", version: "1.0.0", main: "index.js", diff --git a/src/testRunner/unittests/tscWatch/consoleClearing.ts b/src/testRunner/unittests/tscWatch/consoleClearing.ts index 60d1cb0e969..3e759eb0b7a 100644 --- a/src/testRunner/unittests/tscWatch/consoleClearing.ts +++ b/src/testRunner/unittests/tscWatch/consoleClearing.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createBaseline, createWatchCompilerHostOfConfigFileForBaseline, @@ -46,7 +49,7 @@ describe("unittests:: tsc-watch:: console clearing", () => { }; const configFile: File = { path: "/tsconfig.json", - content: JSON.stringify({ compilerOptions }), + content: jsonToReadableText({ compilerOptions }), }; const files = [file, configFile, libFile]; it("using createWatchOfConfigFile ", () => { diff --git a/src/testRunner/unittests/tscWatch/emit.ts b/src/testRunner/unittests/tscWatch/emit.ts index f2866743888..f29421b920a 100644 --- a/src/testRunner/unittests/tscWatch/emit.ts +++ b/src/testRunner/unittests/tscWatch/emit.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { TscWatchCompileChange, verifyTscWatch, @@ -21,7 +24,7 @@ describe("unittests:: tsc-watch:: emit with outFile or out setting", () => { createWatchedSystem({ "/a/a.ts": "let x = 1", "/a/b.ts": "let y = 1", - "/a/tsconfig.json": JSON.stringify({ compilerOptions: { out, outFile } }), + "/a/tsconfig.json": jsonToReadableText({ compilerOptions: { out, outFile } }), [libFile.path]: libFile.content, }), edits: [ @@ -66,7 +69,7 @@ describe("unittests:: tsc-watch:: emit with outFile or out setting", () => { }; const configFile: File = { path: "/a/b/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: useOutFile ? { outFile: "../output/common.js", target: "es5" } : { outDir: "../output", target: "es5" }, @@ -136,7 +139,7 @@ describe("unittests:: tsc-watch:: emit for configured projects", () => { }; const configFile: File = { path: configFilePath, - content: JSON.stringify(configObj || {}), + content: jsonToReadableText(configObj || {}), }; const additionalFiles = getAdditionalFileOrFolder?.() || ts.emptyArray; const files = [moduleFile1, file1Consumer1, file1Consumer2, globalFile3, moduleFile2, configFile, libFile, ...additionalFiles]; @@ -469,7 +472,7 @@ describe("unittests:: tsc-watch:: emit file content", () => { }; const configFile: File = { path: `${projectLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: [ "app/**/*.ts", ], @@ -496,7 +499,7 @@ describe("unittests:: tsc-watch:: emit with when module emit is specified as nod sys: () => { const configFile: File = { path: "/a/rootFolder/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", allowJs: true, diff --git a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts index f46e0db56b0..1585ef391a7 100644 --- a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts +++ b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts @@ -1,6 +1,12 @@ import { - libContent, + jsonToReadableText, +} from "../helpers"; +import { + FsContents, } from "../helpers/contents"; +import { + getFsContentsForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { TscWatchCompileChange, verifyTscWatch, @@ -8,7 +14,6 @@ import { import { createWatchedSystem, File, - getTsBuildProjectFile, libFile, } from "../helpers/virtualFileSystemWithWatch"; @@ -19,7 +24,7 @@ describe("unittests:: tsc-watch:: Emit times and Error updates in builder after }; interface VerifyEmitAndErrorUpdates { subScenario: string; - files: () => File[]; + files: () => FsContents | readonly File[]; currentDirectory?: string; changes: TscWatchCompileChange[]; } @@ -251,7 +256,7 @@ getPoint().c.x;`, describe("updates errors when file transitively exported file changes", () => { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["app.ts"], compilerOptions: { baseUrl: "." }, }), @@ -370,9 +375,7 @@ export class Data2 { verifyEmitAndErrorUpdates({ subScenario: "with noEmitOnError", currentDirectory: `/user/username/projects/noEmitOnError`, - files: () => - ["shared/types/db.ts", "src/main.ts", "src/other.ts", "tsconfig.json"] - .map(f => getTsBuildProjectFile("noEmitOnError", f)).concat({ path: libFile.path, content: libContent }), + files: getFsContentsForNoEmitOnError, changes: [ noChange, change( diff --git a/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts b/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts index 10943c22410..1d1e1b652fe 100644 --- a/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts +++ b/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { TscWatchCompileChange, verifyTscWatch, @@ -21,7 +24,7 @@ describe("unittests:: tsc-watch:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true }, }), }; @@ -77,7 +80,7 @@ describe("unittests:: tsc-watch:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } }), }; return createWatchedSystem([moduleA, moduleB, moduleC, libFile, tsconfig], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -119,7 +122,7 @@ export const Fragment: unique symbol; }, { path: `/user/username/projects/myproject/node_modules/react/package.json`, - content: JSON.stringify({ name: "react", version: "0.0.1" }), + content: jsonToReadableText({ name: "react", version: "0.0.1" }), }, { path: `/user/username/projects/myproject/index.tsx`, @@ -127,7 +130,7 @@ export const Fragment: unique symbol; }, { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { jsx: "react-jsx", jsxImportSource: "react", forceConsistentCasingInFileNames: true }, files: ["node_modules/react/Jsx-Runtime/index.d.ts", "index.tsx"], }), @@ -159,7 +162,7 @@ a;b; }; const tsconfig: File = { path: `${windowsStyleRoot}/${projectRootRelative}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } }), }; return createWatchedSystem([moduleA, moduleB, libFile, tsconfig], { windowsStyleRoot, useCaseSensitiveFileNames: false }); }, @@ -209,7 +212,7 @@ a;b; }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } }), }; return createWatchedSystem([moduleA, symlinkA, moduleB, libFile, tsconfig], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -264,7 +267,7 @@ a;b; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, // Use outFile because otherwise the real and linked files will have the same output path - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true, outFile: "out.js", module: "system" } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true, outFile: "out.js", module: "system" } }), }; return createWatchedSystem([moduleA, symlinkA, moduleB, libFile, tsconfig], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -299,7 +302,7 @@ a;b; "/Users/name/projects/web/src/bin.ts": `import { foo } from "yargs";`, "/Users/name/projects/web/node_modules/@types/yargs/index.d.ts": "export function foo(): void;", "/Users/name/projects/web/node_modules/@types/yargs/index.d.mts": "export function foo(): void;", - "/Users/name/projects/web/node_modules/@types/yargs/package.json": JSON.stringify({ + "/Users/name/projects/web/node_modules/@types/yargs/package.json": jsonToReadableText({ name: "yargs", version: "17.0.12", exports: { @@ -311,7 +314,7 @@ a;b; }, }, }), - "/Users/name/projects/web/tsconfig.json": JSON.stringify({ + "/Users/name/projects/web/tsconfig.json": jsonToReadableText({ compilerOptions: { moduleResolution: "nodenext", forceConsistentCasingInFileNames: true, @@ -328,7 +331,7 @@ a;b; commandLineArgs: ["-w", "--explainFiles"], sys: () => createWatchedSystem({ - "/Users/name/projects/web/package.json": JSON.stringify({ + "/Users/name/projects/web/package.json": jsonToReadableText({ name: "@this/package", type: "module", exports: { @@ -340,7 +343,7 @@ a;b; me.thing(); export function thing(): void {} `, - "/Users/name/projects/web/tsconfig.json": JSON.stringify({ + "/Users/name/projects/web/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "nodenext", outDir: "./dist", @@ -360,7 +363,7 @@ a;b; commandLineArgs: ["-w", "--explainFiles"], sys: () => createWatchedSystem({ - "/Users/name/projects/lib-boilerplate/package.json": JSON.stringify({ + "/Users/name/projects/lib-boilerplate/package.json": jsonToReadableText({ name: "lib-boilerplate", version: "0.0.2", type: "module", @@ -372,7 +375,7 @@ a;b; "/Users/name/projects/lib-boilerplate/test/basic.spec.ts": Utils.dedent` import { thing } from 'lib-boilerplate' `, - "/Users/name/projects/lib-boilerplate/tsconfig.json": JSON.stringify({ + "/Users/name/projects/lib-boilerplate/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "node16", target: "es2021", diff --git a/src/testRunner/unittests/tscWatch/incremental.ts b/src/testRunner/unittests/tscWatch/incremental.ts index c2218d1ae60..a2b098774fe 100644 --- a/src/testRunner/unittests/tscWatch/incremental.ts +++ b/src/testRunner/unittests/tscWatch/incremental.ts @@ -1,5 +1,8 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { CommandLineProgram, } from "../helpers/baseline"; @@ -25,7 +28,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { const configFile: File = { path: `${project}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { incremental: true } }), + content: jsonToReadableText({ compilerOptions: { incremental: true } }), }; interface VerifyIncrementalWatchEmitInput { @@ -115,7 +118,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { verifyIncrementalWatchEmit({ files: () => [libFile, file1, file2, { path: configFile.path, - content: JSON.stringify({ compilerOptions: { incremental: true, outFile: "out.js" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, outFile: "out.js" } }), }], subScenario: "with --out", }); @@ -132,7 +135,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { }; const config: File = { path: configFile.path, - content: JSON.stringify({ compilerOptions: { incremental: true, module: "amd" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd" } }), }; verifyIncrementalWatchEmit({ @@ -229,7 +232,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { verifyIncrementalWatchEmit({ files: () => [libFile, file1, file2, { path: configFile.path, - content: JSON.stringify({ compilerOptions: { incremental: true, module: "amd", outFile: "out.js" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd", outFile: "out.js" } }), }], subScenario: "module compilation/with --out", }); @@ -239,7 +242,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { files: () => { const config: File = { path: configFile.path, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { incremental: true, target: "es5", @@ -301,7 +304,7 @@ export interface A { { path: libFile.path, content: libContent }, { path: `${project}/globals.d.ts`, content: `declare namespace Config { const value: string;} ` }, { path: `${project}/index.ts`, content: `console.log(Config.value);` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: { incremental: true } }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: { incremental: true } }) }, ], modifyFs: host => host.deleteFile(`${project}/globals.d.ts`), }); @@ -326,13 +329,13 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/node_modules/react/jsx-runtime/index.d.ts`, content: jsxLibraryContent }, - { path: `${project}/node_modules/react/package.json`, content: JSON.stringify({ name: "react", version: "0.0.1" }) }, + { path: `${project}/node_modules/react/package.json`, content: jsonToReadableText({ name: "react", version: "0.0.1" }) }, { path: `${project}/node_modules/preact/jsx-runtime/index.d.ts`, content: jsxLibraryContent.replace("propA", "propB") }, - { path: `${project}/node_modules/preact/package.json`, content: JSON.stringify({ name: "preact", version: "0.0.1" }) }, + { path: `${project}/node_modules/preact/package.json`, content: jsonToReadableText({ name: "preact", version: "0.0.1" }) }, { path: `${project}/index.tsx`, content: `export const App = () =>
;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: jsxImportSourceOptions }) }, ], - modifyFs: host => host.writeFile(configFile.path, JSON.stringify({ compilerOptions: { ...jsxImportSourceOptions, jsxImportSource: "preact" } })), + modifyFs: host => host.writeFile(configFile.path, jsonToReadableText({ compilerOptions: { ...jsxImportSourceOptions, jsxImportSource: "preact" } })), optionsToExtend: ["--explainFiles"], }); @@ -341,14 +344,14 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/index.tsx`, content: `export const App = () =>
;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: jsxImportSourceOptions }) }, ], modifyFs: host => { host.createDirectory(`${project}/node_modules`); host.createDirectory(`${project}/node_modules/react`); host.createDirectory(`${project}/node_modules/react/jsx-runtime`); host.writeFile(`${project}/node_modules/react/jsx-runtime/index.d.ts`, jsxLibraryContent); - host.writeFile(`${project}/node_modules/react/package.json`, JSON.stringify({ name: "react", version: "0.0.1" })); + host.writeFile(`${project}/node_modules/react/package.json`, jsonToReadableText({ name: "react", version: "0.0.1" })); }, }); @@ -357,9 +360,9 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/node_modules/react/jsx-runtime/index.d.ts`, content: jsxLibraryContent }, - { path: `${project}/node_modules/react/package.json`, content: JSON.stringify({ name: "react", version: "0.0.1" }) }, + { path: `${project}/node_modules/react/package.json`, content: jsonToReadableText({ name: "react", version: "0.0.1" }) }, { path: `${project}/index.tsx`, content: `export const App = () =>
;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: jsxImportSourceOptions }) }, ], modifyFs: host => { host.deleteFile(`${project}/node_modules/react/jsx-runtime/index.d.ts`); @@ -372,9 +375,9 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/node_modules/tslib/index.d.ts`, content: "export function __assign(...args: any[]): any;" }, - { path: `${project}/node_modules/tslib/package.json`, content: JSON.stringify({ name: "tslib", version: "0.0.1" }) }, + { path: `${project}/node_modules/tslib/package.json`, content: jsonToReadableText({ name: "tslib", version: "0.0.1" }) }, { path: `${project}/index.tsx`, content: `export const x = {...{}};` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: { importHelpers: true } }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: { importHelpers: true } }) }, ], modifyFs: host => { host.deleteFile(`${project}/node_modules/tslib/index.d.ts`); @@ -391,7 +394,7 @@ export const Fragment: unique symbol; { path: `${project}/node_modules/classnames/index.d.ts`, content: `export interface Result {} export default function classNames(): Result;` }, { path: `${project}/src/types/classnames.d.ts`, content: `export {}; declare module "classnames" { interface Result { foo } }` }, { path: `${project}/src/index.ts`, content: `import classNames from "classnames"; classNames().foo;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: { module: "commonjs", incremental: true } }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: { module: "commonjs", incremental: true } }) }, ], modifyFs: host => { // delete 'foo' diff --git a/src/testRunner/unittests/tscWatch/libraryResolution.ts b/src/testRunner/unittests/tscWatch/libraryResolution.ts index fe6e1447b8f..a3778c4ef44 100644 --- a/src/testRunner/unittests/tscWatch/libraryResolution.ts +++ b/src/testRunner/unittests/tscWatch/libraryResolution.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { getCommandLineArgsForLibResolution, getSysForLibResolution, @@ -20,7 +23,7 @@ describe("unittests:: tsc-watch:: libraryResolution", () => { edit: sys => sys.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1", "./typeroot2"], @@ -36,7 +39,7 @@ describe("unittests:: tsc-watch:: libraryResolution", () => { edit: sys => { sys.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], diff --git a/src/testRunner/unittests/tscWatch/moduleResolution.ts b/src/testRunner/unittests/tscWatch/moduleResolution.ts index 099d43066f6..649644039d8 100644 --- a/src/testRunner/unittests/tscWatch/moduleResolution.ts +++ b/src/testRunner/unittests/tscWatch/moduleResolution.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { getFsConentsForNode10ResultAtTypesPackageJson, getFsContentsForNode10Result, @@ -22,7 +25,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/packages/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "1.0.0", main: "build/index.js", @@ -36,7 +39,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", }, @@ -56,7 +59,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", @@ -96,7 +99,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "nodenext", outDir: "./dist", @@ -107,7 +110,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@this/package", type: "module", exports: { @@ -146,7 +149,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { function getSys(packageFileContents: string) { const configFile: File = { path: `/user/username/projects/myproject/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es2016", module: "Node16", @@ -181,14 +184,14 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { scenario: "moduleResolution", subScenario: "package json file is edited", commandLineArgs: ["--w", "--p", "src", "--extendedDiagnostics", "-traceResolution", "--explainFiles"], - sys: () => getSys(JSON.stringify({ name: "app", version: "1.0.0" })), + sys: () => getSys(jsonToReadableText({ name: "app", version: "1.0.0" })), edits: [ { caption: "Modify package json file to add type module", edit: sys => sys.writeFile( `/user/username/projects/myproject/package.json`, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -201,7 +204,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { caption: "Modify package.json file to remove type module", - edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, jsonToReadableText({ name: "app", version: "1.0.0" })), timeouts: host => { host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update @@ -220,7 +223,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { edit: sys => sys.writeFile( `/user/username/projects/myproject/package.json`, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -247,7 +250,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { subScenario: "package json file is edited when package json with type module exists", commandLineArgs: ["--w", "--p", "src", "--extendedDiagnostics", "-traceResolution", "--explainFiles"], sys: () => - getSys(JSON.stringify({ + getSys(jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -255,7 +258,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { edits: [ { caption: "Modify package.json file to remove type module", - edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, jsonToReadableText({ name: "app", version: "1.0.0" })), timeouts: host => { host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update @@ -266,7 +269,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { edit: sys => sys.writeFile( `/user/username/projects/myproject/package.json`, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -287,7 +290,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { caption: "Modify package json file to without type module", - edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, jsonToReadableText({ name: "app", version: "1.0.0" })), timeouts: host => { host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update @@ -312,7 +315,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node16" }, }), }, @@ -332,7 +335,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg", version: "0.0.1", exports: { @@ -351,7 +354,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "0.0.1", exports: { @@ -383,7 +386,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node16" }, }), }, @@ -403,7 +406,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg", version: "0.0.1", exports: { @@ -422,7 +425,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "0.0.1", exports: { @@ -454,7 +457,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node16" }, }), }, @@ -474,7 +477,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg", version: "0.0.1", exports: { @@ -503,7 +506,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "0.0.1", exports: { diff --git a/src/testRunner/unittests/tscWatch/nodeNextWatch.ts b/src/testRunner/unittests/tscWatch/nodeNextWatch.ts index 9f66c823ab3..820b83a82ed 100644 --- a/src/testRunner/unittests/tscWatch/nodeNextWatch.ts +++ b/src/testRunner/unittests/tscWatch/nodeNextWatch.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -16,7 +19,7 @@ describe("unittests:: tsc-watch:: nodeNextWatch:: emit when module emit is speci sys: () => { const configFile: File = { path: "/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, target: "es2020", @@ -28,7 +31,7 @@ describe("unittests:: tsc-watch:: nodeNextWatch:: emit when module emit is speci }; const packageFile: File = { path: "/project/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "some-proj", version: "1.0.0", description: "", diff --git a/src/testRunner/unittests/tscWatch/programUpdates.ts b/src/testRunner/unittests/tscWatch/programUpdates.ts index 09b66e5ae91..4b07b7d25ad 100644 --- a/src/testRunner/unittests/tscWatch/programUpdates.ts +++ b/src/testRunner/unittests/tscWatch/programUpdates.ts @@ -1,5 +1,8 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commandLineCallbacks, } from "../helpers/baseline"; @@ -64,7 +67,7 @@ describe("unittests:: tsc-watch:: program updates", () => { }; const config = { path: configFilePath, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["app.ts"], }), }; @@ -259,7 +262,7 @@ describe("unittests:: tsc-watch:: program updates", () => { }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowUnusedLabels: true }, }), }; @@ -271,7 +274,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowUnusedLabels: false }, }), ), @@ -282,7 +285,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowUnusedLabels: true }, }), ), @@ -306,7 +309,7 @@ describe("unittests:: tsc-watch:: program updates", () => { }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowArbitraryExtensions: true }, files: ["/a.ts"], }), @@ -319,7 +322,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowArbitraryExtensions: false }, files: ["/a.ts"], }), @@ -331,7 +334,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowArbitraryExtensions: true }, files: ["/a.ts"], }), @@ -360,7 +363,7 @@ export class A { }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es6", importsNotUsedAsValues: "error" }, }), }; @@ -372,7 +375,7 @@ export class A { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true }, }), ), @@ -383,7 +386,7 @@ export class A { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true, emitDecoratorMetadata: true }, }), ), @@ -581,7 +584,7 @@ export class A { }; const configFile = { path: "/a/c/tsconfig.json", - content: JSON.stringify({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), }; return createWatchedSystem([file1, file2, file3, libFile, configFile]); }, @@ -602,7 +605,7 @@ export class A { caption: "change `module` to 'none'", timeouts: sys => sys.runQueuedTimeoutCallbacks(), edit: sys => { - sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { module: "none" } })); + sys.writeFile(configFilePath, jsonToReadableText({ compilerOptions: { module: "none" } })); }, }], }); @@ -699,14 +702,14 @@ export class A { }; const configFile = { path: configFilePath, - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts"] }), }; return createWatchedSystem([file1, file2, libFile, configFile]); }, edits: [ { caption: "Modify config to make f2 as root too", - edit: sys => sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })), + edit: sys => sys.writeFile(configFilePath, jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -727,7 +730,7 @@ export class A { }; const configFile = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true }, include: ["./", "./**/*.json"] }), + content: jsonToReadableText({ compilerOptions: { composite: true }, include: ["./", "./**/*.json"] }), }; return createWatchedSystem([file1, file2, libFile, configFile], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -756,7 +759,7 @@ export class A { }; const configFile = { path: `/user/username/projects/myproject/Project/tsconfig.json`, - content: JSON.stringify({ include: [".", "./**/*.json"] }), + content: jsonToReadableText({ include: [".", "./**/*.json"] }), }; return createWatchedSystem([file1, libFile, configFile], { currentDirectory: `/user/username/projects/myproject/Project` }); }, @@ -784,14 +787,14 @@ export class A { }; const configFile = { path: configFilePath, - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), }; return createWatchedSystem([file1, file2, libFile, configFile]); }, edits: [ { caption: "Modify config to set outFile option", - edit: sys => sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })), + edit: sys => sys.writeFile(configFilePath, jsonToReadableText({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -812,7 +815,7 @@ export class A { }; const configFile = { path: configFilePath, - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), }; return createWatchedSystem([file1, file2, libFile, configFile]); }, @@ -886,7 +889,7 @@ declare const eval: any`, }; const config1 = { path: "/src/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -908,7 +911,7 @@ declare const eval: any`, edit: sys => sys.writeFile( "/src/tsconfig.json", - JSON.stringify( + jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -939,7 +942,7 @@ declare const eval: any`, }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, include: [ "src/**/*", @@ -1031,7 +1034,7 @@ declare const eval: any`, }; const config = { path: configFilePath, - content: JSON.stringify({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), + content: jsonToReadableText({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), }; const node = { path: "/a/b/node_modules/@types/node/index.d.ts", @@ -1180,7 +1183,7 @@ declare const eval: any`, }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compiler: {}, files: [], }), @@ -1281,7 +1284,7 @@ declare const eval: any`, }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options), }), }; @@ -1416,7 +1419,7 @@ export default test;`, }; const tsconfigFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "commonjs", noEmit: true, @@ -1446,24 +1449,24 @@ foo().hello`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; return createWatchedSystem([aFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: "Enable strict null checks", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { strictNullChecks: true } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { strictNullChecks: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Set always strict false", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { strict: true, alwaysStrict: false } })), // Avoid changing 'alwaysStrict' or must re-bind + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { strict: true, alwaysStrict: false } })), // Avoid changing 'alwaysStrict' or must re-bind timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Disable strict", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: {} })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: {} })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1489,14 +1492,14 @@ v === 'foo';`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; return createWatchedSystem([aFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: "Enable noErrorTruncation", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { noErrorTruncation: true } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { noErrorTruncation: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1514,14 +1517,14 @@ class D extends C { prop = 1; }`, }; const config: File = { path: `/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { target: "es6" } }), + content: jsonToReadableText({ compilerOptions: { target: "es6" } }), }; return createWatchedSystem([aFile, config, libFile]); }, edits: [ { caption: "Enable useDefineForClassFields", - edit: sys => sys.writeFile(`/tsconfig.json`, JSON.stringify({ compilerOptions: { target: "es6", useDefineForClassFields: true } })), + edit: sys => sys.writeFile(`/tsconfig.json`, jsonToReadableText({ compilerOptions: { target: "es6", useDefineForClassFields: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1543,24 +1546,24 @@ export function f(p: C) { return p; }`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; return createWatchedSystem([aFile, bFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: 'Set to "remove"', - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { importsNotUsedAsValues: "remove" } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "remove" } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: 'Set to "error"', - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { importsNotUsedAsValues: "error" } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "error" } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: 'Set to "preserve"', - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { importsNotUsedAsValues: "preserve" } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "preserve" } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1581,14 +1584,14 @@ export function f(p: C) { return p; }`, }; const config: File = { path: `/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: false } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: false } }), }; return createWatchedSystem([aFile, bFile, config, libFile], { useCaseSensitiveFileNames: false }); }, edits: [ { caption: "Enable forceConsistentCasingInFileNames", - edit: sys => sys.writeFile(`/tsconfig.json`, JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } })), + edit: sys => sys.writeFile(`/tsconfig.json`, jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1609,14 +1612,14 @@ export function f(p: C) { return p; }`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { moduleResolution: "node" } }), + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node" } }), }; return createWatchedSystem([aFile, jsonFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: "Enable resolveJsonModule", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { moduleResolution: "node", resolveJsonModule: true } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { moduleResolution: "node", resolveJsonModule: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1724,7 +1727,7 @@ var y: number; }); function changeWhenLibCheckChanges(compilerOptions: ts.CompilerOptions): TscWatchCompileChange { - const configFileContent = JSON.stringify({ compilerOptions }); + const configFileContent = jsonToReadableText({ compilerOptions }); return { caption: `Changing config to ${configFileContent}`, edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, configFileContent), @@ -1789,7 +1792,7 @@ const b: string = a;`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { isolatedModules: true, }, @@ -1821,7 +1824,7 @@ const b: string = a;`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { rootDir: ".", outDir: "lib", @@ -1856,7 +1859,7 @@ import { x } from "../b";`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { jsx: "preserve", }, @@ -1884,7 +1887,7 @@ import { x } from "../b";`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, }), }; @@ -1906,7 +1909,7 @@ import { x } from "../b";`, sys: () => { const firstExtendedConfigFile: File = { path: "/a/b/first.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, }, @@ -1914,13 +1917,13 @@ import { x } from "../b";`, }; const secondExtendedConfigFile: File = { path: "/a/b/second.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./first.tsconfig.json", }), }; const configFile: File = { path: configFilePath, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, files: [commonFile1.path, commonFile2.path], }), @@ -1940,7 +1943,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( configFilePath, - JSON.stringify({ + jsonToReadableText({ extends: "./second.tsconfig.json", compilerOptions: {}, files: [commonFile1.path, commonFile2.path], @@ -1953,7 +1956,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( "/a/b/first.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strict: false, }, @@ -1966,7 +1969,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( "/a/b/second.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: "./first.tsconfig.json", compilerOptions: { strictNullChecks: true, @@ -1980,7 +1983,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( configFilePath, - JSON.stringify({ + jsonToReadableText({ compilerOptions: {}, files: [commonFile1.path, commonFile2.path], }), @@ -2009,7 +2012,7 @@ import { x } from "../b";`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "client", paths: { "*": ["*"] }, @@ -2035,7 +2038,7 @@ import { x } from "../b";`, sys: () => { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -2054,7 +2057,7 @@ import { x } from "../b";`, }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -2138,7 +2141,7 @@ import { x } from "../b";`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { noEmit: true, allowImportingTsExtensions: false, @@ -2153,7 +2156,7 @@ import { x } from "../b";`, edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { noEmit: true, allowImportingTsExtensions: true, @@ -2180,7 +2183,7 @@ import { x } from "../b";`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { checkJs: false, }, @@ -2194,7 +2197,7 @@ import { x } from "../b";`, edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { checkJs: true, }, diff --git a/src/testRunner/unittests/tscWatch/projectsWithReferences.ts b/src/testRunner/unittests/tscWatch/projectsWithReferences.ts index 1fe3bc5200e..36a8ed801f2 100644 --- a/src/testRunner/unittests/tscWatch/projectsWithReferences.ts +++ b/src/testRunner/unittests/tscWatch/projectsWithReferences.ts @@ -1,13 +1,24 @@ +import { + jsonToReadableText, +} from "../helpers"; +import { + getSysForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { createSolutionBuilder, - createSystemWithSolutionBuild, + solutionBuildWithBaseline, } from "../helpers/solutionBuilder"; +import { + getFsContentsForTransitiveReferences, + getFsContentsForTransitiveReferencesAConfig, + getFsContentsForTransitiveReferencesBConfig, + getFsContentsForTransitiveReferencesRefsAdts, +} from "../helpers/transitiveReferences"; import { verifyTscWatch, } from "../helpers/tscWatch"; import { - getTsBuildProjectFile, - getTsBuildProjectFilePath, + createWatchedSystem, libFile, TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; @@ -17,27 +28,16 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere scenario: "projectsWithReferences", subScenario: "on sample project", sys: () => - createSystemWithSolutionBuild( + solutionBuildWithBaseline( + getSysForSampleProjectReferences(), ["tests"], - [ - libFile, - getTsBuildProjectFile("sample1", "core/tsconfig.json"), - getTsBuildProjectFile("sample1", "core/index.ts"), - getTsBuildProjectFile("sample1", "core/anotherModule.ts"), - getTsBuildProjectFile("sample1", "core/some_decl.d.ts"), - getTsBuildProjectFile("sample1", "logic/tsconfig.json"), - getTsBuildProjectFile("sample1", "logic/index.ts"), - getTsBuildProjectFile("sample1", "tests/tsconfig.json"), - getTsBuildProjectFile("sample1", "tests/index.ts"), - ], - { currentDirectory: `/user/username/projects/sample1` }, ), commandLineArgs: ["-w", "-p", "tests", "--traceResolution", "--explainFiles"], edits: [ { caption: "local edit in logic ts, and build logic", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("sample1", "logic/index.ts"), `function foo() { }`); + sys.appendFile("/user/username/projects/sample1/logic/index.ts", `function foo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["logic"]); solutionBuilder.build(); }, @@ -48,7 +48,7 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere { caption: "non local edit in logic ts, and build logic", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("sample1", "logic/index.ts"), `export function gfoo() { }`); + sys.appendFile("/user/username/projects/sample1/logic/index.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["logic"]); solutionBuilder.build(); }, @@ -58,8 +58,8 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere caption: "change in project reference config file builds correctly", edit: sys => { sys.writeFile( - getTsBuildProjectFilePath("sample1", "logic/tsconfig.json"), - JSON.stringify({ + "/user/username/projects/sample1/logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, declarationDir: "decls" }, references: [{ path: "../core" }], }), @@ -76,33 +76,26 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere function changeCompilerOpitonsPaths(sys: TestServerHost, config: string, newPaths: object) { const configJson = JSON.parse(sys.readFile(config)!); configJson.compilerOptions.paths = newPaths; - sys.writeFile(config, JSON.stringify(configJson)); + sys.writeFile(config, jsonToReadableText(configJson)); } verifyTscWatch({ scenario: "projectsWithReferences", subScenario: "on transitive references", sys: () => - createSystemWithSolutionBuild( + solutionBuildWithBaseline( + createWatchedSystem( + getFsContentsForTransitiveReferences(), + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), ["tsconfig.c.json"], - [ - libFile, - getTsBuildProjectFile("transitiveReferences", "tsconfig.a.json"), - getTsBuildProjectFile("transitiveReferences", "tsconfig.b.json"), - getTsBuildProjectFile("transitiveReferences", "tsconfig.c.json"), - getTsBuildProjectFile("transitiveReferences", "a.ts"), - getTsBuildProjectFile("transitiveReferences", "b.ts"), - getTsBuildProjectFile("transitiveReferences", "c.ts"), - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, ), commandLineArgs: ["-w", "-p", "tsconfig.c.json", "--traceResolution", "--explainFiles"], edits: [ { caption: "non local edit b ts, and build b", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("transitiveReferences", "b.ts"), `export function gfoo() { }`); + sys.appendFile("b.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["tsconfig.b.json"]); solutionBuilder.build(); }, @@ -112,46 +105,46 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere caption: "edit on config file", edit: sys => { sys.ensureFileOrFolder({ - path: getTsBuildProjectFilePath("transitiveReferences", "nrefs/a.d.ts"), - content: sys.readFile(getTsBuildProjectFilePath("transitiveReferences", "refs/a.d.ts"))!, + path: "/user/username/projects/transitiveReferences/nrefs/a.d.ts", + content: sys.readFile("/user/username/projects/transitiveReferences/refs/a.d.ts")!, }); - changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.c.json"), { "@ref/*": ["./nrefs/*"] }); + changeCompilerOpitonsPaths(sys, "tsconfig.c.json", { "@ref/*": ["./nrefs/*"] }); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.c.json"), { "@ref/*": ["./refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "tsconfig.c.json", { "@ref/*": ["./refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "edit in referenced config file", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json"), { "@ref/*": ["./nrefs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "tsconfig.b.json", { "@ref/*": ["./nrefs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert referenced config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json"), { "@ref/*": ["./refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "tsconfig.b.json", { "@ref/*": ["./refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json")), + edit: sys => sys.deleteFile("tsconfig.b.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting referenced config file", - edit: sys => sys.ensureFileOrFolder(getTsBuildProjectFile("transitiveReferences", "tsconfig.b.json")), + edit: sys => sys.writeFile("tsconfig.b.json", getFsContentsForTransitiveReferencesBConfig()), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting transitively referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "tsconfig.a.json")), + edit: sys => sys.deleteFile("tsconfig.a.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting transitively referenced config file", - edit: sys => sys.ensureFileOrFolder(getTsBuildProjectFile("transitiveReferences", "tsconfig.a.json")), + edit: sys => sys.writeFile("tsconfig.a.json", getFsContentsForTransitiveReferencesAConfig()), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -162,29 +155,20 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere scenario: "projectsWithReferences", subScenario: "when referenced project uses different module resolution", sys: () => - createSystemWithSolutionBuild( - ["tsconfig.c.json"], - [ - libFile, - getTsBuildProjectFile("transitiveReferences", "tsconfig.a.json"), + solutionBuildWithBaseline( + createWatchedSystem( { - path: getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json"), - content: JSON.stringify({ + ...getFsContentsForTransitiveReferences(), + "/user/username/projects/transitiveReferences/tsconfig.b.json": jsonToReadableText({ compilerOptions: { composite: true, moduleResolution: "classic" }, files: ["b.ts"], references: [{ path: "tsconfig.a.json" }], }), + "/user/username/projects/transitiveReferences/b.ts": `import {A} from "a";export const b = new A();`, }, - getTsBuildProjectFile("transitiveReferences", "tsconfig.c.json"), - getTsBuildProjectFile("transitiveReferences", "a.ts"), - { - path: getTsBuildProjectFilePath("transitiveReferences", "b.ts"), - content: `import {A} from "a";export const b = new A();`, - }, - getTsBuildProjectFile("transitiveReferences", "c.ts"), - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), + ["tsconfig.c.json"], ), commandLineArgs: ["-w", "-p", "tsconfig.c.json", "--traceResolution", "--explainFiles"], baselineDependencies: true, @@ -194,59 +178,43 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere scenario: "projectsWithReferences", subScenario: "on transitive references in different folders", sys: () => - createSystemWithSolutionBuild( - ["c"], - [ - libFile, + solutionBuildWithBaseline( + createWatchedSystem( { - path: getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - content: JSON.stringify({ + [libFile.path]: libFile.content, + "/user/username/projects/transitiveReferences/a/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - content: JSON.stringify({ + "/user/username/projects/transitiveReferences/b/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, files: ["index.ts"], references: [{ path: `../a` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), - content: JSON.stringify({ + "/user/username/projects/transitiveReferences/c/tsconfig.json": jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, files: ["index.ts"], references: [{ path: `../b` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "a/index.ts"), - content: `export class A {}`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), - content: `import {A} from '@ref/a'; + "/user/username/projects/transitiveReferences/a/index.ts": `export class A {}`, + "/user/username/projects/transitiveReferences/b/index.ts": `import {A} from '@ref/a'; export const b = new A();`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/index.ts"), - content: `import {b} from '../b'; + "/user/username/projects/transitiveReferences/c/index.ts": `import {b} from '../b'; import {X} from "@ref/a"; b; X;`, + "/user/username/projects/transitiveReferences/refs/a.d.ts": getFsContentsForTransitiveReferencesRefsAdts(), }, - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), + ["c"], ), commandLineArgs: ["-w", "-p", "c", "--traceResolution", "--explainFiles"], edits: [ { caption: "non local edit b ts, and build b", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), `export function gfoo() { }`); + sys.appendFile("b/index.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["b"]); solutionBuilder.build(); }, @@ -256,39 +224,39 @@ X;`, caption: "edit on config file", edit: sys => { sys.ensureFileOrFolder({ - path: getTsBuildProjectFilePath("transitiveReferences", "nrefs/a.d.ts"), - content: sys.readFile(getTsBuildProjectFilePath("transitiveReferences", "refs/a.d.ts"))!, + path: "/user/username/projects/transitiveReferences/nrefs/a.d.ts", + content: sys.readFile("/user/username/projects/transitiveReferences/refs/a.d.ts")!, }); - changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }); + changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../nrefs/*"] }); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "edit in referenced config file", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../nrefs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert referenced config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json")), + edit: sys => sys.deleteFile("b/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - JSON.stringify({ + "b/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, files: ["index.ts"], references: [{ path: `../a` }], @@ -298,15 +266,15 @@ X;`, }, { caption: "deleting transitively referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json")), + edit: sys => sys.deleteFile("a/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting transitively referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - JSON.stringify({ + "a/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), @@ -321,54 +289,38 @@ X;`, scenario: "projectsWithReferences", subScenario: "on transitive references in different folders with no files clause", sys: () => - createSystemWithSolutionBuild( - ["c"], - [ - libFile, + solutionBuildWithBaseline( + createWatchedSystem( { - path: getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - content: JSON.stringify({ compilerOptions: { composite: true } }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - content: JSON.stringify({ + [libFile.path]: libFile.content, + "/user/username/projects/transitiveReferences/a/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true } }), + "/user/username/projects/transitiveReferences/b/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, references: [{ path: `../a` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), - content: JSON.stringify({ + "/user/username/projects/transitiveReferences/c/tsconfig.json": jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, references: [{ path: `../b` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "a/index.ts"), - content: `export class A {}`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), - content: `import {A} from '@ref/a'; + "/user/username/projects/transitiveReferences/a/index.ts": `export class A {}`, + "/user/username/projects/transitiveReferences/b/index.ts": `import {A} from '@ref/a'; export const b = new A();`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/index.ts"), - content: `import {b} from '../b'; + "/user/username/projects/transitiveReferences/c/index.ts": `import {b} from '../b'; import {X} from "@ref/a"; b; X;`, + "/user/username/projects/transitiveReferences/refs/a.d.ts": getFsContentsForTransitiveReferencesRefsAdts(), }, - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), + ["c"], ), commandLineArgs: ["-w", "-p", "c", "--traceResolution", "--explainFiles"], edits: [ { caption: "non local edit b ts, and build b", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), `export function gfoo() { }`); + sys.appendFile("b/index.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["b"]); solutionBuilder.build(); }, @@ -378,39 +330,39 @@ X;`, caption: "edit on config file", edit: sys => { sys.ensureFileOrFolder({ - path: getTsBuildProjectFilePath("transitiveReferences", "nrefs/a.d.ts"), - content: sys.readFile(getTsBuildProjectFilePath("transitiveReferences", "refs/a.d.ts"))!, + path: "nrefs/a.d.ts", + content: sys.readFile("refs/a.d.ts")!, }); - changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }); + changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../nrefs/*"] }); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "edit in referenced config file", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../nrefs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert referenced config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json")), + edit: sys => sys.deleteFile("b/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - JSON.stringify({ + "b/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, references: [{ path: `../a` }], }), @@ -419,15 +371,15 @@ X;`, }, { caption: "deleting transitively referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json")), + edit: sys => sys.deleteFile("a/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting transitively referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - JSON.stringify({ compilerOptions: { composite: true } }), + "a/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true } }), ), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, @@ -439,25 +391,16 @@ X;`, scenario: "projectsWithReferences", subScenario: "when declarationMap changes for dependency", sys: () => - createSystemWithSolutionBuild( + solutionBuildWithBaseline( + getSysForSampleProjectReferences(), ["core"], - [ - libFile, - getTsBuildProjectFile("sample1", "core/tsconfig.json"), - getTsBuildProjectFile("sample1", "core/index.ts"), - getTsBuildProjectFile("sample1", "core/anotherModule.ts"), - getTsBuildProjectFile("sample1", "core/some_decl.d.ts"), - getTsBuildProjectFile("sample1", "logic/tsconfig.json"), - getTsBuildProjectFile("sample1", "logic/index.ts"), - ], - { currentDirectory: `/user/username/projects/sample1` }, ), commandLineArgs: ["-w", "-p", "logic", "--traceResolution", "--explainFiles"], edits: [ { caption: "change declration map in core", edit: sys => { - sys.replaceFileText(getTsBuildProjectFilePath("sample1", "core/tsconfig.json"), `"declarationMap": true,`, `"declarationMap": false,`); + sys.replaceFileText("/user/username/projects/sample1/core/tsconfig.json", `"declarationMap": true,`, `"declarationMap": false,`); const solutionBuilder = createSolutionBuilder(sys, ["core"]); solutionBuilder.build(); }, diff --git a/src/testRunner/unittests/tscWatch/resolutionCache.ts b/src/testRunner/unittests/tscWatch/resolutionCache.ts index 45ea0a2e261..83a39a38f3a 100644 --- a/src/testRunner/unittests/tscWatch/resolutionCache.ts +++ b/src/testRunner/unittests/tscWatch/resolutionCache.ts @@ -1,5 +1,8 @@ import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -334,7 +337,7 @@ declare module "fs" { }; const configFile: File = { path: configDir + "tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, rootDir: ".", @@ -406,7 +409,7 @@ declare module "fs" { edit: sys => sys.ensureFileOrFolder({ path: `/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts`, - content: JSON.stringify({ something: 10 }), + content: jsonToReadableText({ something: 10 }), }), timeouts: sys => sys.logTimeoutQueueLength(), }, @@ -428,7 +431,7 @@ declare module "fs" { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", types: ["@myapp/ts-types"], @@ -443,7 +446,7 @@ declare module "fs" { edit: sys => { sys.ensureFileOrFolder({ path: `/user/username/projects/myproject/node_modules/@myapp/ts-types/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ version: "1.65.1", types: "types/somefile.define.d.ts", }), @@ -487,7 +490,7 @@ declare namespace myapp { }; const config: File = { path: `${mainPackageRoot}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "commonjs", moduleResolution: "node", baseUrl: ".", rootDir: "." }, files: ["index.ts"], }), @@ -498,7 +501,7 @@ declare namespace myapp { }; const linkedPackageJson: File = { path: `${linkedPackageRoot}/package.json`, - content: JSON.stringify({ name: "@scoped/linked-package", version: "0.0.1", types: "dist/index.d.ts", main: "dist/index.js" }), + content: jsonToReadableText({ name: "@scoped/linked-package", version: "0.0.1", types: "dist/index.d.ts", main: "dist/index.js" }), }; const linkedPackageIndex: File = { path: `${linkedPackageRoot}/dist/index.d.ts`, @@ -598,7 +601,7 @@ declare namespace NodeJS { subScenario: "reusing type ref resolution", sys: () => createWatchedSystem({ - "/users/username/projects/project/tsconfig.json": JSON.stringify({ + "/users/username/projects/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, traceResolution: true, diff --git a/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts b/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts index ca6bd441fa6..c53e697927d 100644 --- a/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts +++ b/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -15,13 +18,13 @@ describe("unittests:: tsc-watch:: resolveJsonModuleWithIncremental:: emit file - "/src/project/main.ts": `import data from "./data.json"; let x: string = data;`, "/src/project/data.json": `{}`, // this file intentionally left blank "/src/project/data.d.json.ts": `declare var val: string; export default val;`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { resolveJsonModule: true } }, null, 4), // eslint-disable-line no-null/no-null + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { resolveJsonModule: true } }), [libFile.path]: libFile.content, }), commandLineArgs: ["--p", "src/project", "-i", "-w"], edits: [{ caption: "Change json setting", - edit: sys => sys.writeFile("/src/project/tsconfig.json", JSON.stringify({ compilerOptions: { resolveJsonModule: false } }, null, 4)), // eslint-disable-line no-null/no-null + edit: sys => sys.writeFile("/src/project/tsconfig.json", jsonToReadableText({ compilerOptions: { resolveJsonModule: false } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }], }); diff --git a/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts b/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts index 03819615cfb..146ba559d1a 100644 --- a/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts +++ b/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts @@ -1,7 +1,13 @@ import * as ts from "../../_namespaces/ts"; import { - libContent, + jsonToReadableText, +} from "../helpers"; +import { + FsContents, } from "../helpers/contents"; +import { + getFsContentsForDemoProjectReferences, +} from "../helpers/demoProjectReferences"; import { solutionBuildWithBaseline, } from "../helpers/solutionBuilder"; @@ -14,14 +20,13 @@ import { createWatchedSystem, File, FileOrFolderOrSymLink, - getTsBuildProjectFile, libFile, SymLink, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedirect", () => { interface VerifyWatchInput { - files: readonly FileOrFolderOrSymLink[]; + files: FsContents | readonly FileOrFolderOrSymLink[]; config: string; subScenario: string; } @@ -66,16 +71,9 @@ describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedire describe("with simple project", () => { verifyScenario(() => { - const baseConfig = getTsBuildProjectFile("demo", "tsconfig-base.json"); - const coreTs = getTsBuildProjectFile("demo", "core/utilities.ts"); - const coreConfig = getTsBuildProjectFile("demo", "core/tsconfig.json"); - const animalTs = getTsBuildProjectFile("demo", "animals/animal.ts"); - const dogTs = getTsBuildProjectFile("demo", "animals/dog.ts"); - const indexTs = getTsBuildProjectFile("demo", "animals/index.ts"); - const animalsConfig = getTsBuildProjectFile("demo", "animals/tsconfig.json"); return { - files: [{ path: libFile.path, content: libContent }, baseConfig, coreTs, coreConfig, animalTs, dogTs, indexTs, animalsConfig], - config: animalsConfig.path, + files: getFsContentsForDemoProjectReferences(), + config: "/user/username/projects/demo/animals/tsconfig.json", subScenario: "with simple project", }; }); @@ -115,7 +113,7 @@ describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedire function config(packageName: string, extraOptions: ts.CompilerOptions, references?: string[]): File { return { path: `/user/username/projects/myproject/packages/${packageName}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "lib", rootDir: "src", @@ -140,7 +138,7 @@ describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedire verifySymlinkScenario(() => ({ bPackageJson: { path: `/user/username/projects/myproject/packages/B/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ main: "lib/index.js", types: "lib/index.d.ts", }), diff --git a/src/testRunner/unittests/tscWatch/watchApi.ts b/src/testRunner/unittests/tscWatch/watchApi.ts index b1583e112ec..b7a193e69ad 100644 --- a/src/testRunner/unittests/tscWatch/watchApi.ts +++ b/src/testRunner/unittests/tscWatch/watchApi.ts @@ -3,6 +3,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { commandLineCallbacks, } from "../helpers/baseline"; @@ -36,11 +39,11 @@ describe("unittests:: tsc-watch:: watchAPI:: tsc-watch with custom module resolu }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify(configFileJson), + content: jsonToReadableText(configFileJson), }; const settingsJson: File = { path: `/user/username/projects/myproject/settings.json`, - content: JSON.stringify({ content: "Print this" }), + content: jsonToReadableText({ content: "Print this" }), }; const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(createWatchedSystem( [libFile, mainFile, config, settingsJson], @@ -79,7 +82,7 @@ describe("unittests:: tsc-watch:: watchAPI:: tsc-watch with custom module resolu function verifyWatch(subScenario: string, implementHasInvalidatedResolution: boolean) { it(subScenario, () => { const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(createWatchedSystem({ - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ compilerOptions: { traceResolution: true, extendedDiagnostics: true }, files: ["main.ts"], }), @@ -137,7 +140,7 @@ describe("unittests:: tsc-watch:: watchAPI:: tsc-watch expose error count to wat it("verify that the error count is correctly passed down to the watch status reporter", () => { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "commonjs" }, files: ["index.ts"], }), @@ -381,7 +384,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when watchHost uses createSemanticD let baseline: string[]; let emitBaseline: string[]; before(() => { - const configText = JSON.stringify({ compilerOptions: { composite: true } }); + const configText = jsonToReadableText({ compilerOptions: { composite: true } }); const mainText = "export const x = 10;"; const result = createSystemForBuilderTest(configText, mainText); baseline = result.baseline; @@ -425,7 +428,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when watchHost uses createSemanticD let baseline: string[]; let emitBaseline: string[]; before(() => { - const configText = JSON.stringify({ compilerOptions: { composite: true, noEmitOnError: true } }); + const configText = jsonToReadableText({ compilerOptions: { composite: true, noEmitOnError: true } }); const mainText = "export const x: string = 10;"; const result = createSystemForBuilderTest(configText, mainText); baseline = result.baseline; @@ -459,7 +462,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when watchHost uses createSemanticD it("SemanticDiagnosticsBuilderProgram emitDtsOnly does not update affected files pending emit", () => { // Initial - const { sys, baseline, config, mainFile } = createSystem(JSON.stringify({ compilerOptions: { composite: true, noEmitOnError: true } }), "export const x: string = 10;"); + const { sys, baseline, config, mainFile } = createSystem(jsonToReadableText({ compilerOptions: { composite: true, noEmitOnError: true } }), "export const x: string = 10;"); createWatch(baseline, config, sys, ts.createSemanticDiagnosticsBuilderProgram); // Fix error and emit @@ -505,7 +508,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when getParsedCommandLine is implem function setup(useSourceOfProjectReferenceRedirect?: () => boolean) { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -523,7 +526,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when getParsedCommandLine is implem }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -641,7 +644,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when builder emit occurs with emitO function verify(subScenario: string, outFile?: string) { it(subScenario, () => { const system = createWatchedSystem({ - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ compilerOptions: { composite: true, noEmitOnError: true, module: "amd", outFile }, files: ["a.ts", "b.ts"], }), @@ -733,7 +736,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when builder emit occurs with emitO describe("unittests:: tsc-watch:: watchAPI:: when creating program with project references but not config file", () => { function setup(libExtends: boolean) { const system = createWatchedSystem({ - "/user/username/projects/project/tsconfig.json": JSON.stringify({ + "/user/username/projects/project/tsconfig.json": jsonToReadableText({ compilerOptions: { types: [] }, files: ["app.ts"], references: [{ path: "./lib" }], @@ -742,12 +745,12 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project import { one } from './lib'; console.log(one); `, - "/user/username/projects/project/lib/tsconfig.json": JSON.stringify({ + "/user/username/projects/project/lib/tsconfig.json": jsonToReadableText({ extends: libExtends ? "./tsconfig.base.json" : undefined, compilerOptions: libExtends ? undefined : { composite: true, types: [] }, files: ["index.ts"], }), - "/user/username/projects/project/lib/tsconfig.base.json": JSON.stringify({ + "/user/username/projects/project/lib/tsconfig.base.json": jsonToReadableText({ compilerOptions: { composite: true, types: [] }, }), "/user/username/projects/project/lib/index.ts": "export const one = 1;", @@ -792,7 +795,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project edit: sys => sys.writeFile( `/user/username/projects/project/lib/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), @@ -817,7 +820,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project edit: sys => sys.writeFile( `/user/username/projects/project/lib/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ extends: "./tsconfig.base.json", compilerOptions: { typeRoots: [] }, files: ["index.ts"], @@ -830,7 +833,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project edit: sys => sys.writeFile( `/user/username/projects/project/lib/tsconfig.base.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true }, }), ), diff --git a/src/testRunner/unittests/tscWatch/watchEnvironment.ts b/src/testRunner/unittests/tscWatch/watchEnvironment.ts index fb9b5c36254..9f8974d6313 100644 --- a/src/testRunner/unittests/tscWatch/watchEnvironment.ts +++ b/src/testRunner/unittests/tscWatch/watchEnvironment.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, commonFile2, @@ -88,7 +91,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchFile: "FixedChunkSizePolling", }, @@ -141,7 +144,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po const projectSrcFolder = `${projectFolder}/src`; const configFile: File = { path: `${projectFolder}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { synchronousWatchDirectory: true, }, @@ -316,7 +319,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { outDir: "dist", declaration: true } }), + content: jsonToReadableText({ compilerOptions: { outDir: "dist", declaration: true } }), }; const file1: File = { path: `/user/username/projects/myproject/src/file1.ts`, @@ -357,7 +360,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { outDir: "dist" } }), + content: jsonToReadableText({ compilerOptions: { outDir: "dist" } }), }; const file1: File = { path: `/user/username/projects/myproject/src/file1.ts`, @@ -399,7 +402,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchFile: "UseFsEvents", }, @@ -417,7 +420,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchDirectory: "UseFsEvents", }, @@ -435,7 +438,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { fallbackPolling: "PriorityInterval", }, @@ -464,7 +467,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po function sys(watchOptions: ts.WatchOptions, runWithoutRecursiveWatches?: boolean): TestServerHost { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ exclude: ["node_modules"], watchOptions }), + content: jsonToReadableText({ exclude: ["node_modules"], watchOptions }), }; const main: File = { path: `/user/username/projects/myproject/src/main.ts`, @@ -554,7 +557,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.ts`]: `export declare function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.ts", "main.ts"], }), @@ -592,7 +595,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.d.ts`]: `export function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), }, { currentDirectory: "/user/username/projects/myproject", @@ -623,7 +626,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.d.ts`]: `export function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), }, { currentDirectory: "/user/username/projects/myproject", @@ -654,7 +657,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.ts`]: `export declare function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.ts", "main.ts"], }), diff --git a/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts b/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts index 03cbe2c5ceb..06cd1ed05c8 100644 --- a/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts +++ b/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts @@ -1,3 +1,6 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { commonFile1, @@ -5,7 +8,6 @@ import { } from "../helpers/tscWatch"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, } from "../helpers/tsserver"; import { diff --git a/src/testRunner/unittests/tsserver/autoImportProvider.ts b/src/testRunner/unittests/tsserver/autoImportProvider.ts index dfa7eb11506..00aee3dda1b 100644 --- a/src/testRunner/unittests/tsserver/autoImportProvider.ts +++ b/src/testRunner/unittests/tsserver/autoImportProvider.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -259,7 +264,7 @@ describe("unittests:: tsserver:: autoImportProvider", () => { } const dependencies = packages.reduce((hash, p) => ({ ...hash, [JSON.parse(p[0].content).name]: "*" }), {}); - const packageJson: File = { path: "/package.json", content: JSON.stringify(dependencies) }; + const packageJson: File = { path: "/package.json", content: jsonToReadableText(dependencies) }; const { projectService, session } = setup([...ts.flatten(packages), indexTs, tsconfig, packageJson]); openFilesForSession([indexTs], session); @@ -271,11 +276,11 @@ describe("unittests:: tsserver:: autoImportProvider", () => { it("Shared source files between AutoImportProvider and main program do not cause duplicate entries in export info map", () => { const files = [ // node_modules/memfs - AutoImportProvider only - { path: "/node_modules/memfs/package.json", content: `{ "name": "memfs", "version": "1.0.0", "types": "lib/index.d.ts" }` }, + { path: "/node_modules/memfs/package.json", content: jsonToReadableText({ name: "memfs", version: "1.0.0", types: "lib/index.d.ts" }) }, { path: "/node_modules/memfs/lib/index.d.ts", content: `/// \nexport declare class Volume {}` }, // node_modules/@types/node - AutoImportProvider and main program - { path: "/node_modules/@types/node/package.json", content: `{ "name": "@types/node", "version": "1.0.0" }` }, + { path: "/node_modules/@types/node/package.json", content: jsonToReadableText({ name: "@types/node", version: "1.0.0" }) }, { path: "/node_modules/@types/node/index.d.ts", content: `export declare class Stats {}` }, // root diff --git a/src/testRunner/unittests/tsserver/auxiliaryProject.ts b/src/testRunner/unittests/tsserver/auxiliaryProject.ts index 65f99d06f0a..4b28ce4051b 100644 --- a/src/testRunner/unittests/tsserver/auxiliaryProject.ts +++ b/src/testRunner/unittests/tsserver/auxiliaryProject.ts @@ -1,29 +1,39 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, + protocolFileLocationFromSubstring, } from "../helpers/tsserver"; import { createServerHost, File, + libFile, } from "../helpers/virtualFileSystemWithWatch"; -const aTs: File = { - path: "/a.ts", - content: `import { B } from "./b";`, -}; -const bDts: File = { - path: "/b.d.ts", - content: `export declare class B {}`, -}; -const bJs: File = { - path: "/b.js", - content: `export class B {}`, -}; -describe("unittests:: tsserver:: auxiliaryProject", () => { +describe("unittests:: tsserver:: auxiliaryProject::", () => { it("AuxiliaryProject does not remove scrips from InferredProject", () => { + const aTs: File = { + path: "/a.ts", + content: `import { B } from "./b";`, + }; + const bDts: File = { + path: "/b.d.ts", + content: `export declare class B {}`, + }; + const bJs: File = { + path: "/b.js", + content: `export class B {}`, + }; const host = createServerHost([aTs, bDts, bJs]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); const projectService = session.getProjectService(); @@ -33,8 +43,11 @@ describe("unittests:: tsserver:: auxiliaryProject", () => { const inferredProject = projectService.inferredProjects[0]; // getNoDtsResolutionProject will create an AuxiliaryProject with a.ts and b.js - const auxProject = inferredProject.getNoDtsResolutionProject([aTs.path]); - auxProject.updateGraph(); + session.executeCommandSeq({ + command: ts.server.protocol.CommandTypes.FindSourceDefinition, + arguments: protocolFileLocationFromSubstring(aTs, "B"), + }); + const auxProject = inferredProject.getNoDtsResolutionProject(aTs.path as ts.server.NormalizedPath); // b.js ScriptInfo is now available because it's contained by the AuxiliaryProject. // The AuxiliaryProject should never be the default project for anything, so @@ -54,4 +67,110 @@ describe("unittests:: tsserver:: auxiliaryProject", () => { assert.equal(bJsScriptInfo.getDefaultProject().projectKind, ts.server.ProjectKind.Inferred); baselineTsserverLogs("auxiliaryProject", "does not remove scrips from InferredProject", session); }); + + it("file is added later through finding definition", () => { + const indexFile: File = { + path: "/user/users/projects/myproject/index.ts", + content: dedent` + import { command } from "yargs"; + command("foo", yargs => { + yargs.positional(); + }); + `, + }; + const host = createServerHost({ + "/user/users/projects/myproject/node_modules/@types/yargs/package.json": jsonToReadableText({ + name: "@types/yargs", + version: "1.0.0", + types: "./index.d.ts", + }), + "/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts": dedent` + export declare class Yargs { positional(): Yargs; } + `, + "/user/users/projects/myproject/node_modules/@types/yargs/index.d.ts": dedent` + import { Yargs } from "./callback"; + export declare function command(command: string, cb: (yargs: Yargs) => void): void; + `, + "/user/users/projects/myproject/node_modules/yargs/package.json": jsonToReadableText({ + name: "yargs", + version: "1.0.0", + main: "index.js", + }), + "/user/users/projects/myproject/node_modules/yargs/callback.js": dedent` + export class Yargs { positional() { } } + `, + "/user/users/projects/myproject/node_modules/yargs/index.js": dedent` + // Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage + export function command(cmd, cb) { cb(Yargs) } + `, + [indexFile.path]: indexFile.content, + [libFile.path]: libFile.content, + }); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + openFilesForSession([indexFile], session); + session.executeCommandSeq({ + command: ts.server.protocol.CommandTypes.FindSourceDefinition, + arguments: protocolFileLocationFromSubstring(indexFile, "positional"), + }); + session.executeCommandSeq({ + command: ts.server.protocol.CommandTypes.FindSourceDefinition, + arguments: protocolFileLocationFromSubstring(indexFile, "positional"), + }); + session.executeCommandSeq({ + command: ts.server.protocol.CommandTypes.FindSourceDefinition, + arguments: protocolFileLocationFromSubstring(indexFile, "command", { index: 1 }), + }); + baselineTsserverLogs("auxiliaryProject", "file is added later through finding definition", session); + }); + + it("resolution is reused from different folder", () => { + const indexFile: File = { + path: "/user/users/projects/myproject/some/index.ts", + content: dedent` + import { random } from "../folder/random"; + import { command } from "yargs"; + command("foo", yargs => { + yargs.positional(); + }); + `, + }; + const host = createServerHost({ + "/user/users/projects/myproject/node_modules/@types/yargs/package.json": jsonToReadableText({ + name: "@types/yargs", + version: "1.0.0", + types: "./index.d.ts", + }), + "/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts": dedent` + export declare class Yargs { positional(): Yargs; } + `, + "/user/users/projects/myproject/node_modules/@types/yargs/index.d.ts": dedent` + import { Yargs } from "./callback"; + export declare function command(command: string, cb: (yargs: Yargs) => void): void; + `, + "/user/users/projects/myproject/node_modules/yargs/package.json": jsonToReadableText({ + name: "yargs", + version: "1.0.0", + main: "index.js", + }), + "/user/users/projects/myproject/node_modules/yargs/callback.js": dedent` + export class Yargs { positional() { } } + `, + "/user/users/projects/myproject/node_modules/yargs/index.js": dedent` + // Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage + export function command(cmd, cb) { cb(Yargs) } + `, + "/user/users/projects/myproject/folder/random.ts": dedent` + import { Yargs } from "yargs/callback"; + `, + [indexFile.path]: indexFile.content, + [libFile.path]: libFile.content, + }); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + openFilesForSession([indexFile], session); + session.executeCommandSeq({ + command: ts.server.protocol.CommandTypes.FindSourceDefinition, + arguments: protocolFileLocationFromSubstring(indexFile, "positional"), + }); + baselineTsserverLogs("auxiliaryProject", "resolution is reused from different folder", session); + }); }); diff --git a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts index 88a98030dc5..0456ac8c0d5 100644 --- a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts +++ b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts @@ -1,14 +1,19 @@ import { IncrementalVerifierCallbacks, } from "../../../harness/incrementalUtils"; +import { + createLoggerWithInMemoryLogs, + Logger, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, createSession, logDiagnostics, - Logger, openFilesForSession, TestProjectService, } from "../helpers/tsserver"; @@ -76,7 +81,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS function logCacheEntry(logger: Logger, callback: CalledMaps) { const result = Array.from<[string, (true | CalledWithFiveArgs)[]], { key: string; count: number; }>(calledMaps[callback].entries(), ([key, arr]) => ({ key, count: arr.length })); - logger.info(`${callback}:: ${JSON.stringify(result)}`); + logger.info(`${callback}:: ${jsonToReadableText(result)}`); calledMaps[callback].clear(); } @@ -212,7 +217,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS }; const tsconfigFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es6", module: "es6", @@ -281,7 +286,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS const types = ["node", "jest"]; const tsconfigFile: File = { path: `${frontendDir}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, strictNullChecks: true, @@ -346,7 +351,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS }; const tsconfig: File = { path: `${projectLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["foo/boo/app.ts", "foo/boo/moo/app.ts"], moduleResolution: resolution, }), @@ -601,7 +606,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "client", paths: { "*": ["*"] }, diff --git a/src/testRunner/unittests/tsserver/cancellationToken.ts b/src/testRunner/unittests/tsserver/cancellationToken.ts index 5fc573e00f3..ce29913f2af 100644 --- a/src/testRunner/unittests/tsserver/cancellationToken.ts +++ b/src/testRunner/unittests/tsserver/cancellationToken.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, TestServerCancellationToken, TestSessionRequest, @@ -64,7 +69,7 @@ describe("unittests:: tsserver:: cancellationToken", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, }), }; @@ -161,7 +166,7 @@ describe("unittests:: tsserver:: cancellationToken", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, }), }; @@ -221,7 +226,7 @@ describe("unittests:: tsserver:: cancellationToken", () => { session.logger.log(`Exception is OperationCanceledException: ${e instanceof ts.OperationCanceledException}`); operationCanceledExceptionThrown = true; } - if (!operationCanceledExceptionThrown) session.logger.log("Operation Canceled Exception not thrown for request: " + JSON.stringify(request)); + if (!operationCanceledExceptionThrown) session.logger.log("Operation Canceled Exception not thrown for request: " + jsonToReadableText(request)); } }); }); diff --git a/src/testRunner/unittests/tsserver/compileOnSave.ts b/src/testRunner/unittests/tsserver/compileOnSave.ts index 0dcd6bb7dd7..8289832dab3 100644 --- a/src/testRunner/unittests/tsserver/compileOnSave.ts +++ b/src/testRunner/unittests/tsserver/compileOnSave.ts @@ -1,9 +1,14 @@ +import { + createLoggerWithInMemoryLogs, + Logger, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, - Logger, openExternalProjectForSession, openFilesForSession, protocolTextSpanFromSubstring, @@ -642,7 +647,7 @@ describe("unittests:: tsserver:: compileOnSave:: affected list", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: opts, compileOnSave: true, }), @@ -712,7 +717,7 @@ describe("unittests:: tsserver:: compileOnSave:: affected list", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: opts, compileOnSave: true, }), @@ -859,7 +864,7 @@ describe("unittests:: tsserver:: compileOnSave:: EmitFile test", () => { function verify(richResponse: boolean | undefined) { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, compilerOptions: { outDir: "test", @@ -917,7 +922,7 @@ describe("unittests:: tsserver:: compileOnSave:: EmitFile test", () => { function verifyGlobalSave(declaration: boolean, hasModule: boolean) { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, compilerOptions: { declaration, @@ -1039,7 +1044,7 @@ describe("unittests:: tsserver:: compileOnSave:: CompileOnSaveAffectedFileListRe }; const app1Config: File = { path: `/user/username/projects/myproject/app1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["app.ts", "../core/core.ts"], compilerOptions: { outFile: "build/output.js" }, compileOnSave: true, @@ -1047,7 +1052,7 @@ describe("unittests:: tsserver:: compileOnSave:: CompileOnSaveAffectedFileListRe }; const app2Config: File = { path: `/user/username/projects/myproject/app2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["app.ts", "../core/core.ts"], compilerOptions: { outFile: "build/output.js" }, compileOnSave: true, diff --git a/src/testRunner/unittests/tsserver/completions.ts b/src/testRunner/unittests/tsserver/completions.ts index 01f6415a0cb..787d034e7ae 100644 --- a/src/testRunner/unittests/tsserver/completions.ts +++ b/src/testRunner/unittests/tsserver/completions.ts @@ -1,10 +1,14 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, - TestTypingsInstaller, } from "../helpers/tsserver"; import { createServerHost, @@ -72,7 +76,7 @@ describe("unittests:: tsserver:: completions", () => { const projectRoot = "e:/myproject"; const appPackage: File = { path: `${projectRoot}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", version: "0.1.0", dependencies: { @@ -93,7 +97,7 @@ import { const localAtTypes = `${localNodeModules}/@types`; const localReactPackage: File = { path: `${localAtTypes}/react/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@types/react", version: "16.9.14", }), @@ -105,7 +109,7 @@ import { }; const localReactRouterDomPackage: File = { path: `${localNodeModules}/react-router-dom/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "react-router-dom", version: "5.1.2", }), @@ -116,7 +120,7 @@ import { }; const localPropTypesPackage: File = { path: `${localAtTypes}/prop-types/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@types/prop-types", version: "15.7.3", }), @@ -130,11 +134,11 @@ import { `, }; - const globalCacheLocation = `c:/typescript`; - const globalAtTypes = `${globalCacheLocation}/node_modules/@types`; + const globalTypingsCacheLocation = `c:/typescript`; + const globalAtTypes = `${globalTypingsCacheLocation}/node_modules/@types`; const globalReactRouterDomPackage: File = { path: `${globalAtTypes}/react-router-dom/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@types/react-router-dom", version: "5.1.2", }), @@ -180,7 +184,7 @@ export interface BrowserRouterProps { const host = createServerHost(files, { windowsStyleRoot: "c:/" }); const logger = createLoggerWithInMemoryLogs(host); const session = createSession(host, { - typingsInstaller: new TestTypingsInstaller(globalCacheLocation, /*throttleLimit*/ 5, host, logger), + globalTypingsCacheLocation, logger, }); openFilesForSession([appFile], session); diff --git a/src/testRunner/unittests/tsserver/completionsIncomplete.ts b/src/testRunner/unittests/tsserver/completionsIncomplete.ts index e98ffd9b774..d2bcec05bc9 100644 --- a/src/testRunner/unittests/tsserver/completionsIncomplete.ts +++ b/src/testRunner/unittests/tsserver/completionsIncomplete.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/configFileSearch.ts b/src/testRunner/unittests/tsserver/configFileSearch.ts index e250ae54fa9..fb416dedffd 100644 --- a/src/testRunner/unittests/tsserver/configFileSearch.ts +++ b/src/testRunner/unittests/tsserver/configFileSearch.ts @@ -1,6 +1,8 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, } from "../helpers/tsserver"; import { diff --git a/src/testRunner/unittests/tsserver/configuredProjects.ts b/src/testRunner/unittests/tsserver/configuredProjects.ts index 0f524e010e4..3cc6ce03671 100644 --- a/src/testRunner/unittests/tsserver/configuredProjects.ts +++ b/src/testRunner/unittests/tsserver/configuredProjects.ts @@ -1,4 +1,10 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { ensureErrorFreeBuild, } from "../helpers/solutionBuilder"; @@ -8,7 +14,6 @@ import { } from "../helpers/tscWatch"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, createSession, logConfiguredProjectsHasOpenRefStatus, @@ -53,7 +58,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { const { configFileName, configFileErrors } = projectService.openClientFile(file1.path); assert(configFileName, "should find config file"); - assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${JSON.stringify(configFileErrors)}`); + assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${jsonToReadableText(configFileErrors)}`); baselineTsserverLogs("configuredProjects", "create configured project without file list", projectService); }); @@ -85,7 +90,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { const { configFileName, configFileErrors } = projectService.openClientFile(file1.path); assert(configFileName, "should find config file"); - assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${JSON.stringify(configFileErrors)}`); + assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${jsonToReadableText(configFileErrors)}`); baselineTsserverLogs("configuredProjects", "create configured project with the file list", projectService); }); @@ -364,7 +369,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: `/user/username/projects/myproject/a/c/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), }; const host = createServerHost([file1, file2, file3]); @@ -391,7 +396,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const host = createServerHost([file1, configFile]); @@ -417,7 +422,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts"] }), }; const host = createServerHost([file1, file2, configFile]); @@ -425,7 +430,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { projectService.openClientFile(file1.path); - host.writeFile(configFile.path, JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })); + host.writeFile(configFile.path, jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })); host.runQueuedTimeoutCallbacks(); baselineTsserverLogs("configuredProjects", "can correctly update configured project when set of root files has changed (new file in list of files)", projectService); @@ -442,7 +447,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), }; const host = createServerHost([file1, file2, configFile]); @@ -450,7 +455,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { projectService.openClientFile(file1.path); - host.writeFile(configFile.path, JSON.stringify({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })); + host.writeFile(configFile.path, jsonToReadableText({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })); host.runQueuedTimeoutCallbacks(); baselineTsserverLogs("configuredProjects", "can update configured project when set of root files was not changed", projectService); @@ -475,7 +480,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: ["src/file1.ts", "file3.ts"] }), + content: jsonToReadableText({ files: ["src/file1.ts", "file3.ts"] }), }; const files = [file1, file2, file3, file4]; @@ -538,7 +543,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: ["src/file1.ts", "file3.ts"] }), + content: jsonToReadableText({ files: ["src/file1.ts", "file3.ts"] }), }; const files = [file1, file2, file3]; @@ -585,7 +590,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const host = createServerHost([f1, f2, f3, config]); const originalGetFileSize = host.getFileSize; @@ -651,7 +656,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { it("when multiple projects are open, detects correct default project", () => { const barConfig: File = { path: `/user/username/projects/myproject/bar/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["index.ts"], compilerOptions: { lib: ["dom", "es2017"], @@ -667,7 +672,7 @@ export function bar() { }; const fooConfig: File = { path: `/user/username/projects/myproject/foo/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["index.ts"], compilerOptions: { lib: ["es2017"], @@ -733,7 +738,7 @@ declare var console: { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["./src"], }), }; @@ -750,7 +755,7 @@ declare var console: { withExclude ? { path: config.path, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["./src"], exclude: ["./src/sub"], }), @@ -850,7 +855,7 @@ foo();`, }; const fooConfig: File = { path: `/user/username/projects/myproject/foo/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["index.ts"], compilerOptions: { declaration: true, @@ -890,13 +895,13 @@ foo();`, }; const bravoExtendedConfig: File = { path: `/user/username/projects/myproject/extended/bravo.tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", }), }; const aConfig: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../extended/alpha.tsconfig.json", files: ["a.ts"], }), @@ -907,7 +912,7 @@ foo();`, }; const bConfig: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../extended/bravo.tsconfig.json", files: ["b.ts"], }), @@ -930,7 +935,7 @@ foo();`, host.writeFile( alphaExtendedConfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strict: true, }, @@ -940,7 +945,7 @@ foo();`, host.writeFile( bravoExtendedConfig.path, - JSON.stringify({ + jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { strict: false, @@ -951,7 +956,7 @@ foo();`, host.writeFile( bConfig.path, - JSON.stringify({ + jsonToReadableText({ extends: "../extended/alpha.tsconfig.json", }), ); @@ -1019,7 +1024,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compiler: {}, files: [], }), @@ -1047,7 +1052,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const config = { path: `/user/username/projects/myproject/src/server/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compiler: { module: "commonjs", outDir: "../../build", @@ -1080,7 +1085,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const configFile: File = { path: "/users/username/projects/project/tsconfig.json", - content: JSON.stringify({ files: [file1.path], compilerOptions: { module: "amd" } }), + content: jsonToReadableText({ files: [file1.path], compilerOptions: { module: "amd" } }), }; const files = [file1, file2a, configFile, libFile]; const host = createServerHost(files); @@ -1117,7 +1122,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const configFile: File = { path: "/a/b/src/tsconfig.json", - content: JSON.stringify({ files: ["file1.ts"] }), + content: jsonToReadableText({ files: ["file1.ts"] }), }; const nonLibFiles = [file1, module1, module2, module3, configFile]; nonLibFiles.forEach(f => f.path = root + f.path); diff --git a/src/testRunner/unittests/tsserver/declarationFileMaps.ts b/src/testRunner/unittests/tsserver/declarationFileMaps.ts index 2f63d0c8b21..ed797ea7676 100644 --- a/src/testRunner/unittests/tsserver/declarationFileMaps.ts +++ b/src/testRunner/unittests/tsserver/declarationFileMaps.ts @@ -1,8 +1,13 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolFileLocationFromSubstring, @@ -18,7 +23,7 @@ function checkDeclarationFiles(file: File, session: TestSession): void { const project = ts.Debug.checkDefined(session.getProjectService().getDefaultProjectForFile(file.path as ts.server.NormalizedPath, /*ensureProject*/ false)); const program = project.getCurrentProgram()!; const output = ts.getFileEmitOutput(program, ts.Debug.checkDefined(program.getSourceFile(file.path)), /*emitOnlyDtsFiles*/ true); - session.logger.log(`ts.getFileEmitOutput: ${file.path}: ${JSON.stringify(output, undefined, " ")}`); + session.logger.log(`ts.getFileEmitOutput: ${file.path}: ${jsonToReadableText(output)}`); closeFilesForSession([file], session); } @@ -33,7 +38,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references declarationMap: true, composite: true, }; - const configContent = JSON.stringify({ compilerOptions }); + const configContent = jsonToReadableText({ compilerOptions }); const aTsconfig: File = { path: "/a/tsconfig.json", content: configContent }; const aDtsMapContent: ts.RawSourceMap = { @@ -46,7 +51,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references }; const aDtsMap: File = { path: "/a/bin/a.d.ts.map", - content: JSON.stringify(aDtsMapContent), + content: jsonToReadableText(aDtsMapContent), }; const aDts: File = { path: "/a/bin/a.d.ts", @@ -70,7 +75,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references }; const bDtsMap: File = { path: "/b/bin/b.d.ts.map", - content: JSON.stringify(bDtsMapContent), + content: jsonToReadableText(bDtsMapContent), }; const bDts: File = { // ${""} is need to mangle the sourceMappingURL part so it doesn't break the build @@ -95,7 +100,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const userTsconfig: File = { path: "/user/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ file: ["user.ts"], references: [{ path: "../a" }, { path: "../b" }], }), @@ -269,14 +274,14 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const aTs: File = { path: "/a/a.ts", content: `function f() {}` }; const aTsconfig: File = { path: "/a/tsconfig.json", - content: JSON.stringify({ compilerOptions: { declaration: true, declarationMap: true, outFile: "../bin/a.js" } }), + content: jsonToReadableText({ compilerOptions: { declaration: true, declarationMap: true, outFile: "../bin/a.js" } }), }; const bTs: File = { path: "/b/b.ts", content: `f();` }; - const bTsconfig: File = { path: "/b/tsconfig.json", content: JSON.stringify({ references: [{ path: "../a" }] }) }; + const bTsconfig: File = { path: "/b/tsconfig.json", content: jsonToReadableText({ references: [{ path: "../a" }] }) }; const aDts: File = { path: "/bin/a.d.ts", content: `declare function f(): void;\n//# sourceMappingURL=a.d.ts.map` }; const aDtsMap: File = { path: "/bin/a.d.ts.map", - content: JSON.stringify({ version: 3, file: "a.d.ts", sourceRoot: "", sources: ["../a/a.ts"], names: [], mappings: "AAAA,iBAAS,CAAC,SAAK" }), + content: jsonToReadableText({ version: 3, file: "a.d.ts", sourceRoot: "", sources: ["../a/a.ts"], names: [], mappings: "AAAA,iBAAS,CAAC,SAAK" }), }; const host = createServerHost([aTs, aTsconfig, bTs, bTsconfig, aDts, aDtsMap]); @@ -359,7 +364,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const aTs: File = { path: "/a/src/a.ts", content: "" }; const aTsconfig: File = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declaration: true, @@ -371,7 +376,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const bTs: File = { path: "/b/src/b.ts", content: "" }; const bTsconfig: File = { path: "/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "./build", @@ -401,7 +406,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references }; const aDtsMapInlinedSources: File = { path: aDtsMap.path, - content: JSON.stringify(aDtsInlinedSources), + content: jsonToReadableText(aDtsInlinedSources), }; const host = createServerHost([aTs, aDtsMapInlinedSources, aDts, bTs, bDtsMap, bDts, userTs, dummyFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); diff --git a/src/testRunner/unittests/tsserver/documentRegistry.ts b/src/testRunner/unittests/tsserver/documentRegistry.ts index ffde566529c..43706ab4680 100644 --- a/src/testRunner/unittests/tsserver/documentRegistry.ts +++ b/src/testRunner/unittests/tsserver/documentRegistry.ts @@ -1,11 +1,16 @@ import { reportDocumentRegistryStats, } from "../../../harness/incrementalUtils"; +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createProjectService, createSession, openFilesForSession, @@ -29,7 +34,7 @@ describe("unittests:: tsserver:: documentRegistry:: document registry in project }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ files: ["index.ts"] }), + content: jsonToReadableText({ files: ["index.ts"] }), }; function getProject(service: TestProjectService) { diff --git a/src/testRunner/unittests/tsserver/duplicatePackages.ts b/src/testRunner/unittests/tsserver/duplicatePackages.ts index 4a957d481ae..ab3c22fdbe1 100644 --- a/src/testRunner/unittests/tsserver/duplicatePackages.ts +++ b/src/testRunner/unittests/tsserver/duplicatePackages.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -14,7 +19,7 @@ describe("unittests:: tsserver:: duplicate packages", () => { // Tests that 'moduleSpecifiers.ts' will import from the redirecting file, and not from the file it redirects to, if that can provide a global module specifier. it("works with import fixes", () => { const packageContent = "export const foo: number;"; - const packageJsonContent = JSON.stringify({ name: "foo", version: "1.2.3" }); + const packageJsonContent = jsonToReadableText({ name: "foo", version: "1.2.3" }); const aFooIndex: File = { path: "/a/node_modules/foo/index.d.ts", content: packageContent }; const aFooPackage: File = { path: "/a/node_modules/foo/package.json", content: packageJsonContent }; const bFooIndex: File = { path: "/b/node_modules/foo/index.d.ts", content: packageContent }; diff --git a/src/testRunner/unittests/tsserver/dynamicFiles.ts b/src/testRunner/unittests/tsserver/dynamicFiles.ts index 644deb0e908..a7815617e22 100644 --- a/src/testRunner/unittests/tsserver/dynamicFiles.ts +++ b/src/testRunner/unittests/tsserver/dynamicFiles.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, createSession, openFilesForSession, diff --git a/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts b/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts index 7406af24c15..e2ce5a25190 100644 --- a/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts +++ b/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../../helpers/tsserver"; @@ -40,7 +45,7 @@ describe("unittests:: tsserver:: events:: LargeFileReferencedEvent with large fi }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ files: ["src/file.ts", getLargeFile(useLargeTsFile)], compilerOptions: { target: 1, allowJs: true } }), + content: jsonToReadableText({ files: ["src/file.ts", getLargeFile(useLargeTsFile)], compilerOptions: { target: 1, allowJs: true } }), }; const files = [file, libFile, tsconfig]; const session = createSessionWithEventHandler(files, useLargeTsFile); diff --git a/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts b/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts index 4f854dca732..048b5194d3b 100644 --- a/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts +++ b/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, createSession, openFilesForSession, @@ -28,7 +33,7 @@ describe("unittests:: tsserver:: events:: ProjectLanguageServiceStateEvent", () }; const configWithExclude = { path: config.path, - content: JSON.stringify({ exclude: ["largefile.js"] }), + content: jsonToReadableText({ exclude: ["largefile.js"] }), }; const host = createServerHost([f1, f2, config]); const originalGetFileSize = host.getFileSize; diff --git a/src/testRunner/unittests/tsserver/events/projectLoading.ts b/src/testRunner/unittests/tsserver/events/projectLoading.ts index 98295f81aaf..f555d6e23c4 100644 --- a/src/testRunner/unittests/tsserver/events/projectLoading.ts +++ b/src/testRunner/unittests/tsserver/events/projectLoading.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, createSessionWithCustomEventHandler, openExternalProjectForSession, @@ -65,7 +70,7 @@ describe("unittests:: tsserver:: events:: ProjectLoadingStart and ProjectLoading }; const configB: File = { path: configBPath, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../a/tsconfig.json", }), }; @@ -97,7 +102,7 @@ describe("unittests:: tsserver:: events:: ProjectLoadingStart and ProjectLoading }; const aDTsMap: File = { path: `/user/username/projects/a/a.d.ts.map`, - content: `{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"}`, + content: jsonToReadableText({ version: 3, file: "a.d.ts", sourceRoot: "", sources: ["./a.ts"], names: [], mappings: "AAAA,qBAAa,CAAC;CAAI" }), }; const bTs: File = { path: bTsPath, @@ -105,7 +110,7 @@ describe("unittests:: tsserver:: events:: ProjectLoadingStart and ProjectLoading }; const configB: File = { path: configBPath, - content: JSON.stringify({ + content: jsonToReadableText({ ...(disableSourceOfProjectReferenceRedirect && { compilerOptions: { disableSourceOfProjectReferenceRedirect, diff --git a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts index 8f113d43c01..54c29910a52 100644 --- a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts +++ b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, createSessionWithCustomEventHandler, openFilesForSession, @@ -50,7 +55,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { it(subScenario, () => { const config: File = { path: "/users/username/projects/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions, }), }; @@ -123,7 +128,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { const additionalFiles = getAdditionalFileOrFolder ? getAdditionalFileOrFolder() : []; const configFile = { path: configFilePath, - content: JSON.stringify(configObj || { compilerOptions: {} }), + content: jsonToReadableText(configObj || { compilerOptions: {} }), }; const files: File[] = [file1Consumer1, moduleFile1, file1Consumer2, moduleFile2, ...additionalFiles, globalFile3, libFile, configFile]; @@ -376,7 +381,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { }; const configFile: File = { path: rootFolder + "a/b/project/tsconfig.json", - content: JSON.stringify({ compilerOptions: { typeRoots: [] } }), + content: jsonToReadableText({ compilerOptions: { typeRoots: [] } }), }; const host = createServerHost([file1, file3, libFile, configFile]); diff --git a/src/testRunner/unittests/tsserver/events/watchEvents.ts b/src/testRunner/unittests/tsserver/events/watchEvents.ts index 8c28c946480..5cf06362e3f 100644 --- a/src/testRunner/unittests/tsserver/events/watchEvents.ts +++ b/src/testRunner/unittests/tsserver/events/watchEvents.ts @@ -1,27 +1,30 @@ +import { + createLoggerWithInMemoryLogs, + Logger, +} from "../../../../harness/tsserverLogger"; +import { + createWatchUtils, + WatchUtils, +} from "../../../../harness/watchUtils"; import * as ts from "../../../_namespaces/ts"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, createSessionWithCustomEventHandler, - Logger, openFilesForSession, TestSession, } from "../../helpers/tsserver"; import { createServerHost, libFile, - serializeMultiMap, TestServerHost, } from "../../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsserver:: events:: watchEvents", () => { interface TestServerHostWithCustomWatch extends TestServerHost { factoryData: { - watchedFiles: ts.MultiMap; - watchedDirectories: ts.MultiMap; - watchedDirectoriesRecursive: ts.MultiMap; + watchUtils: WatchUtils; watchFile(data: ts.server.protocol.CreateFileWatcherEventBody): void; watchDirectory(data: ts.server.protocol.CreateDirectoryWatcherEventBody): void; closeWatcher(data: ts.server.protocol.CloseFileWatcherEventBody): void; @@ -32,16 +35,11 @@ describe("unittests:: tsserver:: events:: watchEvents", () => { logger: Logger, ) { const idToClose = new Map void>(); - let serializedWatchedFiles: Map | undefined; - let serializedWatchedDirectories: Map | undefined; - let serializedWatchedDirectoriesRecursive: Map | undefined; const host = logger.host as TestServerHostWithCustomWatch; const originalSerializeWatches = host.serializeWatches; host.serializeWatches = serializeWatches; host.factoryData = { - watchedFiles: ts.createMultiMap(), - watchedDirectories: ts.createMultiMap(), - watchedDirectoriesRecursive: ts.createMultiMap(), + watchUtils: createWatchUtils(`Custom WatchedFiles`, `Custom WatchedDirectories`), watchFile, watchDirectory, closeWatcher, @@ -51,22 +49,20 @@ describe("unittests:: tsserver:: events:: watchEvents", () => { function watchFile(data: ts.server.protocol.CreateFileWatcherEventBody) { logger.log(`Custom watchFile: ${data.id}: ${data.path}`); ts.Debug.assert(!idToClose.has(data.id)); - host.factoryData.watchedFiles.add(data.path, data); - host.hasWatchChanges = true; + const result = host.factoryData.watchUtils.pollingWatch(data.path, data); idToClose.set(data.id, () => { logger.log(`Custom watchFile:: Close:: ${data.id}: ${data.path}`); - host.factoryData.watchedFiles.remove(data.path, data); + result.close(); }); } function watchDirectory(data: ts.server.protocol.CreateDirectoryWatcherEventBody) { logger.log(`Custom watchDirectory: ${data.id}: ${data.path} ${data.recursive}`); ts.Debug.assert(!idToClose.has(data.id)); - (data.recursive ? host.factoryData.watchedDirectoriesRecursive : host.factoryData.watchedDirectories).add(data.path, data); - host.hasWatchChanges = true; + const result = host.factoryData.watchUtils.fsWatch(data.path, data.recursive, data); idToClose.set(data.id, () => { logger.log(`Custom watchDirectory:: Close:: ${data.id}: ${data.path} ${data.recursive}`); - (data.recursive ? host.factoryData.watchedDirectoriesRecursive : host.factoryData.watchedDirectories).remove(data.path, data); + result.close(); }); } @@ -74,18 +70,18 @@ describe("unittests:: tsserver:: events:: watchEvents", () => { const close = idToClose.get(data.id); if (close) { idToClose.delete(data.id); - host.hasWatchChanges = true; close(); } } function serializeWatches(baseline: string[] = []) { - const hasWatchChanges = host.hasWatchChanges; + if (host.factoryData.watchUtils.getHasWatchChanges()) host.watchUtils.setHasWatchChanges(); + const hasWatchChanges = host.watchUtils.getHasWatchChanges(); originalSerializeWatches.call(host, baseline); - if (!hasWatchChanges) return baseline; - serializedWatchedFiles = serializeMultiMap(baseline, `Custom WatchedFiles`, host.factoryData.watchedFiles, serializedWatchedFiles); - serializedWatchedDirectories = serializeMultiMap(baseline, `Custom WatchedDirectories:Recursive`, host.factoryData.watchedDirectoriesRecursive, serializedWatchedDirectories); - serializedWatchedDirectoriesRecursive = serializeMultiMap(baseline, `Custom WatchedDirectories`, host.factoryData.watchedDirectories, serializedWatchedDirectoriesRecursive); + if (hasWatchChanges) { + host.factoryData.watchUtils.setHasWatchChanges(); + host.factoryData.watchUtils.serializeWatches(baseline); + } return baseline; } } @@ -100,7 +96,7 @@ describe("unittests:: tsserver:: events:: watchEvents", () => { function addFile(session: TestSession, path: string) { updateFileOnHost(session, path, "Add file"); session.logger.log("Custom watch"); - (session.logger.host as TestServerHostWithCustomWatch).factoryData.watchedDirectoriesRecursive.get("/user/username/projects/myproject")?.forEach(data => + (session.logger.host as TestServerHostWithCustomWatch).factoryData.watchUtils.fsWatchesRecursive.get("/user/username/projects/myproject")?.forEach(data => session.executeCommandSeq({ command: ts.server.protocol.CommandTypes.WatchChange, arguments: { id: data.id, path, eventType: "create" }, @@ -112,7 +108,7 @@ describe("unittests:: tsserver:: events:: watchEvents", () => { function changeFile(session: TestSession, path: string) { updateFileOnHost(session, path, "Change File"); session.logger.log("Custom watch"); - (session.logger.host as TestServerHostWithCustomWatch).factoryData.watchedFiles.get(path)?.forEach(data => + (session.logger.host as TestServerHostWithCustomWatch).factoryData.watchUtils.pollingWatches.get(path)?.forEach(data => session.executeCommandSeq({ command: ts.server.protocol.CommandTypes.WatchChange, arguments: { id: data.id, path, eventType: "update" }, @@ -135,7 +131,7 @@ describe("unittests:: tsserver:: events:: watchEvents", () => { it("canUseWatchEvents", () => { const { host, logger } = setup(); - const session = createSessionWithCustomEventHandler(logger.host!, { canUseWatchEvents: true, logger }, handleWatchEvents); + const session = createSessionWithCustomEventHandler(host, { canUseWatchEvents: true, logger }, handleWatchEvents); openFilesForSession(["/user/username/projects/myproject/a.ts"], session); // Directory watcher @@ -169,8 +165,8 @@ describe("unittests:: tsserver:: events:: watchEvents", () => { }); it("canUseWatchEvents without canUseEvents", () => { - const { logger } = setup(); - const session = createSession(logger.host!, { canUseEvents: false, logger }); + const { host, logger } = setup(); + const session = createSession(host, { canUseEvents: false, logger }); openFilesForSession(["/user/username/projects/myproject/a.ts"], session); // Directory watcher diff --git a/src/testRunner/unittests/tsserver/exportMapCache.ts b/src/testRunner/unittests/tsserver/exportMapCache.ts index bcf6b3b38fd..1a3063ce860 100644 --- a/src/testRunner/unittests/tsserver/exportMapCache.ts +++ b/src/testRunner/unittests/tsserver/exportMapCache.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -32,7 +37,7 @@ const ambientDeclaration: File = { }; const mobxPackageJson: File = { path: "/node_modules/mobx/package.json", - content: `{ "name": "mobx", "version": "1.0.0" }`, + content: jsonToReadableText({ name: "mobx", version: "1.0.0" }), }; const mobxDts: File = { path: "/node_modules/mobx/index.d.ts", diff --git a/src/testRunner/unittests/tsserver/extends.ts b/src/testRunner/unittests/tsserver/extends.ts index 91676f0da2a..cc3e4126876 100644 --- a/src/testRunner/unittests/tsserver/extends.ts +++ b/src/testRunner/unittests/tsserver/extends.ts @@ -1,9 +1,11 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import { getSymlinkedExtendsSys, } from "../helpers/extends"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/externalProjects.ts b/src/testRunner/unittests/tsserver/externalProjects.ts index 5c6727ba531..d695621c184 100644 --- a/src/testRunner/unittests/tsserver/externalProjects.ts +++ b/src/testRunner/unittests/tsserver/externalProjects.ts @@ -1,8 +1,13 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, createSession, logConfiguredProjectsHasOpenRefStatus, @@ -29,7 +34,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ include: [], }), }; @@ -207,7 +212,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -220,7 +225,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config2 = { path: "/a/c/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f2.ts"], @@ -268,7 +273,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const externalProjectName = "externalproject"; const host = createServerHost([file1, configFile]); @@ -300,7 +305,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const externalProjectName = "externalproject"; const host = createServerHost([file1, file2, libFile, configFile]); @@ -598,7 +603,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config1 = { path: "/src/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -614,7 +619,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config2 = { path: config1.path, - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -646,7 +651,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, include: [ "src/**/*", @@ -673,7 +678,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; const projectFileName = "/a/b/project.csproj"; const host = createServerHost([f1, config]); @@ -685,10 +690,10 @@ describe("unittests:: tsserver:: externalProjects", () => { options: {}, } as ts.server.protocol.ExternalProject); const project = service.configuredProjects.get(config.path)!; - assert.equal(project.pendingReload, ts.ConfigFileProgramReloadLevel.Full); // External project referenced configured project pending to be reloaded + assert.equal(project.pendingUpdateLevel, ts.ProgramUpdateLevel.Full); // External project referenced configured project pending to be reloaded service.setHostConfiguration({ preferences: { lazyConfiguredProjectsFromExternalProject: false } }); - assert.equal(project.pendingReload, ts.ConfigFileProgramReloadLevel.None); // External project referenced configured project loaded + assert.equal(project.pendingUpdateLevel, ts.ProgramUpdateLevel.Update); // External project referenced configured project loaded service.closeExternalProject(projectFileName); @@ -698,7 +703,7 @@ describe("unittests:: tsserver:: externalProjects", () => { options: {}, } as ts.server.protocol.ExternalProject); const project2 = service.configuredProjects.get(config.path)!; - assert.equal(project2.pendingReload, ts.ConfigFileProgramReloadLevel.None); // External project referenced configured project loaded + assert.equal(project2.pendingUpdateLevel, ts.ProgramUpdateLevel.Update); // External project referenced configured project loaded baselineTsserverLogs("externalProjects", "handles loads existing configured projects of external projects when lazyConfiguredProjectsFromExternalProject is disabled", service); }); diff --git a/src/testRunner/unittests/tsserver/findAllReferences.ts b/src/testRunner/unittests/tsserver/findAllReferences.ts index e194b58fe7b..928b4292651 100644 --- a/src/testRunner/unittests/tsserver/findAllReferences.ts +++ b/src/testRunner/unittests/tsserver/findAllReferences.ts @@ -1,9 +1,11 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import { protocol, } from "../../_namespaces/ts.server"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, } from "../helpers/tsserver"; import { diff --git a/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts b/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts index 2ef7a891b2a..16e24dfb6db 100644 --- a/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts +++ b/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts @@ -1,8 +1,13 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolTextSpanFromSubstring, @@ -31,7 +36,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfigAll: File = { path: `${rootPath}/tsconfig.all.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: ".", paths: { file2: ["./file2.js"] }, @@ -42,7 +47,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `${rootPath}/tsconfig.json`, - content: JSON.stringify({ extends: "./tsconfig.all.json" }), + content: jsonToReadableText({ extends: "./tsconfig.all.json" }), }; const host = createServerHost([file1, file2, file2Dts, libFile, tsconfig, tsconfigAll], { useCaseSensitiveFileNames: false }); @@ -69,7 +74,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true }, }), }; @@ -118,7 +123,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true }, }), }; diff --git a/src/testRunner/unittests/tsserver/formatSettings.ts b/src/testRunner/unittests/tsserver/formatSettings.ts index a0d55ac41a5..0cd2c185367 100644 --- a/src/testRunner/unittests/tsserver/formatSettings.ts +++ b/src/testRunner/unittests/tsserver/formatSettings.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -29,7 +34,7 @@ describe("unittests:: tsserver:: formatSettings", () => { }); // get format options for file - should be equal to new global settings - session.logger.log(`FormatCodeOptions should be global:: ${f1.path}:: ${JSON.stringify(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)), undefined, " ")}`); + session.logger.log(`FormatCodeOptions should be global:: ${f1.path}:: ${jsonToReadableText(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)))}`); // set per file format options const newPerFileSettings = { ...defaultSettings, insertSpaceAfterCommaDelimiter: !defaultSettings.insertSpaceAfterCommaDelimiter }; @@ -39,7 +44,7 @@ describe("unittests:: tsserver:: formatSettings", () => { }); // get format options for file - should be equal to new per-file settings - session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${JSON.stringify(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)), undefined, " ")}`); + session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${jsonToReadableText(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)))}`); // set new global settings - they should not affect ones that were set per-file const newGlobalSettings2 = { ...defaultSettings, insertSpaceAfterSemicolonInForStatements: !defaultSettings.insertSpaceAfterSemicolonInForStatements }; @@ -49,7 +54,7 @@ describe("unittests:: tsserver:: formatSettings", () => { }); // get format options for file - should be equal to new per-file settings - session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${JSON.stringify(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)), undefined, " ")}`); + session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${jsonToReadableText(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)))}`); baselineTsserverLogs("formatSettings", "works when extends is specified with a case insensitive file system", session); }); }); diff --git a/src/testRunner/unittests/tsserver/getApplicableRefactors.ts b/src/testRunner/unittests/tsserver/getApplicableRefactors.ts index 03ed1542cfb..1c9cc8ee249 100644 --- a/src/testRunner/unittests/tsserver/getApplicableRefactors.ts +++ b/src/testRunner/unittests/tsserver/getApplicableRefactors.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/getEditsForFileRename.ts b/src/testRunner/unittests/tsserver/getEditsForFileRename.ts index d7ebe957084..2c8cc169642 100644 --- a/src/testRunner/unittests/tsserver/getEditsForFileRename.ts +++ b/src/testRunner/unittests/tsserver/getEditsForFileRename.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, textSpanFromSubstring, @@ -66,7 +71,7 @@ describe("unittests:: tsserver:: getEditsForFileRename", () => { }; const aTsconfig: File = { path: "/a/tsconfig.json", - content: JSON.stringify({ files: ["./old.ts", "./user.ts"] }), + content: jsonToReadableText({ files: ["./old.ts", "./user.ts"] }), }; const bUserTs: File = { path: "/b/user.ts", @@ -94,7 +99,7 @@ describe("unittests:: tsserver:: getEditsForFileRename", () => { it("works with file moved to inferred project", () => { const aTs: File = { path: "/a.ts", content: 'import {} from "./b";' }; const cTs: File = { path: "/c.ts", content: "export {};" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./a.ts", "./b.ts"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./a.ts", "./b.ts"] }) }; const host = createServerHost([aTs, cTs, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); diff --git a/src/testRunner/unittests/tsserver/getExportReferences.ts b/src/testRunner/unittests/tsserver/getExportReferences.ts index 1219a07c2f3..31dd0e0c1f9 100644 --- a/src/testRunner/unittests/tsserver/getExportReferences.ts +++ b/src/testRunner/unittests/tsserver/getExportReferences.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolFileLocationFromSubstring, diff --git a/src/testRunner/unittests/tsserver/getFileReferences.ts b/src/testRunner/unittests/tsserver/getFileReferences.ts index 057ab0dcb22..28d0d5feb88 100644 --- a/src/testRunner/unittests/tsserver/getFileReferences.ts +++ b/src/testRunner/unittests/tsserver/getFileReferences.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts b/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts index 67aa8b3f9d3..402ebf9929c 100644 --- a/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts +++ b/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -61,7 +66,7 @@ import { value1 } from "../node_modules/.cache/someFile.d.ts";`, const file5: File = { path: "/file5.js", content: "" }; const file6: File = { path: "/file6.d.ts", content: "" }; const file7: File = { path: "/file7.ts", content: "" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./file1.ts", "./file2.tsx", "./file3.mts", "./file4.cts", "./file5.js", "./file6.d.ts", "./file7.ts"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./file1.ts", "./file2.tsx", "./file3.mts", "./file4.cts", "./file5.js", "./file6.d.ts", "./file7.ts"] }) }; const host = createServerHost([file1, file2, file3, file4, file5, file6, file7, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -82,7 +87,7 @@ import { value1 } from "../node_modules/.cache/someFile.d.ts";`, const file3: File = { path: "/file3.mts", content: "" }; const file4: File = { path: "/file4.ts", content: "" }; const file5: File = { path: "/file5.js", content: "" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./file1.js", "./file2.js", "./file3.mts", "./file4.ts", "./file5.js"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./file1.js", "./file2.js", "./file3.mts", "./file4.ts", "./file5.js"] }) }; const host = createServerHost([file1, file2, file3, file4, file5, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -102,7 +107,7 @@ import { value1 } from "../node_modules/.cache/someFile.d.ts";`, const file2: File = { path: "/a/lib.d.ts", content: "" }; const file3: File = { path: "/a/file3.d.ts", content: "" }; const file4: File = { path: "/a/lib.es6.d.ts", content: "" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./file1.d.ts", "./a/lib.d.ts", "./a/file3.d.ts", "/a/lib.es6.d.ts"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./file1.d.ts", "./a/lib.d.ts", "./a/file3.d.ts", "/a/lib.es6.d.ts"] }) }; const host = createServerHost([file1, file2, file3, file4, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); diff --git a/src/testRunner/unittests/tsserver/goToDefinition.ts b/src/testRunner/unittests/tsserver/goToDefinition.ts index f078d677694..8b2cce8d610 100644 --- a/src/testRunner/unittests/tsserver/goToDefinition.ts +++ b/src/testRunner/unittests/tsserver/goToDefinition.ts @@ -1,9 +1,11 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import { protocol, } from "../../_namespaces/ts.server"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, } from "../helpers/tsserver"; import { diff --git a/src/testRunner/unittests/tsserver/importHelpers.ts b/src/testRunner/unittests/tsserver/importHelpers.ts index ad355231c25..9b02e52a5a6 100644 --- a/src/testRunner/unittests/tsserver/importHelpers.ts +++ b/src/testRunner/unittests/tsserver/importHelpers.ts @@ -1,6 +1,8 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openExternalProjectForSession, toExternalFile, diff --git a/src/testRunner/unittests/tsserver/inconsistentErrorInEditor.ts b/src/testRunner/unittests/tsserver/inconsistentErrorInEditor.ts index 3a80c143773..da83c51c21f 100644 --- a/src/testRunner/unittests/tsserver/inconsistentErrorInEditor.ts +++ b/src/testRunner/unittests/tsserver/inconsistentErrorInEditor.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, verifyGetErrRequest, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/inferredProjects.ts b/src/testRunner/unittests/tsserver/inferredProjects.ts index a67e3a2ba11..5b3c16aa001 100644 --- a/src/testRunner/unittests/tsserver/inferredProjects.ts +++ b/src/testRunner/unittests/tsserver/inferredProjects.ts @@ -1,14 +1,19 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, } from "../helpers/tscWatch"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createProjectService, createSession, logInferredProjectsOrphanStatus, @@ -278,7 +283,7 @@ describe("unittests:: tsserver:: inferredProjects", () => { const inferredProject = projectService.inferredProjects[0]; projectService.logger.log(`typeAcquisition : setting to undefined`); inferredProject.setTypeAcquisition(undefined); - projectService.logger.log(`typeAcquisition should be inferred for inferred projects: ${JSON.stringify(inferredProject.getTypeAcquisition(), undefined, " ")}`); + projectService.logger.log(`typeAcquisition should be inferred for inferred projects: ${jsonToReadableText(inferredProject.getTypeAcquisition())}`); baselineTsserverLogs("inferredProjects", "regression test - should infer typeAcquisition for inferred projects when set undefined", projectService); }); @@ -308,7 +313,7 @@ describe("unittests:: tsserver:: inferredProjects", () => { "/user/username/projects/myproject/module2.d.ts": dedent` export const y = 10; `, - "/user/username/projects/myproject/node_modules/module3/package.json": JSON.stringify({ + "/user/username/projects/myproject/node_modules/module3/package.json": jsonToReadableText({ name: "module3", version: "1.0.0", }), diff --git a/src/testRunner/unittests/tsserver/inlayHints.ts b/src/testRunner/unittests/tsserver/inlayHints.ts index b2c7e0a3d1a..b92df9d2ae1 100644 --- a/src/testRunner/unittests/tsserver/inlayHints.ts +++ b/src/testRunner/unittests/tsserver/inlayHints.ts @@ -1,3 +1,6 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { commonFile1, @@ -5,7 +8,6 @@ import { } from "../helpers/tscWatch"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, TestSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/jsdocTag.ts b/src/testRunner/unittests/tsserver/jsdocTag.ts index b3023da35d8..ffd7e83e12d 100644 --- a/src/testRunner/unittests/tsserver/jsdocTag.ts +++ b/src/testRunner/unittests/tsserver/jsdocTag.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/languageService.ts b/src/testRunner/unittests/tsserver/languageService.ts index b7f3646716c..06278415d20 100644 --- a/src/testRunner/unittests/tsserver/languageService.ts +++ b/src/testRunner/unittests/tsserver/languageService.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as Utils from "../../_namespaces/Utils"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, logDiagnostics, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/libraryResolution.ts b/src/testRunner/unittests/tsserver/libraryResolution.ts index 99a1d099420..a33433a1bee 100644 --- a/src/testRunner/unittests/tsserver/libraryResolution.ts +++ b/src/testRunner/unittests/tsserver/libraryResolution.ts @@ -1,16 +1,21 @@ import { - getServerHosForLibResolution, + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; +import { + jsonToReadableText, +} from "../helpers"; +import { + getServerHostForLibResolution, } from "../helpers/libraryResolution"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; describe("unittests:: tsserver:: libraryResolution", () => { it("with config", () => { - const host = getServerHosForLibResolution(); + const host = getServerHostForLibResolution(); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); openFilesForSession(["/home/src/projects/project1/index.ts"], session); host.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" }); @@ -24,7 +29,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1", "./typeroot2"], @@ -36,7 +41,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], @@ -55,7 +60,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { baselineTsserverLogs("libraryResolution", "with config", session); }); it("with config with redirection", () => { - const host = getServerHosForLibResolution(/*libRedirection*/ true); + const host = getServerHostForLibResolution(/*libRedirection*/ true); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); openFilesForSession(["/home/src/projects/project1/index.ts"], session); host.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts"); @@ -69,7 +74,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1", "./typeroot2"], @@ -81,7 +86,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], diff --git a/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts b/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts index b1de9a8fa7e..fb71c8009f9 100644 --- a/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts +++ b/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts @@ -1,3 +1,6 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { dedent, @@ -5,7 +8,6 @@ import { import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, setCompilerOptionsForInferredProjectsRequestForSession, diff --git a/src/testRunner/unittests/tsserver/metadataInResponse.ts b/src/testRunner/unittests/tsserver/metadataInResponse.ts index 9bc2dc2c0af..83df002ab4a 100644 --- a/src/testRunner/unittests/tsserver/metadataInResponse.ts +++ b/src/testRunner/unittests/tsserver/metadataInResponse.ts @@ -1,8 +1,13 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -16,7 +21,7 @@ describe("unittests:: tsserver:: with metadataInResponse::", () => { const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; } }` }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [{ name: "myplugin" }] }, }), }; diff --git a/src/testRunner/unittests/tsserver/moduleResolution.ts b/src/testRunner/unittests/tsserver/moduleResolution.ts index c3ca2a25aa3..92430c08057 100644 --- a/src/testRunner/unittests/tsserver/moduleResolution.ts +++ b/src/testRunner/unittests/tsserver/moduleResolution.ts @@ -1,7 +1,13 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -16,7 +22,6 @@ import { } from "../helpers/solutionBuilder"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolTextSpanFromSubstring, @@ -33,7 +38,7 @@ describe("unittests:: tsserver:: moduleResolution", () => { function setup(packageFileContents: string) { const configFile: File = { path: `/user/username/projects/myproject/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es2016", module: "Node16", @@ -71,12 +76,12 @@ describe("unittests:: tsserver:: moduleResolution", () => { }; } it("package json file is edited", () => { - const { host, session, packageFile, verifyErr } = setup(JSON.stringify({ name: "app", version: "1.0.0" })); + const { host, session, packageFile, verifyErr } = setup(jsonToReadableText({ name: "app", version: "1.0.0" })); session.logger.info("Modify package json file to add type module"); host.writeFile( packageFile.path, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -101,7 +106,7 @@ describe("unittests:: tsserver:: moduleResolution", () => { session.logger.info("Modify package json file to add type module"); host.writeFile( packageFile.path, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -121,14 +126,14 @@ describe("unittests:: tsserver:: moduleResolution", () => { }); it("package json file is edited when package json with type module exists", () => { - const { host, session, packageFile, verifyErr } = setup(JSON.stringify({ + const { host, session, packageFile, verifyErr } = setup(jsonToReadableText({ name: "app", version: "1.0.0", type: "module", })); session.logger.info("Modify package json file to remove type module"); - host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" })); + host.writeFile(packageFile.path, jsonToReadableText({ name: "app", version: "1.0.0" })); host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update verifyErr(); @@ -146,7 +151,7 @@ describe("unittests:: tsserver:: moduleResolution", () => { verifyErr(); session.logger.info("Modify package json file to without type module"); - host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" })); + host.writeFile(packageFile.path, jsonToReadableText({ name: "app", version: "1.0.0" })); host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update verifyErr(); @@ -278,25 +283,21 @@ describe("unittests:: tsserver:: moduleResolution", () => { baselineTsserverLogs("moduleResolution", `using referenced project${built ? " built" : ""}`, session); } function getPackageJson(packageName: string) { - return JSON.stringify( - { - name: packageName, - version: "1.0.0", - type: "module", - main: "build/index.js", - exports: { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": ["./build/*/index.js", "./build/*.js"], - }, + return jsonToReadableText({ + name: packageName, + version: "1.0.0", + type: "module", + main: "build/index.js", + exports: { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": ["./build/*/index.js", "./build/*.js"], }, - undefined, - " ", - ); + }); } function getTsConfig(references?: object[]) { - return JSON.stringify({ + return jsonToReadableText({ compilerOptions: { allowSyntheticDefaultImports: true, baseUrl: "./", diff --git a/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts b/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts index acc39d3981d..3022b193bb0 100644 --- a/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts +++ b/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -41,7 +46,7 @@ const ambientDeclaration: File = { }; const mobxPackageJson: File = { path: "/node_modules/mobx/package.json", - content: `{ "name": "mobx", "version": "1.0.0" }`, + content: jsonToReadableText({ name: "mobx", version: "1.0.0" }), }; const mobxDts: File = { path: "/node_modules/mobx/index.d.ts", @@ -59,7 +64,7 @@ describe("unittests:: tsserver:: moduleSpecifierCache", () => { const { session, moduleSpecifierCache, triggerCompletions } = setup(); // Completion at an import statement will calculate and cache module specifiers triggerCompletions({ file: cTs.path, line: 1, offset: cTs.content.length + 1 }); - session.logger.info(`mobxCache: ${JSON.stringify(moduleSpecifierCache.get(cTs.path as ts.Path, mobxDts.path as ts.Path, {}, {}), undefined, " ")}`); + session.logger.info(`mobxCache: ${jsonToReadableText(moduleSpecifierCache.get(cTs.path as ts.Path, mobxDts.path as ts.Path, {}, {}))}`); baselineTsserverLogs("moduleSpecifierCache", "caches module specifiers within a file", session); }); @@ -132,7 +137,7 @@ describe("unittests:: tsserver:: moduleSpecifierCache", () => { baselineTsserverLogs("moduleSpecifierCache", "invalidates the cache when user preferences change", session); function getWithPreferences(preferences: ts.UserPreferences) { - session.logger.info(`moduleSpecifierCache for ${JSON.stringify(preferences)} (${bTs.path} -> ${aTs.path}) ${JSON.stringify(moduleSpecifierCache.get(bTs.path as ts.Path, aTs.path as ts.Path, preferences, {}), undefined, " ")}`); + session.logger.info(`moduleSpecifierCache for ${jsonToReadableText(preferences)} (${bTs.path} -> ${aTs.path}) ${jsonToReadableText(moduleSpecifierCache.get(bTs.path as ts.Path, aTs.path as ts.Path, preferences, {}))}`); } }); }); diff --git a/src/testRunner/unittests/tsserver/navTo.ts b/src/testRunner/unittests/tsserver/navTo.ts index 883d5bdbda5..4e6563cc4a0 100644 --- a/src/testRunner/unittests/tsserver/navTo.ts +++ b/src/testRunner/unittests/tsserver/navTo.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -82,7 +87,7 @@ export const ghijkl = a.abcdef;`, it("should de-duplicate symbols when searching all projects", () => { const solutionConfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ references: [{ path: "./a" }, { path: "./b" }], files: [], }), diff --git a/src/testRunner/unittests/tsserver/occurences.ts b/src/testRunner/unittests/tsserver/occurences.ts index c89b4754db8..246b5daedf3 100644 --- a/src/testRunner/unittests/tsserver/occurences.ts +++ b/src/testRunner/unittests/tsserver/occurences.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/openFile.ts b/src/testRunner/unittests/tsserver/openFile.ts index 110357c2b03..abdcb943e8f 100644 --- a/src/testRunner/unittests/tsserver/openFile.ts +++ b/src/testRunner/unittests/tsserver/openFile.ts @@ -1,8 +1,10 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createProjectService, createSession, openFilesForSession, diff --git a/src/testRunner/unittests/tsserver/packageJsonInfo.ts b/src/testRunner/unittests/tsserver/packageJsonInfo.ts index 573e014a6f7..a46e10ef9c5 100644 --- a/src/testRunner/unittests/tsserver/packageJsonInfo.ts +++ b/src/testRunner/unittests/tsserver/packageJsonInfo.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -30,7 +35,7 @@ const packageJsonContent = { }; const packageJson: File = { path: "/package.json", - content: JSON.stringify(packageJsonContent, undefined, 2), + content: jsonToReadableText(packageJsonContent), }; describe("unittests:: tsserver:: packageJsonInfo::", () => { @@ -52,7 +57,7 @@ describe("unittests:: tsserver:: packageJsonInfo::", () => { // Edit package.json host.writeFile( packageJson.path, - JSON.stringify({ + jsonToReadableText({ ...packageJsonContent, dependencies: undefined, }), diff --git a/src/testRunner/unittests/tsserver/partialSemanticServer.ts b/src/testRunner/unittests/tsserver/partialSemanticServer.ts index cbe2c337ab3..d87f3d790ff 100644 --- a/src/testRunner/unittests/tsserver/partialSemanticServer.ts +++ b/src/testRunner/unittests/tsserver/partialSemanticServer.ts @@ -1,8 +1,10 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolFileLocationFromSubstring, diff --git a/src/testRunner/unittests/tsserver/plugins.ts b/src/testRunner/unittests/tsserver/plugins.ts index bcc1add3b97..fce061c612d 100644 --- a/src/testRunner/unittests/tsserver/plugins.ts +++ b/src/testRunner/unittests/tsserver/plugins.ts @@ -1,8 +1,13 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, TestSessionOptions, @@ -26,7 +31,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { module: () => ({ create(info: ts.server.PluginCreateInfo) { info.session?.addProtocolHandler(testProtocolCommand, request => { - session.logger.log(`addProtocolHandler: ${JSON.stringify(request, undefined, " ")}`); + session.logger.log(`addProtocolHandler: ${jsonToReadableText(request)}`); return { response: testProtocolCommandResponse, }; @@ -47,7 +52,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; } }` }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [ ...[...expectedToLoad, ...notToLoad].map(name => ({ name })), @@ -79,7 +84,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; } }` }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [ { name: pluginName }, @@ -104,7 +109,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { const aTs: File = { path: `/user/username/projects/myproject/a.ts`, content: `export const x = 10;` }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [{ name: "some-plugin" }], }, @@ -132,18 +137,18 @@ describe("unittests:: tsserver:: plugins:: loading", () => { }; const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); openFilesForSession([aTs], session); - session.logger.log(`ExternalFiles:: ${JSON.stringify(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); + session.logger.log(`ExternalFiles:: ${jsonToReadableText(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); host.writeFile( tsconfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { plugins: [{ name: "some-other-plugin" }], }, }), ); host.runQueuedTimeoutCallbacks(); - session.logger.log(`ExternalFiles:: ${JSON.stringify(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); + session.logger.log(`ExternalFiles:: ${jsonToReadableText(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); baselineTsserverLogs("plugins", "gets external files with config file reload", session); }); @@ -165,7 +170,7 @@ describe("unittests:: tsserver:: plugins:: overriding getSupportedCodeFixes", () }; const config: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [{ name: "myplugin" }] }, }), }; @@ -225,22 +230,23 @@ describe("unittests:: tsserver:: plugins:: supportedExtensions::", () => { path: "/user/username/projects/myproject/a.ts", content: `export const a = 10;`, }; + const dTs: File = { + path: "/user/username/projects/myproject/d.ts", + content: `export const d = 10;`, + }; const bVue: File = { path: "/user/username/projects/myproject/b.vue", content: "bVue file", }; const config: File = { path: "/user/username/projects/myproject/tsconfig.json", - content: JSON.stringify( - { - compilerOptions: { composite: true }, - include: ["*.ts", "*.vue"], - }, - undefined, - " ", - ), + content: jsonToReadableText({ + compilerOptions: { composite: true }, + include: ["*.ts", "*.vue"], + }), }; - const host = createServerHost([aTs, bVue, config, libFile]); + const host = createServerHost([aTs, dTs, bVue, config, libFile]); + const externalFiles = new Map(); host.require = () => { return { module: () => ({ @@ -258,8 +264,16 @@ describe("unittests:: tsserver:: plugins:: supportedExtensions::", () => { originalGetScriptSnapshot(fileName); return proxy; }, - getExternalFiles: (project: ts.server.Project) => { + getExternalFiles: (project: ts.server.Project, updateLevel: ts.ProgramUpdateLevel) => { if (project.projectKind !== ts.server.ProjectKind.Configured) return []; + if (updateLevel === ts.ProgramUpdateLevel.Update) { + const existing = externalFiles.get(project); + if (existing) { + session.logger.log(`getExternalFiles:: Returning cached .vue files`); + return existing; + } + } + session.logger.log(`getExternalFiles:: Getting new list of .vue files`); const configFile = project.getProjectName(); const config = ts.readJsonConfigFile(configFile, project.readFile.bind(project)); const parseHost: ts.ParseConfigHost = { @@ -272,6 +286,7 @@ describe("unittests:: tsserver:: plugins:: supportedExtensions::", () => { }, }; const parsed = ts.parseJsonSourceFileConfigFileContent(config, parseHost, project.getCurrentDirectory()); + externalFiles.set(project, parsed.fileNames); return parsed.fileNames; }, }), @@ -284,6 +299,9 @@ describe("unittests:: tsserver:: plugins:: supportedExtensions::", () => { host.writeFile("/user/username/projects/myproject/c.vue", "cVue file"); host.runQueuedTimeoutCallbacks(); + host.appendFile(dTs.path, "export const x = 10;"); + host.runQueuedTimeoutCallbacks(); + baselineTsserverLogs("plugins", "new files with non ts extensions with wildcard matching", session); }); }); diff --git a/src/testRunner/unittests/tsserver/pluginsAsync.ts b/src/testRunner/unittests/tsserver/pluginsAsync.ts index a14caeb8457..2772e5d0f68 100644 --- a/src/testRunner/unittests/tsserver/pluginsAsync.ts +++ b/src/testRunner/unittests/tsserver/pluginsAsync.ts @@ -1,3 +1,6 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { defer, @@ -5,7 +8,6 @@ import { import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/projectErrors.ts b/src/testRunner/unittests/tsserver/projectErrors.ts index a80ebc5dbf6..0fea7f1d5a6 100644 --- a/src/testRunner/unittests/tsserver/projectErrors.ts +++ b/src/testRunner/unittests/tsserver/projectErrors.ts @@ -1,9 +1,14 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { appendAllScriptInfos, baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createProjectService, createSession, openExternalProjectForSession, @@ -74,7 +79,7 @@ describe("unittests:: tsserver:: projectErrors::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), + content: jsonToReadableText({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), }; const host = createServerHost([file1, config, libFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -102,7 +107,7 @@ describe("unittests:: tsserver:: projectErrors::", () => { }; const correctConfig = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), + content: jsonToReadableText({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), }; const corruptedConfig = { path: correctConfig.path, @@ -154,7 +159,7 @@ describe("unittests:: tsserver:: projectErrors::", () => { }; const correctConfig = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), + content: jsonToReadableText({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), }; const corruptedConfig = { path: correctConfig.path, @@ -268,7 +273,7 @@ describe("unittests:: tsserver:: projectErrors:: are reported as appropriate", ( }; const configFile: File = { path: `${projectDir}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { module: "none", targer: "es5" }, exclude: ["node_modules"] }), + content: jsonToReadableText({ compilerOptions: { module: "none", targer: "es5" }, exclude: ["node_modules"] }), }; const host = createServerHost([app, foo, configFile]); const session = createSession(host, { canUseEvents: true, logger: createLoggerWithInMemoryLogs(host) }); @@ -341,7 +346,7 @@ function foo() { }; const config: File = { path: `${projectRootPath}/tsconfig.json`, - content: JSON.stringify({ include: ["src"] }), + content: jsonToReadableText({ include: ["src"] }), }; const plugin: File = { path: `${projectRootPath}/node_modules/@custom/plugin/index.d.ts`, @@ -706,7 +711,7 @@ console.log(blabla);`, }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { resolveJsonModule: true, composite: true, diff --git a/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts index 121a59a9252..4ac135e3568 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts @@ -1,10 +1,15 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { ensureErrorFreeBuild, } from "../helpers/solutionBuilder"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolToLocation, @@ -26,7 +31,7 @@ export function fn2() { } }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationDir: "../decls" }, compileOnSave: true, }), @@ -43,7 +48,7 @@ fn2(); }; const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, references: [{ path: "../dependency" }], }), @@ -1679,7 +1684,7 @@ describe("unittests:: tsserver:: with project references and compile on save wit it("compile on save emits same output as project build", () => { const tsbaseJson: File = { path: `/user/username/projects/myproject/tsbase.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, compilerOptions: { module: "none", @@ -1690,7 +1695,7 @@ describe("unittests:: tsserver:: with project references and compile on save wit const buttonClass = `/user/username/projects/myproject/buttonClass`; const buttonConfig: File = { path: `${buttonClass}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../tsbase.json", compilerOptions: { outFile: "Source.js", @@ -1711,7 +1716,7 @@ describe("unittests:: tsserver:: with project references and compile on save wit const siblingClass = `/user/username/projects/myproject/SiblingClass`; const siblingConfig: File = { path: `${siblingClass}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../tsbase.json", references: [{ path: "../buttonClass/", diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index 088eaeae560..584ea277b53 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { GetErrForProjectDiagnostics, verifyGetErrScenario, @@ -80,7 +83,7 @@ export let x: string = 10;`, }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, declarationDir: "../decls" } }), + content: jsonToReadableText({ compilerOptions: { composite: true, declarationDir: "../decls" } }), }; const usageTs: File = { path: `${usageLocation}/usage.ts`, @@ -96,7 +99,7 @@ fnErr(); }; const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../dependency" }], }), @@ -116,7 +119,7 @@ let x: string = 10;`, }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, outFile: "../dependency.js" } }), + content: jsonToReadableText({ compilerOptions: { composite: true, outFile: "../dependency.js" } }), }; const usageTs: File = { path: `${usageLocation}/usage.ts`, @@ -127,7 +130,7 @@ fnErr(); }; const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outFile: "../usage.js" }, references: [{ path: "../dependency" }], }), diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 00b764b72f1..6f904e04247 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -1,11 +1,19 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { solutionBuildWithBaseline, } from "../helpers/solutionBuilder"; import { baselineTsserverLogs, createHostWithSolutionBuild, - createLoggerWithInMemoryLogs, createProjectService, createSession, openFilesForSession, @@ -16,36 +24,110 @@ import { import { createServerHost, File, - getTsBuildProjectFile, - getTsBuildProjectFilePath, libFile, SymLink, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsserver:: with project references and tsbuild", () => { describe("with container project", () => { - function getProjectFiles(project: string): [File, File] { - return [ - getTsBuildProjectFile(project, "tsconfig.json"), - getTsBuildProjectFile(project, "index.ts"), - ]; + function setup(tempFile?: File) { + const containerLibConfig: File = { + path: "/user/username/projects/container/lib/tsconfig.json", + content: jsonToReadableText({ + compilerOptions: { + outFile: "../built/local/lib.js", + composite: true, + declarationMap: true, + }, + references: [], + files: [ + "index.ts", + ], + }), + }; + const containerLibIndex: File = { + path: "/user/username/projects/container/lib/index.ts", + content: dedent` + namespace container { + export const myConst = 30; + } + `, + }; + const containerExecConfig: File = { + path: "/user/username/projects/container/exec/tsconfig.json", + content: jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + outFile: "../built/local/exec.js", + }, + files: [ + "index.ts", + ], + references: [ + { path: "../lib", prepend: true }, + ], + }), + }; + const containerExecIndex: File = { + path: "/user/username/projects/container/exec/index.ts", + content: dedent` + namespace container { + export function getMyConst() { + return myConst; + } + } + `, + }; + const containerCompositeExecConfig: File = { + path: "/user/username/projects/container/compositeExec/tsconfig.json", + content: jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + outFile: "../built/local/compositeExec.js", + composite: true, + declarationMap: true, + }, + files: [ + "index.ts", + ], + references: [ + { path: "../lib", prepend: true }, + ], + }), + }; + const containerCompositeExecIndex: File = { + path: "/user/username/projects/container/compositeExec/index.ts", + content: dedent` + namespace container { + export function getMyConst() { + return myConst; + } + } + `, + }; + const containerConfig: File = { + path: "/user/username/projects/container/tsconfig.json", + content: jsonToReadableText({ + files: [], + include: [], + references: [ + { path: "./exec" }, + { path: "./compositeExec" }, + ], + }), + }; + const files = [libFile, containerLibConfig, containerLibIndex, containerExecConfig, containerExecIndex, containerCompositeExecConfig, containerCompositeExecIndex, containerConfig]; + if (tempFile) files.push(tempFile); + const host = createHostWithSolutionBuild(files, [containerConfig.path]); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + return { files, session, containerConfig, containerCompositeExecIndex }; } - const project = "container"; - const containerLib = getProjectFiles("container/lib"); - const containerExec = getProjectFiles("container/exec"); - const containerCompositeExec = getProjectFiles("container/compositeExec"); - const containerConfig = getTsBuildProjectFile(project, "tsconfig.json"); - const files = [libFile, ...containerLib, ...containerExec, ...containerCompositeExec, containerConfig]; - it("does not error on container only project", () => { - const host = createHostWithSolutionBuild(files, [containerConfig.path]); - - // Open external project for the folder - const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + const { files, session, containerConfig } = setup(); const service = session.getProjectService(); service.openExternalProjects([{ - projectFileName: getTsBuildProjectFilePath(project, project), + projectFileName: "/user/username/projects/container/container", rootFiles: files.map(f => ({ fileName: f.path })), options: {}, }]); @@ -72,13 +154,12 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { }); it("can successfully find references with --out options", () => { - const host = createHostWithSolutionBuild(files, [containerConfig.path]); - const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); - openFilesForSession([containerCompositeExec[1]], session); - const myConstStart = protocolLocationFromSubstring(containerCompositeExec[1].content, "myConst"); + const { session, containerCompositeExecIndex } = setup(); + openFilesForSession([containerCompositeExecIndex], session); + const myConstStart = protocolLocationFromSubstring(containerCompositeExecIndex.content, "myConst"); session.executeCommandSeq({ command: ts.server.protocol.CommandTypes.Rename, - arguments: { file: containerCompositeExec[1].path, ...myConstStart }, + arguments: { file: containerCompositeExecIndex.path, ...myConstStart }, }); baselineTsserverLogs("projectReferences", `can successfully find references with out option`, session); @@ -89,20 +170,19 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { path: `/user/username/projects/temp/temp.ts`, content: "let x = 10", }; - const host = createHostWithSolutionBuild(files.concat([tempFile]), [containerConfig.path]); - const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); - openFilesForSession([containerCompositeExec[1]], session); + const { session, containerCompositeExecIndex } = setup(tempFile); + openFilesForSession([containerCompositeExecIndex], session); const service = session.getProjectService(); // Open temp file and verify all projects alive openFilesForSession([tempFile], session); // Ref projects are loaded after as part of this command - const locationOfMyConst = protocolLocationFromSubstring(containerCompositeExec[1].content, "myConst"); + const locationOfMyConst = protocolLocationFromSubstring(containerCompositeExecIndex.content, "myConst"); session.executeCommandSeq({ command: ts.server.protocol.CommandTypes.Rename, arguments: { - file: containerCompositeExec[1].path, + file: containerCompositeExecIndex.path, ...locationOfMyConst, }, }); @@ -112,7 +192,7 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { openFilesForSession([tempFile], session); // Close all files and open temp file, only inferred project should be alive - service.closeClientFile(containerCompositeExec[1].path); + service.closeClientFile(containerCompositeExecIndex.path); service.closeClientFile(tempFile.path); openFilesForSession([tempFile], session); baselineTsserverLogs("projectReferences", `ancestor and project ref management`, session); @@ -124,7 +204,7 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { const projectLocation = `/user/username/projects/project`; const commonConfig: File = { path: `${projectLocation}/src/common/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, @@ -150,7 +230,7 @@ function testEvaluateKeyboardEvent() { }; const srcConfig: File = { path: `${projectLocation}/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, @@ -202,7 +282,7 @@ function foo() { it("reusing d.ts files from composite and non composite projects", () => { const configA: File = { path: `/user/username/projects/myproject/compositea/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../dist/", @@ -234,7 +314,7 @@ function foo() { }; const configC: File = { path: `/user/username/projects/myproject/compositec/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../dist/", @@ -332,7 +412,7 @@ function foo() { function config(packageName: string, extraOptions: ts.CompilerOptions, references?: string[]): File { return { path: `/user/username/projects/myproject/packages/${packageName}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "lib", rootDir: "src", @@ -356,7 +436,7 @@ function foo() { verifySymlinkScenario(`when packageJson has types field and has index.ts${scope ? " with scoped package" : ""}`, () => ({ bPackageJson: { path: `/user/username/projects/myproject/packages/B/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ main: "lib/index.js", types: "lib/index.d.ts", }), @@ -412,7 +492,7 @@ bar(); it("when the referenced projects have allowJs and emitDeclarationOnly", () => { const compositeConfig: File = { path: `/user/username/projects/myproject/packages/emit-composite/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, allowJs: true, @@ -425,7 +505,7 @@ bar(); }; const compositePackageJson: File = { path: `/user/username/projects/myproject/packages/emit-composite/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "emit-composite", version: "1.0.0", main: "src/index.js", @@ -452,7 +532,7 @@ module.exports = { }; const consumerConfig: File = { path: `/user/username/projects/myproject/packages/consumer/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["src"], references: [{ path: "../emit-composite" }], }), @@ -478,7 +558,7 @@ testCompositeFunction('why hello there', 42);`, const solutionLocation = "/user/username/projects/solution"; const solution: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], include: [], references: [ @@ -489,7 +569,7 @@ testCompositeFunction('why hello there', 42);`, }; const compilerConfig: File = { path: `${solutionLocation}/compiler/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, module: "none", @@ -518,7 +598,7 @@ testCompositeFunction('why hello there', 42);`, }; const servicesConfig: File = { path: `${solutionLocation}/services/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -561,7 +641,7 @@ testCompositeFunction('why hello there', 42);`, const solutionLocation = "/user/username/projects/solution"; const solutionConfig: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], include: [], references: [ @@ -574,7 +654,7 @@ testCompositeFunction('why hello there', 42);`, }; const aConfig: File = { path: `${solutionLocation}/a/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, module: "none", @@ -592,7 +672,7 @@ testCompositeFunction('why hello there', 42);`, const bConfig: File = { path: `${solutionLocation}/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -614,7 +694,7 @@ testCompositeFunction('why hello there', 42);`, const cConfig: File = { path: `${solutionLocation}/c/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -636,7 +716,7 @@ testCompositeFunction('why hello there', 42);`, const dConfig: File = { path: `${solutionLocation}/d/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -683,7 +763,7 @@ testCompositeFunction('why hello there', 42);`, const solutionLocation = "/user/username/projects/solution"; const solution: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], references: [ { path: "./api" }, @@ -693,7 +773,7 @@ testCompositeFunction('why hello there', 42);`, }; const apiConfig: File = { path: `${solutionLocation}/api/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "dist", @@ -718,7 +798,7 @@ ${usage}`, }; const sharedConfig: File = { path: `${solutionLocation}/shared/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "dist", @@ -788,7 +868,7 @@ export const foo = local;`, const solutionLocation = "/user/username/projects/solution"; const solution: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], include: [], references: [ @@ -799,7 +879,7 @@ export const foo = local;`, }; const compilerConfig: File = { path: `${solutionLocation}/compiler/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, module: "none", @@ -829,7 +909,7 @@ export const foo = local;`, }; const servicesConfig: File = { path: `${solutionLocation}/services/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -886,7 +966,14 @@ export { foo }; }; const mainDtsMap: File = { path: `/user/username/projects/myproject/target/src/main.d.ts.map`, - content: `{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"}`, + content: jsonToReadableText({ + version: 3, + file: "main.d.ts", + sourceRoot: "", + sources: ["../../src/main.ts"], + names: [], + mappings: "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC", + }), }; const helperDts: File = { path: `/user/username/projects/myproject/target/src/helpers/functions.d.ts`, @@ -895,11 +982,18 @@ export { foo }; }; const helperDtsMap: File = { path: `/user/username/projects/myproject/target/src/helpers/functions.d.ts.map`, - content: `{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"}`, + content: jsonToReadableText({ + version: 3, + file: "functions.d.ts", + sourceRoot: "", + sources: ["../../../src/helpers/functions.ts"], + names: [], + mappings: "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC", + }), }; const tsconfigIndirect3: File = { path: `/user/username/projects/myproject/indirect3/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "../target/src/", }, @@ -917,7 +1011,7 @@ export function bar() {}`, function setup({ solutionFiles, solutionOptions, configRefs, additionalFiles }: Setup) { const tsconfigSrc: File = { path: tsconfigSrcPath, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "./target/", @@ -928,7 +1022,7 @@ export function bar() {}`, }; const tsconfig: File = { path: tsconfigPath, - content: JSON.stringify({ + content: jsonToReadableText({ ...(solutionOptions ? { compilerOptions: solutionOptions } : {}), references: configRefs.map(path => ({ path })), files: solutionFiles || [], @@ -1008,7 +1102,7 @@ export function bar() {}`, function getIndirectProject(postfix: string, optionsToExtend?: ts.CompilerOptions) { const tsconfigIndirect: File = { path: `/user/username/projects/myproject/tsconfig-indirect${postfix}.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "./target/", @@ -1196,7 +1290,7 @@ bar;`, function setup(extendOptionsProject2?: ts.CompilerOptions) { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -1214,7 +1308,7 @@ bar;`, }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -1324,7 +1418,7 @@ bar;`, function verifyAutoImport(built: boolean, disableSourceOfProjectReferenceRedirect?: boolean) { const solnConfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], references: [ { path: "shared/src/library" }, @@ -1334,7 +1428,7 @@ bar;`, }; const sharedConfig: File = { path: `/user/username/projects/myproject/shared/src/library/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../bld/library", @@ -1347,7 +1441,7 @@ bar;`, }; const sharedPackage: File = { path: `/user/username/projects/myproject/shared/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "shared", version: "1.0.0", main: "bld/library/index.js", @@ -1356,7 +1450,7 @@ bar;`, }; const appConfig: File = { path: `/user/username/projects/myproject/app/src/program/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../bld/program", @@ -1420,7 +1514,7 @@ bar;`, }; const config: File = { path: `/user/username/projects/myproject/${packageName}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, ...optionsToExtend || {} }, references: references?.map(path => ({ path: `../${path}` })), }), @@ -1488,13 +1582,13 @@ const b: B = new B();`, const configB: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: `{ -"compilerOptions": { - "declarationMap": true, - "outDir": "lib", - "composite": true -} -}`, + content: jsonToReadableText({ + compilerOptions: { + declarationMap: true, + outDir: "lib", + composite: true, + }, + }), }; const indexB: File = { @@ -1521,7 +1615,14 @@ const b: B = new B();`, const dtsMapB: File = { path: `/user/username/projects/myproject/b/lib/index.d.ts.map`, - content: `{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"}`, + content: jsonToReadableText({ + version: 3, + file: "index.d.ts", + sourceRoot: "", + sources: ["../index.ts"], + names: [], + mappings: "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ", + }), }; function baselineDisableReferencedProjectLoad( @@ -1544,10 +1645,10 @@ const b: B = new B();`, it(subScenario, () => { const configA: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: `{ - "compilerOptions": ${JSON.stringify(compilerOptions)}, - "references": [{ "path": "../b" }] - }`, + content: jsonToReadableText({ + compilerOptions, + references: [{ path: "../b" }], + }), }; const host = createServerHost([configA, indexA, configB, indexB, helperB, dtsB, ...(dtsMapPresent ? [dtsMapB] : [])]); diff --git a/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts b/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts index 5f5ecb64d68..cd39268fc47 100644 --- a/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts +++ b/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts @@ -1,9 +1,14 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, createHostWithSolutionBuild, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, TestSession, @@ -31,7 +36,7 @@ export function fn5() { } }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, declarationMap: true, declarationDir: "../decls" } }), + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, declarationDir: "../decls" } }), }; const mainTs: File = { @@ -53,7 +58,7 @@ fn5(); }; const mainConfig: File = { path: `${mainLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true }, references: [{ path: "../dependency" }], }), @@ -88,7 +93,14 @@ fn5(); function changeDtsMapFile(host: TestServerHost) { host.writeFile( dtsMapLocation, - `{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"}`, + jsonToReadableText({ + version: 3, + file: "FnS.d.ts", + sourceRoot: "", + sources: ["../dependency/FnS.ts"], + names: [], + mappings: "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC", + }), ); } @@ -156,7 +168,7 @@ fn5(); for (let fn = 1; fn <= 5; fn++) { const fnAction = action(fn); session.executeCommandSeq(fnAction); - const debugInfo = `${JSON.stringify(fnAction)}:: ${fn}`; + const debugInfo = `${jsonToReadableText(fnAction)}:: ${fn}`; const dtsInfo = session.getProjectService().getScriptInfoForPath(dtsPath); const dtsMapInfo = session.getProjectService().getScriptInfoForPath(dtsMapPath); @@ -231,7 +243,7 @@ fn5(); // Erase project reference host.writeFile( mainConfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true }, }), ); @@ -252,7 +264,7 @@ fn5(); // Erase project reference host.writeFile( mainConfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, diff --git a/src/testRunner/unittests/tsserver/projects.ts b/src/testRunner/unittests/tsserver/projects.ts index fa3203176d9..e65c2c6abdf 100644 --- a/src/testRunner/unittests/tsserver/projects.ts +++ b/src/testRunner/unittests/tsserver/projects.ts @@ -1,4 +1,10 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, commonFile2, @@ -6,10 +12,8 @@ import { import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createProjectService, createSession, - customTypesMap, logConfiguredProjectsHasOpenRefStatus, logInferredProjectsOrphanStatus, openExternalProjectForSession, @@ -20,6 +24,9 @@ import { toExternalFiles, verifyGetErrRequest, } from "../helpers/tsserver"; +import { + customTypesMap, +} from "../helpers/typingsInstaller"; import { createServerHost, File, @@ -139,7 +146,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -166,7 +173,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -187,7 +194,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -324,7 +331,7 @@ describe("unittests:: tsserver:: projects::", () => { const projectService = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); try { projectService.openExternalProject({ projectFileName: "project", options: {}, rootFiles: toExternalFiles([file1.path, office.path]) }); - projectService.logger.log(`TypeAcquisition:: ${JSON.stringify(projectService.externalProjects[0].getTypeAcquisition(), undefined, " ")}`); + projectService.logger.log(`TypeAcquisition:: ${jsonToReadableText(projectService.externalProjects[0].getTypeAcquisition())}`); } finally { projectService.resetSafeList(); @@ -353,7 +360,7 @@ describe("unittests:: tsserver:: projects::", () => { installPackage: ts.notImplemented, enqueueInstallTypingsRequest: (proj, typeAcquisition, unresolvedImports) => { assert.isUndefined(request); - request = JSON.stringify(ts.server.createInstallTypingsRequest(proj, typeAcquisition, unresolvedImports || ts.server.emptyArray, cachePath)); + request = jsonToReadableText(ts.server.createInstallTypingsRequest(proj, typeAcquisition, unresolvedImports || ts.server.emptyArray, cachePath)); }, attach: ts.noop, onProjectClosed: ts.noop, @@ -365,7 +372,7 @@ describe("unittests:: tsserver:: projects::", () => { projectService.openExternalProject({ projectFileName: projectName, options: {}, rootFiles: toExternalFiles([file1.path, constructorFile.path, bliss.path]) }); assert.equal( request, - JSON.stringify({ + jsonToReadableText({ projectName, fileNames: [libFile.path, file1.path, constructorFile.path, bliss.path], compilerOptions: { allowNonTsExtensions: true, noEmitForJsFiles: true }, @@ -426,7 +433,7 @@ describe("unittests:: tsserver:: projects::", () => { const projectService = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); try { projectService.openExternalProject({ projectFileName: "project", options: {}, rootFiles: toExternalFiles(files.map(f => f.path)) }); - projectService.logger.log(`TypeAcquisition:: ${JSON.stringify(projectService.externalProjects[0].getTypeAcquisition(), undefined, " ")}`); + projectService.logger.log(`TypeAcquisition:: ${jsonToReadableText(projectService.externalProjects[0].getTypeAcquisition())}`); } finally { projectService.resetSafeList(); @@ -546,7 +553,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const host = createServerHost([file1, file2, config]); const projectService = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -575,7 +582,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true }, }), }; @@ -610,7 +617,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const host = createServerHost([file1, file2, config]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -680,7 +687,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const logger = createLoggerWithInMemoryLogs(/*host*/ undefined!); // Special @@ -692,14 +699,14 @@ describe("unittests:: tsserver:: projects::", () => { // #2. Ensure no errors when allowJs is false const config2 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: false } }), + content: jsonToReadableText({ compilerOptions: { allowJs: false } }), }; verfiy(config2, createServerHost([file1, file2, config2, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); // #3. Ensure no errors when compiler options aren't specified const config3 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; verfiy(config3, createServerHost([file1, file2, config3, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); @@ -707,7 +714,7 @@ describe("unittests:: tsserver:: projects::", () => { // #4. Ensure no errors when files are explicitly specified in tsconfig const config4 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true }, files: [file1.path, file2.path] }), + content: jsonToReadableText({ compilerOptions: { allowJs: true }, files: [file1.path, file2.path] }), }; verfiy(config4, createServerHost([file1, file2, config4, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); @@ -715,7 +722,7 @@ describe("unittests:: tsserver:: projects::", () => { // #4. Ensure no errors when files are explicitly excluded in tsconfig const config5 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true }, exclude: [file2.path] }), + content: jsonToReadableText({ compilerOptions: { allowJs: true }, exclude: [file2.path] }), }; const session = verfiy(config5, createServerHost([file1, file2, config5, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); @@ -885,7 +892,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const host = createServerHost([f1, libFile, config]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -914,7 +921,7 @@ describe("unittests:: tsserver:: projects::", () => { it("Properly handle Windows-style outDir", () => { const configFile: File = { path: "C:\\a\\tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: `C:\\a\\b`, }, @@ -1108,7 +1115,7 @@ describe("unittests:: tsserver:: projects::", () => { path: `/user/username/projects/myproject/src/file2.ts`, content: "export let y = 10;", }; - const configContent1 = JSON.stringify({ + const configContent1 = jsonToReadableText({ files: ["src/file1.ts", "src/file2.ts"], }); const config: File = { @@ -1120,7 +1127,7 @@ describe("unittests:: tsserver:: projects::", () => { const service = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); service.openClientFile(file1.path); - const configContent2 = JSON.stringify({ + const configContent2 = jsonToReadableText({ files: ["src/file1.ts"], }); config.content = configContent2; @@ -1277,7 +1284,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ extends: "./tsconfig_base.json" }), + content: jsonToReadableText({ extends: "./tsconfig_base.json" }), }; const host = createServerHost([file, config, libFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -1296,7 +1303,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ extends: "./tsconfig_base.json" }), + content: jsonToReadableText({ extends: "./tsconfig_base.json" }), }; const host = createServerHost([file, config, libFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -1436,7 +1443,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const innerConfig: File = { path: `/user/username/projects/myproject/playground/tsconfig-json/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["./src"], }), }; @@ -1472,7 +1479,7 @@ describe("unittests:: tsserver:: projects::", () => { it("js file opened is in configured project that will be removed", () => { const rootConfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const mocksFile: File = { path: `/user/username/projects/myproject/mocks/cssMock.js`, @@ -1484,7 +1491,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const innerConfig: File = { path: `/user/username/projects/myproject/apps/editor/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../../tsconfig.json", include: ["./src"], }), diff --git a/src/testRunner/unittests/tsserver/projectsWithReferences.ts b/src/testRunner/unittests/tsserver/projectsWithReferences.ts index a261c7adbbe..fefd376ab08 100644 --- a/src/testRunner/unittests/tsserver/projectsWithReferences.ts +++ b/src/testRunner/unittests/tsserver/projectsWithReferences.ts @@ -1,42 +1,41 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; +import { + jsonToReadableText, +} from "../helpers"; +import { + getFsContentsForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, } from "../helpers/tsserver"; import { createServerHost, File, - getTsBuildProjectFile, libFile, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsserver:: projects with references: invoking when references are already built", () => { it("on sample project", () => { - const coreConfig = getTsBuildProjectFile("sample1", "core/tsconfig.json"); - const coreIndex = getTsBuildProjectFile("sample1", "core/index.ts"); - const coreAnotherModule = getTsBuildProjectFile("sample1", "core/anotherModule.ts"); - const coreSomeDecl = getTsBuildProjectFile("sample1", "core/some_decl.d.ts"); - const logicConfig = getTsBuildProjectFile("sample1", "logic/tsconfig.json"); - const logicIndex = getTsBuildProjectFile("sample1", "logic/index.ts"); - const testsConfig = getTsBuildProjectFile("sample1", "tests/tsconfig.json"); - const testsIndex = getTsBuildProjectFile("sample1", "tests/index.ts"); - const host = createServerHost([libFile, coreConfig, coreIndex, coreAnotherModule, coreSomeDecl, logicConfig, logicIndex, testsConfig, testsIndex]); + const host = createServerHost(getFsContentsForSampleProjectReferences()); const logger = createLoggerWithInMemoryLogs(host); const service = createProjectService(host, { logger }); - service.openClientFile(testsIndex.path); + service.openClientFile("/user/username/projects/sample1/tests/index.ts"); // local edit in ts file - host.appendFile(logicIndex.path, `function foo() {}`); + host.appendFile("/user/username/projects/sample1/logic/index.ts", `function foo() {}`); host.runQueuedTimeoutCallbacks(); // non local edit in ts file - host.appendFile(logicIndex.path, `export function gfoo() {}`); + host.appendFile("/user/username/projects/sample1/logic/index.ts", `export function gfoo() {}`); host.runQueuedTimeoutCallbacks(); // change in project reference config file host.writeFile( - logicConfig.path, - JSON.stringify({ + "/user/username/projects/sample1/logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, declarationDir: "decls" }, references: [{ path: "../core" }], }), @@ -49,14 +48,14 @@ describe("unittests:: tsserver:: projects with references: invoking when referen function createService() { const aConfig: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), }; const bConfig: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, files: ["index.ts"], references: [{ path: `../a` }], @@ -64,7 +63,7 @@ describe("unittests:: tsserver:: projects with references: invoking when referen }; const cConfig: File = { path: `/user/username/projects/myproject/c/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, files: ["index.ts"], references: [{ path: `../b` }], @@ -115,7 +114,7 @@ export class A {}`, const cTsConfigJson = JSON.parse(cConfig.content); host.ensureFileOrFolder(nRefsTs); cTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(cConfig.path, JSON.stringify(cTsConfigJson)); + host.writeFile(cConfig.path, jsonToReadableText(cTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file @@ -133,7 +132,7 @@ export class A {}`, const bTsConfigJson = JSON.parse(bConfig.content); host.ensureFileOrFolder(nRefsTs); bTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(bConfig.path, JSON.stringify(bTsConfigJson)); + host.writeFile(bConfig.path, jsonToReadableText(bTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file @@ -169,18 +168,18 @@ export class A {}`, function createService() { const aConfig: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true } }), + content: jsonToReadableText({ compilerOptions: { composite: true } }), }; const bConfig: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, references: [{ path: `../a` }], }), }; const cConfig: File = { path: `/user/username/projects/myproject/c/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, references: [{ path: `../b` }], }), @@ -230,7 +229,7 @@ export class A {}`, const cTsConfigJson = JSON.parse(cConfig.content); host.ensureFileOrFolder(nRefsTs); cTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(cConfig.path, JSON.stringify(cTsConfigJson)); + host.writeFile(cConfig.path, jsonToReadableText(cTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file @@ -248,7 +247,7 @@ export class A {}`, const bTsConfigJson = JSON.parse(bConfig.content); host.ensureFileOrFolder(nRefsTs); bTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(bConfig.path, JSON.stringify(bTsConfigJson)); + host.writeFile(bConfig.path, jsonToReadableText(bTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file diff --git a/src/testRunner/unittests/tsserver/refactors.ts b/src/testRunner/unittests/tsserver/refactors.ts index 21b09170fb8..27d7e820640 100644 --- a/src/testRunner/unittests/tsserver/refactors.ts +++ b/src/testRunner/unittests/tsserver/refactors.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/reload.ts b/src/testRunner/unittests/tsserver/reload.ts index 4ff33544924..4aecf859844 100644 --- a/src/testRunner/unittests/tsserver/reload.ts +++ b/src/testRunner/unittests/tsserver/reload.ts @@ -1,8 +1,10 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, logInferredProjectsOrphanStatus, openFilesForSession, diff --git a/src/testRunner/unittests/tsserver/reloadProjects.ts b/src/testRunner/unittests/tsserver/reloadProjects.ts index fd9cc1503dc..1dd8ce8d378 100644 --- a/src/testRunner/unittests/tsserver/reloadProjects.ts +++ b/src/testRunner/unittests/tsserver/reloadProjects.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openExternalProjectForSession, openFilesForSession, @@ -18,7 +23,7 @@ import { describe("unittests:: tsserver:: reloadProjects", () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { excludeDirectories: ["node_modules"] }, }), }; diff --git a/src/testRunner/unittests/tsserver/rename.ts b/src/testRunner/unittests/tsserver/rename.ts index 7c37001e3c1..bafd2432599 100644 --- a/src/testRunner/unittests/tsserver/rename.ts +++ b/src/testRunner/unittests/tsserver/rename.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolFileLocationFromSubstring, diff --git a/src/testRunner/unittests/tsserver/resolutionCache.ts b/src/testRunner/unittests/tsserver/resolutionCache.ts index 2899df58217..e4eec4cda52 100644 --- a/src/testRunner/unittests/tsserver/resolutionCache.ts +++ b/src/testRunner/unittests/tsserver/resolutionCache.ts @@ -1,24 +1,30 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, } from "../helpers/contents"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, createSession, openExternalProjectForSession, openFilesForSession, - TestTypingsInstaller, toExternalFiles, verifyGetErrRequest, } from "../helpers/tsserver"; +import { + TestTypingsInstaller, +} from "../helpers/typingsInstaller"; import { createServerHost, File, libFile, - TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra resolution pass in server host", () => { @@ -31,10 +37,10 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra r path: "/a/cache/node_modules/@types/lib/index.d.ts", content: "export let x = 1", }; - const host: TestServerHost & ts.ModuleResolutionHost = createServerHost([file1, lib]); + const host = createServerHost([file1, lib]); const logger = createLoggerWithInMemoryLogs(host); const projectService = createProjectService(host, { - typingsInstaller: new TestTypingsInstaller("/a/cache", /*throttleLimit*/ 5, host, logger), + typingsInstaller: new TestTypingsInstaller(host, logger, { globalTypingsCacheLocation: "/a/cache" }), logger, }); @@ -60,7 +66,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem watchin }; const tsconfig = { path: "/users/username/projects/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, exclude: ["node_modules"], }), @@ -344,7 +350,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem rename }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), + content: jsonToReadableText({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), }; const node = { path: "/a/b/node_modules/@types/node/index.d.ts", @@ -367,7 +373,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem rename describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem module resolution caching", () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { traceResolution: true } }), + content: jsonToReadableText({ compilerOptions: { traceResolution: true } }), }; function getModules(module1Path: string, module2Path: string) { @@ -541,7 +547,7 @@ export const x = 10;`, }; const configFile: File = { path: `/user/username/projects/myproject/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "amd", moduleResolution: "classic", @@ -567,7 +573,7 @@ export const x = 10;`, describe("ignores files/folder changes in node_modules that start with '.'", () => { const npmCacheFile: File = { path: `/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts`, - content: JSON.stringify({ something: 10 }), + content: jsonToReadableText({ something: 10 }), }; const file1: File = { path: `/user/username/projects/myproject/test.ts`, @@ -630,7 +636,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr it("sharing across references", () => { const host = createServerHost({ "/users/username/projects/node_modules/moduleX/index.d.ts": "export const x = 10;", - "/users/username/projects/common/tsconfig.json": JSON.stringify({ + "/users/username/projects/common/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson({ composite: true, traceResolution: true, @@ -641,7 +647,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr import { x } from "moduleX"; export const b = x; `, - "/users/username/projects/app/tsconfig.json": JSON.stringify({ + "/users/username/projects/app/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson({ composite: true, traceResolution: true, @@ -665,7 +671,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr it("not sharing across references", () => { const host = createServerHost({ "/users/username/projects/node_modules/moduleX/index.d.ts": "export const x = 10;", - "/users/username/projects/common/tsconfig.json": JSON.stringify({ + "/users/username/projects/common/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, traceResolution: true }, }), "/users/username/projects/common/moduleA.ts": "export const a = 10;", @@ -673,7 +679,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr import { x } from "moduleX"; export const b = x; `, - "/users/username/projects/app/tsconfig.json": JSON.stringify({ + "/users/username/projects/app/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, traceResolution: true, diff --git a/src/testRunner/unittests/tsserver/session.ts b/src/testRunner/unittests/tsserver/session.ts index ad14f4e71ac..9baf89050d8 100644 --- a/src/testRunner/unittests/tsserver/session.ts +++ b/src/testRunner/unittests/tsserver/session.ts @@ -5,12 +5,12 @@ import { import { incrementalVerifier, } from "../../../harness/incrementalUtils"; -import * as Harness from "../../_namespaces/Harness"; -import * as ts from "../../_namespaces/ts"; import { createHasErrorMessageLogger, nullLogger, -} from "../helpers/tsserver"; +} from "../../../harness/tsserverLogger"; +import * as Harness from "../../_namespaces/Harness"; +import * as ts from "../../_namespaces/ts"; let lastWrittenToHost: string; const noopFileWatcher: ts.FileWatcher = { close: ts.noop }; diff --git a/src/testRunner/unittests/tsserver/skipLibCheck.ts b/src/testRunner/unittests/tsserver/skipLibCheck.ts index 067d87544b1..e623ccadab9 100644 --- a/src/testRunner/unittests/tsserver/skipLibCheck.ts +++ b/src/testRunner/unittests/tsserver/skipLibCheck.ts @@ -1,7 +1,12 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openExternalProjectForSession, openFilesForSession, @@ -202,7 +207,7 @@ describe("unittests:: tsserver:: with skipLibCheck", () => { it("should report semantic errors for configured js project with checkJs=true and skipLibCheck=true", () => { const jsconfigFile = { path: "/a/jsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { checkJs: true, skipLibCheck: true, diff --git a/src/testRunner/unittests/tsserver/smartSelection.ts b/src/testRunner/unittests/tsserver/smartSelection.ts index 28b40409230..952268b4af9 100644 --- a/src/testRunner/unittests/tsserver/smartSelection.ts +++ b/src/testRunner/unittests/tsserver/smartSelection.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/symLinks.ts b/src/testRunner/unittests/tsserver/symLinks.ts index 85f3319b57d..7b71bb599e6 100644 --- a/src/testRunner/unittests/tsserver/symLinks.ts +++ b/src/testRunner/unittests/tsserver/symLinks.ts @@ -1,11 +1,16 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolLocationFromSubstring, @@ -28,7 +33,7 @@ describe("unittests:: tsserver:: symLinks", () => { }; const aTsconfig: File = { path: `${folderA}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { module: "commonjs" } }), + content: jsonToReadableText({ compilerOptions: { module: "commonjs" } }), }; const aC: SymLink = { path: `${folderA}/c`, @@ -43,7 +48,7 @@ describe("unittests:: tsserver:: symLinks", () => { }; const bTsconfig: File = { path: `${folderB}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { module: "commonjs" } }), + content: jsonToReadableText({ compilerOptions: { module: "commonjs" } }), }; const bC: SymLink = { path: `${folderB}/c`, @@ -92,13 +97,13 @@ new C();`, const recognizerDateTimeTsconfigPath = `${recognizersDateTime}/tsconfig.json`; const recognizerDateTimeTsconfigWithoutPathMapping: File = { path: recognizerDateTimeTsconfigPath, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["src"], }), }; const recognizerDateTimeTsconfigWithPathMapping: File = { path: recognizerDateTimeTsconfigPath, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { rootDir: "src", baseUrl: "./", @@ -123,7 +128,7 @@ new C();`, }; const recongnizerTextPackageJson: File = { path: `${recognizersText}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ typings: "dist/types/recognizers-text.d.ts", }), }; @@ -159,7 +164,7 @@ new C();`, const config = JSON.parse(host.readFile(recognizerDateTimeTsconfigPath)!); host.writeFile( recognizerDateTimeTsconfigPath, - JSON.stringify({ + jsonToReadableText({ ...config, compilerOptions: { ...config.compilerOptions, resolveJsonModule: true }, }), @@ -228,12 +233,12 @@ new C();`, "C:/temp/replay/axios-src/lib/core/settle.js": dedent` export const b2 = 10; `, - "C:/temp/replay/axios-src/package.json": JSON.stringify({ + "C:/temp/replay/axios-src/package.json": jsonToReadableText({ name: "axios", version: "1.4.0", dependencies: { "follow-redirects": "^1.15.0" }, }), - "C:/temp/replay/axios-src/node_modules/follow-redirects/package.json": JSON.stringify({ + "C:/temp/replay/axios-src/node_modules/follow-redirects/package.json": jsonToReadableText({ name: "follow-redirects", version: "1.15.0", }), diff --git a/src/testRunner/unittests/tsserver/symlinkCache.ts b/src/testRunner/unittests/tsserver/symlinkCache.ts index faca21587bc..73fc0b2ab2f 100644 --- a/src/testRunner/unittests/tsserver/symlinkCache.ts +++ b/src/testRunner/unittests/tsserver/symlinkCache.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/syntacticServer.ts b/src/testRunner/unittests/tsserver/syntacticServer.ts index 9a48ff07d7d..e63ef008b89 100644 --- a/src/testRunner/unittests/tsserver/syntacticServer.ts +++ b/src/testRunner/unittests/tsserver/syntacticServer.ts @@ -1,8 +1,10 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, protocolFileLocationFromSubstring, diff --git a/src/testRunner/unittests/tsserver/syntaxOperations.ts b/src/testRunner/unittests/tsserver/syntaxOperations.ts index bff763b8297..5c61ede3b88 100644 --- a/src/testRunner/unittests/tsserver/syntaxOperations.ts +++ b/src/testRunner/unittests/tsserver/syntaxOperations.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/telemetry.ts b/src/testRunner/unittests/tsserver/telemetry.ts index e7fd1c6814d..d628db6eeb8 100644 --- a/src/testRunner/unittests/tsserver/telemetry.ts +++ b/src/testRunner/unittests/tsserver/telemetry.ts @@ -1,8 +1,13 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createSession, openExternalProjectForSession, openFilesForSession, @@ -255,5 +260,5 @@ describe("unittests:: tsserver:: project telemetry", () => { }); function makeFile(path: string, content: {} = ""): File { - return { path, content: ts.isString(content) ? content : JSON.stringify(content) }; + return { path, content: ts.isString(content) ? content : jsonToReadableText(content) }; } diff --git a/src/testRunner/unittests/tsserver/textStorage.ts b/src/testRunner/unittests/tsserver/textStorage.ts index 8b82e33628c..7a3031347f9 100644 --- a/src/testRunner/unittests/tsserver/textStorage.ts +++ b/src/testRunner/unittests/tsserver/textStorage.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, } from "../helpers/tsserver"; import { diff --git a/src/testRunner/unittests/tsserver/typeAquisition.ts b/src/testRunner/unittests/tsserver/typeAquisition.ts index 4c4524e90f7..7fec72db9b5 100644 --- a/src/testRunner/unittests/tsserver/typeAquisition.ts +++ b/src/testRunner/unittests/tsserver/typeAquisition.ts @@ -1,11 +1,18 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, - TestTypingsInstaller, toExternalFile, } from "../helpers/tsserver"; +import { + TestTypingsInstaller, +} from "../helpers/typingsInstaller"; import { createServerHost, } from "../helpers/virtualFileSystemWithWatch"; @@ -35,7 +42,7 @@ describe("unittests:: tsserver:: typeAquisition:: autoDiscovery", () => { describe("unittests:: tsserver:: typeAquisition:: prefer typings to js", () => { it("during second resolution pass", () => { - const typingsCacheLocation = "/a/typings"; + const globalTypingsCacheLocation = "/a/typings"; const f1 = { path: "/a/b/app.js", content: "var x = require('bar')", @@ -45,17 +52,17 @@ describe("unittests:: tsserver:: typeAquisition:: prefer typings to js", () => { content: "export let x = 1", }; const barTypings = { - path: `${typingsCacheLocation}/node_modules/@types/bar/index.d.ts`, + path: `${globalTypingsCacheLocation}/node_modules/@types/bar/index.d.ts`, content: "export let y: number", }; const config = { path: "/a/b/jsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true }, exclude: ["node_modules"] }), + content: jsonToReadableText({ compilerOptions: { allowJs: true }, exclude: ["node_modules"] }), }; const host = createServerHost([f1, barjs, barTypings, config]); const logger = createLoggerWithInMemoryLogs(host); const projectService = createProjectService(host, { - typingsInstaller: new TestTypingsInstaller(typingsCacheLocation, /*throttleLimit*/ 5, host, logger), + typingsInstaller: new TestTypingsInstaller(host, logger, { globalTypingsCacheLocation }), logger, }); diff --git a/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts b/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts index e8810c19340..793773823f8 100644 --- a/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts +++ b/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts @@ -1,7 +1,9 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; diff --git a/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts b/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts index c0caf9bab9c..174aef7e40b 100644 --- a/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts +++ b/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts @@ -1,6 +1,11 @@ +import { + createLoggerWithInMemoryLogs, +} from "../../../harness/tsserverLogger"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createSession, openFilesForSession, } from "../helpers/tsserver"; @@ -48,7 +53,7 @@ declare class TestLib { }; const testConfig: File = { path: `${testProjectLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "amd", typeRoots: ["../lib/@types", "../lib/@app"], @@ -73,7 +78,7 @@ declare class TestLib { }; const tsconfig: File = { path: `${projectPath}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { types: [ "../typedefs/filesystem", diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index 3f2aad137e0..ddd45b234b2 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -1,104 +1,40 @@ +import { + createLoggerWithInMemoryLogs, + replaceAll, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import { baselineTsserverLogs, closeFilesForSession, - createLoggerWithInMemoryLogs, createProjectService, createSession, - createTypesRegistry, - customTypesMap, - Logger, openFilesForSession, - TestSessionAndServiceHost, + patchHostTimeouts, TestSessionRequest, - TestTypingsInstaller, - TestTypingsInstallerWorker, toExternalFile, } from "../helpers/tsserver"; import { + createTypesRegistry, + customTypesMap, + FileWithPackageName, + loggerToTypingsInstallerLog, + TestTypingsInstaller, +} from "../helpers/typingsInstaller"; +import { + changeToHostTrackingWrittenFiles, createServerHost, File, libFile, - TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; import validatePackageName = ts.JsTyping.validatePackageName; import NameValidationResult = ts.JsTyping.NameValidationResult; - -interface InstallerParams { - globalTypingsCacheLocation?: string; - throttleLimit?: number; - typesRegistry?: string | readonly string[]; -} - -type InstallWorkerThrowingError = string; -type InstallWorkerExecutingCommand = [installedTypings: string[] | string, typingFiles: File[]]; -type CustomInstallWorker = (installer: TestTypingsInstallerWorker, requestId: number, packageNames: string[], cb: ts.server.typingsInstaller.RequestCompletedAction) => void; - -function createTestTypingInstaller( - host: TestServerHost, - logger: Logger, - workerConstructor: new (...args: ConstructorParameters) => T, - p?: InstallerParams, -) { - return new TestTypingsInstaller( - (p && p.globalTypingsCacheLocation) || "/a/data", - (p && p.throttleLimit) || 5, - host, - logger, - workerConstructor, - p && p.typesRegistry, - ); -} -function createTestTypingInstallerWithInstallWorker( - host: TestServerHost, - logger: Logger, - installWorker: InstallWorkerThrowingError | InstallWorkerExecutingCommand | CustomInstallWorker, - p?: InstallerParams, -) { - return createTestTypingInstaller( - host, - logger, - class extends TestTypingsInstallerWorker { - override installWorker(requestId: number, packageNames: string[], _cwd: string, cb: ts.server.typingsInstaller.RequestCompletedAction) { - this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(packageNames)}'.`); - if (ts.isString(installWorker)) { - assert(false, installWorker); - } - else if (ts.isArray(installWorker)) { - executeCommand(this, requestId, packageNames, host, installWorker[0], installWorker[1], cb); - } - else { - installWorker(this, requestId, packageNames, cb); - } - } - }, - p, - ); -} - -function executeCommand(self: TestTypingsInstallerWorker, requestId: number, packageNames: string[], host: TestServerHost, installedTypings: string[] | string, typingFiles: File[], cb: ts.server.typingsInstaller.RequestCompletedAction): void { - self.addPostExecAction(installedTypings, requestId, packageNames, success => { - (host as TestSessionAndServiceHost).baselineHost("TI:: Before installWorker"); - for (const file of typingFiles) { - host.ensureFileOrFolder(file); - } - (host as TestSessionAndServiceHost).baselineHost("TI:: After installWorker"); - cb(success); - }); -} - -function trackingLogger(): { log(message: string): void; finish(): string[]; } { - const logs: string[] = []; - return { - log(message) { - logs.push(message); - }, - finish() { - return logs; - }, - }; -} +import { + stringifyIndented, +} from "../../_namespaces/ts.server"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: tsserver:: typingsInstaller:: local module", () => { it("should not be picked up", () => { @@ -117,18 +53,21 @@ describe("unittests:: tsserver:: typingsInstaller:: local module", () => { }; const config = { path: "/a/jsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "commonjs" }, typeAcquisition: { enable: true }, }), }; const host = createServerHost([f1, f2, config, typesConfig]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - "should not be called", - { typesRegistry: "config", globalTypingsCacheLocation: typesCache }, + { + installAction: "should not be called", + typesRegistry: "config", + globalTypingsCacheLocation: typesCache, + }, ); const service = createProjectService(host, { typingsInstaller, logger }); service.openClientFile(f1.path); @@ -145,7 +84,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const tsconfig = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, }, @@ -156,7 +95,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -170,11 +109,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, tsconfig, packageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jquery]], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { @@ -197,7 +138,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -211,11 +152,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, packageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jquery]], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -237,11 +180,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); @@ -266,14 +211,9 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstaller( + const typingsInstaller = new TestTypingsInstaller( host, logger, - class extends TestTypingsInstallerWorker { - override enqueueInstallTypingsRequest() { - assert(false, "auto discovery should not be enabled"); - } - }, ); const projectFileName = "/a/app/test.csproj"; @@ -299,11 +239,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([appJs, nodeDts]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - "nothing should get installed", - { typesRegistry: "node" }, + { + installAction: "nothing should get installed", + typesRegistry: "node", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -324,14 +266,9 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstaller( + const typingsInstaller = new TestTypingsInstaller( host, logger, - class extends TestTypingsInstallerWorker { - override enqueueInstallTypingsRequest() { - assert(false, "auto discovery should not be enabled"); - } - }, { typesRegistry: "jquery" }, ); @@ -359,11 +296,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/node"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/node"], [jquery]], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; const projectService = createProjectService(host, { typingsInstaller, logger }); @@ -409,11 +348,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([lodashJs, file2Jsx, file3dts, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/lodash", "@types/react"], [lodashDts, reactDts]], - { typesRegistry: ["lodash", "react"] }, + { + installAction: [["@types/lodash", "@types/react"], [lodashDts, reactDts]], + typesRegistry: ["lodash", "react"], + }, ); const projectFileName = "/a/app/test.csproj"; @@ -441,11 +382,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -470,11 +413,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -505,11 +450,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs, file2Ts]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -543,7 +490,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { express: "^3.1.0", @@ -570,11 +517,16 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([lodashJs, commanderJs, file3dts, packageJson, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander", "@types/express", "@types/jquery", "@types/moment"], [commander, express, jquery, moment]], - { typesRegistry: ["jquery", "commander", "moment", "express"] }, + { + installAction: [ + ["@types/commander", "@types/express", "@types/jquery", "@types/moment"], + [commander, express, jquery, moment], + ], + typesRegistry: ["jquery", "commander", "moment", "express"], + }, ); const projectFileName = "/a/app/test.csproj"; @@ -612,7 +564,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { express: "^3.1.0", @@ -644,11 +596,17 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const typingFiles = [commander, express, jquery, moment, lodash]; const host = createServerHost([lodashJs, commanderJs, file3, packageJson, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander", "@types/express", "@types/jquery", "@types/moment", "@types/lodash"], typingFiles], - { throttleLimit: 3, typesRegistry: ["commander", "express", "jquery", "moment", "lodash"] }, + { + installAction: [ + ["@types/commander", "@types/express", "@types/jquery", "@types/moment", "@types/lodash"], + typingFiles, + ], + throttleLimit: 3, + typesRegistry: ["commander", "express", "jquery", "moment", "lodash"], + }, ); const projectFileName = "/a/app/test.csproj"; @@ -679,53 +637,47 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = content: "", }; - const commander = { + const commander: FileWithPackageName = { path: "/a/data/node_modules/@types/commander/index.d.ts", content: "declare const commander: { x: number }", - typings: ts.server.typingsInstaller.typingsName("commander"), + package: "commander", }; - const jquery = { + const jquery: FileWithPackageName = { path: "/a/data/node_modules/@types/jquery/index.d.ts", content: "declare const jquery: { x: number }", - typings: ts.server.typingsInstaller.typingsName("jquery"), + package: "jquery", }; - const lodash = { + const lodash: FileWithPackageName = { path: "/a/data/node_modules/@types/lodash/index.d.ts", content: "declare const lodash: { x: number }", - typings: ts.server.typingsInstaller.typingsName("lodash"), + package: "lodash", }; - const cordova = { + const cordova: FileWithPackageName = { path: "/a/data/node_modules/@types/cordova/index.d.ts", content: "declare const cordova: { x: number }", - typings: ts.server.typingsInstaller.typingsName("cordova"), + package: "cordova", }; - const grunt = { + const grunt: FileWithPackageName = { path: "/a/data/node_modules/@types/grunt/index.d.ts", content: "declare const grunt: { x: number }", - typings: ts.server.typingsInstaller.typingsName("grunt"), + package: "grunt", }; - const gulp = { + const gulp: FileWithPackageName = { path: "/a/data/node_modules/@types/gulp/index.d.ts", content: "declare const gulp: { x: number }", - typings: ts.server.typingsInstaller.typingsName("gulp"), + package: "gulp", }; const host = createServerHost([lodashJs, commanderJs, file3, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - (installer, requestId, packageNames, cb) => { - let typingFiles: (File & { typings: string; })[] = []; - if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { - typingFiles = [commander, jquery, lodash, cordova]; - } - else { - typingFiles = [grunt, gulp]; - } - executeCommand(installer, requestId, packageNames, host, typingFiles.map(f => f.typings), typingFiles, cb); + { + installAction: [[commander, jquery, lodash, cordova, grunt, gulp]], + throttleLimit: 1, + typesRegistry: ["commander", "jquery", "lodash", "cordova", "gulp", "grunt"], }, - { throttleLimit: 1, typesRegistry: ["commander", "jquery", "lodash", "cordova", "gulp", "grunt"] }, ); // Create project #1 with 4 typings @@ -767,7 +719,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const pkgJson = { path: "/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@zkat/cacache": "1.0.0", }, @@ -775,7 +727,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; // Should only accept direct dependencies. const commander = { @@ -784,7 +736,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const commanderPackage = { path: "/node_modules/commander/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "commander", }), }; @@ -794,7 +746,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacachePackage = { path: "/node_modules/@zkat/cacache/package.json", - content: JSON.stringify({ name: "@zkat/cacache" }), + content: jsonToReadableText({ name: "@zkat/cacache" }), }; const cacacheDTS = { path: "/tmp/node_modules/@types/zkat__cacache/index.d.ts", @@ -802,11 +754,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, pkgJson, commander, commanderPackage, cacache, cacachePackage]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/zkat__cacache"], [cacacheDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: ["zkat__cacache", "nested", "commander"] }, + { + installAction: [["@types/zkat__cacache"], [cacacheDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: ["zkat__cacache", "nested", "commander"], + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -832,7 +787,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const pkgJson = { path: "/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { jquery: "1.0.0", }, @@ -840,7 +795,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify(jsconfigContent || {}), + content: jsonToReadableText(jsconfigContent || {}), }; // Should only accept direct dependencies. const commander = { @@ -849,7 +804,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const commanderPackage = { path: "/node_modules/commander/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "commander", }), }; @@ -859,12 +814,12 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jqueryPackage = { path: "/node_modules/jquery/package.json", - content: JSON.stringify({ name: "jquery" }), + content: jsonToReadableText({ name: "jquery" }), }; // Should not search deeply in node_modules. const nestedPackage = { path: "/node_modules/jquery/nested/package.json", - content: JSON.stringify({ name: "nested" }), + content: jsonToReadableText({ name: "nested" }), }; const jqueryDTS = { path: "/tmp/node_modules/@types/jquery/index.d.ts", @@ -872,11 +827,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, pkgJson, commander, commanderPackage, jquery, jqueryPackage, nestedPackage]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jqueryDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: ["jquery", "nested", "commander"] }, + { + installAction: [["@types/jquery"], [jqueryDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: ["jquery", "nested", "commander"], + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -913,7 +871,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; const jquery = { path: "/bower_components/jquery/index.js", @@ -921,7 +879,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jqueryPackage = { path: "/bower_components/jquery/bower.json", - content: JSON.stringify({ name: "jquery" }), + content: jsonToReadableText({ name: "jquery" }), }; const jqueryDTS = { path: "/tmp/node_modules/@types/jquery/index.d.ts", @@ -929,11 +887,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, jquery, jqueryPackage]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jqueryDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jqueryDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { @@ -956,11 +917,11 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; const bowerJson = { path: "/bower.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { jquery: "^3.1.0", }, @@ -972,11 +933,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, bowerJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jqueryDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jqueryDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -1008,11 +972,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([f, brokenPackageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander"], [commander]], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: [["@types/commander"], [commander]], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const service = createProjectService(host, { typingsInstaller, logger }); service.openClientFile(f.path); @@ -1049,11 +1016,17 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/node", "@types/commander", `@types/${emberComponentDirectory}`], [node, commander, emberComponent]], - { globalTypingsCacheLocation: cachePath, typesRegistry: ["node", "commander"] }, + { + installAction: [ + ["@types/node", "@types/commander", `@types/${emberComponentDirectory}`], + [node, commander, emberComponent], + ], + globalTypingsCacheLocation: cachePath, + typesRegistry: ["node", "commander"], + }, ); const service = createProjectService(host, { typingsInstaller, logger }); service.openClientFile(file.path); @@ -1080,11 +1053,17 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const typePath = (name: string): string => `${cachePath}/node_modules/@types/${name}/index.d.ts`; const host = createServerHost([file, commanderJS]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [typeNames.map(name => `@types/${name}`), typeNames.map((name): File => ({ path: typePath(name), content: "" }))], - { globalTypingsCacheLocation: cachePath, typesRegistry: typeNames }, + { + installAction: [ + typeNames.map(name => `@types/${name}`), + typeNames.map((name): File => ({ path: typePath(name), content: "" })), + ], + globalTypingsCacheLocation: cachePath, + typesRegistry: typeNames, + }, ); const service = createProjectService(host, { typingsInstaller, @@ -1113,11 +1092,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([f1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["foo"], []], - { globalTypingsCacheLocation: "/tmp", typesRegistry: "foo" }, + { + installAction: [["foo"], []], + globalTypingsCacheLocation: "/tmp", + typesRegistry: "foo", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1183,7 +1165,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const tsconfig = { path: "/user/username/projects/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, }, @@ -1194,7 +1176,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/user/username/projects/project/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -1207,7 +1189,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const tsconfig2 = { path: "/user/username/projects/project2/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, }, @@ -1218,7 +1200,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson2 = { path: "/user/username/projects/project2/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { commander: "^3.1.0", @@ -1226,32 +1208,25 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }), }; - const jquery = { + const jquery: FileWithPackageName = { path: "/a/data/node_modules/@types/jquery/index.d.ts", content: "declare const $: { x: number }", - typings: "jquery", + package: "jquery", }; - const commander = { + const commander: FileWithPackageName = { path: "/a/data/node_modules/@types/commander/index.d.ts", content: "export let x: number", - typings: "commander", + package: "commander", }; const host = createServerHost([file1, tsconfig, packageJson, file2, tsconfig2, packageJson2, libFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - (installer, requestId, packageNames, cb) => { - let typingFiles: (File & { typings: string; })[] = []; - if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { - typingFiles = [commander]; - } - else { - typingFiles = [jquery]; - } - executeCommand(installer, requestId, packageNames, host, typingFiles.map(f => f.typings), typingFiles, cb); + { + installAction: [[commander, jquery]], + typesRegistry: ["jquery", "commander"], }, - { typesRegistry: ["jquery", "commander"] }, ); const session = createSession(host, { @@ -1276,7 +1251,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -1289,7 +1264,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheConfig = { path: "/a/data/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "types-registry": "^0.1.317", }, @@ -1300,7 +1275,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheLockConfig = { path: "/a/data/package-lock.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@types/jquery": { version: "1.0.0", @@ -1310,11 +1285,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, packageJson, jquery, cacheConfig, cacheLockConfig]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jquery]], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -1332,7 +1309,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -1341,7 +1318,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheConfig = { path: "/a/data/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "types-registry": "^0.1.317", }, @@ -1352,7 +1329,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheLockConfig = { path: "/a/data/package-lock.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@types/jquery": { version: "1.3.0", @@ -1366,11 +1343,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, packageJson, cacheConfig, cacheLockConfig, jquery]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -1436,7 +1415,7 @@ describe("unittests:: tsserver:: typingsInstaller:: Invalid package names", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "; say ‘Hello from TypeScript!’ #": "0.0.x", }, @@ -1444,11 +1423,13 @@ describe("unittests:: tsserver:: typingsInstaller:: Invalid package names", () = }; const host = createServerHost([f1, packageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - "installWorker should not be invoked", - { globalTypingsCacheLocation: "/tmp" }, + { + installAction: "installWorker should not be invoked", + globalTypingsCacheLocation: "/tmp", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1458,7 +1439,6 @@ describe("unittests:: tsserver:: typingsInstaller:: Invalid package names", () = describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { const emptySafeList = ts.emptyMap; - it("should use mappings from safe list", () => { const app = { path: "/a/b/app.js", @@ -1475,16 +1455,18 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { const safeList = new Map(Object.entries({ jquery: "jquery", chroma: "chroma-js" })); - const host = createServerHost([app, jquery, chroma]); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path, jquery.path, chroma.path], ts.getDirectoryPath(app.path as ts.Path), safeList, ts.emptyMap, { enable: true }, ts.emptyArray, ts.emptyMap, ts.emptyOptions); - const finish = logger.finish(); - assert.deepEqual(finish, [ - 'Inferred typings from file names: ["jquery","chroma-js"]', - "Inferred typings from unresolved imports: []", - 'Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","chroma-js"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ], finish.join("\r\n")); - assert.deepEqual(result.newTypingNames, ["jquery", "chroma-js"]); + const { discoverTypings, baseline } = setup([app, jquery, chroma]); + discoverTypings( + [app.path, jquery.path, chroma.path], + ts.getDirectoryPath(app.path as ts.Path), + safeList, + ts.emptyMap, + { enable: true }, + ts.emptyArray, + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should use mappings from safe list"); }); it("should return node for core modules", () => { @@ -1492,18 +1474,22 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/a/b/app.js", content: "", }; - const host = createServerHost([f]); + const { discoverTypings, baseline } = setup([f]); const cache = new Map(); for (const name of ts.JsTyping.nodeCoreModuleList) { - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, [name, "somename"], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","somename"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node","somename"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ]); - assert.deepEqual(result.newTypingNames.sort(), ["node", "somename"]); + discoverTypings( + [f.path], + ts.getDirectoryPath(f.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + [name, "somename"], + ts.emptyMap, + ts.emptyOptions, + ); } + baseline("should return node for core modules"); }); it("should use cached locations", () => { @@ -1515,17 +1501,11 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/a/b/node.d.ts", content: "", }; - const host = createServerHost([f, node]); + const { discoverTypings, baseline } = setup([f, node]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0") } })); const registry = createTypesRegistry("node"); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, ["fs", "bar"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","bar"]', - 'Result: {"cachedTypingPaths":["/a/b/node.d.ts"],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, [node.path]); - assert.deepEqual(result.newTypingNames, ["bar"]); + discoverTypings([f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, ["fs", "bar"], registry, ts.emptyOptions); + baseline("should use cached locations"); }); it("should gracefully handle packages that have been removed from the types-registry", () => { @@ -1537,16 +1517,19 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/a/b/node.d.ts", content: "", }; - const host = createServerHost([f, node]); + const { discoverTypings, baseline } = setup([f, node]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0") } })); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, ["fs", "bar"], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","bar"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node","bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, []); - assert.deepEqual(result.newTypingNames, ["node", "bar"]); + discoverTypings( + [f.path], + ts.getDirectoryPath(f.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["fs", "bar"], + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should gracefully handle packages that have been removed from the types-registry"); }); it("should search only 2 levels deep", () => { @@ -1556,27 +1539,25 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { }; const a = { path: "/node_modules/a/package.json", - content: JSON.stringify({ name: "a" }), + content: jsonToReadableText({ name: "a" }), }; const b = { path: "/node_modules/a/b/package.json", - content: JSON.stringify({ name: "b" }), + content: jsonToReadableText({ name: "b" }), }; - const host = createServerHost([app, a, b]); + const { discoverTypings, baseline } = setup([app, a, b]); const cache = new Map(); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, /*unresolvedImports*/ [], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Searching for typing names in /node_modules; all files: ["/node_modules/a/package.json"]', - ' Found package names: ["a"]', - "Inferred typings from unresolved imports: []", - 'Result: {"cachedTypingPaths":[],"newTypingNames":["a"],"filesToWatch":["/bower_components","/node_modules"]}', - ]); - assert.deepEqual(result, { - cachedTypingPaths: [], - newTypingNames: ["a"], // But not "b" - filesToWatch: ["/bower_components", "/node_modules"], - }); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + /*unresolvedImports*/ [], + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should search only 2 levels deep"); }); it("should support scoped packages", () => { @@ -1586,23 +1567,21 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { }; const a = { path: "/node_modules/@a/b/package.json", - content: JSON.stringify({ name: "@a/b" }), + content: jsonToReadableText({ name: "@a/b" }), }; - const host = createServerHost([app, a]); + const { discoverTypings, baseline } = setup([app, a]); const cache = new Map(); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, /*unresolvedImports*/ [], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Searching for typing names in /node_modules; all files: ["/node_modules/@a/b/package.json"]', - ' Found package names: ["@a/b"]', - "Inferred typings from unresolved imports: []", - 'Result: {"cachedTypingPaths":[],"newTypingNames":["@a/b"],"filesToWatch":["/bower_components","/node_modules"]}', - ]); - assert.deepEqual(result, { - cachedTypingPaths: [], - newTypingNames: ["@a/b"], - filesToWatch: ["/bower_components", "/node_modules"], - }); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + /*unresolvedImports*/ [], + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should support scoped packages"); }); it("should install expired typings", () => { const app = { @@ -1618,20 +1597,23 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: cachePath + "node_modules/@types/node/index.d.ts", content: "export let y: number", }; - const host = createServerHost([app]); + const { discoverTypings, baseline } = setup([app]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0") }, commander: { typingLocation: commander.path, version: new ts.Version("1.0.0") }, })); const registry = createTypesRegistry("node", "commander"); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, ["http", "commander"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","commander"]', - 'Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/node/index.d.ts"],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, [node.path]); - assert.deepEqual(result.newTypingNames, ["commander"]); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["http", "commander"], + registry, + ts.emptyOptions, + ); + baseline("should install expired typings"); }); it("should install expired typings with prerelease version of tsserver", () => { @@ -1644,20 +1626,23 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: cachePath + "node_modules/@types/node/index.d.ts", content: "export let y: number", }; - const host = createServerHost([app]); + const { discoverTypings, baseline } = setup([app]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.0.0") }, })); const registry = createTypesRegistry("node"); registry.delete(`ts${ts.versionMajorMinor}`); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, ["http"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node"],"filesToWatch":["/a/bower_components","/a/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, []); - assert.deepEqual(result.newTypingNames, ["node"]); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["http"], + registry, + ts.emptyOptions, + ); + baseline("should install expired typings with prerelease version of tsserver"); }); it("prerelease typings are properly handled", () => { @@ -1674,22 +1659,88 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: cachePath + "node_modules/@types/node/index.d.ts", content: "export let y: number", }; - const host = createServerHost([app]); + const { discoverTypings, baseline } = setup([app]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0-next.0") }, commander: { typingLocation: commander.path, version: new ts.Version("1.3.0-next.0") }, })); const registry = createTypesRegistry("node", "commander"); registry.get("node")![`ts${ts.versionMajorMinor}`] = "1.3.0-next.1"; - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, ["http", "commander"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","commander"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node","commander"],"filesToWatch":["/a/bower_components","/a/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, []); - assert.deepEqual(result.newTypingNames, ["node", "commander"]); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["http", "commander"], + registry, + ts.emptyOptions, + ); + baseline("prerelease typings are properly handled"); }); + + function setup(files: readonly File[]) { + const host = createServerHost(files); + const logger = createLoggerWithInMemoryLogs(host); + const log = loggerToTypingsInstallerLog(logger)!; + const testhost = patchHostTimeouts( + changeToHostTrackingWrittenFiles(host), + logger, + ); + testhost.baselineHost(""); + return { discoverTypings, baseline }; + + function baseline(scenario: string) { + baselineTsserverLogs("typingsInstaller", `discover typings ${scenario}`, { logger }); + } + + function discoverTypings( + fileNames: string[], + projectRootPath: ts.Path, + safeList: ts.JsTyping.SafeList, + packageNameToTypingLocation: ReadonlyMap, + typeAcquisition: ts.TypeAcquisition, + unresolvedImports: readonly string[], + typesRegistry: ReadonlyMap>, + compilerOptions: ts.CompilerOptions, + ) { + logger.log(`ts.JsTyping.discoverTypings::${ + replaceAll( + stringifyIndented({ + fileNames, + projectRootPath, + safeList: toMapLike(safeList), + packageNameToTypingLocation: toMapLike(packageNameToTypingLocation), + typeAcquisition, + unresolvedImports, + typesRegistry: toMapLike(typesRegistry), + compilerOptions, + }), + `"ts${ts.versionMajorMinor}"`, + `"tsFakeMajor.Minor"`, + ) + }`); + ts.JsTyping.discoverTypings( + host, + log.writeLine, + fileNames, + projectRootPath, + safeList, + packageNameToTypingLocation, + typeAcquisition, + unresolvedImports, + typesRegistry, + compilerOptions, + ); + logger.log(""); + } + + function toMapLike(map: ReadonlyMap) { + const result: ts.MapLike = {}; + map.forEach((value, key) => result[key] = value); + return result; + } + } }); describe("unittests:: tsserver:: typingsInstaller:: telemetry events", () => { @@ -1700,7 +1751,7 @@ describe("unittests:: tsserver:: typingsInstaller:: telemetry events", () => { }; const packageFile = { path: "/a/package.json", - content: JSON.stringify({ dependencies: { commander: "1.0.0" } }), + content: jsonToReadableText({ dependencies: { commander: "1.0.0" } }), }; const cachePath = "/a/cache/"; const commander = { @@ -1709,11 +1760,14 @@ describe("unittests:: tsserver:: typingsInstaller:: telemetry events", () => { }; const host = createServerHost([f1, packageFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander"], [commander]], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: [["@types/commander"], [commander]], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1732,11 +1786,11 @@ describe("unittests:: tsserver:: typingsInstaller:: progress notifications", () }; const packageFile = { path: "/a/package.json", - content: JSON.stringify({ dependencies: { commander: "1.0.0" } }), + content: jsonToReadableText({ dependencies: { commander: "1.0.0" } }), }; const packageLockFile = { path: "/a/cache/package-lock.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@types/commander": { version: "1.0.0", @@ -1751,11 +1805,14 @@ describe("unittests:: tsserver:: typingsInstaller:: progress notifications", () }; const host = createServerHost([f1, packageFile, packageLockFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander"], [commander]], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: [["@types/commander"], [commander]], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1772,16 +1829,19 @@ describe("unittests:: tsserver:: typingsInstaller:: progress notifications", () }; const packageFile = { path: "/a/package.json", - content: JSON.stringify({ dependencies: { commander: "1.0.0" } }), + content: jsonToReadableText({ dependencies: { commander: "1.0.0" } }), }; const cachePath = "/a/cache/"; const host = createServerHost([f1, packageFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - ["", []], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: ["", []], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -2331,11 +2391,14 @@ describe("unittests:: tsserver:: typingsInstaller:: recomputing resolutions of u const host = createServerHost([app, fooo]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [typingNames, typingFiles], - { globalTypingsCacheLocation, typesRegistry: "foo" }, + { + installAction: [typingNames, typingFiles], + globalTypingsCacheLocation, + typesRegistry: "foo", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(app.path); @@ -2418,11 +2481,14 @@ declare module "stream" { const host = createServerHost([file, libFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["node"], [nodeTyping]], - { globalTypingsCacheLocation, typesRegistry: "node" }, + { + installAction: [["node"], [nodeTyping]], + globalTypingsCacheLocation, + typesRegistry: "node", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(file.path); @@ -2476,7 +2542,7 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro const currentDirectory = `/user/username/projects/anotherProject`; const packageJsonInCurrentDirectory: File = { path: `${currentDirectory}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ devDependencies: { pkgcurrentdirectory: "", }, @@ -2484,7 +2550,7 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro }; const packageJsonOfPkgcurrentdirectory: File = { path: `${currentDirectory}/node_modules/pkgcurrentdirectory/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkgcurrentdirectory", main: "index.js", typings: "index.d.ts", @@ -2498,13 +2564,13 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro const typingsCache = `/users/username/Library/Caches/typescript/2.7`; const typingsCachePackageJson: File = { path: `${typingsCache}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ devDependencies: {}, }), }; const typingsCachePackageLockJson: File = { path: `${typingsCache}/package-lock.json`, - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: {}, }), }; @@ -2513,7 +2579,10 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro const host = createServerHost(files, { currentDirectory }); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = new TestTypingsInstaller(typingsCache, /*throttleLimit*/ 5, host, logger, /*workerConstructor*/ undefined, "pkgcurrentdirectory"); + const typingsInstaller = new TestTypingsInstaller(host, logger, { + globalTypingsCacheLocation: typingsCache, + typesRegistry: "pkgcurrentdirectory", + }); const projectService = createProjectService(host, { typingsInstaller, logger }); diff --git a/src/testRunner/unittests/tsserver/watchEnvironment.ts b/src/testRunner/unittests/tsserver/watchEnvironment.ts index 7d973288c96..21669b56507 100644 --- a/src/testRunner/unittests/tsserver/watchEnvironment.ts +++ b/src/testRunner/unittests/tsserver/watchEnvironment.ts @@ -1,14 +1,19 @@ +import { + createLoggerWithInMemoryLogs, + Logger, +} from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, commonFile2, } from "../helpers/tscWatch"; import { baselineTsserverLogs, - createLoggerWithInMemoryLogs, createProjectService, createSession, - Logger, openExternalProjectForSession, openFilesForSession, protocolFileLocationFromSubstring, @@ -31,7 +36,7 @@ describe("unittests:: tsserver:: watchEnvironment:: tsserverProjectSystem watchD const projectSrcFolder = `${projectFolder}/src`; const configFile: File = { path: `${projectFolder}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { synchronousWatchDirectory: true, }, @@ -270,7 +275,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio it("with watchFile option in configFile", () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchFile: "UseFsEvents", }, @@ -287,7 +292,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio it("with watchDirectory option in configFile", () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchDirectory: "UseFsEvents", }, @@ -304,7 +309,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio it("with fallbackPolling option in configFile", () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { fallbackPolling: "PriorityInterval", }, @@ -356,7 +361,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio function setup(configureHost?: boolean) { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ include: ["src"], watchOptions: { excludeDirectories: ["node_modules"] } }), + content: jsonToReadableText({ include: ["src"], watchOptions: { excludeDirectories: ["node_modules"] } }), }; const { main, bar, foo } = setupFiles(); const files = [libFile, main, bar, foo, configFile]; @@ -414,7 +419,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio } as ts.server.protocol.ExternalProject); service.openClientFile(main.path); const project = service.externalProjects[0]; - service.logger.info(JSON.stringify(project.getAllProjectErrors(), undefined, 2)); + service.logger.info(jsonToReadableText(project.getAllProjectErrors())); baselineTsserverLogs("watchEnvironment", `external project watch options errors`, service); }); @@ -450,7 +455,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio service.setCompilerOptionsForInferredProjects({ excludeDirectories: ["**/../*"] }, "/user/username/projects/myproject"); service.openClientFile(main.path, main.content, ts.ScriptKind.TS, "/user/username/projects/myproject"); const project = service.inferredProjects[0]; - service.logger.info(JSON.stringify(project.getAllProjectErrors(), undefined, 2)); + service.logger.info(jsonToReadableText(project.getAllProjectErrors())); baselineTsserverLogs("watchEnvironment", `inferred project watch options errors`, service); }); }); @@ -479,7 +484,7 @@ describe("unittests:: tsserver:: watchEnvironment:: watchFile is single watcher it("when watchFile is single watcher per file", () => { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, resolveJsonModule: true, diff --git a/src/typingsInstaller/nodeTypingsInstaller.ts b/src/typingsInstaller/nodeTypingsInstaller.ts index fcf8b61cf5b..5dcb59de216 100644 --- a/src/typingsInstaller/nodeTypingsInstaller.ts +++ b/src/typingsInstaller/nodeTypingsInstaller.ts @@ -24,6 +24,7 @@ import { InstallTypingHost, nowString, PackageInstalledResponse, + stringifyIndented, TypesRegistryResponse, TypingInstallerRequestUnion, TypingInstallerResponseUnion, @@ -203,7 +204,7 @@ export class NodeTypingsInstaller extends TypingsInstaller { protected sendResponse(response: TypingInstallerResponseUnion) { if (this.log.isEnabled()) { - this.log.writeLine(`Sending response:\n ${JSON.stringify(response)}`); + this.log.writeLine(`Sending response:${stringifyIndented(response)}`); } process.send!(response); // TODO: GH#18217 if (this.log.isEnabled()) { diff --git a/src/typingsInstallerCore/typingsInstaller.ts b/src/typingsInstallerCore/typingsInstaller.ts index 5e185406e07..5fddf932e02 100644 --- a/src/typingsInstallerCore/typingsInstaller.ts +++ b/src/typingsInstallerCore/typingsInstaller.ts @@ -29,6 +29,7 @@ import { InstallTypingHost, InvalidateCachedTypings, SetTypings, + stringifyIndented, WatchTypingLocations, } from "./_namespaces/ts.server"; @@ -153,7 +154,7 @@ export abstract class TypingsInstaller { install(req: DiscoverTypings) { if (this.log.isEnabled()) { - this.log.writeLine(`Got install request ${JSON.stringify(req)}`); + this.log.writeLine(`Got install request${stringifyIndented(req)}`); } // load existing typing information from the cache @@ -180,10 +181,6 @@ export abstract class TypingsInstaller { req.compilerOptions, ); - if (this.log.isEnabled()) { - this.log.writeLine(`Finished typings discovery: ${JSON.stringify(discoverTypingsResult)}`); - } - // start watching files this.watchFiles(req.projectName, discoverTypingsResult.filesToWatch); @@ -232,8 +229,8 @@ export abstract class TypingsInstaller { const npmConfig = JSON.parse(this.installTypingHost.readFile(packageJson)!) as NpmConfig; // TODO: GH#18217 const npmLock = JSON.parse(this.installTypingHost.readFile(packageLockJson)!) as NpmLock; // TODO: GH#18217 if (this.log.isEnabled()) { - this.log.writeLine(`Loaded content of '${packageJson}': ${JSON.stringify(npmConfig)}`); - this.log.writeLine(`Loaded content of '${packageLockJson}'`); + this.log.writeLine(`Loaded content of '${packageJson}':${stringifyIndented(npmConfig)}`); + this.log.writeLine(`Loaded content of '${packageLockJson}':${stringifyIndented(npmLock)}`); } if (npmConfig.devDependencies && npmLock.dependencies) { for (const key in npmConfig.devDependencies) { diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 8f70f7cfa10..5ee1d5258cb 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3274,7 +3274,7 @@ declare namespace ts { } interface PluginModule { create(createInfo: PluginCreateInfo): LanguageService; - getExternalFiles?(proj: Project): string[]; + getExternalFiles?(proj: Project, updateLevel: ProgramUpdateLevel): string[]; onConfigurationChanged?(config: any): void; } interface PluginModuleWithName { @@ -3354,7 +3354,6 @@ declare namespace ts { readFile(fileName: string): string | undefined; writeFile(fileName: string, content: string): void; fileExists(file: string): boolean; - getModuleResolutionCache(): ModuleResolutionCache | undefined; directoryExists(path: string): boolean; getDirectories(path: string): string[]; log(s: string): void; @@ -3379,7 +3378,7 @@ declare namespace ts { disableLanguageService(lastFileExceededProgramSize?: string): void; getProjectName(): string; protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition; - getExternalFiles(): SortedReadonlyArray; + getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray; getSourceFile(path: Path): ts.SourceFile | undefined; close(): void; private detachScriptInfoIfNotRoot; @@ -3451,7 +3450,6 @@ declare namespace ts { getLanguageService(): never; getHostForAutoImportProvider(): never; getProjectReferences(): readonly ts.ProjectReference[] | undefined; - getTypeAcquisition(): TypeAcquisition; } /** * If a file is opened, the server will look for a tsconfig (or jsconfig) @@ -4754,32 +4752,32 @@ declare namespace ts { } enum ModifierFlags { None = 0, - Export = 1, - Ambient = 2, - Public = 4, - Private = 8, - Protected = 16, - Static = 32, - Readonly = 64, - Accessor = 128, - Abstract = 256, - Async = 512, - Default = 1024, - Const = 2048, - HasComputedJSDocModifiers = 4096, - Deprecated = 8192, - Override = 16384, - In = 32768, - Out = 65536, - Decorator = 131072, + Public = 1, + Private = 2, + Protected = 4, + Readonly = 8, + Override = 16, + Export = 32, + Abstract = 64, + Ambient = 128, + Static = 256, + Accessor = 512, + Async = 1024, + Default = 2048, + Const = 4096, + In = 8192, + Out = 16384, + Decorator = 32768, + Deprecated = 65536, + HasComputedJSDocModifiers = 268435456, HasComputedFlags = 536870912, - AccessibilityModifier = 28, - ParameterPropertyModifier = 16476, - NonPublicAccessibilityModifier = 24, - TypeScriptModifier = 117086, - ExportDefault = 1025, - All = 258047, - Modifier = 126975, + AccessibilityModifier = 7, + ParameterPropertyModifier = 31, + NonPublicAccessibilityModifier = 6, + TypeScriptModifier = 28895, + ExportDefault = 2080, + All = 131071, + Modifier = 98303, } enum JsxFlags { None = 0, @@ -4976,7 +4974,7 @@ declare namespace ts { readonly right: Identifier; } type EntityName = Identifier | QualifiedName; - type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier; + type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier; type MemberName = Identifier | PrivateIdentifier; type DeclarationName = PropertyName | JsxAttributeName | StringLiteralLike | ElementAccessExpression | BindingPattern | EntityNameExpression; interface Declaration extends Node { @@ -6780,6 +6778,7 @@ declare namespace ts { isUndefinedSymbol(symbol: Symbol): boolean; isArgumentsSymbol(symbol: Symbol): boolean; isUnknownSymbol(symbol: Symbol): boolean; + getMergedSymbol(symbol: Symbol): Symbol; getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): string | number | undefined; isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName | ImportTypeNode, propertyName: string): boolean; /** Follow all aliases to get the original symbol. */ @@ -8388,6 +8387,18 @@ declare namespace ts { createExportDefault(expression: Expression): ExportAssignment; createExternalModuleExport(exportName: Identifier): ExportDeclaration; restoreOuterExpressions(outerExpression: Expression | undefined, innerExpression: Expression, kinds?: OuterExpressionKinds): Expression; + /** + * Updates a node that may contain modifiers, replacing only the modifiers of the node. + */ + replaceModifiers(node: T, modifiers: readonly Modifier[] | ModifierFlags | undefined): T; + /** + * Updates a node that may contain decorators or modifiers, replacing only the decorators and modifiers of the node. + */ + replaceDecoratorsAndModifiers(node: T, modifiers: readonly ModifierLike[] | undefined): T; + /** + * Updates a node that contains a property name, replacing only the name of the node. + */ + replacePropertyName(node: T, name: T["name"]): T; } interface CoreTransformationContext { readonly factory: NodeFactory; @@ -8744,6 +8755,7 @@ declare namespace ts { readonly interactiveInlayHints?: boolean; readonly allowRenameOfImportPath?: boolean; readonly autoImportFileExcludePatterns?: string[]; + readonly preferTypeOnlyAutoImports?: boolean; readonly organizeImportsIgnoreCase?: "auto" | boolean; readonly organizeImportsCollation?: "ordinal" | "unicode"; readonly organizeImportsLocale?: string; @@ -9829,6 +9841,19 @@ declare namespace ts { function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined; function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[]; function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer; + enum ProgramUpdateLevel { + /** Program is updated with same root file names and options */ + Update = 0, + /** Loads program after updating root file names from the disk */ + RootNamesAndUpdate = 1, + /** + * Loads program completely, including: + * - re-reading contents of config file from disk + * - calculating root file names for the program + * - Updating the program + */ + Full = 2, + } function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined; function resolveTripleslashReference(moduleName: string, containingFile: string): string; function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost; diff --git a/tests/baselines/reference/argumentsReferenceInFunction1_Js.errors.txt b/tests/baselines/reference/argumentsReferenceInFunction1_Js.errors.txt index 507a3f56392..9d55aafa33e 100644 --- a/tests/baselines/reference/argumentsReferenceInFunction1_Js.errors.txt +++ b/tests/baselines/reference/argumentsReferenceInFunction1_Js.errors.txt @@ -1,5 +1,5 @@ index.js(1,25): error TS7006: Parameter 'f' implicitly has an 'any' type. -index.js(13,29): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[any?, ...any[]]'. +index.js(13,29): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[f?: any, ...any[]]'. ==== index.js (2 errors) ==== @@ -19,6 +19,6 @@ index.js(13,29): error TS2345: Argument of type 'IArguments' is not assignable t const debuglog = function() { return format.apply(null, arguments); ~~~~~~~~~ -!!! error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[any?, ...any[]]'. +!!! error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[f?: any, ...any[]]'. }; \ No newline at end of file diff --git a/tests/baselines/reference/asyncImportNestedYield.js b/tests/baselines/reference/asyncImportNestedYield.js index 92d8e7b9084..f7e42c3e3df 100644 --- a/tests/baselines/reference/asyncImportNestedYield.js +++ b/tests/baselines/reference/asyncImportNestedYield.js @@ -37,8 +37,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/autoImportAllowTsExtensions1.baseline.md b/tests/baselines/reference/autoImportAllowTsExtensions1.baseline.md index 0e3c27ce7e9..8818deac53b 100644 --- a/tests/baselines/reference/autoImportAllowTsExtensions1.baseline.md +++ b/tests/baselines/reference/autoImportAllowTsExtensions1.baseline.md @@ -1,3 +1,4 @@ +// === Auto Imports === ```ts // @Filename: /main.ts /*|*/ diff --git a/tests/baselines/reference/autoImportAllowTsExtensions2.baseline.md b/tests/baselines/reference/autoImportAllowTsExtensions2.baseline.md index 1117148b187..688df04a26e 100644 --- a/tests/baselines/reference/autoImportAllowTsExtensions2.baseline.md +++ b/tests/baselines/reference/autoImportAllowTsExtensions2.baseline.md @@ -1,3 +1,4 @@ +// === Auto Imports === ```ts // @Filename: /main.ts /*|*/ diff --git a/tests/baselines/reference/autoImportAllowTsExtensions3.baseline.md b/tests/baselines/reference/autoImportAllowTsExtensions3.baseline.md index 551ff404a6a..941244d4d5a 100644 --- a/tests/baselines/reference/autoImportAllowTsExtensions3.baseline.md +++ b/tests/baselines/reference/autoImportAllowTsExtensions3.baseline.md @@ -1,3 +1,4 @@ +// === Auto Imports === ```ts // @Filename: /main.ts import { Component } from "./Component.tsx"; diff --git a/tests/baselines/reference/autoImportAllowTsExtensions4.baseline.md b/tests/baselines/reference/autoImportAllowTsExtensions4.baseline.md index cdae3c5eaa4..9c646c8f418 100644 --- a/tests/baselines/reference/autoImportAllowTsExtensions4.baseline.md +++ b/tests/baselines/reference/autoImportAllowTsExtensions4.baseline.md @@ -1,3 +1,4 @@ +// === Auto Imports === ```ts // @Filename: /main.ts import { Component } from "./local.js"; diff --git a/tests/baselines/reference/autoImportVerbatimCJS1.baseline.md b/tests/baselines/reference/autoImportVerbatimCJS1.baseline.md index a1058a67d59..ceeb93b4b40 100644 --- a/tests/baselines/reference/autoImportVerbatimCJS1.baseline.md +++ b/tests/baselines/reference/autoImportVerbatimCJS1.baseline.md @@ -1,3 +1,4 @@ +// === Auto Imports === ```ts // @Filename: /a.ts /*|*/ diff --git a/tests/baselines/reference/avoidCycleWithVoidExpressionReturnedFromArrow.symbols b/tests/baselines/reference/avoidCycleWithVoidExpressionReturnedFromArrow.symbols new file mode 100644 index 00000000000..905f77f423b --- /dev/null +++ b/tests/baselines/reference/avoidCycleWithVoidExpressionReturnedFromArrow.symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/avoidCycleWithVoidExpressionReturnedFromArrow.ts] //// + +=== avoidCycleWithVoidExpressionReturnedFromArrow.ts === +type HowlErrorCallback = (soundId: number, error: unknown) => void; +>HowlErrorCallback : Symbol(HowlErrorCallback, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 0, 0)) +>soundId : Symbol(soundId, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 0, 26)) +>error : Symbol(error, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 0, 42)) + +interface HowlOptions { +>HowlOptions : Symbol(HowlOptions, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 0, 67)) + + onplayerror?: HowlErrorCallback | undefined; +>onplayerror : Symbol(HowlOptions.onplayerror, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 2, 23)) +>HowlErrorCallback : Symbol(HowlErrorCallback, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 0, 0)) +} + +class Howl { +>Howl : Symbol(Howl, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 4, 1)) + + constructor(public readonly options: HowlOptions) {} +>options : Symbol(Howl.options, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 7, 14)) +>HowlOptions : Symbol(HowlOptions, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 0, 67)) + + once(name: "unlock", fn: () => void) { +>once : Symbol(Howl.once, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 7, 54)) +>name : Symbol(name, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 8, 7)) +>fn : Symbol(fn, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 8, 22)) + + console.log(name, fn); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>name : Symbol(name, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 8, 7)) +>fn : Symbol(fn, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 8, 22)) + } +} + +const instance = new Howl({ +>instance : Symbol(instance, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 13, 5)) +>Howl : Symbol(Howl, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 4, 1)) + + onplayerror: () => void instance.once("unlock", () => {}), +>onplayerror : Symbol(onplayerror, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 13, 27)) +>instance.once : Symbol(Howl.once, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 7, 54)) +>instance : Symbol(instance, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 13, 5)) +>once : Symbol(Howl.once, Decl(avoidCycleWithVoidExpressionReturnedFromArrow.ts, 7, 54)) + +}); + diff --git a/tests/baselines/reference/avoidCycleWithVoidExpressionReturnedFromArrow.types b/tests/baselines/reference/avoidCycleWithVoidExpressionReturnedFromArrow.types new file mode 100644 index 00000000000..95e068aa06b --- /dev/null +++ b/tests/baselines/reference/avoidCycleWithVoidExpressionReturnedFromArrow.types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/avoidCycleWithVoidExpressionReturnedFromArrow.ts] //// + +=== avoidCycleWithVoidExpressionReturnedFromArrow.ts === +type HowlErrorCallback = (soundId: number, error: unknown) => void; +>HowlErrorCallback : (soundId: number, error: unknown) => void +>soundId : number +>error : unknown + +interface HowlOptions { + onplayerror?: HowlErrorCallback | undefined; +>onplayerror : HowlErrorCallback | undefined +} + +class Howl { +>Howl : Howl + + constructor(public readonly options: HowlOptions) {} +>options : HowlOptions + + once(name: "unlock", fn: () => void) { +>once : (name: "unlock", fn: () => void) => void +>name : "unlock" +>fn : () => void + + console.log(name, fn); +>console.log(name, fn) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>name : "unlock" +>fn : () => void + } +} + +const instance = new Howl({ +>instance : Howl +>new Howl({ onplayerror: () => void instance.once("unlock", () => {}),}) : Howl +>Howl : typeof Howl +>{ onplayerror: () => void instance.once("unlock", () => {}),} : { onplayerror: () => undefined; } + + onplayerror: () => void instance.once("unlock", () => {}), +>onplayerror : () => undefined +>() => void instance.once("unlock", () => {}) : () => undefined +>void instance.once("unlock", () => {}) : undefined +>instance.once("unlock", () => {}) : void +>instance.once : (name: "unlock", fn: () => void) => void +>instance : Howl +>once : (name: "unlock", fn: () => void) => void +>"unlock" : "unlock" +>() => {} : () => void + +}); + diff --git a/tests/baselines/reference/awaitUsingDeclarations.1(target=es2015).js b/tests/baselines/reference/awaitUsingDeclarations.1(target=es2015).js index 704d04dd43c..17ddd6f1ad9 100644 --- a/tests/baselines/reference/awaitUsingDeclarations.1(target=es2015).js +++ b/tests/baselines/reference/awaitUsingDeclarations.1(target=es2015).js @@ -158,8 +158,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/awaitUsingDeclarations.1(target=es2017).js b/tests/baselines/reference/awaitUsingDeclarations.1(target=es2017).js index 90b68228db0..e3c7a835860 100644 --- a/tests/baselines/reference/awaitUsingDeclarations.1(target=es2017).js +++ b/tests/baselines/reference/awaitUsingDeclarations.1(target=es2017).js @@ -149,8 +149,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/awaitUsingDeclarations.1(target=es5).js b/tests/baselines/reference/awaitUsingDeclarations.1(target=es5).js index 296356438e9..833b0e75ef2 100644 --- a/tests/baselines/reference/awaitUsingDeclarations.1(target=es5).js +++ b/tests/baselines/reference/awaitUsingDeclarations.1(target=es5).js @@ -185,8 +185,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js index 0c1bca18f01..fa9bd38069f 100644 --- a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js @@ -198,8 +198,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/bpSpan_arrayLiteralExpressions.baseline b/tests/baselines/reference/bpSpan_arrayLiteralExpressions.baseline index aa39897be0f..1fe75324156 100644 --- a/tests/baselines/reference/bpSpan_arrayLiteralExpressions.baseline +++ b/tests/baselines/reference/bpSpan_arrayLiteralExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var a = [10, 20, 30]; diff --git a/tests/baselines/reference/bpSpan_binaryExpressions.baseline b/tests/baselines/reference/bpSpan_binaryExpressions.baseline index 93f6b97005b..98c926937cc 100644 --- a/tests/baselines/reference/bpSpan_binaryExpressions.baseline +++ b/tests/baselines/reference/bpSpan_binaryExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var x = 10; diff --git a/tests/baselines/reference/bpSpan_breakOrContinue.baseline b/tests/baselines/reference/bpSpan_breakOrContinue.baseline index 617589b9047..710ea1012ff 100644 --- a/tests/baselines/reference/bpSpan_breakOrContinue.baseline +++ b/tests/baselines/reference/bpSpan_breakOrContinue.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >while (true) { diff --git a/tests/baselines/reference/bpSpan_class.baseline b/tests/baselines/reference/bpSpan_class.baseline index 3370762f72b..330a4d58974 100644 --- a/tests/baselines/reference/bpSpan_class.baseline +++ b/tests/baselines/reference/bpSpan_class.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >class Greeter { diff --git a/tests/baselines/reference/bpSpan_classAmbient.baseline b/tests/baselines/reference/bpSpan_classAmbient.baseline index b168c5416c5..6c3ada70499 100644 --- a/tests/baselines/reference/bpSpan_classAmbient.baseline +++ b/tests/baselines/reference/bpSpan_classAmbient.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare class Greeter { diff --git a/tests/baselines/reference/bpSpan_classes.baseline b/tests/baselines/reference/bpSpan_classes.baseline index ecba5c8706a..eca706e19e7 100644 --- a/tests/baselines/reference/bpSpan_classes.baseline +++ b/tests/baselines/reference/bpSpan_classes.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >module Foo.Bar { diff --git a/tests/baselines/reference/bpSpan_conditionalExpressions.baseline b/tests/baselines/reference/bpSpan_conditionalExpressions.baseline index 17432ee5439..c015157e01a 100644 --- a/tests/baselines/reference/bpSpan_conditionalExpressions.baseline +++ b/tests/baselines/reference/bpSpan_conditionalExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var x = 10; diff --git a/tests/baselines/reference/bpSpan_const.baseline b/tests/baselines/reference/bpSpan_const.baseline index 176fb76be86..d721615e8c9 100644 --- a/tests/baselines/reference/bpSpan_const.baseline +++ b/tests/baselines/reference/bpSpan_const.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >const c1 = false; diff --git a/tests/baselines/reference/bpSpan_debugger.baseline b/tests/baselines/reference/bpSpan_debugger.baseline index 700ef7a56a9..c8ba757aebf 100644 --- a/tests/baselines/reference/bpSpan_debugger.baseline +++ b/tests/baselines/reference/bpSpan_debugger.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >debugger; ~~~~~~~~~ => Pos: (0 to 8) SpanInfo: {"start":0,"length":8} diff --git a/tests/baselines/reference/bpSpan_decorators.baseline b/tests/baselines/reference/bpSpan_decorators.baseline index f6bb700e098..56163cb4eb9 100644 --- a/tests/baselines/reference/bpSpan_decorators.baseline +++ b/tests/baselines/reference/bpSpan_decorators.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare function ClassDecorator1(target: Function): void; diff --git a/tests/baselines/reference/bpSpan_do.baseline b/tests/baselines/reference/bpSpan_do.baseline index 602ec5b16c7..32a449b6903 100644 --- a/tests/baselines/reference/bpSpan_do.baseline +++ b/tests/baselines/reference/bpSpan_do.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var i = 0; diff --git a/tests/baselines/reference/bpSpan_enums.baseline b/tests/baselines/reference/bpSpan_enums.baseline index 1dd77f8d417..9d0f123d00c 100644 --- a/tests/baselines/reference/bpSpan_enums.baseline +++ b/tests/baselines/reference/bpSpan_enums.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >enum e { diff --git a/tests/baselines/reference/bpSpan_exportAssignment.baseline b/tests/baselines/reference/bpSpan_exportAssignment.baseline index a9d635a929c..5880cdfbec2 100644 --- a/tests/baselines/reference/bpSpan_exportAssignment.baseline +++ b/tests/baselines/reference/bpSpan_exportAssignment.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >class a { diff --git a/tests/baselines/reference/bpSpan_exports.baseline b/tests/baselines/reference/bpSpan_exports.baseline index 1b09fb75a2f..07f31a3f07f 100644 --- a/tests/baselines/reference/bpSpan_exports.baseline +++ b/tests/baselines/reference/bpSpan_exports.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >export * from "a"; diff --git a/tests/baselines/reference/bpSpan_for.baseline b/tests/baselines/reference/bpSpan_for.baseline index 46214f6e3b1..efda94cfd3f 100644 --- a/tests/baselines/reference/bpSpan_for.baseline +++ b/tests/baselines/reference/bpSpan_for.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >for (var i = 0; i < 10; i++) { diff --git a/tests/baselines/reference/bpSpan_forIn.baseline b/tests/baselines/reference/bpSpan_forIn.baseline index 1c46a83e3b4..22460e26efa 100644 --- a/tests/baselines/reference/bpSpan_forIn.baseline +++ b/tests/baselines/reference/bpSpan_forIn.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >for (var x in String) { diff --git a/tests/baselines/reference/bpSpan_functionExpressions.baseline b/tests/baselines/reference/bpSpan_functionExpressions.baseline index f75bde15f07..f5fad4a3b8e 100644 --- a/tests/baselines/reference/bpSpan_functionExpressions.baseline +++ b/tests/baselines/reference/bpSpan_functionExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var greetings = 0; diff --git a/tests/baselines/reference/bpSpan_functions.baseline b/tests/baselines/reference/bpSpan_functions.baseline index 535f177c0f6..468cbfabed1 100644 --- a/tests/baselines/reference/bpSpan_functions.baseline +++ b/tests/baselines/reference/bpSpan_functions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var greetings = 0; diff --git a/tests/baselines/reference/bpSpan_ifElse.baseline b/tests/baselines/reference/bpSpan_ifElse.baseline index fc9e5f6758a..17a644d4631 100644 --- a/tests/baselines/reference/bpSpan_ifElse.baseline +++ b/tests/baselines/reference/bpSpan_ifElse.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var i = 10; diff --git a/tests/baselines/reference/bpSpan_import.baseline b/tests/baselines/reference/bpSpan_import.baseline index af0f959c57c..cfede392460 100644 --- a/tests/baselines/reference/bpSpan_import.baseline +++ b/tests/baselines/reference/bpSpan_import.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >module m { diff --git a/tests/baselines/reference/bpSpan_imports.baseline b/tests/baselines/reference/bpSpan_imports.baseline index c59f9faf904..97979980f97 100644 --- a/tests/baselines/reference/bpSpan_imports.baseline +++ b/tests/baselines/reference/bpSpan_imports.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >import * as NS from "a"; diff --git a/tests/baselines/reference/bpSpan_inBlankLine.baseline b/tests/baselines/reference/bpSpan_inBlankLine.baseline index 40fe26a16a6..cdafbbaccf5 100644 --- a/tests/baselines/reference/bpSpan_inBlankLine.baseline +++ b/tests/baselines/reference/bpSpan_inBlankLine.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var x = 10; diff --git a/tests/baselines/reference/bpSpan_inComments.baseline b/tests/baselines/reference/bpSpan_inComments.baseline index 5c167293513..a137e36069b 100644 --- a/tests/baselines/reference/bpSpan_inComments.baseline +++ b/tests/baselines/reference/bpSpan_inComments.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >/*comment here*/ var x = 10; /*comment here*/ diff --git a/tests/baselines/reference/bpSpan_interface.baseline b/tests/baselines/reference/bpSpan_interface.baseline index 14e7921757d..d6f95b94008 100644 --- a/tests/baselines/reference/bpSpan_interface.baseline +++ b/tests/baselines/reference/bpSpan_interface.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >interface I { diff --git a/tests/baselines/reference/bpSpan_labeled.baseline b/tests/baselines/reference/bpSpan_labeled.baseline index 8c2d23adedb..7ab734052db 100644 --- a/tests/baselines/reference/bpSpan_labeled.baseline +++ b/tests/baselines/reference/bpSpan_labeled.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >x: diff --git a/tests/baselines/reference/bpSpan_let.baseline b/tests/baselines/reference/bpSpan_let.baseline index d9a3c2f8547..12a58c2896b 100644 --- a/tests/baselines/reference/bpSpan_let.baseline +++ b/tests/baselines/reference/bpSpan_let.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >let l1; diff --git a/tests/baselines/reference/bpSpan_module.baseline b/tests/baselines/reference/bpSpan_module.baseline index e544fc4c432..b336474a58c 100644 --- a/tests/baselines/reference/bpSpan_module.baseline +++ b/tests/baselines/reference/bpSpan_module.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >module m2 { diff --git a/tests/baselines/reference/bpSpan_moduleAmbient.baseline b/tests/baselines/reference/bpSpan_moduleAmbient.baseline index 8ea705dc09f..3c7ffa50a62 100644 --- a/tests/baselines/reference/bpSpan_moduleAmbient.baseline +++ b/tests/baselines/reference/bpSpan_moduleAmbient.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare module Bar { diff --git a/tests/baselines/reference/bpSpan_moduleEmpty.baseline b/tests/baselines/reference/bpSpan_moduleEmpty.baseline index 3139d4603d2..0c8e39086e9 100644 --- a/tests/baselines/reference/bpSpan_moduleEmpty.baseline +++ b/tests/baselines/reference/bpSpan_moduleEmpty.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >module Bar { diff --git a/tests/baselines/reference/bpSpan_objectLiteralExpressions.baseline b/tests/baselines/reference/bpSpan_objectLiteralExpressions.baseline index 0d864a9b1bd..ca7ee528961 100644 --- a/tests/baselines/reference/bpSpan_objectLiteralExpressions.baseline +++ b/tests/baselines/reference/bpSpan_objectLiteralExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var x = { diff --git a/tests/baselines/reference/bpSpan_parenCallOrNewExpressions.baseline b/tests/baselines/reference/bpSpan_parenCallOrNewExpressions.baseline index bcc2326c1f3..0ef51091e1d 100644 --- a/tests/baselines/reference/bpSpan_parenCallOrNewExpressions.baseline +++ b/tests/baselines/reference/bpSpan_parenCallOrNewExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >function foo(a: number) { diff --git a/tests/baselines/reference/bpSpan_stmts.baseline b/tests/baselines/reference/bpSpan_stmts.baseline index b818c9c9e30..29757662f9c 100644 --- a/tests/baselines/reference/bpSpan_stmts.baseline +++ b/tests/baselines/reference/bpSpan_stmts.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >function f() { diff --git a/tests/baselines/reference/bpSpan_switch.baseline b/tests/baselines/reference/bpSpan_switch.baseline index 7fde6067ed0..98e498b12ec 100644 --- a/tests/baselines/reference/bpSpan_switch.baseline +++ b/tests/baselines/reference/bpSpan_switch.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var x = 10; diff --git a/tests/baselines/reference/bpSpan_tryCatchFinally.baseline b/tests/baselines/reference/bpSpan_tryCatchFinally.baseline index c35683b6e53..b493d58297a 100644 --- a/tests/baselines/reference/bpSpan_tryCatchFinally.baseline +++ b/tests/baselines/reference/bpSpan_tryCatchFinally.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var x = 10; diff --git a/tests/baselines/reference/bpSpan_typeAssertionExpressions.baseline b/tests/baselines/reference/bpSpan_typeAssertionExpressions.baseline index 9a15f782081..64bf0da6809 100644 --- a/tests/baselines/reference/bpSpan_typeAssertionExpressions.baseline +++ b/tests/baselines/reference/bpSpan_typeAssertionExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >class Greeter { diff --git a/tests/baselines/reference/bpSpan_typealias.baseline b/tests/baselines/reference/bpSpan_typealias.baseline index 80e654ad2f3..0ae9af1578d 100644 --- a/tests/baselines/reference/bpSpan_typealias.baseline +++ b/tests/baselines/reference/bpSpan_typealias.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >module m2 { diff --git a/tests/baselines/reference/bpSpan_unaryExpressions.baseline b/tests/baselines/reference/bpSpan_unaryExpressions.baseline index e0433bf5fad..7b20a54d37c 100644 --- a/tests/baselines/reference/bpSpan_unaryExpressions.baseline +++ b/tests/baselines/reference/bpSpan_unaryExpressions.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var x = 10; diff --git a/tests/baselines/reference/bpSpan_variables.baseline b/tests/baselines/reference/bpSpan_variables.baseline index 545118daf8d..065046250db 100644 --- a/tests/baselines/reference/bpSpan_variables.baseline +++ b/tests/baselines/reference/bpSpan_variables.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var a = 10; diff --git a/tests/baselines/reference/bpSpan_while.baseline b/tests/baselines/reference/bpSpan_while.baseline index 464a736447a..faf49603848 100644 --- a/tests/baselines/reference/bpSpan_while.baseline +++ b/tests/baselines/reference/bpSpan_while.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var a = 10; diff --git a/tests/baselines/reference/bpSpan_with.baseline b/tests/baselines/reference/bpSpan_with.baseline index d4a00e7a3aa..26f8c1a0188 100644 --- a/tests/baselines/reference/bpSpan_with.baseline +++ b/tests/baselines/reference/bpSpan_with.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >var obj: string; diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForArrayBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForArrayBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForArrayBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForArrayBindingPattern.baseline index 923e0cced09..7287804c2d1 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForArrayBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForArrayBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForArrayBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForArrayBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForArrayBindingPatternDefaultValues.baseline index 56894ce9a9a..5f60e468e60 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForArrayBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForObjectBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForObjectBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForObjectBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForObjectBindingPattern.baseline index c318d875ddf..ff989991c3e 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForObjectBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForObjectBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForObjectBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForObjectBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForObjectBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForObjectBindingPatternDefaultValues.baseline index daf4f8a0d84..dda8b084588 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForObjectBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForObjectBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfArrayBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfArrayBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForOfArrayBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfArrayBindingPattern.baseline index 16f6039031e..6a2c2b9b532 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfArrayBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfArrayBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfArrayBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForOfArrayBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfArrayBindingPatternDefaultValues.baseline index c7e2f005833..b371cd4c440 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfArrayBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfObjectBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfObjectBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForOfObjectBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfObjectBindingPattern.baseline index b303f33026a..cda225dacfb 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfObjectBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfObjectBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfObjectBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfObjectBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentForOfObjectBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfObjectBindingPatternDefaultValues.baseline index 18a0ebdca34..5b02f499e81 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentForOfObjectBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentForOfObjectBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentStatementArrayBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentStatementArrayBindingPattern.baseline index 017f4859b1b..2b23b14a8bb 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentStatementArrayBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringAssignmentStatementArrayBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringAssignmentStatementArrayBindingPatternDefaultValues.baseline index 17b60f1861a..99355c6ab0f 100644 --- a/tests/baselines/reference/bpSpanDestructuringAssignmentStatementArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringAssignmentStatementArrayBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForArrayBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringForArrayBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForArrayBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForArrayBindingPattern.baseline index 9a65a6f2e95..5ac3a935e22 100644 --- a/tests/baselines/reference/bpSpanDestructuringForArrayBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForArrayBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringForArrayBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForArrayBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForArrayBindingPatternDefaultValues.baseline index 78fc1b42b2f..2074514de52 100644 --- a/tests/baselines/reference/bpSpanDestructuringForArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForArrayBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForObjectBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringForObjectBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForObjectBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForObjectBindingPattern.baseline index 718799a8334..88bd92a6877 100644 --- a/tests/baselines/reference/bpSpanDestructuringForObjectBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForObjectBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForObjectBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringForObjectBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForObjectBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForObjectBindingPatternDefaultValues.baseline index 54d9cbc0471..0549a1bb494 100644 --- a/tests/baselines/reference/bpSpanDestructuringForObjectBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForObjectBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringForOfArrayBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForOfArrayBindingPattern.baseline index 2d0cbda5d8d..cc2fc8eb563 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForOfArrayBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringForOfArrayBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForOfArrayBindingPatternDefaultValues.baseline index 5dfc730003f..f6c9757df09 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForOfArrayBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringForOfObjectBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForOfObjectBindingPattern.baseline index 14e0d2a2d27..546c826ca9d 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForOfObjectBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringForOfObjectBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringForOfObjectBindingPatternDefaultValues.baseline index d2169558daf..56133c43d55 100644 --- a/tests/baselines/reference/bpSpanDestructuringForOfObjectBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringForOfObjectBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPattern.baseline index 03f0ee87356..82e926e8ea5 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPattern2.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPattern2.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPattern2.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPattern2.baseline index 8fbd3a9ffb2..b55f8e9acff 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPattern2.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPattern2.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPatternDefaultValues.baseline index d071692b0f2..3a7690e65db 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPatternDefaultValues2.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPatternDefaultValues2.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPatternDefaultValues2.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPatternDefaultValues2.baseline index 895c83a4c8c..70876541ee0 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterArrayBindingPatternDefaultValues2.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterArrayBindingPatternDefaultValues2.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterNestedObjectBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterNestedObjectBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterNestedObjectBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterNestedObjectBindingPattern.baseline index be773df4530..63ce24e7a19 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterNestedObjectBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterNestedObjectBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterNestedObjectBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterNestedObjectBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterNestedObjectBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterNestedObjectBindingPatternDefaultValues.baseline index c06c9b56fe5..197aacdd091 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterNestedObjectBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterNestedObjectBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterObjectBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterObjectBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterObjectBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterObjectBindingPattern.baseline index 21f11f320ab..634f018f6d9 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterObjectBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterObjectBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >interface Robot { diff --git a/tests/baselines/reference/bpSpanDestructuringParameterObjectBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringParameterObjectBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringParameterObjectBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringParameterObjectBindingPatternDefaultValues.baseline index 6cb9b39c0d3..1a5fb127df6 100644 --- a/tests/baselines/reference/bpSpanDestructuringParameterObjectBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringParameterObjectBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >interface Robot { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatement.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatement.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatement.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatement.baseline index 3939c66c56e..b464e99d565 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatement.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatement.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >interface Robot { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatement1.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatement1.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatement1.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatement1.baseline index ce1edbb0ee9..3e43f2be917 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatement1.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatement1.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >interface Robot { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPattern.baseline index 0639ca49c9d..c5d52f0cdf7 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPattern2.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPattern2.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPattern2.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPattern2.baseline index e6170c44042..f43078caccd 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPattern2.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPattern2.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPatternDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPatternDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.baseline index e3b43164563..4d683f55c0d 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPatternDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPatternDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPatternDefaultValues2.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPatternDefaultValues2.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.baseline index b55c6c765f2..e1a3ef51006 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatementArrayBindingPatternDefaultValues2.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementArrayBindingPatternDefaultValues2.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatementDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatementDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatementDefaultValues.baseline index 60ee5897d48..53484ed79a8 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatementDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >interface Robot { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatementNestedObjectBindingPattern.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementNestedObjectBindingPattern.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatementNestedObjectBindingPattern.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatementNestedObjectBindingPattern.baseline index 66f814ada9c..1848a90dffe 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatementNestedObjectBindingPattern.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementNestedObjectBindingPattern.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/bpSpanDestructuringVariableStatementNestedObjectBindingPatternWithDefaultValues.baseline b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementNestedObjectBindingPatternWithDefaultValues.baseline similarity index 99% rename from tests/baselines/reference/bpSpanDestructuringVariableStatementNestedObjectBindingPatternWithDefaultValues.baseline rename to tests/baselines/reference/breakpointValidationDestructuringVariableStatementNestedObjectBindingPatternWithDefaultValues.baseline index 75b37a0231e..22320f52066 100644 --- a/tests/baselines/reference/bpSpanDestructuringVariableStatementNestedObjectBindingPatternWithDefaultValues.baseline +++ b/tests/baselines/reference/breakpointValidationDestructuringVariableStatementNestedObjectBindingPatternWithDefaultValues.baseline @@ -1,3 +1,4 @@ +// === breakpoints === 1 >declare var console: { diff --git a/tests/baselines/reference/callHierarchyAccessor.callHierarchy.txt b/tests/baselines/reference/callHierarchyAccessor.callHierarchy.txt index cab6d39285a..e5267604374 100644 --- a/tests/baselines/reference/callHierarchyAccessor.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyAccessor.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: getter ├ containerName: C diff --git a/tests/baselines/reference/callHierarchyCallExpressionByConstNamedFunctionExpression.callHierarchy.txt b/tests/baselines/reference/callHierarchyCallExpressionByConstNamedFunctionExpression.callHierarchy.txt index 470cec600f3..90a55cabb66 100644 --- a/tests/baselines/reference/callHierarchyCallExpressionByConstNamedFunctionExpression.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyCallExpressionByConstNamedFunctionExpression.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyCallExpressionByConstNamedFunctionExpression.ts diff --git a/tests/baselines/reference/callHierarchyClass.callHierarchy.txt b/tests/baselines/reference/callHierarchyClass.callHierarchy.txt index e56084002c7..8887e08dc58 100644 --- a/tests/baselines/reference/callHierarchyClass.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyClass.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyClass.ts diff --git a/tests/baselines/reference/callHierarchyClassStaticBlock.callHierarchy.txt b/tests/baselines/reference/callHierarchyClassStaticBlock.callHierarchy.txt index fbf3658c982..57f22f3e73a 100644 --- a/tests/baselines/reference/callHierarchyClassStaticBlock.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyClassStaticBlock.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyClassStaticBlock.ts diff --git a/tests/baselines/reference/callHierarchyClassStaticBlock2.callHierarchy.txt b/tests/baselines/reference/callHierarchyClassStaticBlock2.callHierarchy.txt index beaf564c2d5..9d100f53c91 100644 --- a/tests/baselines/reference/callHierarchyClassStaticBlock2.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyClassStaticBlock2.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: static {} ├ kind: constructor ├ file: /tests/cases/fourslash/callHierarchyClassStaticBlock2.ts diff --git a/tests/baselines/reference/callHierarchyConstNamedArrowFunction.callHierarchy.txt b/tests/baselines/reference/callHierarchyConstNamedArrowFunction.callHierarchy.txt index bcc7ab9ac8a..f012a56a08c 100644 --- a/tests/baselines/reference/callHierarchyConstNamedArrowFunction.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyConstNamedArrowFunction.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyConstNamedArrowFunction.ts diff --git a/tests/baselines/reference/callHierarchyConstNamedClassExpression.callHierarchy.txt b/tests/baselines/reference/callHierarchyConstNamedClassExpression.callHierarchy.txt index ed4a25e1641..7549fc3faec 100644 --- a/tests/baselines/reference/callHierarchyConstNamedClassExpression.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyConstNamedClassExpression.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: Bar ├ kind: class ├ file: /tests/cases/fourslash/callHierarchyConstNamedClassExpression.ts diff --git a/tests/baselines/reference/callHierarchyConstNamedFunctionExpression.callHierarchy.txt b/tests/baselines/reference/callHierarchyConstNamedFunctionExpression.callHierarchy.txt index 6c92745d50d..733afea9090 100644 --- a/tests/baselines/reference/callHierarchyConstNamedFunctionExpression.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyConstNamedFunctionExpression.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyConstNamedFunctionExpression.ts diff --git a/tests/baselines/reference/callHierarchyContainerName.callHierarchy.txt b/tests/baselines/reference/callHierarchyContainerName.callHierarchy.txt index 7b9c24c8006..1402de01964 100644 --- a/tests/baselines/reference/callHierarchyContainerName.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyContainerName.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: f ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyContainerName.ts diff --git a/tests/baselines/reference/callHierarchyContainerNameServer.callHierarchy.txt b/tests/baselines/reference/callHierarchyContainerNameServer.callHierarchy.txt index 583fa14f605..f946f64b979 100644 --- a/tests/baselines/reference/callHierarchyContainerNameServer.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyContainerNameServer.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: f ├ kind: function ├ file: /tests/cases/fourslash/server/callHierarchyContainerNameServer.ts diff --git a/tests/baselines/reference/callHierarchyCrossFile.callHierarchy.txt b/tests/baselines/reference/callHierarchyCrossFile.callHierarchy.txt index e301fbdf8b1..612cc1229c0 100644 --- a/tests/baselines/reference/callHierarchyCrossFile.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyCrossFile.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: createModelReference ├ kind: function ├ file: /a.ts diff --git a/tests/baselines/reference/callHierarchyDecorator.callHierarchy.txt b/tests/baselines/reference/callHierarchyDecorator.callHierarchy.txt index 698c9ab313b..ef8d90bfe79 100644 --- a/tests/baselines/reference/callHierarchyDecorator.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyDecorator.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyDecorator.ts diff --git a/tests/baselines/reference/callHierarchyExportDefaultClass.callHierarchy.txt b/tests/baselines/reference/callHierarchyExportDefaultClass.callHierarchy.txt index 9b1e7b9604c..910f93da26a 100644 --- a/tests/baselines/reference/callHierarchyExportDefaultClass.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyExportDefaultClass.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: default ├ kind: class ├ file: /tests/cases/fourslash/other.ts diff --git a/tests/baselines/reference/callHierarchyExportDefaultFunction.callHierarchy.txt b/tests/baselines/reference/callHierarchyExportDefaultFunction.callHierarchy.txt index 919b219e6e8..f3a82a187ed 100644 --- a/tests/baselines/reference/callHierarchyExportDefaultFunction.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyExportDefaultFunction.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: default ├ kind: function ├ file: /tests/cases/fourslash/other.ts diff --git a/tests/baselines/reference/callHierarchyExportEqualsFunction.callHierarchy.txt b/tests/baselines/reference/callHierarchyExportEqualsFunction.callHierarchy.txt index 427fc13ab1e..2068e9de5fa 100644 --- a/tests/baselines/reference/callHierarchyExportEqualsFunction.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyExportEqualsFunction.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: /tests/cases/fourslash/other.ts ├ kind: module ├ file: /tests/cases/fourslash/other.ts diff --git a/tests/baselines/reference/callHierarchyFile.callHierarchy.txt b/tests/baselines/reference/callHierarchyFile.callHierarchy.txt index acb10464892..db232fc2612 100644 --- a/tests/baselines/reference/callHierarchyFile.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyFile.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: foo ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyFile.ts diff --git a/tests/baselines/reference/callHierarchyFunction.callHierarchy.txt b/tests/baselines/reference/callHierarchyFunction.callHierarchy.txt index 47573780188..9a2659e679e 100644 --- a/tests/baselines/reference/callHierarchyFunction.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyFunction.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyFunction.ts diff --git a/tests/baselines/reference/callHierarchyFunctionAmbiguity.1.callHierarchy.txt b/tests/baselines/reference/callHierarchyFunctionAmbiguity.1.callHierarchy.txt index 438218d45bf..647f37c413e 100644 --- a/tests/baselines/reference/callHierarchyFunctionAmbiguity.1.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyFunctionAmbiguity.1.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: foo ├ kind: function ├ file: /tests/cases/fourslash/a.d.ts diff --git a/tests/baselines/reference/callHierarchyFunctionAmbiguity.2.callHierarchy.txt b/tests/baselines/reference/callHierarchyFunctionAmbiguity.2.callHierarchy.txt index 438218d45bf..647f37c413e 100644 --- a/tests/baselines/reference/callHierarchyFunctionAmbiguity.2.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyFunctionAmbiguity.2.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: foo ├ kind: function ├ file: /tests/cases/fourslash/a.d.ts diff --git a/tests/baselines/reference/callHierarchyFunctionAmbiguity.3.callHierarchy.txt b/tests/baselines/reference/callHierarchyFunctionAmbiguity.3.callHierarchy.txt index 438218d45bf..647f37c413e 100644 --- a/tests/baselines/reference/callHierarchyFunctionAmbiguity.3.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyFunctionAmbiguity.3.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: foo ├ kind: function ├ file: /tests/cases/fourslash/a.d.ts diff --git a/tests/baselines/reference/callHierarchyFunctionAmbiguity.4.callHierarchy.txt b/tests/baselines/reference/callHierarchyFunctionAmbiguity.4.callHierarchy.txt index 438218d45bf..647f37c413e 100644 --- a/tests/baselines/reference/callHierarchyFunctionAmbiguity.4.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyFunctionAmbiguity.4.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: foo ├ kind: function ├ file: /tests/cases/fourslash/a.d.ts diff --git a/tests/baselines/reference/callHierarchyFunctionAmbiguity.5.callHierarchy.txt b/tests/baselines/reference/callHierarchyFunctionAmbiguity.5.callHierarchy.txt index 7acaa23e044..d693d38933b 100644 --- a/tests/baselines/reference/callHierarchyFunctionAmbiguity.5.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyFunctionAmbiguity.5.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/main.ts diff --git a/tests/baselines/reference/callHierarchyInterfaceMethod.callHierarchy.txt b/tests/baselines/reference/callHierarchyInterfaceMethod.callHierarchy.txt index c0b5e0d1a66..1d1b55b7670 100644 --- a/tests/baselines/reference/callHierarchyInterfaceMethod.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyInterfaceMethod.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: foo ├ kind: method ├ file: /tests/cases/fourslash/callHierarchyInterfaceMethod.ts diff --git a/tests/baselines/reference/callHierarchyJsxElement.callHierarchy.txt b/tests/baselines/reference/callHierarchyJsxElement.callHierarchy.txt index 1ef619697f8..100ff5e812b 100644 --- a/tests/baselines/reference/callHierarchyJsxElement.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyJsxElement.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: Bar ├ kind: function ├ file: /tests/cases/fourslash/main.tsx diff --git a/tests/baselines/reference/callHierarchyTaggedTemplate.callHierarchy.txt b/tests/baselines/reference/callHierarchyTaggedTemplate.callHierarchy.txt index 47ef606473b..66264498196 100644 --- a/tests/baselines/reference/callHierarchyTaggedTemplate.callHierarchy.txt +++ b/tests/baselines/reference/callHierarchyTaggedTemplate.callHierarchy.txt @@ -1,3 +1,4 @@ +// === Call Hierarchy === ╭ name: bar ├ kind: function ├ file: /tests/cases/fourslash/callHierarchyTaggedTemplate.ts diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index 02e57991977..6bf603161d2 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -136,8 +136,7 @@ var D = /** @class */ (function (_super) { __extends(D, _super); function D() { var _this = _super.call(this, 1, 2) || this; - _this = _super.apply(this, __spreadArray([1, 2], a, false)) || this; - return _this; + return _super.apply(this, __spreadArray([1, 2], a, false)) || this; } D.prototype.foo = function () { _super.prototype.foo.call(this, 1, 2); diff --git a/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc b/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc index dc8ebeae50c..634f03e78f7 100644 --- a/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc +++ b/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc @@ -97,11 +97,6 @@ -// === customWork === -// cancelled findAllReferences - - - // === findAllReferences === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === // --- (line: 3) skipped --- diff --git a/tests/baselines/reference/cannotIndexGenericWritingError.errors.txt b/tests/baselines/reference/cannotIndexGenericWritingError.errors.txt new file mode 100644 index 00000000000..7d6480a9bb0 --- /dev/null +++ b/tests/baselines/reference/cannotIndexGenericWritingError.errors.txt @@ -0,0 +1,19 @@ +cannotIndexGenericWritingError.ts(4,5): error TS2862: Type 'T' is generic and can only be indexed for reading. +cannotIndexGenericWritingError.ts(8,5): error TS2862: Type 'T' is generic and can only be indexed for reading. + + +==== cannotIndexGenericWritingError.ts (2 errors) ==== + // From #47357 + + function foo>(target: T, p: string | symbol) { + target[p] = ""; // error + ~~~~~~~~~ +!!! error TS2862: Type 'T' is generic and can only be indexed for reading. + } + + function foo2(target: T, p: string | number) { + target[p] = 1; // error + ~~~~~~~~~ +!!! error TS2862: Type 'T' is generic and can only be indexed for reading. + target[1] = 1; // ok + } \ No newline at end of file diff --git a/tests/baselines/reference/cannotIndexGenericWritingError.symbols b/tests/baselines/reference/cannotIndexGenericWritingError.symbols new file mode 100644 index 00000000000..7ff9f6a639b --- /dev/null +++ b/tests/baselines/reference/cannotIndexGenericWritingError.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/cannotIndexGenericWritingError.ts] //// + +=== cannotIndexGenericWritingError.ts === +// From #47357 + +function foo>(target: T, p: string | symbol) { +>foo : Symbol(foo, Decl(cannotIndexGenericWritingError.ts, 0, 0)) +>T : Symbol(T, Decl(cannotIndexGenericWritingError.ts, 2, 13)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>target : Symbol(target, Decl(cannotIndexGenericWritingError.ts, 2, 53)) +>T : Symbol(T, Decl(cannotIndexGenericWritingError.ts, 2, 13)) +>p : Symbol(p, Decl(cannotIndexGenericWritingError.ts, 2, 63)) + + target[p] = ""; // error +>target : Symbol(target, Decl(cannotIndexGenericWritingError.ts, 2, 53)) +>p : Symbol(p, Decl(cannotIndexGenericWritingError.ts, 2, 63)) +} + +function foo2(target: T, p: string | number) { +>foo2 : Symbol(foo2, Decl(cannotIndexGenericWritingError.ts, 4, 1)) +>T : Symbol(T, Decl(cannotIndexGenericWritingError.ts, 6, 14)) +>s : Symbol(s, Decl(cannotIndexGenericWritingError.ts, 6, 38)) +>target : Symbol(target, Decl(cannotIndexGenericWritingError.ts, 6, 69)) +>T : Symbol(T, Decl(cannotIndexGenericWritingError.ts, 6, 14)) +>p : Symbol(p, Decl(cannotIndexGenericWritingError.ts, 6, 79)) + + target[p] = 1; // error +>target : Symbol(target, Decl(cannotIndexGenericWritingError.ts, 6, 69)) +>p : Symbol(p, Decl(cannotIndexGenericWritingError.ts, 6, 79)) + + target[1] = 1; // ok +>target : Symbol(target, Decl(cannotIndexGenericWritingError.ts, 6, 69)) +} diff --git a/tests/baselines/reference/cannotIndexGenericWritingError.types b/tests/baselines/reference/cannotIndexGenericWritingError.types new file mode 100644 index 00000000000..8701d605f6b --- /dev/null +++ b/tests/baselines/reference/cannotIndexGenericWritingError.types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/cannotIndexGenericWritingError.ts] //// + +=== cannotIndexGenericWritingError.ts === +// From #47357 + +function foo>(target: T, p: string | symbol) { +>foo : >(target: T, p: string | symbol) => void +>target : T +>p : string | symbol + + target[p] = ""; // error +>target[p] = "" : "" +>target[p] : any +>target : T +>p : string | symbol +>"" : "" +} + +function foo2(target: T, p: string | number) { +>foo2 : (target: T, p: string | number) => void +>s : string +>target : T +>p : string | number + + target[p] = 1; // error +>target[p] = 1 : 1 +>target[p] : any +>target : T +>p : string | number +>1 : 1 + + target[1] = 1; // ok +>target[1] = 1 : 1 +>target[1] : number +>target : T +>1 : 1 +>1 : 1 +} diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js index 3289e9fc6b3..78dcd037c53 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js @@ -42,8 +42,7 @@ var Super = /** @class */ (function (_super) { function Super() { var _this = this; (function () { return _this; }); // No Error - _this = _super.call(this) || this; - return _this; + return _this = _super.call(this) || this; } return Super; }(Base)); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js index 94dc2366fae..6ea9f8f7892 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js @@ -35,7 +35,7 @@ var Base = /** @class */ (function () { var Super = /** @class */ (function (_super) { __extends(Super, _super); function Super() { - var _this = _super.call(this, (function () { return _this; })) || this; + var _this = _super.call(this, (function () { return _this; })) || this; // No error return _this; } return Super; diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js index c89ffd4cfb6..08a0f865e8b 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js @@ -42,8 +42,7 @@ var Super = /** @class */ (function (_super) { function Super() { var _this = this; var that = _this; - _this = _super.call(this) || this; - return _this; + return _this = _super.call(this) || this; } return Super; }(Base)); diff --git a/tests/baselines/reference/classExtendingPrimitive.errors.txt b/tests/baselines/reference/classExtendingPrimitive.errors.txt index a7bfa3769ef..1dceab8bcd6 100644 --- a/tests/baselines/reference/classExtendingPrimitive.errors.txt +++ b/tests/baselines/reference/classExtendingPrimitive.errors.txt @@ -1,6 +1,6 @@ -classExtendingPrimitive.ts(3,17): error TS2693: 'number' only refers to a type, but is being used as a value here. -classExtendingPrimitive.ts(4,18): error TS2693: 'string' only refers to a type, but is being used as a value here. -classExtendingPrimitive.ts(5,18): error TS2693: 'boolean' only refers to a type, but is being used as a value here. +classExtendingPrimitive.ts(3,17): error TS2863: A class cannot extend a primitive type like 'number'. Classes can only extend constructable values. +classExtendingPrimitive.ts(4,18): error TS2863: A class cannot extend a primitive type like 'string'. Classes can only extend constructable values. +classExtendingPrimitive.ts(5,18): error TS2863: A class cannot extend a primitive type like 'boolean'. Classes can only extend constructable values. classExtendingPrimitive.ts(6,18): error TS2304: Cannot find name 'Void'. classExtendingPrimitive.ts(7,19): error TS1109: Expression expected. classExtendingPrimitive.ts(8,18): error TS2304: Cannot find name 'Null'. @@ -14,13 +14,13 @@ classExtendingPrimitive.ts(14,18): error TS2507: Type 'typeof E' is not a constr class C extends number { } ~~~~~~ -!!! error TS2693: 'number' only refers to a type, but is being used as a value here. +!!! error TS2863: A class cannot extend a primitive type like 'number'. Classes can only extend constructable values. class C2 extends string { } ~~~~~~ -!!! error TS2693: 'string' only refers to a type, but is being used as a value here. +!!! error TS2863: A class cannot extend a primitive type like 'string'. Classes can only extend constructable values. class C3 extends boolean { } ~~~~~~~ -!!! error TS2693: 'boolean' only refers to a type, but is being used as a value here. +!!! error TS2863: A class cannot extend a primitive type like 'boolean'. Classes can only extend constructable values. class C4 extends Void { } ~~~~ !!! error TS2304: Cannot find name 'Void'. diff --git a/tests/baselines/reference/classImplementsPrimitive.errors.txt b/tests/baselines/reference/classImplementsPrimitive.errors.txt new file mode 100644 index 00000000000..1ad273ca481 --- /dev/null +++ b/tests/baselines/reference/classImplementsPrimitive.errors.txt @@ -0,0 +1,17 @@ +classImplementsPrimitive.ts(3,20): error TS2864: A class cannot implement a primitive type like 'number'. It can only implement other named object types. +classImplementsPrimitive.ts(4,21): error TS2864: A class cannot implement a primitive type like 'string'. It can only implement other named object types. +classImplementsPrimitive.ts(5,21): error TS2864: A class cannot implement a primitive type like 'boolean'. It can only implement other named object types. + + +==== classImplementsPrimitive.ts (3 errors) ==== + // classes cannot implement primitives + + class C implements number { } + ~~~~~~ +!!! error TS2864: A class cannot implement a primitive type like 'number'. It can only implement other named object types. + class C2 implements string { } + ~~~~~~ +!!! error TS2864: A class cannot implement a primitive type like 'string'. It can only implement other named object types. + class C3 implements boolean { } + ~~~~~~~ +!!! error TS2864: A class cannot implement a primitive type like 'boolean'. It can only implement other named object types. \ No newline at end of file diff --git a/tests/baselines/reference/classImplementsPrimitive.js b/tests/baselines/reference/classImplementsPrimitive.js new file mode 100644 index 00000000000..c8daf7b6d17 --- /dev/null +++ b/tests/baselines/reference/classImplementsPrimitive.js @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/classImplementsPrimitive.ts] //// + +//// [classImplementsPrimitive.ts] +// classes cannot implement primitives + +class C implements number { } +class C2 implements string { } +class C3 implements boolean { } + +//// [classImplementsPrimitive.js] +// classes cannot implement primitives +var C = /** @class */ (function () { + function C() { + } + return C; +}()); +var C2 = /** @class */ (function () { + function C2() { + } + return C2; +}()); +var C3 = /** @class */ (function () { + function C3() { + } + return C3; +}()); diff --git a/tests/baselines/reference/classImplementsPrimitive.symbols b/tests/baselines/reference/classImplementsPrimitive.symbols new file mode 100644 index 00000000000..b749f8423a1 --- /dev/null +++ b/tests/baselines/reference/classImplementsPrimitive.symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/classImplementsPrimitive.ts] //// + +=== classImplementsPrimitive.ts === +// classes cannot implement primitives + +class C implements number { } +>C : Symbol(C, Decl(classImplementsPrimitive.ts, 0, 0)) + +class C2 implements string { } +>C2 : Symbol(C2, Decl(classImplementsPrimitive.ts, 2, 29)) + +class C3 implements boolean { } +>C3 : Symbol(C3, Decl(classImplementsPrimitive.ts, 3, 30)) + diff --git a/tests/baselines/reference/classImplementsPrimitive.types b/tests/baselines/reference/classImplementsPrimitive.types new file mode 100644 index 00000000000..c30f7bd3cb0 --- /dev/null +++ b/tests/baselines/reference/classImplementsPrimitive.types @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/classImplementsPrimitive.ts] //// + +=== classImplementsPrimitive.ts === +// classes cannot implement primitives + +class C implements number { } +>C : C + +class C2 implements string { } +>C2 : C2 + +class C3 implements boolean { } +>C3 : C3 + diff --git a/tests/baselines/reference/classUpdateTests.js b/tests/baselines/reference/classUpdateTests.js index 683a2d96a30..6e25d0c15a2 100644 --- a/tests/baselines/reference/classUpdateTests.js +++ b/tests/baselines/reference/classUpdateTests.js @@ -208,7 +208,7 @@ var I = /** @class */ (function (_super) { var J = /** @class */ (function (_super) { __extends(J, _super); function J(p1) { - var _this = _super.call(this) || this; + var _this = _super.call(this) || this; // NO ERROR _this.p1 = p1; return _this; } @@ -228,7 +228,7 @@ var K = /** @class */ (function (_super) { var L = /** @class */ (function (_super) { __extends(L, _super); function L(p1) { - var _this = _super.call(this) || this; + var _this = _super.call(this) || this; // NO ERROR _this.p1 = p1; return _this; } diff --git a/tests/baselines/reference/compileOnSaveWorksWhenEmitBlockingErrorOnOtherFile.baseline b/tests/baselines/reference/compileOnSaveWorksWhenEmitBlockingErrorOnOtherFile.baseline index 80a31656fd0..596a2e7819e 100644 --- a/tests/baselines/reference/compileOnSaveWorksWhenEmitBlockingErrorOnOtherFile.baseline +++ b/tests/baselines/reference/compileOnSaveWorksWhenEmitBlockingErrorOnOtherFile.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: true Diagnostics: Cannot write file '/tests/cases/fourslash/b.js' because it would overwrite input file. diff --git a/tests/baselines/reference/completionDetailsOfContextSensitiveParameterNoCrash.baseline b/tests/baselines/reference/completionDetailsOfContextSensitiveParameterNoCrash.baseline index 2479767063e..cecf5e4f9d7 100644 --- a/tests/baselines/reference/completionDetailsOfContextSensitiveParameterNoCrash.baseline +++ b/tests/baselines/reference/completionDetailsOfContextSensitiveParameterNoCrash.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/completionDetailsOfContextSensitiveParameterNoCrash.ts === // type __ = never; // diff --git a/tests/baselines/reference/completionEntryForUnionMethod.baseline b/tests/baselines/reference/completionEntryForUnionMethod.baseline index 58065fd8d6a..6ee4743746e 100644 --- a/tests/baselines/reference/completionEntryForUnionMethod.baseline +++ b/tests/baselines/reference/completionEntryForUnionMethod.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionEntryForUnionMethod.ts === // var y: Array|Array; // y.map( diff --git a/tests/baselines/reference/completionForStringLiteralImport3.baseline b/tests/baselines/reference/completionForStringLiteralImport3.baseline index 674ef9f361a..88e1d949df4 100644 --- a/tests/baselines/reference/completionForStringLiteralImport3.baseline +++ b/tests/baselines/reference/completionForStringLiteralImport3.baseline @@ -1,3 +1,4 @@ +// === Completions === === /a.ts === // import * as foo from ""; // ^ diff --git a/tests/baselines/reference/completionImportAttributes.baseline b/tests/baselines/reference/completionImportAttributes.baseline index 7594f95cfc8..098f3e1cb5f 100644 --- a/tests/baselines/reference/completionImportAttributes.baseline +++ b/tests/baselines/reference/completionImportAttributes.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/main.ts === // import("./other.json", {}); // ^ diff --git a/tests/baselines/reference/completionImportCallAssertion.baseline b/tests/baselines/reference/completionImportCallAssertion.baseline index 605d0485a08..88cf55ffe28 100644 --- a/tests/baselines/reference/completionImportCallAssertion.baseline +++ b/tests/baselines/reference/completionImportCallAssertion.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/main.ts === // import("./other.json", {}); // ^ diff --git a/tests/baselines/reference/completionNoParentLocation.baseline b/tests/baselines/reference/completionNoParentLocation.baseline index 12248157328..eb52630cfd1 100644 --- a/tests/baselines/reference/completionNoParentLocation.baseline +++ b/tests/baselines/reference/completionNoParentLocation.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionNoParentLocation.ts === // // ^ diff --git a/tests/baselines/reference/completionPropertyFromConstraint.baseline b/tests/baselines/reference/completionPropertyFromConstraint.baseline index 3d360ab3eff..210d913dabe 100644 --- a/tests/baselines/reference/completionPropertyFromConstraint.baseline +++ b/tests/baselines/reference/completionPropertyFromConstraint.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionPropertyFromConstraint.ts === // interface Styles { // alignContent: string | null; diff --git a/tests/baselines/reference/completionsAfterPropertyNameInClass.baseline b/tests/baselines/reference/completionsAfterPropertyNameInClass.baseline index b19974e4161..ae453aa62a8 100644 --- a/tests/baselines/reference/completionsAfterPropertyNameInClass.baseline +++ b/tests/baselines/reference/completionsAfterPropertyNameInClass.baseline @@ -1,3 +1,4 @@ +// === Completions === === /a.js === // class C1 { // async #fo diff --git a/tests/baselines/reference/completionsClassMembers1.baseline b/tests/baselines/reference/completionsClassMembers1.baseline index 0e52f777216..be7070fc3d2 100644 --- a/tests/baselines/reference/completionsClassMembers1.baseline +++ b/tests/baselines/reference/completionsClassMembers1.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsClassMembers1.ts === // interface I { // method(): void; diff --git a/tests/baselines/reference/completionsClassMembers2.baseline b/tests/baselines/reference/completionsClassMembers2.baseline index a6afcfdbdd2..cea76a493cf 100644 --- a/tests/baselines/reference/completionsClassMembers2.baseline +++ b/tests/baselines/reference/completionsClassMembers2.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsClassMembers2.ts === // interface I { // method(): void; diff --git a/tests/baselines/reference/completionsClassMembers3.baseline b/tests/baselines/reference/completionsClassMembers3.baseline index 0c61b0064e5..6775c83a61c 100644 --- a/tests/baselines/reference/completionsClassMembers3.baseline +++ b/tests/baselines/reference/completionsClassMembers3.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsClassMembers3.ts === // interface I { // method(): void; diff --git a/tests/baselines/reference/completionsClassMembers4.baseline b/tests/baselines/reference/completionsClassMembers4.baseline index d21c0b4e78a..c35b5b51b7a 100644 --- a/tests/baselines/reference/completionsClassMembers4.baseline +++ b/tests/baselines/reference/completionsClassMembers4.baseline @@ -1,3 +1,4 @@ +// === Completions === === /foo.ts === // export class Observable { // pipe(): Observable; diff --git a/tests/baselines/reference/completionsClassMembers5.baseline b/tests/baselines/reference/completionsClassMembers5.baseline index 24f83a2e0f2..a6d95efa48e 100644 --- a/tests/baselines/reference/completionsClassMembers5.baseline +++ b/tests/baselines/reference/completionsClassMembers5.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsClassMembers5.ts === // export const SOME_CONSTANT = 'SOME_TEXT'; // export class Base { diff --git a/tests/baselines/reference/completionsCommentsClass.baseline b/tests/baselines/reference/completionsCommentsClass.baseline index 9c84a387981..da06aabfe12 100644 --- a/tests/baselines/reference/completionsCommentsClass.baseline +++ b/tests/baselines/reference/completionsCommentsClass.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsCommentsClass.ts === // /** This is class c2 without constructor*/ // class c2 { diff --git a/tests/baselines/reference/completionsCommentsClassMembers.baseline b/tests/baselines/reference/completionsCommentsClassMembers.baseline index cf4807c1d83..d92adc7d31e 100644 --- a/tests/baselines/reference/completionsCommentsClassMembers.baseline +++ b/tests/baselines/reference/completionsCommentsClassMembers.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsCommentsClassMembers.ts === // /** This is comment for c1*/ // class c1 { diff --git a/tests/baselines/reference/completionsCommentsCommentParsing.baseline b/tests/baselines/reference/completionsCommentsCommentParsing.baseline index b7823ca0e0d..0bbbcba9099 100644 --- a/tests/baselines/reference/completionsCommentsCommentParsing.baseline +++ b/tests/baselines/reference/completionsCommentsCommentParsing.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsCommentsCommentParsing.ts === // /// This is simple /// comments // function simple() { diff --git a/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline b/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline index e8b72b51f62..b44ec67ee36 100644 --- a/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline +++ b/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsCommentsFunctionDeclaration.ts === // /** This comment should appear for foo*/ // function foo() { diff --git a/tests/baselines/reference/completionsCommentsFunctionExpression.baseline b/tests/baselines/reference/completionsCommentsFunctionExpression.baseline index dbafae6e08d..9cbba53160e 100644 --- a/tests/baselines/reference/completionsCommentsFunctionExpression.baseline +++ b/tests/baselines/reference/completionsCommentsFunctionExpression.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsCommentsFunctionExpression.ts === // /** lambdaFoo var comment*/ // var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; diff --git a/tests/baselines/reference/completionsImportWithKeyword.baseline b/tests/baselines/reference/completionsImportWithKeyword.baseline index 6c516ae03b0..caf9a73c4d1 100644 --- a/tests/baselines/reference/completionsImportWithKeyword.baseline +++ b/tests/baselines/reference/completionsImportWithKeyword.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/a.ts === // const f = { // a: 1 diff --git a/tests/baselines/reference/completionsJSDocTags.baseline b/tests/baselines/reference/completionsJSDocTags.baseline index b2a527a8680..c657cd6862a 100644 --- a/tests/baselines/reference/completionsJSDocTags.baseline +++ b/tests/baselines/reference/completionsJSDocTags.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsJSDocTags.ts === // /** // * This is class Foo. diff --git a/tests/baselines/reference/completionsOverridingMethod15.baseline b/tests/baselines/reference/completionsOverridingMethod15.baseline index 146553bb07d..20411eadc76 100644 --- a/tests/baselines/reference/completionsOverridingMethod15.baseline +++ b/tests/baselines/reference/completionsOverridingMethod15.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsOverridingMethod15.ts === // declare class B { // get foo(): any; diff --git a/tests/baselines/reference/completionsOverridingMethod16.baseline b/tests/baselines/reference/completionsOverridingMethod16.baseline index 38f7eb1b530..78e1245ee9b 100644 --- a/tests/baselines/reference/completionsOverridingMethod16.baseline +++ b/tests/baselines/reference/completionsOverridingMethod16.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsOverridingMethod16.ts === // declare class B { // set foo(value: any); diff --git a/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline b/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline index 9fa60615f10..421a45d9ee2 100644 --- a/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline +++ b/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/something.js === // var C = function () { } // /** diff --git a/tests/baselines/reference/completionsStringMethods.baseline b/tests/baselines/reference/completionsStringMethods.baseline index 46c07099d00..bffbebf8fd5 100644 --- a/tests/baselines/reference/completionsStringMethods.baseline +++ b/tests/baselines/reference/completionsStringMethods.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsStringMethods.ts === // var s = "foo". // ^ diff --git a/tests/baselines/reference/completionsUniqueSymbol2.baseline b/tests/baselines/reference/completionsUniqueSymbol2.baseline index d873364a57d..3a2b3b39581 100644 --- a/tests/baselines/reference/completionsUniqueSymbol2.baseline +++ b/tests/baselines/reference/completionsUniqueSymbol2.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/completionsUniqueSymbol2.ts === // const a = { // KEY_1: 'key_1', diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js index ff703f25ce7..6dc943c79ac 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js @@ -1,8 +1,8 @@ --clean --force buildOptions:: { - "clean": true, - "force": true + "clean": true, + "force": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js index a5f665c196d..d4fd1effda8 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js @@ -1,8 +1,8 @@ --clean --verbose buildOptions:: { - "clean": true, - "verbose": true + "clean": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js index 754283ce029..f9bd6692d46 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js @@ -1,8 +1,8 @@ --clean --watch buildOptions:: { - "clean": true, - "watch": true + "clean": true, + "watch": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js index 841b0dfbb57..8da5f11fee8 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js @@ -1,8 +1,8 @@ --watch --dry buildOptions:: { - "watch": true, - "dry": true + "watch": true, + "dry": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js index e647a4a039c..2804cf12be4 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js @@ -1,8 +1,8 @@ --force --verbose src tests buildOptions:: { - "force": true, - "verbose": true + "force": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js index 42aae4de856..e46e9b3bc63 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js @@ -1,8 +1,8 @@ src tests --force --verbose buildOptions:: { - "force": true, - "verbose": true + "force": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js index 0dbec2c7666..0df7f097b23 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js @@ -1,8 +1,8 @@ --force src tests --verbose buildOptions:: { - "force": true, - "verbose": true + "force": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js index e29895636f6..f6f91d79be4 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js @@ -1,8 +1,8 @@ --verbose --force tests buildOptions:: { - "verbose": true, - "force": true + "verbose": true, + "force": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js index d385a51f732..274495fed29 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js @@ -1,7 +1,7 @@ --verbose --invalidOption buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js index 35f0a639f9c..bc674651cca 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js @@ -3,7 +3,7 @@ buildOptions:: {} WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js index 89d564b19aa..9039447dce7 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js @@ -3,7 +3,7 @@ buildOptions:: {} WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js index 212cae1eb63..4bc33936ed9 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js @@ -1,7 +1,7 @@ --verbose --fallbackPolling buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: {} diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js index d62c5f98e04..b14d514d716 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js @@ -3,9 +3,9 @@ buildOptions:: {} WatchOptions:: { - "excludeFiles": [ - "**/temp/*.ts" - ] + "excludeFiles": [ + "**/temp/*.ts" + ] } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js index 1fd285ef975..d74b3d3932f 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js @@ -1,11 +1,11 @@ --fallbackPolling PriorityInterval --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "fallbackPolling": 1 + "fallbackPolling": 1 } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js index 5b065234cf1..50f843f54f0 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js @@ -1,11 +1,11 @@ --synchronousWatchDirectory --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "synchronousWatchDirectory": true + "synchronousWatchDirectory": true } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js index 62a74a7a9d2..e92aba31748 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js @@ -1,11 +1,11 @@ --watchDirectory FixedPollingInterval --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "watchDirectory": 1 + "watchDirectory": 1 } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js index 1f881f80f8a..6a1b663637c 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js @@ -1,11 +1,11 @@ --watchFile UseFsEvents --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js index 91cebea73a3..3e42a87190a 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js @@ -1,7 +1,7 @@ --incremental tests buildOptions:: { - "incremental": true + "incremental": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js index 8b3e814d4f1..cc5ae668c0a 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js @@ -1,7 +1,7 @@ --locale en-us src buildOptions:: { - "locale": "en-us" + "locale": "en-us" } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js index b3a026e6823..9f8473507c2 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js @@ -1,9 +1,9 @@ --lib es5, es7 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts" - ] + "lib": [ + "lib.es5.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js index 576d7a4f336..6de11407aeb 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js @@ -1,9 +1,9 @@ --lib es5, es7 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts" - ] + "lib": [ + "lib.es5.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js index d3f0a03b606..63c0c0f126c 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js @@ -1,7 +1,7 @@ 0.ts --lib CompilerOptions:: { - "lib": [] + "lib": [] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js index a21dc499ae4..54b1bae76ae 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js @@ -1,7 +1,7 @@ 0.ts --lib CompilerOptions:: { - "lib": [] + "lib": [] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js index dd8cca535a4..1f004f182a0 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js @@ -1,7 +1,7 @@ --strictNullChecks false 0.ts CompilerOptions:: { - "strictNullChecks": false + "strictNullChecks": false } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js index 635303d8967..068b4d53113 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js @@ -1,8 +1,8 @@ 0.ts --lib --sourcemap CompilerOptions:: { - "lib": [], - "sourceMap": true + "lib": [], + "sourceMap": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js index b278bb62605..de964391a63 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js @@ -1,7 +1,7 @@ --strictNullChecks CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js index caddcaf841b..a6953d11f0a 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js @@ -1,9 +1,9 @@ --lib es5,invalidOption 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts" - ] + "lib": [ + "lib.es5.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js index b3c7bea3fd5..b076c1d486a 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js @@ -1,11 +1,11 @@ --lib es5,es2015.symbol.wellknown --target es5 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ], - "target": 1 + "lib": [ + "lib.es5.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ], + "target": 1 } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js index 6dd0ef5b372..70d0d9717ad 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js @@ -1,12 +1,12 @@ --module commonjs --target es5 0.ts --lib es5,es2015.symbol.wellknown CompilerOptions:: { - "module": 1, - "target": 1, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ] + "module": 1, + "target": 1, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js index fe6bf903acf..05ce1830e87 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js @@ -1,12 +1,12 @@ --module commonjs --target es5 --lib es5 0.ts --lib es2015.core, es2015.symbol.wellknown CompilerOptions:: { - "module": 1, - "target": 1, - "lib": [ - "lib.es2015.core.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ] + "module": 1, + "target": 1, + "lib": [ + "lib.es2015.core.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js index 02be8361d61..c87030253b9 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js @@ -1,10 +1,10 @@ --lib es5,es2015.symbol.wellknown 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ] + "lib": [ + "lib.es5.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js index f170c944b91..4cde82a9f26 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js @@ -1,7 +1,7 @@ --noImplicitAny t 0.ts CompilerOptions:: { - "noImplicitAny": true + "noImplicitAny": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js index 085396bb590..3366550df6c 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js @@ -1,9 +1,9 @@ --lib es6 0.ts CompilerOptions:: { - "lib": [ - "lib.es2015.d.ts" - ] + "lib": [ + "lib.es2015.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js index f030755d829..e4240cbaeb0 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js @@ -1,7 +1,7 @@ --composite false 0.ts CompilerOptions:: { - "composite": false + "composite": false } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js index fbe68473c5a..81440b194dc 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js index 83588c628de..600514be1e6 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js index 7c257fe64a8..eef5f3c4711 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --composite CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js index c37d4e51470..d217cefd029 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --optionName CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js index 66cf451885b..40478b9d0f2 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --rootDirs CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js index c37d4e51470..d217cefd029 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --optionName CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js index f7fe0fb368e..3d791c023b8 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --paths CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js index c37d4e51470..d217cefd029 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --optionName CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js index 4c27ef1ace0..d3e5566dd21 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js @@ -3,9 +3,9 @@ CompilerOptions:: {} WatchOptions:: { - "excludeDirectories": [ - "**/temp" - ] + "excludeDirectories": [ + "**/temp" + ] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js index 0ec40cbf6a3..bae68213457 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js @@ -3,9 +3,9 @@ CompilerOptions:: {} WatchOptions:: { - "excludeFiles": [ - "**/temp/*.ts" - ] + "excludeFiles": [ + "**/temp/*.ts" + ] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js index 33808943327..ca162171068 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "fallbackPolling": 1 + "fallbackPolling": 1 } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js index d2abf3408a1..c54bdd1cf83 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js @@ -1,7 +1,7 @@ --incremental 0.ts CompilerOptions:: { - "incremental": true + "incremental": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js index c8dbf2744c9..e42bb1b9a6d 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "synchronousWatchDirectory": true + "synchronousWatchDirectory": true } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js index 2abe1bcc152..4b5f7573d17 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js @@ -1,7 +1,7 @@ --tsBuildInfoFile build.tsbuildinfo 0.ts CompilerOptions:: { - "tsBuildInfoFile": "build.tsbuildinfo" + "tsBuildInfoFile": "build.tsbuildinfo" } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js index f2ac41de85c..b3adf4901f0 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "watchDirectory": 1 + "watchDirectory": 1 } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js index 6869e6d47b0..a7e3a7a27e2 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js index 25df25570d0..0a5004eb331 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles from an array only once diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js index 8abed829c15..7bfedca3af8 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles from an array only once diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js index d65f68384f0..6436a84efb1 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles only once diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js index 06001b27e98..896d69b9586 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles only once diff --git a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js index 50a875b2cd8..3fee8ffedb3 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -189,8 +420,8 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -202,23 +433,23 @@ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -230,7 +461,7 @@ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -242,7 +473,7 @@ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -254,10 +485,10 @@ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: c:/dev/supplemental.ts @@ -268,11 +499,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: c:/dev/main.ts @@ -283,11 +514,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: c:/dev/tests/utils.ts @@ -298,8 +529,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: c:/dev/main.ts @@ -310,8 +541,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: c:/dev/main.ts @@ -322,8 +553,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: c:/dev/main.ts @@ -334,8 +565,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: c:/dev/main.ts @@ -346,8 +577,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: c:/dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: c:/dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: c:/dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: c:/dev/main.ts @@ -394,8 +625,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: c:/dev/main.ts @@ -406,11 +637,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -421,8 +652,8 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -434,7 +665,7 @@ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts diff --git a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js index 9e7dad1da7c..70421f19a5b 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -189,87 +420,87 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -missing.json:1:12 - error TS6053: File './missing2' not found. +missing.json:2:14 - error TS6053: File './missing2' not found. -1 {"extends":"./missing2","compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~ +2 "extends": "./missing2", +   ~~~~~~~~~~~~ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extends.json:1:12 - error TS5024: Compiler option 'extends' requires a value of type string or Array. +extends.json:2:14 - error TS5024: Compiler option 'extends' requires a value of type string or Array. -1 {"extends":42} -   ~~ +2 "extends": 42 +   ~~ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extends3.json:1:12 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends3.json:2:14 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":""} -   ~~ +2 "extends": "" +   ~~ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extends4.json:1:13 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends4.json:3:5 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":[""]} -   ~~ +3 "" +   ~~ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: c:/dev/supplemental.ts @@ -280,11 +511,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: c:/dev/main.ts @@ -295,11 +526,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: c:/dev/tests/utils.ts @@ -310,8 +541,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: c:/dev/main.ts @@ -322,8 +553,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: c:/dev/main.ts @@ -334,8 +565,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: c:/dev/main.ts @@ -346,8 +577,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: c:/dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: c:/dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: c:/dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: c:/dev/main.ts @@ -394,8 +625,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: c:/dev/main.ts @@ -406,8 +637,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: c:/dev/main.ts @@ -418,11 +649,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -433,29 +664,29 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extendsArrayFails.json:1:13 - error TS6053: File './missingFile' not found. +extendsArrayFails.json:3:5 - error TS6053: File './missingFile' not found. -1 {"extends":["./missingFile"],"compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~~~~ +3 "./missingFile" +   ~~~~~~~~~~~~~~~ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extendsArrayFails2.json:1:13 - error TS5024: Compiler option 'extends' requires a value of type string. +extendsArrayFails2.json:3:5 - error TS5024: Compiler option 'extends' requires a value of type string. -1 {"extends":[42]} -   ~~ +3 42 +   ~~ diff --git a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js index 4f0167c4cda..b0d9dd7826f 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -189,8 +420,8 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -202,23 +433,23 @@ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -230,7 +461,7 @@ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -242,7 +473,7 @@ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -254,10 +485,10 @@ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: /dev/supplemental.ts @@ -268,11 +499,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: /dev/main.ts @@ -283,11 +514,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: /dev/tests/utils.ts @@ -298,8 +529,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: /dev/main.ts @@ -310,8 +541,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: /dev/main.ts @@ -322,8 +553,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: /dev/main.ts @@ -334,8 +565,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: /dev/main.ts @@ -346,8 +577,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: /dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: /dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: /dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: /dev/main.ts @@ -394,8 +625,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: /dev/main.ts @@ -406,11 +637,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -421,8 +652,8 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -434,7 +665,7 @@ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts diff --git a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js index d2aefd8f29b..260443b0c0f 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -189,87 +420,87 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -missing.json:1:12 - error TS6053: File './missing2' not found. +missing.json:2:14 - error TS6053: File './missing2' not found. -1 {"extends":"./missing2","compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~ +2 "extends": "./missing2", +   ~~~~~~~~~~~~ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extends.json:1:12 - error TS5024: Compiler option 'extends' requires a value of type string or Array. +extends.json:2:14 - error TS5024: Compiler option 'extends' requires a value of type string or Array. -1 {"extends":42} -   ~~ +2 "extends": 42 +   ~~ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extends3.json:1:12 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends3.json:2:14 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":""} -   ~~ +2 "extends": "" +   ~~ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extends4.json:1:13 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends4.json:3:5 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":[""]} -   ~~ +3 "" +   ~~ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: /dev/supplemental.ts @@ -280,11 +511,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: /dev/main.ts @@ -295,11 +526,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: /dev/tests/utils.ts @@ -310,8 +541,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: /dev/main.ts @@ -322,8 +553,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: /dev/main.ts @@ -334,8 +565,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: /dev/main.ts @@ -346,8 +577,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: /dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: /dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: /dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: /dev/main.ts @@ -394,8 +625,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: /dev/main.ts @@ -406,8 +637,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: /dev/main.ts @@ -418,11 +649,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -433,29 +664,29 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extendsArrayFails.json:1:13 - error TS6053: File './missingFile' not found. +extendsArrayFails.json:3:5 - error TS6053: File './missingFile' not found. -1 {"extends":["./missingFile"],"compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~~~~ +3 "./missingFile" +   ~~~~~~~~~~~~~~~ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extendsArrayFails2.json:1:13 - error TS5024: Compiler option 'extends' requires a value of type string. +extendsArrayFails2.json:3:5 - error TS5024: Compiler option 'extends' requires a value of type string. -1 {"extends":[42]} -   ~~ +3 42 +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js index e2426e5f2c3..1540688aeb5 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js index 8dd1abf9d21..90fa66bb14f 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js @@ -16,8 +16,8 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "target": 99, - "configFilePath": "tsconfig.json" + "target": 99, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js index c279e51a5fb..84ae731089b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js @@ -16,8 +16,8 @@ blah { configFileName:: tsconfig.json CompilerOptions:: { - "target": 99, - "configFilePath": "tsconfig.json" + "target": 99, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS1136: Property assignment expected. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js index 576fd7db78e..5b96f9b0eb8 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js @@ -16,8 +16,8 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "target": 99, - "configFilePath": "tsconfig.json" + "target": 99, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js index 1e8650209fa..0879e79e717 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js @@ -7,38 +7,38 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js index 1e8650209fa..0879e79e717 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,38 +7,38 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js index 3c67eb6c08c..5b9debc51a0 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js @@ -7,39 +7,39 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": false, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": false, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js index 3c67eb6c08c..5b9debc51a0 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js @@ -7,39 +7,39 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": false, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": false, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js index 4b35dd8cc8a..c037bbfc6e6 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js @@ -7,33 +7,33 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js index 4b35dd8cc8a..c037bbfc6e6 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,33 +7,33 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js index 24bfd8aeed5..a2cdca39641 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js @@ -7,35 +7,35 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js index 24bfd8aeed5..a2cdca39641 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js @@ -7,35 +7,35 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js index 02ee479e8cd..cb4cd771c7a 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js @@ -12,12 +12,12 @@ Fs:: configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js index 02ee479e8cd..cb4cd771c7a 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js @@ -12,12 +12,12 @@ Fs:: configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js index 0890fd95586..35bf143090a 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js index 0890fd95586..35bf143090a 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js index a11242e30a5..ca5e5fb2d69 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js @@ -7,25 +7,25 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js index a11242e30a5..ca5e5fb2d69 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js @@ -7,25 +7,25 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js index 93647f7bdea..cb440a9a82d 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js @@ -7,17 +7,17 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [] - } + "compilerOptions": { + "moduleSuffixes": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js index 93647f7bdea..cb440a9a82d 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js @@ -7,17 +7,17 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [] - } + "compilerOptions": { + "moduleSuffixes": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js index b41282b381a..37c32f65103 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js @@ -7,27 +7,27 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js index 02ac569fedb..0dc6edd2646 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js @@ -7,31 +7,31 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:8:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:8:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -8 "" -   ~~ +8 "" +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js index c634db54a0b..2c726ae2767 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js @@ -7,30 +7,30 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js index 9e6c26bc9d9..f511b2a932f 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js @@ -7,34 +7,34 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:9:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:9:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -9 "" -   ~~ +9 "" +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js index 08442f6d71d..ca3303bf9ec 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js index 08442f6d71d..ca3303bf9ec 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js index 52ced41a915..b5a7418acbc 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js @@ -7,23 +7,23 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - ".ios", - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + ".ios", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - ".ios", - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + ".ios", + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js index 52ced41a915..b5a7418acbc 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js @@ -7,23 +7,23 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - ".ios", - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + ".ios", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - ".ios", - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + ".ios", + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js index cf59459a5d2..3f866a5e8f2 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js @@ -7,24 +7,24 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "jsx": "" - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "jsx": "" + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js index 054fd964901..728db743229 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js @@ -7,28 +7,28 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "jsx": "" - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "jsx": "" + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:7:10 - error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'. +tsconfig.json:7:12 - error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'. -7 "jsx": "" -   ~~ +7 "jsx": "" +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js index 94f4d23012b..df138a23464 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js @@ -7,32 +7,32 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "incorrectLib" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "incorrectLib" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js index 501c5b1b47a..20aa8f26b4b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js @@ -7,36 +7,36 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "incorrectLib" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "incorrectLib" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:10:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:10:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -10 "incorrectLib" -   ~~~~~~~~~~~~~~ +10 "incorrectLib" +   ~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js index 3f98e115692..09dde5cc6ad 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "module": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js index cb967c5a0a3..85fd807b945 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js @@ -7,26 +7,26 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "module": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:13 - error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. +tsconfig.json:3:15 - error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. -3 "module": "", -   ~~ +3 "module": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js index 363c7ebffb6..5204cf0d287 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js @@ -7,20 +7,20 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "moduleResolution": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js index 9085f8a5386..b2f2b2263ca 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js @@ -7,24 +7,24 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "moduleResolution": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:23 - error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. +tsconfig.json:3:25 - error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. -3 "moduleResolution": "", -   ~~ +3 "moduleResolution": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js index f30c5f75816..cb6b2c11969 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "newLine": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "newLine": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--newLine' option must be: 'crlf', 'lf'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js index 0e68f7a123d..eb7498cff02 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js @@ -7,26 +7,26 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "newLine": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "newLine": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:14 - error TS6046: Argument for '--newLine' option must be: 'crlf', 'lf'. +tsconfig.json:3:16 - error TS6046: Argument for '--newLine' option must be: 'crlf', 'lf'. -3 "newLine": "", -   ~~ +3 "newLine": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js index 92a98d406fe..d86d38e9d9f 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js @@ -7,20 +7,20 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "target": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "target": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js index 6389e6a9a69..29bef221d0b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js @@ -7,24 +7,24 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "target": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "target": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:13 - error TS6046: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. +tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. -3 "target": "", -   ~~ +3 "target": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js index d83c6e50cd9..7994e903e05 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: error TS5023: Unknown compiler option 'modu'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js index d20b5a97283..5a35f7a4026 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,25 +7,25 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: -jsconfig.json:3:3 - error TS5023: Unknown compiler option 'modu'. +jsconfig.json:3:5 - error TS5023: Unknown compiler option 'modu'. -3 "modu": "commonjs" -   ~~~~~~ +3 "modu": "commonjs" +   ~~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js index 34697eac42e..c3e9e9df54a 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js @@ -7,16 +7,16 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: error TS5023: Unknown compiler option 'modu'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js index 15f0de5e8f9..dea38289c15 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,20 +7,20 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:3 - error TS5023: Unknown compiler option 'modu'. +tsconfig.json:3:5 - error TS5023: Unknown compiler option 'modu'. -3 "modu": "commonjs" -   ~~~~~~ +3 "modu": "commonjs" +   ~~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js index 814f4b9bf6d..120701d86ac 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js @@ -7,19 +7,19 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": -1 - } + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": -1 + } } configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": -1, - "configFilePath": "tsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": -1, + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js index 814f4b9bf6d..120701d86ac 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js @@ -7,19 +7,19 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": -1 - } + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": -1 + } } configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": -1, - "configFilePath": "tsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": -1, + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js index 919cd5a6a57..35db85805c8 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js @@ -7,27 +7,27 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - " " - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js index d304abeb726..d6f2192a91e 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js @@ -7,31 +7,31 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - " " - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:8:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:8:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -8 " " -   ~~~~~ +8 " " +   ~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js index 082ae9d08bd..0305e62a881 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - " " - ] - } + "compilerOptions": { + "moduleSuffixes": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - " " - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + " " + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js index 082ae9d08bd..0305e62a881 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - " " - ] - } + "compilerOptions": { + "moduleSuffixes": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - " " - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + " " + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js index d2a216a02e2..37c9d09e746 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js @@ -31,9 +31,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "module": 99, - "experimentalDecorators": true, - "configFilePath": "tsconfig.json" + "module": 99, + "experimentalDecorators": true, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js index 8ee271bbee8..dcbb9d1d452 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js index 269283eb9d5..171b47e984e 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js @@ -17,8 +17,8 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "module": 99, - "configFilePath": "tsconfig.json" + "module": 99, + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js index 64ecb5e2fc6..8dac8661f4b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js @@ -14,7 +14,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:2:13 - error TS6258: 'module' should be set inside the 'compilerOptions' object of the config json file diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js index 95ff0f2309a..65f64251edc 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js @@ -7,32 +7,32 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] - } + "typeAcquisition": { + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js index 95ff0f2309a..65f64251edc 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,32 +7,32 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] - } + "typeAcquisition": { + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js index 868fb7743dd..0700d602f52 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js index 868fb7743dd..0700d602f52 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js index 4b98a66335b..66f667524d4 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js index 4b98a66335b..66f667524d4 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js index f93cdebf07d..fd07676eb9d 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js index fdb27fee0f5..d6b951309ef 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: -jsconfig.json:3:3 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. +jsconfig.json:3:5 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. -3 "enableAutoDiscovy": true -   ~~~~~~~~~~~~~~~~~~~ +3 "enableAutoDiscovy": true +   ~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js index ec3afbb22ba..56dabbe3e16 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js index b2e3f9703ca..c045d54ba7a 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: -tsconfig.json:3:3 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. +tsconfig.json:3:5 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. -3 "enableAutoDiscovy": true -   ~~~~~~~~~~~~~~~~~~~ +3 "enableAutoDiscovy": true +   ~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js index 654798085f9..ea4e17c43f5 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js @@ -7,28 +7,28 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] - } + "typeAcquisition": { + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js index 654798085f9..ea4e17c43f5 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,28 +7,28 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] - } + "typeAcquisition": { + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js index c5b848a23b5..bfe5ba3f284 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false - } + "typeAcquisition": { + "enable": false + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js index c5b848a23b5..bfe5ba3f284 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false - } + "typeAcquisition": { + "enable": false + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js index e9cfcace7b5..cc0c863a317 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true - } + "typeAcquisition": { + "enable": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js index e9cfcace7b5..cc0c863a317 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true - } + "typeAcquisition": { + "enable": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js index 3998377aab0..b264a41d78d 100644 --- a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js +++ b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "z" - ] + "include": [ + "z" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,32 +78,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js index 57ebdd5c647..e0f27a87a22 100644 --- a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "z" - ] + "include": [ + "z" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,31 +78,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z" - ] - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z" + ] + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/always include literal files with json api.js b/tests/baselines/reference/config/matchFiles/always include literal files with json api.js index a80b94f9b68..e0d835c1638 100644 --- a/tests/baselines/reference/config/matchFiles/always include literal files with json api.js +++ b/tests/baselines/reference/config/matchFiles/always include literal files with json api.js @@ -1,14 +1,14 @@ config: { - "files": [ - "a.ts" - ], - "include": [ - "*/z.ts" - ], - "exclude": [ - "**/a.ts" - ] + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,33 +84,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts" - ], - "include": [ - "*/z.ts" - ], - "exclude": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js index 1c730b32eb5..9adab813d03 100644 --- a/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js @@ -1,14 +1,14 @@ config: { - "files": [ - "a.ts" - ], - "include": [ - "*/z.ts" - ], - "exclude": [ - "**/a.ts" - ] + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,32 +84,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], - "include": [ - "*/z.ts" - ], - "exclude": [ - "**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js b/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js index 1bee3c7ab69..ab47694562f 100644 --- a/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js +++ b/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [] + "include": [ + "**/a.ts" + ], + "exclude": [] } Fs:: //// [c:/dev/a.d.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" ], - "exclude": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js index d4ece58b81d..b397599711e 100644 --- a/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [] + "include": [ + "**/a.ts" + ], + "exclude": [] } Fs:: //// [c:/dev/a.d.ts] @@ -34,28 +34,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" ], - "exclude": [] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and exclusions with json api.js b/tests/baselines/reference/config/matchFiles/and exclusions with json api.js index b32af48d227..f1aab891a28 100644 --- a/tests/baselines/reference/config/matchFiles/and exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/and exclusions with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/?.ts" - ], - "exclude": [ - "a.ts" - ] + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -36,31 +36,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/?.ts" - ], - "exclude": [ - "a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/b.ts", + "c:/dev/x/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js index 2365e1a7903..817daa63dda 100644 --- a/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/?.ts" - ], - "exclude": [ - "a.ts" - ] + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -36,30 +36,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/?.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/b.ts", + "c:/dev/x/a.ts" ], - "exclude": [ - "a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js b/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js index 1821e59ed23..61ac49c9b63 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" - ] + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,30 +34,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js index 3f47bed36a9..05a5a86fc0c 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" - ] + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js index 83bee1dabe6..a2353373514 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*/a.ts", - "node_modules/a.ts" - ] + "include": [ + "*/a.ts", + "node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts", - "node_modules/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts", + "node_modules/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js index 421e96679c6..76f8aab2fac 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*/a.ts", - "node_modules/a.ts" - ] + "include": [ + "*/a.ts", + "node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,28 +34,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts", - "node_modules/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts", + "node_modules/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js b/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js index d731b74f840..ab0a2d43b6a 100644 --- a/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,28 +33,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js index a5462b86bb3..4a9aaeef394 100644 --- a/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,27 +33,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js b/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js index fe0804dc6a4..01507a0e38c 100644 --- a/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js +++ b/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/a.ts" - ] + "include": [ + "*/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,27 +33,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js index 7e28ff89961..7c9fec3180a 100644 --- a/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/a.ts" - ] + "include": [ + "*/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,26 +33,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js index 2b5129a8a20..407aca960da 100644 --- a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js @@ -1,12 +1,12 @@ config: { - "files": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,30 +82,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js index db253ef243a..8e5ffab0f7c 100644 --- a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "files": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,29 +82,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], - "exclude": [ - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js index 98c1a4543d9..be5bc206e61 100644 --- a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js +++ b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js @@ -1,8 +1,8 @@ config: { - "exclude": [ - "**/x" - ] + "exclude": [ + "**/x" + ] } Fs:: //// [/dev/A.ts] @@ -72,25 +72,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "exclude": [ - "**/x" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "exclude": [ + "**/x" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**/x"]'. diff --git a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js index c0cc715e610..10d29daebfa 100644 --- a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "exclude": [ - "**/x" - ] + "exclude": [ + "**/x" + ] } Fs:: //// [/dev/A.ts] @@ -72,24 +72,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "exclude": [ - "**/x" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "exclude": [ + "**/x" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**/x"]'. diff --git a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js index c0baf78d540..44426b4c140 100644 --- a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js +++ b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/x", - "**/a/**/b" - ] + "include": [ + "**/x", + "**/a/**/b" + ] } Fs:: //// [/dev/A.ts] @@ -73,26 +73,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x", - "**/a/**/b" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x", + "**/a/**/b" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/x","**/a/**/b"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js index 16e9270262f..70ce6b45ac9 100644 --- a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/x", - "**/a/**/b" - ] + "include": [ + "**/x", + "**/a/**/b" + ] } Fs:: //// [/dev/A.ts] @@ -73,25 +73,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x", - "**/a/**/b" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x", + "**/a/**/b" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/x","**/a/**/b"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js index 7d4e7367994..a25e9f1d208 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js @@ -14,26 +14,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/Yosemite.ts", - "c:/dev/xylophone.ts", - "c:/dev/zebra.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/Yosemite.ts", + "c:/dev/xylophone.ts", + "c:/dev/zebra.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js index 287a1a916dd..df2b0e785cc 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js @@ -14,24 +14,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/Yosemite.ts", - "c:/dev/xylophone.ts", - "c:/dev/zebra.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/Yosemite.ts", + "c:/dev/xylophone.ts", + "c:/dev/zebra.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js index dcdf5cebde4..3f10f2cbc18 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js @@ -14,22 +14,22 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js index dc0755bf6f3..fb99c9df032 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js @@ -14,20 +14,20 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/case sensitive with json api.js b/tests/baselines/reference/config/matchFiles/case sensitive with json api.js index eacd16926c4..6dc36dda48b 100644 --- a/tests/baselines/reference/config/matchFiles/case sensitive with json api.js +++ b/tests/baselines/reference/config/matchFiles/case sensitive with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/A.ts" - ] + "include": [ + "**/A.ts" + ] } Fs:: //// [/dev/A.ts] @@ -72,25 +72,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/A.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/A.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/A.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js index 8354874b166..c87e3846a3c 100644 --- a/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/A.ts" - ] + "include": [ + "**/A.ts" + ] } Fs:: //// [/dev/A.ts] @@ -72,24 +72,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/A.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/A.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/A.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js index 8abd00d303d..57d16bba59f 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": false - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,29 +81,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" }, - "include": [ - "js/*" - ], "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["js/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js index 8abe45c57bd..e410a7c082d 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": false - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,28 +81,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["js/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js index f2515327be3..53343a4274e 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js @@ -1,14 +1,14 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ], - "exclude": [ - "js/a*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,34 +84,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" - ], - "exclude": [ - "js/a*" + "fileNames": [ + "c:/dev/js/d.min.js" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js index f4f481ce27a..a374b5fae42 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js @@ -1,14 +1,14 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ], - "exclude": [ - "js/a*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,33 +84,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" + "fileNames": [ + "c:/dev/js/d.min.js" ], - "exclude": [ - "js/a*" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js index 2b8d54e5382..a59ece3dd11 100644 --- a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/**/*" - ], - "exclude": [ - "c:/ext/b/a..b.ts" - ] + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,30 +81,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/**/*" - ], - "exclude": [ - "c:/ext/b/a..b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js index 3c749ba5aef..3cd8e16c195 100644 --- a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/**/*" - ], - "exclude": [ - "c:/ext/b/a..b.ts" - ] + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,29 +81,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/**/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], - "exclude": [ - "c:/ext/b/a..b.ts" - ] - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ] + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude folders with json api.js b/tests/baselines/reference/config/matchFiles/exclude folders with json api.js index bfbc9b3dc00..9f7b2d9b36a 100644 --- a/tests/baselines/reference/config/matchFiles/exclude folders with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude folders with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "z", - "x" - ] + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,33 +82,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" - ], - "exclude": [ - "z", - "x" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js index 2345662ea47..cd2d0b74a5f 100644 --- a/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "z", - "x" - ] + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,32 +82,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], - "exclude": [ - "z", - "x" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js index 373996f1495..af80907d365 100644 --- a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ] + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,26 +81,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["c:/**/*"]' and 'exclude' paths were '["../**"]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js index aacae1a8299..02db83c0325 100644 --- a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ] + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,25 +81,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["c:/**/*"]' and 'exclude' paths were '["../**"]'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js index 3792b9bc78c..ee76e7b29fd 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/y/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,33 +81,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/y/.." + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/..'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js index 5af1e5230aa..7d5f948f767 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/y/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,36 +81,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], - "exclude": [ - "**/y/.." - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: -tsconfig.json:6:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/..'. +tsconfig.json:6:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/..'. -6 "**/y/.." -   ~~~~~~~~~ +6 "**/y/.." +   ~~~~~~~~~ diff --git a/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js b/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js index eb4c641aef2..7963fa17063 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,33 +81,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/.." + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/..'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js index d0e3d6356e4..cadb07e8187 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,36 +81,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], - "exclude": [ - "**/.." - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: -tsconfig.json:6:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/..'. +tsconfig.json:6:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/..'. -6 "**/.." -   ~~~~~~~ +6 "**/.." +   ~~~~~~~ diff --git a/tests/baselines/reference/config/matchFiles/in excludes with json api.js b/tests/baselines/reference/config/matchFiles/in excludes with json api.js index fdea974132a..77005982a73 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/x/**" - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,31 +81,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/x/**" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js index 2c35e4f366b..8707e5c9ab5 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/x/**" - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,30 +81,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/z/a.ts" ], - "exclude": [ - "**/x/**" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js index 989b631a68f..9324c8ad7f4 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ] + "include": [ + "**/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,26 +81,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**"]'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js index 06b77203f52..d4ccd9cc87a 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ] + "include": [ + "**/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,25 +81,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**"]'. diff --git a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js index 85c93a0b484..3a962ca7424 100644 --- a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/y/../*" - ] + "include": [ + "**/y/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,23 +78,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/y/../*" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/y/../*" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/../*'. diff --git a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js index b6cd1c33ddc..bb16cae994e 100644 --- a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/y/../*" - ] + "include": [ + "**/y/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/y/../*" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/y/../*" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: -tsconfig.json:3:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/../*'. +tsconfig.json:3:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/../*'. -3 "**/y/../*" -   ~~~~~~~~~~~ +3 "**/y/../*" +   ~~~~~~~~~~~ error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/y/../*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js b/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js index ae93f65c99c..ed19a8de35c 100644 --- a/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/../*" - ] + "include": [ + "**/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,23 +78,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/../*" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/../*" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. diff --git a/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js index c073e84ce2d..f1693a848d2 100644 --- a/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/../*" - ] + "include": [ + "**/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/../*" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/../*" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: -tsconfig.json:3:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. +tsconfig.json:3:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. -3 "**/../*" -   ~~~~~~~~~ +3 "**/../*" +   ~~~~~~~~~ error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/../*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js index cf4673cab1b..8a1960d7980 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/x/**/*" - ] + "include": [ + "**/x/**/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,31 +78,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts", - "c:/dev/x/y/a.ts", - "c:/dev/x/y/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x/**/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts", + "c:/dev/x/y/a.ts", + "c:/dev/x/y/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x/**/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js index 0ee0690bf7e..4207e3fff7b 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/x/**/*" - ] + "include": [ + "**/x/**/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,30 +78,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts", - "c:/dev/x/y/a.ts", - "c:/dev/x/y/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x/**/*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts", + "c:/dev/x/y/a.ts", + "c:/dev/x/y/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x/**/*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js index 2df0a02448b..0dffc1f4a19 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**" - ] + "include": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,23 +78,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS5010: File specification cannot end in a recursive directory wildcard ('**'): '**'. diff --git a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js index 59e50c45b49..35f7c448c53 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**" - ] + "include": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: -tsconfig.json:3:3 - error TS5010: File specification cannot end in a recursive directory wildcard ('**'): '**'. +tsconfig.json:3:5 - error TS5010: File specification cannot end in a recursive directory wildcard ('**'): '**'. -3 "**" -   ~~~~ +3 "**" +   ~~~~ error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js index e659849dc28..7664716caf7 100644 --- a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,32 +81,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/a.js", - "c:/dev/js/b.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*" + "fileNames": [ + "c:/dev/js/a.js", + "c:/dev/js/b.js" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js index c64b0de13e8..1662d4d7f95 100644 --- a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,31 +81,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/a.js", - "c:/dev/js/b.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "fileNames": [ + "c:/dev/js/a.js", + "c:/dev/js/b.js" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js index 245e50e95e7..4bb2d8d27d0 100644 --- a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,32 +81,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/ab.min.js", - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" + "fileNames": [ + "c:/dev/js/ab.min.js", + "c:/dev/js/d.min.js" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js index 988d5a28c32..c38d76d9c6e 100644 --- a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,31 +81,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/ab.min.js", - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "fileNames": [ + "c:/dev/js/ab.min.js", + "c:/dev/js/d.min.js" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js b/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js index f1131049a06..c1e60f14da8 100644 --- a/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js +++ b/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/b/a..b.ts" - ], - "exclude": [ - "**" - ] + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,28 +81,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/b/a..b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/b/a..b.ts" - ], - "exclude": [ - "**" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/b/a..b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js index 6230b48f3ed..077e212089a 100644 --- a/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/b/a..b.ts" - ], - "exclude": [ - "**" - ] + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,27 +81,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/b/a..b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/b/a..b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/b/a..b.ts" ], - "exclude": [ - "**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js index 0cff994f910..012db4786d3 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "*", - "../ext/*" - ], - "exclude": [ - "**" - ] + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,31 +82,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "../ext/*" - ], - "exclude": [ - "**" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js index 35e261c5b2e..61b8ee639bb 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "*", - "../ext/*" - ], - "exclude": [ - "**" - ] + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,30 +82,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "../ext/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], - "exclude": [ - "**" - ] - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ] + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js index 168a943a715..dc478100627 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*", - "c:/ext/*" - ] + "include": [ + "*", + "c:/ext/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,32 +79,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts", - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "c:/ext/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts", + "c:/ext/ext.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "c:/ext/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None", + "c:/ext": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None", - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js index 9b5fc7cb68a..2a9135d700a 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*", - "c:/ext/*" - ] + "include": [ + "*", + "c:/ext/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,31 +79,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts", - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "c:/ext/*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None", - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts", + "c:/ext/ext.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "c:/ext/*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None", + "c:/ext": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js index 754659c9633..85152e4b1f6 100644 --- a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js +++ b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z/*.ts", - "x/*.ts" - ] + "include": [ + "z/*.ts", + "x/*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,37 +79,37 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts", - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z/*.ts", - "x/*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts", + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z/*.ts", + "x/*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.None", + "c:/dev/x": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.None", - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js index 4961455ad98..7e03dba39cc 100644 --- a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z/*.ts", - "x/*.ts" - ] + "include": [ + "z/*.ts", + "x/*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,36 +79,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts", - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z/*.ts", - "x/*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.None", - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts", + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z/*.ts", + "x/*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.None", + "c:/dev/x": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js b/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js index 0e856bcc8dd..6bd0732c33b 100644 --- a/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js +++ b/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "z.ts", - "x.ts" - ] + "files": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,27 +79,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z.ts", - "c:/dev/x.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "z.ts", - "x.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z.ts", + "c:/dev/x.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "z.ts", + "x.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js index 0a8f3b90d49..bfbcd950087 100644 --- a/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "z.ts", - "x.ts" - ] + "files": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,26 +79,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z.ts", - "c:/dev/x.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "z.ts", - "x.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z.ts", + "c:/dev/x.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "z.ts", + "x.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js b/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js index ad593920384..22f1cea42b7 100644 --- a/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js +++ b/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "x/?.ts" - ] + "include": [ + "x/?.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,28 +78,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/?.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/?.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js index 19959f4698a..15c8873a7cc 100644 --- a/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "x/?.ts" - ] + "include": [ + "x/?.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/?.ts" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/?.ts" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js index 91fcf3fc668..a5da485ded1 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,29 +78,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js index d0a89f98e44..3720faaaf2a 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,28 +78,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js index 2919f010225..46e52a49db2 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js index c995a1aaf29..92a08c8a46d 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,32 +46,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js index e720253f033..447236fce69 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.ts", - "*.d.ts" - ] + "include": [ + "*.ts", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts", - "*.d.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts", + "*.d.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js index f6fe6ac8399..ae5f0c97d09 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.ts", - "*.d.ts" - ] + "include": [ + "*.ts", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,32 +46,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts", - "*.d.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts", + "*.d.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js index 464b696cc30..3f26a449e4c 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,34 +46,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js index dee8f48844a..1629813a935 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js index e3d978c412c..00e3e43b1a4 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,32 +45,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js index 6f79d590138..fd29b9899b0 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,31 +45,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js index 2919f010225..46e52a49db2 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js index c995a1aaf29..92a08c8a46d 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,32 +46,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js index 464b696cc30..3f26a449e4c 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,34 +46,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js index dee8f48844a..1629813a935 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js index 371e54a4fc1..f9b99b4605d 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.tsx" - ] + "include": [ + "*.tsx" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,30 +45,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js index fa4240db4d5..83928cdd301 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.tsx" - ] + "include": [ + "*.tsx" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,29 +45,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js b/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js index 45e0d5ba496..5bb1fcf7b92 100644 --- a/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js +++ b/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*" - ] + "include": [ + "*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,29 +78,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js index ce3a1bd8a0f..fae6434f568 100644 --- a/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*" - ] + "include": [ + "*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,28 +78,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js b/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js index c3f5e3710bd..a542fe7d5ce 100644 --- a/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js +++ b/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/*", - "w/*/*" - ] + "include": [ + "x/**/*", + "w/*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,30 +34,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/d.ts", - "c:/dev/x/y/d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/*", - "w/*/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/d.ts", + "c:/dev/x/y/d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/*", + "w/*/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/w": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/w": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js index 0f817bc7e45..9a558920241 100644 --- a/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/*", - "w/*/*" - ] + "include": [ + "x/**/*", + "w/*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/d.ts", - "c:/dev/x/y/d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/*", - "w/*/*" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/w": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/d.ts", + "c:/dev/x/y/d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/*", + "w/*/*" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/w": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js index 20c49780894..3824ec23e86 100644 --- a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js +++ b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js @@ -11,24 +11,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/index.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/index.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js index f8fea8e6e3e..22c5f392777 100644 --- a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js @@ -11,22 +11,22 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/index.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/index.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js index 893aa2d70bb..cdd1e492edc 100644 --- a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js +++ b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [/dev/A.ts] @@ -75,26 +75,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["B.ts"]' and 'exclude' paths were '["**/b.ts"]'. diff --git a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js index e7b11727e4a..b42cc5c42eb 100644 --- a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [/dev/A.ts] @@ -75,25 +75,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["B.ts"]' and 'exclude' paths were '["**/b.ts"]'. diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js index 2f4f9bda3d3..3d7c0936b9c 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,33 +37,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js index 544280641d1..c5ebf7c3b87 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,32 +37,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js index be9925b06f4..5b0a8085675 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ], - "exclude": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -41,35 +41,35 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ], - "exclude": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js index b01acd4b9f9..2ab73bedde9 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ], - "exclude": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -41,34 +41,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], - "exclude": [ - "a.ts", - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js index 2f4f9bda3d3..3d7c0936b9c 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,33 +37,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js index 544280641d1..c5ebf7c3b87 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,32 +37,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with defaults with json api.js b/tests/baselines/reference/config/matchFiles/with defaults with json api.js index a91a4e7b5a2..fb2aec6b856 100644 --- a/tests/baselines/reference/config/matchFiles/with defaults with json api.js +++ b/tests/baselines/reference/config/matchFiles/with defaults with json api.js @@ -29,26 +29,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js index f4101c99717..a9e8134876f 100644 --- a/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js @@ -29,24 +29,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js index ff009e69f0c..879abeee3aa 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": false - } + "compilerOptions": { + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,30 +42,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js index 9ffe7842131..3c5a5379091 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": false - } + "compilerOptions": { + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,29 +42,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js index fbcef69799d..7b625f9a8d1 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": true - } + "compilerOptions": { + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,32 +42,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js index fab75bbcc11..b90f9c52063 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": true - } + "compilerOptions": { + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,31 +42,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js index d9ec43f454a..4349e4c540a 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,32 +43,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false + "options": { + "jsx": 1, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js index a5d7cb2bd44..50045d299aa 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,31 +43,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 1, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js index 99c17534127..e10d47e53cc 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,34 +43,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true + "options": { + "jsx": 1, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js index ecd1e44fde1..46562aec81b 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,33 +43,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 1, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js index e74950607a6..62111c7a4e7 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,32 +43,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false + "options": { + "jsx": 3, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js index 8148573f9ef..8e64e1f3521 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,31 +43,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 3, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js index 46acb795c50..89e204db262 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,34 +43,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true + "options": { + "jsx": 3, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js index c53d583a5e7..8136cd662b7 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,33 +43,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 3, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js b/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js index 5440c5aa65c..28156e0c5b8 100644 --- a/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,29 +82,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js index 5c8401da57e..e87915cc5cd 100644 --- a/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,28 +82,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], - "exclude": [ - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js index b067af459a6..832130f9163 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z.ts", - "x.ts" - ] + "include": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,24 +79,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z.ts", - "x.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z.ts", + "x.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["z.ts","x.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js index f534765db3f..f377ecb2693 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z.ts", - "x.ts" - ] + "include": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,23 +79,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z.ts", - "x.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z.ts", + "x.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["z.ts","x.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js index bbf8b64c14f..dcbae2680b9 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/z.ts" - ] + "include": [ + "*/z.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,25 +78,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/z.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/z.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["*/z.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js index 3396b3630e0..122c2fb058e 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/z.ts" - ] + "include": [ + "*/z.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,24 +78,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/z.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/z.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["*/z.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js index 7c863e1c544..4181f905baa 100644 --- a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js +++ b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js @@ -1,10 +1,10 @@ config: { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" - ] + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -80,32 +80,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/y/a.ts", - "c:/dev/x/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/y/a.ts", + "c:/dev/x/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js index 0f79bd98983..974ad145cc6 100644 --- a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js @@ -1,10 +1,10 @@ config: { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" - ] + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -80,31 +80,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/y/a.ts", - "c:/dev/x/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/y/a.ts", + "c:/dev/x/a.ts", + "c:/dev/z/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js index 0f84295e12d..72f2adbdc6a 100644 --- a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js +++ b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.js", - "b.js" - ] + "include": [ + "a.js", + "b.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,24 +79,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.js", - "b.js" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.js", + "b.js" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["a.js","b.js"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js index 18c0e0efa9a..09fb7029caa 100644 --- a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.js", - "b.js" - ] + "include": [ + "a.js", + "b.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,23 +79,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.js", - "b.js" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.js", + "b.js" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["a.js","b.js"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js b/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js index db2d570e6ce..402839080d9 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,30 +78,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js index d2aedb139a5..222cdb50be2 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,29 +78,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js b/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js index fe44fe81307..6719d92173c 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -86,35 +86,35 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" - ], - "exclude": [ - "**/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js index ba00ddf5f9f..3552088a4aa 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -86,34 +86,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts" ], - "exclude": [ - "**/b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js index bc489887e96..411da86d786 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/.*/*" - ] + "include": [ + "**/.*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -33,30 +33,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/.z/c.ts", - "c:/dev/g.min.js/.g/g.ts", - "c:/dev/w/.u/e.ts", - "c:/dev/x/.y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/.z/c.ts", + "c:/dev/g.min.js/.g/g.ts", + "c:/dev/w/.u/e.ts", + "c:/dev/x/.y/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js index 94906639802..995b8da037a 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/.*/*" - ] + "include": [ + "**/.*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -33,29 +33,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/.z/c.ts", - "c:/dev/g.min.js/.g/g.ts", - "c:/dev/w/.u/e.ts", - "c:/dev/x/.y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/.z/c.ts", + "c:/dev/g.min.js/.g/g.ts", + "c:/dev/w/.u/e.ts", + "c:/dev/x/.y/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js index a2f4a468a14..635817aaf45 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/.y/*", - ".z/**/.*" - ] + "include": [ + "x/**/.y/*", + ".z/**/.*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,30 +34,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/.y/*", - ".z/**/.*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/.y/*", + ".z/**/.*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/.z": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/.z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js index e30f906e18d..a44ddb2da7d 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/.y/*", - ".z/**/.*" - ] + "include": [ + "x/**/.y/*", + ".z/**/.*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/.y/*", - ".z/**/.*" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/.z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/.y/*", + ".z/**/.*" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/.z": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js index 63be05aeba9..767bf464f9c 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ] + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -36,26 +36,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/.*/*"]' and 'exclude' paths were '["**/*"]'. diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js index 226284fe14f..ac091d35e60 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ] + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -36,25 +36,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/.*/*"]' and 'exclude' paths were '["**/*"]'. diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js index c5711d8d642..2b7942a912a 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js @@ -1,18 +1,18 @@ config: { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" - ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -88,36 +88,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" - ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js index 689aac8dba5..8c1f1040c0d 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js @@ -1,18 +1,18 @@ config: { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" - ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -88,35 +88,35 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts" ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js index c3e7aa29953..d91a0950176 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "a.ts", - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,27 +79,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js index 10fe1fcd3ae..6c5e86bb595 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "a.ts", - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,26 +79,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js index 7bd60f518d5..cf205e908ec 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,27 +79,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js index 69c1aa6c265..2e22319f70c 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,26 +79,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without wildcards with json api.js b/tests/baselines/reference/config/matchFiles/without wildcards with json api.js index 04924a1e9fa..e89c3fec606 100644 --- a/tests/baselines/reference/config/matchFiles/without wildcards with json api.js +++ b/tests/baselines/reference/config/matchFiles/without wildcards with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" - ] + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,27 +34,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js index 5798a483fb3..0ed3449d0bc 100644 --- a/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" - ] + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,26 +34,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js index 9dde48a11b4..60c02aafc81 100644 --- a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js @@ -1,6 +1,11 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["./","./**/*.json"]} +{ + "include": [ + "./", + "./**/*.json" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js index 9dde48a11b4..60c02aafc81 100644 --- a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js @@ -1,6 +1,11 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["./","./**/*.json"]} +{ + "include": [ + "./", + "./**/*.json" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js index 1da683b04b8..26382641787 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js @@ -3,7 +3,11 @@ Fs:: //// [/apath/tsconfig.json] -{"compilerOptions":{"help":true}} +{ + "compilerOptions": { + "help": true + } +} configFileName:: /apath/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js index 0b796635dbf..f3d7aec1f97 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js @@ -3,15 +3,19 @@ Fs:: //// [/apath/tsconfig.json] -{"compilerOptions":{"help":true}} +{ + "compilerOptions": { + "help": true + } +} configFileName:: /apath/tsconfig.json FileNames:: /apath/a.ts Errors:: -/apath/tsconfig.json:1:21 - error TS6266: Option 'help' can only be specified on command line. +/apath/tsconfig.json:3:5 - error TS6266: Option 'help' can only be specified on command line. -1 {"compilerOptions":{"help":true}} -   ~~~~~~ +3 "help": true +   ~~~~~~ diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js index 9e9aa45cb02..84e229b6d89 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js @@ -3,7 +3,16 @@ Fs:: //// [/apath/tsconfig.json] -{"files":[{"compilerOptions":{"experimentalDecorators":true,"allowJs":true}}]} +{ + "files": [ + { + "compilerOptions": { + "experimentalDecorators": true, + "allowJs": true + } + } + ] +} configFileName:: /apath/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js index 5b0a30c38f4..cb084081ffc 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js @@ -3,15 +3,31 @@ Fs:: //// [/apath/tsconfig.json] -{"files":[{"compilerOptions":{"experimentalDecorators":true,"allowJs":true}}]} +{ + "files": [ + { + "compilerOptions": { + "experimentalDecorators": true, + "allowJs": true + } + } + ] +} configFileName:: /apath/tsconfig.json FileNames:: Errors:: -/apath/tsconfig.json:1:11 - error TS5024: Compiler option 'files' requires a value of type string. +/apath/tsconfig.json:3:5 - error TS5024: Compiler option 'files' requires a value of type string. -1 {"files":[{"compilerOptions":{"experimentalDecorators":true,"allowJs":true}}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 3 { +   ~ + 4 "compilerOptions": { +  ~~~~~~~~~~~~~~~~~~~~~~~~~~ +... + 7 } +  ~~~~~~~ + 8 } +  ~~~~~ diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js index b4e1615120a..e4e6af740d5 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js @@ -3,7 +3,13 @@ Fs:: //// [/apath/tsconfig.json] -{"include":[["./**/*.ts"]]} +{ + "include": [ + [ + "./**/*.ts" + ] + ] +} configFileName:: /apath/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js index 2f9c86b9a82..e548ad9e333 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js @@ -3,16 +3,26 @@ Fs:: //// [/apath/tsconfig.json] -{"include":[["./**/*.ts"]]} +{ + "include": [ + [ + "./**/*.ts" + ] + ] +} configFileName:: /apath/tsconfig.json FileNames:: Errors:: -/apath/tsconfig.json:1:13 - error TS5024: Compiler option 'include' requires a value of type string. +/apath/tsconfig.json:3:5 - error TS5024: Compiler option 'include' requires a value of type string. -1 {"include":[["./**/*.ts"]]} -   ~~~~~~~~~~~~~ +3 [ +   ~ +4 "./**/*.ts" +  ~~~~~~~~~~~~~~~~~ +5 ] +  ~~~~~ error TS18003: No inputs were found in config file '/apath/tsconfig.json'. Specified 'include' paths were '[["./**/*.ts"]]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js index 03adeb8b825..90269c8c17d 100644 --- a/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js @@ -6,9 +6,9 @@ Input:: } Config:: { - "exclude": [ - "xx\"//files" - ] + "exclude": [ + "xx\"//files" + ] } Errors:: @@ -21,9 +21,9 @@ Input:: } Config:: { - "exclude": [ - "xx\\" - ] + "exclude": [ + "xx\\" + ] } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js index 93db9affa44..e2647d8ef8a 100644 --- a/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js @@ -6,9 +6,9 @@ Input:: } Config:: { - "exclude": [ - "xx//file.d.ts" - ] + "exclude": [ + "xx//file.d.ts" + ] } Errors:: @@ -21,9 +21,9 @@ Input:: } Config:: { - "exclude": [ - "xx/*file.d.ts*/" - ] + "exclude": [ + "xx/*file.d.ts*/" + ] } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js b/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js index dc6be67e56c..6973bd8078e 100644 --- a/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js +++ b/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js @@ -9,13 +9,13 @@ Initial:: } Result:: { - "compilerOptions": { - "allowJs": true, - "outDir": "bin" - }, - "files": [ - "file1.ts" - ] + "compilerOptions": { + "allowJs": true, + "outDir": "bin" + }, + "files": [ + "file1.ts" + ] } Errors:: config.json:5:21 - error TS1005: ',' expected. diff --git a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js index 77f4867a42f..d93448031e8 100644 --- a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js @@ -1,6 +1,10 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js index 77f4867a42f..d93448031e8 100644 --- a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js @@ -1,6 +1,10 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js index af0aa1822f9..a4cf7c41aee 100644 --- a/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js @@ -7,9 +7,9 @@ Input:: } Config:: { - "exclude": [ - "file.d.ts" - ] + "exclude": [ + "file.d.ts" + ] } Errors:: @@ -25,9 +25,9 @@ Input:: } Config:: { - "exclude": [ - "file.d.ts" - ] + "exclude": [ + "file.d.ts" + ] } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js index da573d50493..a8d90166904 100644 --- a/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js @@ -6,11 +6,11 @@ Input:: } Config:: { - "compilerOptions": { - "lib": [ - "es5" - ] - } + "compilerOptions": { + "lib": [ + "es5" + ] + } } Errors:: @@ -23,12 +23,12 @@ Input:: } Config:: { - "compilerOptions": { - "lib": [ - "es5", - "es6" - ] - } + "compilerOptions": { + "lib": [ + "es5", + "es6" + ] + } } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js index 10368b04e7c..5e801403a74 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -24,16 +24,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchDirectory": "UseFsEvents" - } + "watchOptions": { + "watchDirectory": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchDirectory": 0 + "watchDirectory": 0 } Errors:: @@ -44,16 +44,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "fallbackPolling": "DynamicPriority" - } + "watchOptions": { + "fallbackPolling": "DynamicPriority" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "fallbackPolling": 2 + "fallbackPolling": 2 } Errors:: @@ -64,16 +64,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { + "watchOptions": { + "synchronousWatchDirectory": true + } +} + + +configFileName:: tsconfig.json +Result: WatchOptions:: +{ "synchronousWatchDirectory": true - } -} - - -configFileName:: tsconfig.json -Result: WatchOptions:: -{ - "synchronousWatchDirectory": true } Errors:: @@ -84,20 +84,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } +} + + +configFileName:: tsconfig.json +Result: WatchOptions:: +{ "excludeDirectories": [ - "**/temp" + "/**/temp" ] - } -} - - -configFileName:: tsconfig.json -Result: WatchOptions:: -{ - "excludeDirectories": [ - "/**/temp" - ] } Errors:: @@ -108,20 +108,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { + "watchOptions": { + "excludeFiles": [ + "**/temp/*.ts" + ] + } +} + + +configFileName:: tsconfig.json +Result: WatchOptions:: +{ "excludeFiles": [ - "**/temp/*.ts" + "/**/temp/*.ts" ] - } -} - - -configFileName:: tsconfig.json -Result: WatchOptions:: -{ - "excludeFiles": [ - "/**/temp/*.ts" - ] } Errors:: @@ -132,18 +132,18 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeDirectories": [ - "**/../*" - ] - } + "watchOptions": { + "excludeDirectories": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. @@ -155,18 +155,18 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeFiles": [ - "**/../*" - ] - } + "watchOptions": { + "excludeFiles": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js index 7748786348f..5849fea21ad 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -24,16 +24,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchDirectory": "UseFsEvents" - } + "watchOptions": { + "watchDirectory": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchDirectory": 0 + "watchDirectory": 0 } Errors:: @@ -44,16 +44,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "fallbackPolling": "DynamicPriority" - } + "watchOptions": { + "fallbackPolling": "DynamicPriority" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "fallbackPolling": 2 + "fallbackPolling": 2 } Errors:: @@ -64,16 +64,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { + "watchOptions": { + "synchronousWatchDirectory": true + } +} + + +configFileName:: tsconfig.json +Result: WatchOptions:: +{ "synchronousWatchDirectory": true - } -} - - -configFileName:: tsconfig.json -Result: WatchOptions:: -{ - "synchronousWatchDirectory": true } Errors:: @@ -84,20 +84,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } +} + + +configFileName:: tsconfig.json +Result: WatchOptions:: +{ "excludeDirectories": [ - "**/temp" + "/**/temp" ] - } -} - - -configFileName:: tsconfig.json -Result: WatchOptions:: -{ - "excludeDirectories": [ - "/**/temp" - ] } Errors:: @@ -108,20 +108,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { + "watchOptions": { + "excludeFiles": [ + "**/temp/*.ts" + ] + } +} + + +configFileName:: tsconfig.json +Result: WatchOptions:: +{ "excludeFiles": [ - "**/temp/*.ts" + "/**/temp/*.ts" ] - } -} - - -configFileName:: tsconfig.json -Result: WatchOptions:: -{ - "excludeFiles": [ - "/**/temp/*.ts" - ] } Errors:: @@ -132,24 +132,24 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeDirectories": [ - "**/../*" - ] - } + "watchOptions": { + "excludeDirectories": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } Errors:: -tsconfig.json:4:4 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. +tsconfig.json:4:7 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. -4 "**/../*" -   ~~~~~~~~~ +4 "**/../*" +   ~~~~~~~~~ Fs:: @@ -158,22 +158,22 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeFiles": [ - "**/../*" - ] - } + "watchOptions": { + "excludeFiles": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } Errors:: -tsconfig.json:4:4 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. +tsconfig.json:4:7 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. -4 "**/../*" -   ~~~~~~~~~ +4 "**/../*" +   ~~~~~~~~~ diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js index f74ac086ed4..a1252ed68d8 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js @@ -4,7 +4,7 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": {} + "watchOptions": {} } diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js index f74ac086ed4..a1252ed68d8 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js @@ -4,7 +4,7 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": {} + "watchOptions": {} } diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js index ecbeed86993..b6bf751f40d 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js index ecbeed86993..b6bf751f40d 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js index 92ed497816a..b95fe3e4a4a 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js @@ -3,22 +3,27 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4, - "watchDirectory": 1 + "watchFile": 4, + "watchDirectory": 1 } Errors:: @@ -28,19 +33,24 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 5, - "watchDirectory": 1 + "watchFile": 5, + "watchDirectory": 1 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js index 92ed497816a..b95fe3e4a4a 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js @@ -3,22 +3,27 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4, - "watchDirectory": 1 + "watchFile": 4, + "watchDirectory": 1 } Errors:: @@ -28,19 +33,24 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 5, - "watchDirectory": 1 + "watchFile": 5, + "watchDirectory": 1 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js index e08330e344f..c7c8cacdf68 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js @@ -7,17 +7,17 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -31,7 +31,7 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js index e08330e344f..c7c8cacdf68 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js @@ -7,17 +7,17 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -31,7 +31,7 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } diff --git a/tests/baselines/reference/contextualTypeOnYield1.types b/tests/baselines/reference/contextualTypeOnYield1.types index 870328bf651..abca3a31769 100644 --- a/tests/baselines/reference/contextualTypeOnYield1.types +++ b/tests/baselines/reference/contextualTypeOnYield1.types @@ -7,10 +7,10 @@ type FuncOrGeneratorFunc = () => (number | Generator<(arg: number) => void, any, const f: FuncOrGeneratorFunc = function*() { >f : FuncOrGeneratorFunc ->function*() { yield (num) => console.log(num); // `num` should be inferred to have type `number`.} : () => Generator<(num: number) => void, void, unknown> +>function*() { yield (num) => console.log(num); // `num` should be inferred to have type `number`.} : () => Generator<(num: number) => void, void, void> yield (num) => console.log(num); // `num` should be inferred to have type `number`. ->yield (num) => console.log(num) : any +>yield (num) => console.log(num) : void >(num) => console.log(num) : (num: number) => void >num : number >console.log(num) : void diff --git a/tests/baselines/reference/contextualTypeOnYield2.types b/tests/baselines/reference/contextualTypeOnYield2.types index 36299f95f2b..0d54bdf7dd7 100644 --- a/tests/baselines/reference/contextualTypeOnYield2.types +++ b/tests/baselines/reference/contextualTypeOnYield2.types @@ -7,7 +7,7 @@ type OrGen = () => (number | Generator void, undefined> const g: OrGen = function* () { >g : OrGen ->function* () { return (num) => console.log(num);} : () => Generator void, unknown> +>function* () { return (num) => console.log(num);} : () => Generator void, undefined> return (num) => console.log(num); >(num) => console.log(num) : (num: number) => void diff --git a/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.symbols b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.symbols index e99fbfef554..9c905b48944 100644 --- a/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.symbols +++ b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.symbols @@ -54,3 +54,182 @@ async function fn4(): Promise { }); } + +declare class Context { +>Context : Symbol(Context, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 20, 1)) + + private _runnable; +>_runnable : Symbol(Context._runnable, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 22, 23)) +} +type Done = (err?: any) => void; +>Done : Symbol(Done, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 24, 1)) +>err : Symbol(err, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 25, 13)) + +type Func = (this: Context, done: Done) => void; +>Func : Symbol(Func, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 25, 32)) +>this : Symbol(this, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 26, 13)) +>Context : Symbol(Context, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 20, 1)) +>done : Symbol(done, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 26, 27)) +>Done : Symbol(Done, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 24, 1)) + +type AsyncFunc = (this: Context) => PromiseLike; +>AsyncFunc : Symbol(AsyncFunc, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 26, 48)) +>this : Symbol(this, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 27, 18)) +>Context : Symbol(Context, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 20, 1)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) + +interface TestFunction { +>TestFunction : Symbol(TestFunction, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 27, 53)) + + (fn: Func): void; +>fn : Symbol(fn, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 30, 3)) +>Func : Symbol(Func, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 25, 32)) + + (fn: AsyncFunc): void; +>fn : Symbol(fn, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 31, 3)) +>AsyncFunc : Symbol(AsyncFunc, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 26, 48)) + + (title: string, fn?: Func): void; +>title : Symbol(title, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 32, 3)) +>fn : Symbol(fn, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 32, 17)) +>Func : Symbol(Func, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 25, 32)) + + (title: string, fn?: AsyncFunc): void; +>title : Symbol(title, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 33, 3)) +>fn : Symbol(fn, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 33, 17)) +>AsyncFunc : Symbol(AsyncFunc, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 26, 48)) +} + +declare const test: TestFunction; +>test : Symbol(test, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 36, 13)) +>TestFunction : Symbol(TestFunction, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 27, 53)) + +interface ProcessTreeNode { +>ProcessTreeNode : Symbol(ProcessTreeNode, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 36, 33)) + + pid: number; +>pid : Symbol(ProcessTreeNode.pid, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 38, 27)) + + name: string; +>name : Symbol(ProcessTreeNode.name, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 39, 14)) + + memory?: number; +>memory : Symbol(ProcessTreeNode.memory, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 40, 15)) + + commandLine?: string; +>commandLine : Symbol(ProcessTreeNode.commandLine, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 41, 18)) + + children: ProcessTreeNode[]; +>children : Symbol(ProcessTreeNode.children, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 42, 23)) +>ProcessTreeNode : Symbol(ProcessTreeNode, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 36, 33)) +} + +export declare function getProcessTree( +>getProcessTree : Symbol(getProcessTree, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 44, 1)) + + rootPid: number, +>rootPid : Symbol(rootPid, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 46, 39)) + + callback: (tree: ProcessTreeNode) => void +>callback : Symbol(callback, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 47, 18)) +>tree : Symbol(tree, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 48, 13)) +>ProcessTreeNode : Symbol(ProcessTreeNode, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 36, 33)) + +): void; + +test("windows-process-tree", async () => { +>test : Symbol(test, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 36, 13)) + + return new Promise((resolve, reject) => { +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(resolve, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 52, 22)) +>reject : Symbol(reject, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 52, 30)) + + getProcessTree(123, (tree) => { +>getProcessTree : Symbol(getProcessTree, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 44, 1)) +>tree : Symbol(tree, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 53, 25)) + + if (tree) { +>tree : Symbol(tree, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 53, 25)) + + resolve(); +>resolve : Symbol(resolve, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 52, 22)) + + } else { + reject(new Error("windows-process-tree")); +>reject : Symbol(reject, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 52, 30)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --)) + } + }); + }); +}); + +interface ILocalExtension { +>ILocalExtension : Symbol(ILocalExtension, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 61, 3)) + + isApplicationScoped: boolean; +>isApplicationScoped : Symbol(ILocalExtension.isApplicationScoped, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 63, 27)) + + publisherId: string | null; +>publisherId : Symbol(ILocalExtension.publisherId, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 64, 31)) +} +type Metadata = { +>Metadata : Symbol(Metadata, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 66, 1)) + + updated: boolean; +>updated : Symbol(updated, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 67, 17)) + +}; +declare function scanMetadata( +>scanMetadata : Symbol(scanMetadata, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 69, 2)) + + local: ILocalExtension +>local : Symbol(local, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 70, 30)) +>ILocalExtension : Symbol(ILocalExtension, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 61, 3)) + +): Promise; +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Metadata : Symbol(Metadata, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 66, 1)) + +async function copyExtensions( +>copyExtensions : Symbol(copyExtensions, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 72, 33)) + + fromExtensions: ILocalExtension[] +>fromExtensions : Symbol(fromExtensions, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 74, 30)) +>ILocalExtension : Symbol(ILocalExtension, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 61, 3)) + +): Promise { +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) + + const extensions: [ILocalExtension, Metadata | undefined][] = +>extensions : Symbol(extensions, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 77, 7)) +>ILocalExtension : Symbol(ILocalExtension, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 61, 3)) +>Metadata : Symbol(Metadata, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 66, 1)) + + await Promise.all( +>Promise.all : Symbol(PromiseConstructor.all, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>all : Symbol(PromiseConstructor.all, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + fromExtensions +>fromExtensions .filter((e) => !e.isApplicationScoped) .map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>fromExtensions .filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>fromExtensions : Symbol(fromExtensions, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 74, 30)) + + .filter((e) => !e.isApplicationScoped) +>filter : Symbol(Array.filter, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>e : Symbol(e, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 80, 17)) +>e.isApplicationScoped : Symbol(ILocalExtension.isApplicationScoped, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 63, 27)) +>e : Symbol(e, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 80, 17)) +>isApplicationScoped : Symbol(ILocalExtension.isApplicationScoped, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 63, 27)) + + .map(async (e) => [e, await scanMetadata(e)]) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>e : Symbol(e, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 81, 20)) +>e : Symbol(e, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 81, 20)) +>scanMetadata : Symbol(scanMetadata, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 69, 2)) +>e : Symbol(e, Decl(contextuallyTypeAsyncFunctionReturnType.ts, 81, 20)) + + ); +} + diff --git a/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.types b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.types index 3181dcb9c8a..307d73e306a 100644 --- a/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.types +++ b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnType.types @@ -61,3 +61,179 @@ async function fn4(): Promise { }); } + +declare class Context { +>Context : Context + + private _runnable; +>_runnable : any +} +type Done = (err?: any) => void; +>Done : (err?: any) => void +>err : any + +type Func = (this: Context, done: Done) => void; +>Func : (this: Context, done: Done) => void +>this : Context +>done : Done + +type AsyncFunc = (this: Context) => PromiseLike; +>AsyncFunc : (this: Context) => PromiseLike +>this : Context + +interface TestFunction { + (fn: Func): void; +>fn : Func + + (fn: AsyncFunc): void; +>fn : AsyncFunc + + (title: string, fn?: Func): void; +>title : string +>fn : Func + + (title: string, fn?: AsyncFunc): void; +>title : string +>fn : AsyncFunc +} + +declare const test: TestFunction; +>test : TestFunction + +interface ProcessTreeNode { + pid: number; +>pid : number + + name: string; +>name : string + + memory?: number; +>memory : number + + commandLine?: string; +>commandLine : string + + children: ProcessTreeNode[]; +>children : ProcessTreeNode[] +} + +export declare function getProcessTree( +>getProcessTree : (rootPid: number, callback: (tree: ProcessTreeNode) => void) => void + + rootPid: number, +>rootPid : number + + callback: (tree: ProcessTreeNode) => void +>callback : (tree: ProcessTreeNode) => void +>tree : ProcessTreeNode + +): void; + +test("windows-process-tree", async () => { +>test("windows-process-tree", async () => { return new Promise((resolve, reject) => { getProcessTree(123, (tree) => { if (tree) { resolve(); } else { reject(new Error("windows-process-tree")); } }); });}) : void +>test : TestFunction +>"windows-process-tree" : "windows-process-tree" +>async () => { return new Promise((resolve, reject) => { getProcessTree(123, (tree) => { if (tree) { resolve(); } else { reject(new Error("windows-process-tree")); } }); });} : () => Promise + + return new Promise((resolve, reject) => { +>new Promise((resolve, reject) => { getProcessTree(123, (tree) => { if (tree) { resolve(); } else { reject(new Error("windows-process-tree")); } }); }) : Promise +>Promise : PromiseConstructor +>(resolve, reject) => { getProcessTree(123, (tree) => { if (tree) { resolve(); } else { reject(new Error("windows-process-tree")); } }); } : (resolve: (value: void | PromiseLike) => void, reject: (reason?: any) => void) => void +>resolve : (value: void | PromiseLike) => void +>reject : (reason?: any) => void + + getProcessTree(123, (tree) => { +>getProcessTree(123, (tree) => { if (tree) { resolve(); } else { reject(new Error("windows-process-tree")); } }) : void +>getProcessTree : (rootPid: number, callback: (tree: ProcessTreeNode) => void) => void +>123 : 123 +>(tree) => { if (tree) { resolve(); } else { reject(new Error("windows-process-tree")); } } : (tree: ProcessTreeNode) => void +>tree : ProcessTreeNode + + if (tree) { +>tree : ProcessTreeNode + + resolve(); +>resolve() : void +>resolve : (value: void | PromiseLike) => void + + } else { + reject(new Error("windows-process-tree")); +>reject(new Error("windows-process-tree")) : void +>reject : (reason?: any) => void +>new Error("windows-process-tree") : Error +>Error : ErrorConstructor +>"windows-process-tree" : "windows-process-tree" + } + }); + }); +}); + +interface ILocalExtension { + isApplicationScoped: boolean; +>isApplicationScoped : boolean + + publisherId: string | null; +>publisherId : string +} +type Metadata = { +>Metadata : { updated: boolean; } + + updated: boolean; +>updated : boolean + +}; +declare function scanMetadata( +>scanMetadata : (local: ILocalExtension) => Promise + + local: ILocalExtension +>local : ILocalExtension + +): Promise; + +async function copyExtensions( +>copyExtensions : (fromExtensions: ILocalExtension[]) => Promise + + fromExtensions: ILocalExtension[] +>fromExtensions : ILocalExtension[] + +): Promise { + const extensions: [ILocalExtension, Metadata | undefined][] = +>extensions : [ILocalExtension, Metadata][] + + await Promise.all( +>await Promise.all( fromExtensions .filter((e) => !e.isApplicationScoped) .map(async (e) => [e, await scanMetadata(e)]) ) : [ILocalExtension, Metadata][] +>Promise.all( fromExtensions .filter((e) => !e.isApplicationScoped) .map(async (e) => [e, await scanMetadata(e)]) ) : Promise<[ILocalExtension, Metadata][]> +>Promise.all : { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; } +>Promise : PromiseConstructor +>all : { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; } + + fromExtensions +>fromExtensions .filter((e) => !e.isApplicationScoped) .map(async (e) => [e, await scanMetadata(e)]) : Promise<[ILocalExtension, Metadata]>[] +>fromExtensions .filter((e) => !e.isApplicationScoped) .map : (callbackfn: (value: ILocalExtension, index: number, array: ILocalExtension[]) => U, thisArg?: any) => U[] +>fromExtensions .filter((e) => !e.isApplicationScoped) : ILocalExtension[] +>fromExtensions .filter : { (predicate: (value: ILocalExtension, index: number, array: ILocalExtension[]) => value is S, thisArg?: any): S[]; (predicate: (value: ILocalExtension, index: number, array: ILocalExtension[]) => unknown, thisArg?: any): ILocalExtension[]; } +>fromExtensions : ILocalExtension[] + + .filter((e) => !e.isApplicationScoped) +>filter : { (predicate: (value: ILocalExtension, index: number, array: ILocalExtension[]) => value is S, thisArg?: any): S[]; (predicate: (value: ILocalExtension, index: number, array: ILocalExtension[]) => unknown, thisArg?: any): ILocalExtension[]; } +>(e) => !e.isApplicationScoped : (e: ILocalExtension) => boolean +>e : ILocalExtension +>!e.isApplicationScoped : boolean +>e.isApplicationScoped : boolean +>e : ILocalExtension +>isApplicationScoped : boolean + + .map(async (e) => [e, await scanMetadata(e)]) +>map : (callbackfn: (value: ILocalExtension, index: number, array: ILocalExtension[]) => U, thisArg?: any) => U[] +>async (e) => [e, await scanMetadata(e)] : (e: ILocalExtension) => Promise<[ILocalExtension, Metadata]> +>e : ILocalExtension +>[e, await scanMetadata(e)] : [ILocalExtension, Metadata] +>e : ILocalExtension +>await scanMetadata(e) : Metadata +>scanMetadata(e) : Promise +>scanMetadata : (local: ILocalExtension) => Promise +>e : ILocalExtension + + ); +} + diff --git a/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnTypeFromUnion.symbols b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnTypeFromUnion.symbols new file mode 100644 index 00000000000..41e40f407aa --- /dev/null +++ b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnTypeFromUnion.symbols @@ -0,0 +1,102 @@ +//// [tests/cases/compiler/contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts] //// + +=== contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts === +// repro #47682 + +declare class StateMachine { +>StateMachine : Symbol(StateMachine, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 0, 0)) +>T : Symbol(T, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 2, 27)) + + onDone: (a: T) => void; +>onDone : Symbol(StateMachine.onDone, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 2, 31)) +>a : Symbol(a, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 3, 11)) +>T : Symbol(T, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 2, 27)) +} + +declare function createMachine(implementations: { +>createMachine : Symbol(createMachine, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 4, 1)) +>T : Symbol(T, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 6, 31)) +>implementations : Symbol(implementations, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 6, 34)) + + services: Record Promise | StateMachine>; +>services : Symbol(services, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 6, 52)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>T : Symbol(T, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 6, 31)) +>StateMachine : Symbol(StateMachine, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 0, 0)) +>T : Symbol(T, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 6, 31)) + +}): void; + +createMachine<{ count: number }>({ +>createMachine : Symbol(createMachine, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 4, 1)) +>count : Symbol(count, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 10, 15)) + + services: { +>services : Symbol(services, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 10, 34)) + + test: async () => Promise.reject("some err"), +>test : Symbol(test, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 11, 13)) +>Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) + + async test2() { +>test2 : Symbol(test2, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 12, 49)) + + return Promise.reject("some err"); +>Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) + + }, + }, +}); + +function fn1(): () => Promise<{ count: number }> | StateMachine<{ count: number }> { +>fn1 : Symbol(fn1, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 17, 3)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>count : Symbol(count, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 19, 31)) +>StateMachine : Symbol(StateMachine, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 0, 0)) +>count : Symbol(count, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 19, 65)) + + return async () => Promise.reject('some err') +>Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +} + +// repro #47682 issuecomment-1174099713 + +declare function load(): Promise; +>load : Symbol(load, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 21, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) + +type LoadCallback = () => Promise | string; +>LoadCallback : Symbol(LoadCallback, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 25, 42)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) + +// all of those are essentially the same and should be allowed +const cb1: LoadCallback = async () => load().then(m => m); +>cb1 : Symbol(cb1, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 30, 5)) +>LoadCallback : Symbol(LoadCallback, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 25, 42)) +>load().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>load : Symbol(load, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 21, 1)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>m : Symbol(m, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 30, 50)) +>m : Symbol(m, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 30, 50)) + +const cb2: LoadCallback = async () => load(); +>cb2 : Symbol(cb2, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 31, 5)) +>LoadCallback : Symbol(LoadCallback, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 25, 42)) +>load : Symbol(load, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 21, 1)) + +const cb3: LoadCallback = () => load().then(m => m); +>cb3 : Symbol(cb3, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 32, 5)) +>LoadCallback : Symbol(LoadCallback, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 25, 42)) +>load().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>load : Symbol(load, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 21, 1)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>m : Symbol(m, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 32, 44)) +>m : Symbol(m, Decl(contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts, 32, 44)) + diff --git a/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnTypeFromUnion.types b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnTypeFromUnion.types new file mode 100644 index 00000000000..b66474c20ec --- /dev/null +++ b/tests/baselines/reference/contextuallyTypeAsyncFunctionReturnTypeFromUnion.types @@ -0,0 +1,108 @@ +//// [tests/cases/compiler/contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts] //// + +=== contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts === +// repro #47682 + +declare class StateMachine { +>StateMachine : StateMachine + + onDone: (a: T) => void; +>onDone : (a: T) => void +>a : T +} + +declare function createMachine(implementations: { +>createMachine : (implementations: { services: Record Promise | StateMachine>;}) => void +>implementations : { services: Record Promise | StateMachine>; } + + services: Record Promise | StateMachine>; +>services : Record Promise | StateMachine> + +}): void; + +createMachine<{ count: number }>({ +>createMachine<{ count: number }>({ services: { test: async () => Promise.reject("some err"), async test2() { return Promise.reject("some err"); }, },}) : void +>createMachine : (implementations: { services: Record Promise | StateMachine>; }) => void +>count : number +>{ services: { test: async () => Promise.reject("some err"), async test2() { return Promise.reject("some err"); }, },} : { services: { test: () => Promise<{ count: number; }>; test2(): Promise<{ count: number; }>; }; } + + services: { +>services : { test: () => Promise<{ count: number; }>; test2(): Promise<{ count: number; }>; } +>{ test: async () => Promise.reject("some err"), async test2() { return Promise.reject("some err"); }, } : { test: () => Promise<{ count: number; }>; test2(): Promise<{ count: number; }>; } + + test: async () => Promise.reject("some err"), +>test : () => Promise<{ count: number; }> +>async () => Promise.reject("some err") : () => Promise<{ count: number; }> +>Promise.reject("some err") : Promise<{ count: number; }> +>Promise.reject : (reason?: any) => Promise +>Promise : PromiseConstructor +>reject : (reason?: any) => Promise +>"some err" : "some err" + + async test2() { +>test2 : () => Promise<{ count: number; }> + + return Promise.reject("some err"); +>Promise.reject("some err") : Promise<{ count: number; }> +>Promise.reject : (reason?: any) => Promise +>Promise : PromiseConstructor +>reject : (reason?: any) => Promise +>"some err" : "some err" + + }, + }, +}); + +function fn1(): () => Promise<{ count: number }> | StateMachine<{ count: number }> { +>fn1 : () => () => Promise<{ count: number;}> | StateMachine<{ count: number;}> +>count : number +>count : number + + return async () => Promise.reject('some err') +>async () => Promise.reject('some err') : () => Promise<{ count: number; }> +>Promise.reject('some err') : Promise<{ count: number; }> +>Promise.reject : (reason?: any) => Promise +>Promise : PromiseConstructor +>reject : (reason?: any) => Promise +>'some err' : "some err" +} + +// repro #47682 issuecomment-1174099713 + +declare function load(): Promise; +>load : () => Promise + +type LoadCallback = () => Promise | string; +>LoadCallback : () => Promise | string + +// all of those are essentially the same and should be allowed +const cb1: LoadCallback = async () => load().then(m => m); +>cb1 : LoadCallback +>async () => load().then(m => m) : () => Promise +>load().then(m => m) : Promise +>load().then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>load() : Promise +>load : () => Promise +>then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>m => m : (m: boolean) => boolean +>m : boolean +>m : boolean + +const cb2: LoadCallback = async () => load(); +>cb2 : LoadCallback +>async () => load() : () => Promise +>load() : Promise +>load : () => Promise + +const cb3: LoadCallback = () => load().then(m => m); +>cb3 : LoadCallback +>() => load().then(m => m) : () => Promise +>load().then(m => m) : Promise +>load().then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>load() : Promise +>load : () => Promise +>then : (onfulfilled?: ((value: boolean) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>m => m : (m: boolean) => boolean +>m : boolean +>m : boolean + diff --git a/tests/baselines/reference/contextuallyTypeGeneratorReturnTypeFromUnion.symbols b/tests/baselines/reference/contextuallyTypeGeneratorReturnTypeFromUnion.symbols new file mode 100644 index 00000000000..f1cb7ae7002 --- /dev/null +++ b/tests/baselines/reference/contextuallyTypeGeneratorReturnTypeFromUnion.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/contextuallyTypeGeneratorReturnTypeFromUnion.ts] //// + +=== contextuallyTypeGeneratorReturnTypeFromUnion.ts === +// repro #51187 + +type Action = () => (Generator | string) +>Action : Symbol(Action, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 0, 0)) +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) + +const test1: Action = function* () { +>test1 : Symbol(test1, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 4, 5)) +>Action : Symbol(Action, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 0, 0)) + + const next = yield '' +>next : Symbol(next, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 5, 9)) + + return next[0] +>next : Symbol(next, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 5, 9)) +} + +type Action2 = () => (AsyncGenerator | string) +>Action2 : Symbol(Action2, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 7, 1)) +>AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) + +const test2: Action2 = async function* () { +>test2 : Symbol(test2, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 11, 5)) +>Action2 : Symbol(Action2, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 7, 1)) + + const next = yield await Promise.resolve('') +>next : Symbol(next, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 12, 9)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) + + return next[0] +>next : Symbol(next, Decl(contextuallyTypeGeneratorReturnTypeFromUnion.ts, 12, 9)) +} + diff --git a/tests/baselines/reference/contextuallyTypeGeneratorReturnTypeFromUnion.types b/tests/baselines/reference/contextuallyTypeGeneratorReturnTypeFromUnion.types new file mode 100644 index 00000000000..0632c1e9ec7 --- /dev/null +++ b/tests/baselines/reference/contextuallyTypeGeneratorReturnTypeFromUnion.types @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/contextuallyTypeGeneratorReturnTypeFromUnion.ts] //// + +=== contextuallyTypeGeneratorReturnTypeFromUnion.ts === +// repro #51187 + +type Action = () => (Generator | string) +>Action : () => (Generator | string) + +const test1: Action = function* () { +>test1 : Action +>function* () { const next = yield '' return next[0]} : () => Generator + + const next = yield '' +>next : string[] +>yield '' : string[] +>'' : "" + + return next[0] +>next[0] : string +>next : string[] +>0 : 0 +} + +type Action2 = () => (AsyncGenerator | string) +>Action2 : () => (AsyncGenerator | string) + +const test2: Action2 = async function* () { +>test2 : Action2 +>async function* () { const next = yield await Promise.resolve('') return next[0]} : () => AsyncGenerator + + const next = yield await Promise.resolve('') +>next : string[] +>yield await Promise.resolve('') : string[] +>await Promise.resolve('') : string +>Promise.resolve('') : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>'' : "" + + return next[0] +>next[0] : string +>next : string[] +>0 : 0 +} + diff --git a/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.js b/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.js index 0d6946277ad..ece01c1794a 100644 --- a/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.js +++ b/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.js @@ -37,6 +37,7 @@ define("conditional_directive_field", ["require", "exports"], function (require, //// [datastore.bundle.d.ts] +/// declare module "datastore_result" { import { Result } from "lib/result"; export type T = Result; diff --git a/tests/baselines/reference/declarationEmitBundlerConditions.js b/tests/baselines/reference/declarationEmitBundlerConditions.js new file mode 100644 index 00000000000..89f37accc09 --- /dev/null +++ b/tests/baselines/reference/declarationEmitBundlerConditions.js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/declarationEmitBundlerConditions.ts] //// + +//// [package.json] +{ + "name": "pkg", + "type": "module", + "exports": { + ".": { + "import": "./index.js", + "require": "./index.cjs" + } + } +} + +//// [index.d.ts] +export declare class C { + private p; +} + +//// [index.d.cts] +export {}; + +//// [makeC.ts] +import { C } from "pkg"; +export function makeC() { + return new C(); +} + +//// [index.ts] +import { makeC } from "./makeC"; +export const c = makeC(); + + + + +//// [makeC.d.ts] +import { C } from "pkg"; +export declare function makeC(): C; +//// [index.d.ts] +export declare const c: import("pkg").C; diff --git a/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.js b/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.js new file mode 100644 index 00000000000..0ce00d2f8f9 --- /dev/null +++ b/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.js @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/declarationEmitObjectLiteralAccessors1.ts] //// + +//// [declarationEmitObjectLiteralAccessors1.ts] +// same type accessors +export const obj1 = { + /** my awesome getter (first in source order) */ + get x(): string { + return ""; + }, + /** my awesome setter (second in source order) */ + set x(a: string) {}, +}; + +// divergent accessors +export const obj2 = { + /** my awesome getter */ + get x(): string { + return ""; + }, + /** my awesome setter */ + set x(a: number) {}, +}; + +export const obj3 = { + /** my awesome getter */ + get x(): string { + return ""; + }, +}; + +export const obj4 = { + /** my awesome setter */ + set x(a: number) {}, +}; + + + + +//// [declarationEmitObjectLiteralAccessors1.d.ts] +export declare const obj1: { + /** my awesome getter (first in source order) */ + x: string; +}; +export declare const obj2: { + /** my awesome getter */ + get x(): string; + /** my awesome setter */ + set x(a: number); +}; +export declare const obj3: { + /** my awesome getter */ + readonly x: string; +}; +export declare const obj4: { + /** my awesome setter */ + x: number; +}; diff --git a/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.symbols b/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.symbols new file mode 100644 index 00000000000..c3ae980210e --- /dev/null +++ b/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/declarationEmitObjectLiteralAccessors1.ts] //// + +=== declarationEmitObjectLiteralAccessors1.ts === +// same type accessors +export const obj1 = { +>obj1 : Symbol(obj1, Decl(declarationEmitObjectLiteralAccessors1.ts, 1, 12)) + + /** my awesome getter (first in source order) */ + get x(): string { +>x : Symbol(x, Decl(declarationEmitObjectLiteralAccessors1.ts, 1, 21), Decl(declarationEmitObjectLiteralAccessors1.ts, 5, 4)) + + return ""; + }, + /** my awesome setter (second in source order) */ + set x(a: string) {}, +>x : Symbol(x, Decl(declarationEmitObjectLiteralAccessors1.ts, 1, 21), Decl(declarationEmitObjectLiteralAccessors1.ts, 5, 4)) +>a : Symbol(a, Decl(declarationEmitObjectLiteralAccessors1.ts, 7, 8)) + +}; + +// divergent accessors +export const obj2 = { +>obj2 : Symbol(obj2, Decl(declarationEmitObjectLiteralAccessors1.ts, 11, 12)) + + /** my awesome getter */ + get x(): string { +>x : Symbol(x, Decl(declarationEmitObjectLiteralAccessors1.ts, 11, 21), Decl(declarationEmitObjectLiteralAccessors1.ts, 15, 4)) + + return ""; + }, + /** my awesome setter */ + set x(a: number) {}, +>x : Symbol(x, Decl(declarationEmitObjectLiteralAccessors1.ts, 11, 21), Decl(declarationEmitObjectLiteralAccessors1.ts, 15, 4)) +>a : Symbol(a, Decl(declarationEmitObjectLiteralAccessors1.ts, 17, 8)) + +}; + +export const obj3 = { +>obj3 : Symbol(obj3, Decl(declarationEmitObjectLiteralAccessors1.ts, 20, 12)) + + /** my awesome getter */ + get x(): string { +>x : Symbol(x, Decl(declarationEmitObjectLiteralAccessors1.ts, 20, 21)) + + return ""; + }, +}; + +export const obj4 = { +>obj4 : Symbol(obj4, Decl(declarationEmitObjectLiteralAccessors1.ts, 27, 12)) + + /** my awesome setter */ + set x(a: number) {}, +>x : Symbol(x, Decl(declarationEmitObjectLiteralAccessors1.ts, 27, 21)) +>a : Symbol(a, Decl(declarationEmitObjectLiteralAccessors1.ts, 29, 8)) + +}; + diff --git a/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.types b/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.types new file mode 100644 index 00000000000..2aff73c81a6 --- /dev/null +++ b/tests/baselines/reference/declarationEmitObjectLiteralAccessors1.types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/declarationEmitObjectLiteralAccessors1.ts] //// + +=== declarationEmitObjectLiteralAccessors1.ts === +// same type accessors +export const obj1 = { +>obj1 : { x: string; } +>{ /** my awesome getter (first in source order) */ get x(): string { return ""; }, /** my awesome setter (second in source order) */ set x(a: string) {},} : { x: string; } + + /** my awesome getter (first in source order) */ + get x(): string { +>x : string + + return ""; +>"" : "" + + }, + /** my awesome setter (second in source order) */ + set x(a: string) {}, +>x : string +>a : string + +}; + +// divergent accessors +export const obj2 = { +>obj2 : { get x(): string; set x(a: number); } +>{ /** my awesome getter */ get x(): string { return ""; }, /** my awesome setter */ set x(a: number) {},} : { get x(): string; set x(a: number); } + + /** my awesome getter */ + get x(): string { +>x : string + + return ""; +>"" : "" + + }, + /** my awesome setter */ + set x(a: number) {}, +>x : string +>a : number + +}; + +export const obj3 = { +>obj3 : { readonly x: string; } +>{ /** my awesome getter */ get x(): string { return ""; },} : { readonly x: string; } + + /** my awesome getter */ + get x(): string { +>x : string + + return ""; +>"" : "" + + }, +}; + +export const obj4 = { +>obj4 : { x: number; } +>{ /** my awesome setter */ set x(a: number) {},} : { x: number; } + + /** my awesome setter */ + set x(a: number) {}, +>x : number +>a : number + +}; + diff --git a/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.js b/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.js new file mode 100644 index 00000000000..c5916843cb0 --- /dev/null +++ b/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.js @@ -0,0 +1,80 @@ +//// [tests/cases/compiler/declarationEmitObjectLiteralAccessorsJs1.ts] //// + +//// [index.js] +// same type accessors +export const obj1 = { + /** + * my awesome getter (first in source order) + * @returns {string} + */ + get x() { + return ""; + }, + /** + * my awesome setter (second in source order) + * @param {string} a + */ + set x(a) {}, +}; + +// divergent accessors +export const obj2 = { + /** + * my awesome getter + * @returns {string} + */ + get x() { + return ""; + }, + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +}; + +export const obj3 = { + /** + * my awesome getter + * @returns {string} + */ + get x() { + return ""; + }, +}; + +export const obj4 = { + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +}; + + + + +//// [index.d.ts] +export namespace obj1 { + let x: string; +} +export const obj2: { + /** + * my awesome getter + * @returns {string} + */ + get x(): string; + /** + * my awesome setter + * @param {number} a + */ + set x(a: number); +}; +export namespace obj3 { + const x_1: string; + export { x_1 as x }; +} +export namespace obj4 { + let x_2: number; + export { x_2 as x }; +} diff --git a/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.symbols b/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.symbols new file mode 100644 index 00000000000..709a2db6306 --- /dev/null +++ b/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.symbols @@ -0,0 +1,76 @@ +//// [tests/cases/compiler/declarationEmitObjectLiteralAccessorsJs1.ts] //// + +=== index.js === +// same type accessors +export const obj1 = { +>obj1 : Symbol(obj1, Decl(index.js, 1, 12)) + + /** + * my awesome getter (first in source order) + * @returns {string} + */ + get x() { +>x : Symbol(x, Decl(index.js, 1, 21), Decl(index.js, 8, 4)) + + return ""; + }, + /** + * my awesome setter (second in source order) + * @param {string} a + */ + set x(a) {}, +>x : Symbol(x, Decl(index.js, 1, 21), Decl(index.js, 8, 4)) +>a : Symbol(a, Decl(index.js, 13, 8)) + +}; + +// divergent accessors +export const obj2 = { +>obj2 : Symbol(obj2, Decl(index.js, 17, 12)) + + /** + * my awesome getter + * @returns {string} + */ + get x() { +>x : Symbol(x, Decl(index.js, 17, 21), Decl(index.js, 24, 4)) + + return ""; + }, + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +>x : Symbol(x, Decl(index.js, 17, 21), Decl(index.js, 24, 4)) +>a : Symbol(a, Decl(index.js, 29, 8)) + +}; + +export const obj3 = { +>obj3 : Symbol(obj3, Decl(index.js, 32, 12)) + + /** + * my awesome getter + * @returns {string} + */ + get x() { +>x : Symbol(x, Decl(index.js, 32, 21)) + + return ""; + }, +}; + +export const obj4 = { +>obj4 : Symbol(obj4, Decl(index.js, 42, 12)) + + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +>x : Symbol(x, Decl(index.js, 42, 21)) +>a : Symbol(a, Decl(index.js, 47, 8)) + +}; + diff --git a/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.types b/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.types new file mode 100644 index 00000000000..9d3fa0b8b2e --- /dev/null +++ b/tests/baselines/reference/declarationEmitObjectLiteralAccessorsJs1.types @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/declarationEmitObjectLiteralAccessorsJs1.ts] //// + +=== index.js === +// same type accessors +export const obj1 = { +>obj1 : { x: string; } +>{ /** * my awesome getter (first in source order) * @returns {string} */ get x() { return ""; }, /** * my awesome setter (second in source order) * @param {string} a */ set x(a) {},} : { x: string; } + + /** + * my awesome getter (first in source order) + * @returns {string} + */ + get x() { +>x : string + + return ""; +>"" : "" + + }, + /** + * my awesome setter (second in source order) + * @param {string} a + */ + set x(a) {}, +>x : string +>a : string + +}; + +// divergent accessors +export const obj2 = { +>obj2 : { get x(): string; set x(a: number); } +>{ /** * my awesome getter * @returns {string} */ get x() { return ""; }, /** * my awesome setter * @param {number} a */ set x(a) {},} : { get x(): string; set x(a: number); } + + /** + * my awesome getter + * @returns {string} + */ + get x() { +>x : string + + return ""; +>"" : "" + + }, + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +>x : string +>a : number + +}; + +export const obj3 = { +>obj3 : { readonly x: string; } +>{ /** * my awesome getter * @returns {string} */ get x() { return ""; },} : { readonly x: string; } + + /** + * my awesome getter + * @returns {string} + */ + get x() { +>x : string + + return ""; +>"" : "" + + }, +}; + +export const obj4 = { +>obj4 : { x: number; } +>{ /** * my awesome setter * @param {number} a */ set x(a) {},} : { x: number; } + + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +>x : number +>a : number + +}; + diff --git a/tests/baselines/reference/declarationEmitTripleSlashReferenceAmbientModule.js b/tests/baselines/reference/declarationEmitTripleSlashReferenceAmbientModule.js new file mode 100644 index 00000000000..b283b08edcd --- /dev/null +++ b/tests/baselines/reference/declarationEmitTripleSlashReferenceAmbientModule.js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/declarationEmitTripleSlashReferenceAmbientModule.ts] //// + +//// [index.d.ts] +declare module "url" { + export class Url {} + export function parse(): Url; +} + +//// [usage1.ts] +export { parse } from "url"; + +//// [usage2.ts] +import { parse } from "url"; +export const thing: import("url").Url = parse(); + +//// [usage3.ts] +import { parse } from "url"; +export const thing = parse(); + + + + +//// [usage1.d.ts] +/// +export { parse } from "url"; +//// [usage2.d.ts] +/// +export declare const thing: import("url").Url; +//// [usage3.d.ts] +/// +export declare const thing: import("url").Url; diff --git a/tests/baselines/reference/deeplyNestedMappedTypes.errors.txt b/tests/baselines/reference/deeplyNestedMappedTypes.errors.txt index 7882bbfc99f..d9cd2e20c31 100644 --- a/tests/baselines/reference/deeplyNestedMappedTypes.errors.txt +++ b/tests/baselines/reference/deeplyNestedMappedTypes.errors.txt @@ -4,9 +4,19 @@ deeplyNestedMappedTypes.ts(9,7): error TS2322: Type 'Id<{ x: { y: { z: { a: { b: deeplyNestedMappedTypes.ts(17,7): error TS2322: Type 'Id2<{ x: { y: { z: { a: { b: { c: number; }; }; }; }; }; }>' is not assignable to type 'Id2<{ x: { y: { z: { a: { b: { c: string; }; }; }; }; }; }>'. The types of 'x.y.z.a.b.c' are incompatible between these types. Type 'number' is not assignable to type 'string'. +deeplyNestedMappedTypes.ts(69,5): error TS2322: Type '{ level1: { level2: { foo: string; }; }; }[]' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }[]'. + Type '{ level1: { level2: { foo: string; }; }; }' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }'. + The types of 'level1.level2' are incompatible between these types. + Property 'bar' is missing in type '{ foo: string; }' but required in type '{ foo: string; bar: string; }'. +deeplyNestedMappedTypes.ts(73,5): error TS2322: Type '{ level1: { level2: { foo: string; }; }; }[]' is not assignable to type 'T'. + 'T' could be instantiated with an arbitrary type which could be unrelated to '{ level1: { level2: { foo: string; }; }; }[]'. +deeplyNestedMappedTypes.ts(77,5): error TS2322: Type '{ level1: { level2: { foo: string; }; }; }[]' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }[]'. + Type '{ level1: { level2: { foo: string; }; }; }' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }'. + The types of 'level1.level2' are incompatible between these types. + Property 'bar' is missing in type '{ foo: string; }' but required in type '{ foo: string; bar: string; }'. -==== deeplyNestedMappedTypes.ts (2 errors) ==== +==== deeplyNestedMappedTypes.ts (5 errors) ==== // Simplified repro from #55535 type Id = { [K in keyof T]: Id }; @@ -60,4 +70,109 @@ deeplyNestedMappedTypes.ts(17,7): error TS2322: Type 'Id2<{ x: { y: { z: { a: { declare const bar1: Bar1; const bar2: Bar2 = bar1; // Error expected + + // Repro from #56138 + + export type Input = Static + export const Input = Type.Object({ + level1: Type.Object({ + level2: Type.Object({ + foo: Type.String(), + }) + }) + }) + + export type Output = Static + export const Output = Type.Object({ + level1: Type.Object({ + level2: Type.Object({ + foo: Type.String(), + bar: Type.String(), + }) + }) + }) + + function problematicFunction1(ors: Input[]): Output[] { + return ors; // Error + ~~~~~~ +!!! error TS2322: Type '{ level1: { level2: { foo: string; }; }; }[]' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }[]'. +!!! error TS2322: Type '{ level1: { level2: { foo: string; }; }; }' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }'. +!!! error TS2322: The types of 'level1.level2' are incompatible between these types. +!!! error TS2322: Property 'bar' is missing in type '{ foo: string; }' but required in type '{ foo: string; bar: string; }'. +!!! related TS2728 deeplyNestedMappedTypes.ts:63:13: 'bar' is declared here. + } + + function problematicFunction2(ors: Input[]): T { + return ors; // Error + ~~~~~~ +!!! error TS2322: Type '{ level1: { level2: { foo: string; }; }; }[]' is not assignable to type 'T'. +!!! error TS2322: 'T' could be instantiated with an arbitrary type which could be unrelated to '{ level1: { level2: { foo: string; }; }; }[]'. + } + + function problematicFunction3(ors: (typeof Input.static)[]): Output[] { + return ors; // Error + ~~~~~~ +!!! error TS2322: Type '{ level1: { level2: { foo: string; }; }; }[]' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }[]'. +!!! error TS2322: Type '{ level1: { level2: { foo: string; }; }; }' is not assignable to type '{ level1: { level2: { foo: string; bar: string; }; }; }'. +!!! error TS2322: The types of 'level1.level2' are incompatible between these types. +!!! error TS2322: Property 'bar' is missing in type '{ foo: string; }' but required in type '{ foo: string; bar: string; }'. +!!! related TS2728 deeplyNestedMappedTypes.ts:63:13: 'bar' is declared here. + } + + export type Evaluate = T extends infer O ? { [K in keyof O]: O[K] } : never + + export declare const Readonly: unique symbol; + export declare const Optional: unique symbol; + export declare const Hint: unique symbol; + export declare const Kind: unique symbol; + + export interface TKind { + [Kind]: string + } + export interface TSchema extends TKind { + [Readonly]?: string + [Optional]?: string + [Hint]?: string + params: unknown[] + static: unknown + } + + export type TReadonlyOptional = TOptional & TReadonly + export type TReadonly = T & { [Readonly]: 'Readonly' } + export type TOptional = T & { [Optional]: 'Optional' } + + export interface TString extends TSchema { + [Kind]: 'String'; + static: string; + type: 'string'; + } + + export type ReadonlyOptionalPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? K : never) : never }[keyof T] + export type ReadonlyPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? never : K) : never }[keyof T] + export type OptionalPropertyKeys = { [K in keyof T]: T[K] extends TOptional ? (T[K] extends TReadonly ? never : K) : never }[keyof T] + export type RequiredPropertyKeys = keyof Omit | ReadonlyPropertyKeys | OptionalPropertyKeys> + export type PropertiesReducer> = Evaluate<( + Readonly>>> & + Readonly>> & + Partial>> & + Required>> + )> + export type PropertiesReduce = PropertiesReducer + }> + export type TPropertyKey = string | number + export type TProperties = Record + export interface TObject extends TSchema { + [Kind]: 'Object' + static: PropertiesReduce + type: 'object' + properties: T + } + + export type Static = (T & { params: P; })['static'] + + declare namespace Type { + function Object(object: T): TObject + function String(): TString + } \ No newline at end of file diff --git a/tests/baselines/reference/deeplyNestedMappedTypes.symbols b/tests/baselines/reference/deeplyNestedMappedTypes.symbols index 9a67e438cd1..668ef4bf245 100644 --- a/tests/baselines/reference/deeplyNestedMappedTypes.symbols +++ b/tests/baselines/reference/deeplyNestedMappedTypes.symbols @@ -175,3 +175,384 @@ const bar2: Bar2 = bar1; // Error expected >Bar2 : Symbol(Bar2, Decl(deeplyNestedMappedTypes.ts, 40, 48)) >bar1 : Symbol(bar1, Decl(deeplyNestedMappedTypes.ts, 43, 13)) +// Repro from #56138 + +export type Input = Static +>Input : Symbol(Input, Decl(deeplyNestedMappedTypes.ts, 44, 24), Decl(deeplyNestedMappedTypes.ts, 49, 12)) +>Static : Symbol(Static, Decl(deeplyNestedMappedTypes.ts, 127, 1)) +>Input : Symbol(Input, Decl(deeplyNestedMappedTypes.ts, 44, 24), Decl(deeplyNestedMappedTypes.ts, 49, 12)) + +export const Input = Type.Object({ +>Input : Symbol(Input, Decl(deeplyNestedMappedTypes.ts, 44, 24), Decl(deeplyNestedMappedTypes.ts, 49, 12)) +>Type.Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) + + level1: Type.Object({ +>level1 : Symbol(level1, Decl(deeplyNestedMappedTypes.ts, 49, 34)) +>Type.Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) + + level2: Type.Object({ +>level2 : Symbol(level2, Decl(deeplyNestedMappedTypes.ts, 50, 25)) +>Type.Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) + + foo: Type.String(), +>foo : Symbol(foo, Decl(deeplyNestedMappedTypes.ts, 51, 29)) +>Type.String : Symbol(Type.String, Decl(deeplyNestedMappedTypes.ts, 132, 65)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>String : Symbol(Type.String, Decl(deeplyNestedMappedTypes.ts, 132, 65)) + + }) + }) +}) + +export type Output = Static +>Output : Symbol(Output, Decl(deeplyNestedMappedTypes.ts, 55, 2), Decl(deeplyNestedMappedTypes.ts, 58, 12)) +>Static : Symbol(Static, Decl(deeplyNestedMappedTypes.ts, 127, 1)) +>Output : Symbol(Output, Decl(deeplyNestedMappedTypes.ts, 55, 2), Decl(deeplyNestedMappedTypes.ts, 58, 12)) + +export const Output = Type.Object({ +>Output : Symbol(Output, Decl(deeplyNestedMappedTypes.ts, 55, 2), Decl(deeplyNestedMappedTypes.ts, 58, 12)) +>Type.Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) + + level1: Type.Object({ +>level1 : Symbol(level1, Decl(deeplyNestedMappedTypes.ts, 58, 35)) +>Type.Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) + + level2: Type.Object({ +>level2 : Symbol(level2, Decl(deeplyNestedMappedTypes.ts, 59, 25)) +>Type.Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>Object : Symbol(Type.Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) + + foo: Type.String(), +>foo : Symbol(foo, Decl(deeplyNestedMappedTypes.ts, 60, 29)) +>Type.String : Symbol(Type.String, Decl(deeplyNestedMappedTypes.ts, 132, 65)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>String : Symbol(Type.String, Decl(deeplyNestedMappedTypes.ts, 132, 65)) + + bar: Type.String(), +>bar : Symbol(bar, Decl(deeplyNestedMappedTypes.ts, 61, 31)) +>Type.String : Symbol(Type.String, Decl(deeplyNestedMappedTypes.ts, 132, 65)) +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) +>String : Symbol(Type.String, Decl(deeplyNestedMappedTypes.ts, 132, 65)) + + }) + }) +}) + +function problematicFunction1(ors: Input[]): Output[] { +>problematicFunction1 : Symbol(problematicFunction1, Decl(deeplyNestedMappedTypes.ts, 65, 2)) +>ors : Symbol(ors, Decl(deeplyNestedMappedTypes.ts, 67, 30)) +>Input : Symbol(Input, Decl(deeplyNestedMappedTypes.ts, 44, 24), Decl(deeplyNestedMappedTypes.ts, 49, 12)) +>Output : Symbol(Output, Decl(deeplyNestedMappedTypes.ts, 55, 2), Decl(deeplyNestedMappedTypes.ts, 58, 12)) + + return ors; // Error +>ors : Symbol(ors, Decl(deeplyNestedMappedTypes.ts, 67, 30)) +} + +function problematicFunction2(ors: Input[]): T { +>problematicFunction2 : Symbol(problematicFunction2, Decl(deeplyNestedMappedTypes.ts, 69, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 71, 30)) +>Output : Symbol(Output, Decl(deeplyNestedMappedTypes.ts, 55, 2), Decl(deeplyNestedMappedTypes.ts, 58, 12)) +>ors : Symbol(ors, Decl(deeplyNestedMappedTypes.ts, 71, 50)) +>Input : Symbol(Input, Decl(deeplyNestedMappedTypes.ts, 44, 24), Decl(deeplyNestedMappedTypes.ts, 49, 12)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 71, 30)) + + return ors; // Error +>ors : Symbol(ors, Decl(deeplyNestedMappedTypes.ts, 71, 50)) +} + +function problematicFunction3(ors: (typeof Input.static)[]): Output[] { +>problematicFunction3 : Symbol(problematicFunction3, Decl(deeplyNestedMappedTypes.ts, 73, 1)) +>ors : Symbol(ors, Decl(deeplyNestedMappedTypes.ts, 75, 30)) +>Input.static : Symbol(TObject.static, Decl(deeplyNestedMappedTypes.ts, 123, 20)) +>Input : Symbol(Input, Decl(deeplyNestedMappedTypes.ts, 44, 24), Decl(deeplyNestedMappedTypes.ts, 49, 12)) +>static : Symbol(TObject.static, Decl(deeplyNestedMappedTypes.ts, 123, 20)) +>Output : Symbol(Output, Decl(deeplyNestedMappedTypes.ts, 55, 2), Decl(deeplyNestedMappedTypes.ts, 58, 12)) + + return ors; // Error +>ors : Symbol(ors, Decl(deeplyNestedMappedTypes.ts, 75, 30)) +} + +export type Evaluate = T extends infer O ? { [K in keyof O]: O[K] } : never +>Evaluate : Symbol(Evaluate, Decl(deeplyNestedMappedTypes.ts, 77, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 79, 21)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 79, 21)) +>O : Symbol(O, Decl(deeplyNestedMappedTypes.ts, 79, 41)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 79, 49)) +>O : Symbol(O, Decl(deeplyNestedMappedTypes.ts, 79, 41)) +>O : Symbol(O, Decl(deeplyNestedMappedTypes.ts, 79, 41)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 79, 49)) + +export declare const Readonly: unique symbol; +>Readonly : Symbol(Readonly, Decl(deeplyNestedMappedTypes.ts, 81, 20)) + +export declare const Optional: unique symbol; +>Optional : Symbol(Optional, Decl(deeplyNestedMappedTypes.ts, 82, 20)) + +export declare const Hint: unique symbol; +>Hint : Symbol(Hint, Decl(deeplyNestedMappedTypes.ts, 83, 20)) + +export declare const Kind: unique symbol; +>Kind : Symbol(Kind, Decl(deeplyNestedMappedTypes.ts, 84, 20)) + +export interface TKind { +>TKind : Symbol(TKind, Decl(deeplyNestedMappedTypes.ts, 84, 41)) + + [Kind]: string +>[Kind] : Symbol(TKind[Kind], Decl(deeplyNestedMappedTypes.ts, 86, 24)) +>Kind : Symbol(Kind, Decl(deeplyNestedMappedTypes.ts, 84, 20)) +} +export interface TSchema extends TKind { +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>TKind : Symbol(TKind, Decl(deeplyNestedMappedTypes.ts, 84, 41)) + + [Readonly]?: string +>[Readonly] : Symbol(TSchema[Readonly], Decl(deeplyNestedMappedTypes.ts, 89, 40)) +>Readonly : Symbol(Readonly, Decl(deeplyNestedMappedTypes.ts, 81, 20)) + + [Optional]?: string +>[Optional] : Symbol(TSchema[Optional], Decl(deeplyNestedMappedTypes.ts, 90, 23)) +>Optional : Symbol(Optional, Decl(deeplyNestedMappedTypes.ts, 82, 20)) + + [Hint]?: string +>[Hint] : Symbol(TSchema[Hint], Decl(deeplyNestedMappedTypes.ts, 91, 23)) +>Hint : Symbol(Hint, Decl(deeplyNestedMappedTypes.ts, 83, 20)) + + params: unknown[] +>params : Symbol(TSchema.params, Decl(deeplyNestedMappedTypes.ts, 92, 19)) + + static: unknown +>static : Symbol(TSchema.static, Decl(deeplyNestedMappedTypes.ts, 93, 21)) +} + +export type TReadonlyOptional = TOptional & TReadonly +>TReadonlyOptional : Symbol(TReadonlyOptional, Decl(deeplyNestedMappedTypes.ts, 95, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 97, 30)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>TOptional : Symbol(TOptional, Decl(deeplyNestedMappedTypes.ts, 98, 73)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 97, 30)) +>TReadonly : Symbol(TReadonly, Decl(deeplyNestedMappedTypes.ts, 97, 78)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 97, 30)) + +export type TReadonly = T & { [Readonly]: 'Readonly' } +>TReadonly : Symbol(TReadonly, Decl(deeplyNestedMappedTypes.ts, 97, 78)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 98, 22)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 98, 22)) +>[Readonly] : Symbol([Readonly], Decl(deeplyNestedMappedTypes.ts, 98, 48)) +>Readonly : Symbol(Readonly, Decl(deeplyNestedMappedTypes.ts, 81, 20)) + +export type TOptional = T & { [Optional]: 'Optional' } +>TOptional : Symbol(TOptional, Decl(deeplyNestedMappedTypes.ts, 98, 73)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 99, 22)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 99, 22)) +>[Optional] : Symbol([Optional], Decl(deeplyNestedMappedTypes.ts, 99, 48)) +>Optional : Symbol(Optional, Decl(deeplyNestedMappedTypes.ts, 82, 20)) + +export interface TString extends TSchema { +>TString : Symbol(TString, Decl(deeplyNestedMappedTypes.ts, 99, 73)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) + + [Kind]: 'String'; +>[Kind] : Symbol(TString[Kind], Decl(deeplyNestedMappedTypes.ts, 101, 42)) +>Kind : Symbol(Kind, Decl(deeplyNestedMappedTypes.ts, 84, 20)) + + static: string; +>static : Symbol(TString.static, Decl(deeplyNestedMappedTypes.ts, 102, 21)) + + type: 'string'; +>type : Symbol(TString.type, Decl(deeplyNestedMappedTypes.ts, 103, 19)) +} + +export type ReadonlyOptionalPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? K : never) : never }[keyof T] +>ReadonlyOptionalPropertyKeys : Symbol(ReadonlyOptionalPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 105, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 107, 41)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 107, 69)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 107, 41)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 107, 41)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 107, 69)) +>TReadonly : Symbol(TReadonly, Decl(deeplyNestedMappedTypes.ts, 97, 78)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 107, 41)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 107, 69)) +>TOptional : Symbol(TOptional, Decl(deeplyNestedMappedTypes.ts, 98, 73)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 107, 41)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 107, 69)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 107, 69)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 107, 41)) + +export type ReadonlyPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? never : K) : never }[keyof T] +>ReadonlyPropertyKeys : Symbol(ReadonlyPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 107, 179)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 108, 33)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 108, 61)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 108, 33)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 108, 33)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 108, 61)) +>TReadonly : Symbol(TReadonly, Decl(deeplyNestedMappedTypes.ts, 97, 78)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 108, 33)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 108, 61)) +>TOptional : Symbol(TOptional, Decl(deeplyNestedMappedTypes.ts, 98, 73)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 108, 33)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 108, 61)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 108, 61)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 108, 33)) + +export type OptionalPropertyKeys = { [K in keyof T]: T[K] extends TOptional ? (T[K] extends TReadonly ? never : K) : never }[keyof T] +>OptionalPropertyKeys : Symbol(OptionalPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 108, 171)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 109, 33)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 109, 61)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 109, 33)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 109, 33)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 109, 61)) +>TOptional : Symbol(TOptional, Decl(deeplyNestedMappedTypes.ts, 98, 73)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 109, 33)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 109, 61)) +>TReadonly : Symbol(TReadonly, Decl(deeplyNestedMappedTypes.ts, 97, 78)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 109, 33)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 109, 61)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 109, 61)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 109, 33)) + +export type RequiredPropertyKeys = keyof Omit | ReadonlyPropertyKeys | OptionalPropertyKeys> +>RequiredPropertyKeys : Symbol(RequiredPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 109, 171)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 110, 33)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>Omit : Symbol(Omit, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 110, 33)) +>ReadonlyOptionalPropertyKeys : Symbol(ReadonlyOptionalPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 105, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 110, 33)) +>ReadonlyPropertyKeys : Symbol(ReadonlyPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 107, 179)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 110, 33)) +>OptionalPropertyKeys : Symbol(OptionalPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 108, 171)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 110, 33)) + +export type PropertiesReducer> = Evaluate<( +>PropertiesReducer : Symbol(PropertiesReducer, Decl(deeplyNestedMappedTypes.ts, 110, 156)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 111, 30)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>R : Symbol(R, Decl(deeplyNestedMappedTypes.ts, 111, 52)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Evaluate : Symbol(Evaluate, Decl(deeplyNestedMappedTypes.ts, 77, 1)) + + Readonly>>> & +>Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --)) +>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>R : Symbol(R, Decl(deeplyNestedMappedTypes.ts, 111, 52)) +>ReadonlyOptionalPropertyKeys : Symbol(ReadonlyOptionalPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 105, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 111, 30)) + + Readonly>> & +>Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>R : Symbol(R, Decl(deeplyNestedMappedTypes.ts, 111, 52)) +>ReadonlyPropertyKeys : Symbol(ReadonlyPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 107, 179)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 111, 30)) + + Partial>> & +>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>R : Symbol(R, Decl(deeplyNestedMappedTypes.ts, 111, 52)) +>OptionalPropertyKeys : Symbol(OptionalPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 108, 171)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 111, 30)) + + Required>> +>Required : Symbol(Required, Decl(lib.es5.d.ts, --, --)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>R : Symbol(R, Decl(deeplyNestedMappedTypes.ts, 111, 52)) +>RequiredPropertyKeys : Symbol(RequiredPropertyKeys, Decl(deeplyNestedMappedTypes.ts, 109, 171)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 111, 30)) + +)> +export type PropertiesReduce = PropertiesReducerPropertiesReduce : Symbol(PropertiesReduce, Decl(deeplyNestedMappedTypes.ts, 116, 2)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 117, 29)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>P : Symbol(P, Decl(deeplyNestedMappedTypes.ts, 117, 51)) +>PropertiesReducer : Symbol(PropertiesReducer, Decl(deeplyNestedMappedTypes.ts, 110, 156)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 117, 29)) + + [K in keyof T]: Static +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 118, 5)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 117, 29)) +>Static : Symbol(Static, Decl(deeplyNestedMappedTypes.ts, 127, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 117, 29)) +>K : Symbol(K, Decl(deeplyNestedMappedTypes.ts, 118, 5)) +>P : Symbol(P, Decl(deeplyNestedMappedTypes.ts, 117, 51)) + +}> +export type TPropertyKey = string | number +>TPropertyKey : Symbol(TPropertyKey, Decl(deeplyNestedMappedTypes.ts, 119, 2)) + +export type TProperties = Record +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>TPropertyKey : Symbol(TPropertyKey, Decl(deeplyNestedMappedTypes.ts, 119, 2)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) + +export interface TObject extends TSchema { +>TObject : Symbol(TObject, Decl(deeplyNestedMappedTypes.ts, 121, 55)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 122, 25)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) + + [Kind]: 'Object' +>[Kind] : Symbol(TObject[Kind], Decl(deeplyNestedMappedTypes.ts, 122, 79)) +>Kind : Symbol(Kind, Decl(deeplyNestedMappedTypes.ts, 84, 20)) + + static: PropertiesReduce +>static : Symbol(TObject.static, Decl(deeplyNestedMappedTypes.ts, 123, 20)) +>PropertiesReduce : Symbol(PropertiesReduce, Decl(deeplyNestedMappedTypes.ts, 116, 2)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 122, 25)) + + type: 'object' +>type : Symbol(TObject.type, Decl(deeplyNestedMappedTypes.ts, 124, 47)) + + properties: T +>properties : Symbol(TObject.properties, Decl(deeplyNestedMappedTypes.ts, 125, 18)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 122, 25)) +} + +export type Static = (T & { params: P; })['static'] +>Static : Symbol(Static, Decl(deeplyNestedMappedTypes.ts, 127, 1)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 129, 19)) +>TSchema : Symbol(TSchema, Decl(deeplyNestedMappedTypes.ts, 88, 1)) +>P : Symbol(P, Decl(deeplyNestedMappedTypes.ts, 129, 37)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 129, 19)) +>params : Symbol(params, Decl(deeplyNestedMappedTypes.ts, 129, 72)) +>P : Symbol(P, Decl(deeplyNestedMappedTypes.ts, 129, 37)) + +declare namespace Type { +>Type : Symbol(Type, Decl(deeplyNestedMappedTypes.ts, 129, 96)) + + function Object(object: T): TObject +>Object : Symbol(Object, Decl(deeplyNestedMappedTypes.ts, 131, 24)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 132, 20)) +>TProperties : Symbol(TProperties, Decl(deeplyNestedMappedTypes.ts, 120, 42)) +>object : Symbol(object, Decl(deeplyNestedMappedTypes.ts, 132, 43)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 132, 20)) +>TObject : Symbol(TObject, Decl(deeplyNestedMappedTypes.ts, 121, 55)) +>T : Symbol(T, Decl(deeplyNestedMappedTypes.ts, 132, 20)) + + function String(): TString +>String : Symbol(String, Decl(deeplyNestedMappedTypes.ts, 132, 65)) +>TString : Symbol(TString, Decl(deeplyNestedMappedTypes.ts, 99, 73)) +} + diff --git a/tests/baselines/reference/deeplyNestedMappedTypes.types b/tests/baselines/reference/deeplyNestedMappedTypes.types index 2743fd69bf0..cbf3992088b 100644 --- a/tests/baselines/reference/deeplyNestedMappedTypes.types +++ b/tests/baselines/reference/deeplyNestedMappedTypes.types @@ -125,3 +125,243 @@ const bar2: Bar2 = bar1; // Error expected >bar2 : { x: { y: { z: { a: { b: Record<"c", string>; }; }; }; }; } >bar1 : { x: { y: { z: { a: { b: Record<"c", number>; }; }; }; }; } +// Repro from #56138 + +export type Input = Static +>Input : { level1: { level2: { foo: string; }; }; } +>Input : TObject<{ level1: TObject<{ level2: TObject<{ foo: TString; }>; }>; }> + +export const Input = Type.Object({ +>Input : TObject<{ level1: TObject<{ level2: TObject<{ foo: TString; }>; }>; }> +>Type.Object({ level1: Type.Object({ level2: Type.Object({ foo: Type.String(), }) })}) : TObject<{ level1: TObject<{ level2: TObject<{ foo: TString; }>; }>; }> +>Type.Object : (object: T) => TObject +>Type : typeof Type +>Object : (object: T) => TObject +>{ level1: Type.Object({ level2: Type.Object({ foo: Type.String(), }) })} : { level1: TObject<{ level2: TObject<{ foo: TString; }>; }>; } + + level1: Type.Object({ +>level1 : TObject<{ level2: TObject<{ foo: TString; }>; }> +>Type.Object({ level2: Type.Object({ foo: Type.String(), }) }) : TObject<{ level2: TObject<{ foo: TString; }>; }> +>Type.Object : (object: T) => TObject +>Type : typeof Type +>Object : (object: T) => TObject +>{ level2: Type.Object({ foo: Type.String(), }) } : { level2: TObject<{ foo: TString; }>; } + + level2: Type.Object({ +>level2 : TObject<{ foo: TString; }> +>Type.Object({ foo: Type.String(), }) : TObject<{ foo: TString; }> +>Type.Object : (object: T) => TObject +>Type : typeof Type +>Object : (object: T) => TObject +>{ foo: Type.String(), } : { foo: TString; } + + foo: Type.String(), +>foo : TString +>Type.String() : TString +>Type.String : () => TString +>Type : typeof Type +>String : () => TString + + }) + }) +}) + +export type Output = Static +>Output : { level1: { level2: { foo: string; bar: string; }; }; } +>Output : TObject<{ level1: TObject<{ level2: TObject<{ foo: TString; bar: TString; }>; }>; }> + +export const Output = Type.Object({ +>Output : TObject<{ level1: TObject<{ level2: TObject<{ foo: TString; bar: TString; }>; }>; }> +>Type.Object({ level1: Type.Object({ level2: Type.Object({ foo: Type.String(), bar: Type.String(), }) })}) : TObject<{ level1: TObject<{ level2: TObject<{ foo: TString; bar: TString; }>; }>; }> +>Type.Object : (object: T) => TObject +>Type : typeof Type +>Object : (object: T) => TObject +>{ level1: Type.Object({ level2: Type.Object({ foo: Type.String(), bar: Type.String(), }) })} : { level1: TObject<{ level2: TObject<{ foo: TString; bar: TString; }>; }>; } + + level1: Type.Object({ +>level1 : TObject<{ level2: TObject<{ foo: TString; bar: TString; }>; }> +>Type.Object({ level2: Type.Object({ foo: Type.String(), bar: Type.String(), }) }) : TObject<{ level2: TObject<{ foo: TString; bar: TString; }>; }> +>Type.Object : (object: T) => TObject +>Type : typeof Type +>Object : (object: T) => TObject +>{ level2: Type.Object({ foo: Type.String(), bar: Type.String(), }) } : { level2: TObject<{ foo: TString; bar: TString; }>; } + + level2: Type.Object({ +>level2 : TObject<{ foo: TString; bar: TString; }> +>Type.Object({ foo: Type.String(), bar: Type.String(), }) : TObject<{ foo: TString; bar: TString; }> +>Type.Object : (object: T) => TObject +>Type : typeof Type +>Object : (object: T) => TObject +>{ foo: Type.String(), bar: Type.String(), } : { foo: TString; bar: TString; } + + foo: Type.String(), +>foo : TString +>Type.String() : TString +>Type.String : () => TString +>Type : typeof Type +>String : () => TString + + bar: Type.String(), +>bar : TString +>Type.String() : TString +>Type.String : () => TString +>Type : typeof Type +>String : () => TString + + }) + }) +}) + +function problematicFunction1(ors: Input[]): Output[] { +>problematicFunction1 : (ors: Input[]) => Output[] +>ors : { level1: { level2: { foo: string; }; }; }[] + + return ors; // Error +>ors : { level1: { level2: { foo: string; }; }; }[] +} + +function problematicFunction2(ors: Input[]): T { +>problematicFunction2 : (ors: Input[]) => T +>ors : { level1: { level2: { foo: string; }; }; }[] + + return ors; // Error +>ors : { level1: { level2: { foo: string; }; }; }[] +} + +function problematicFunction3(ors: (typeof Input.static)[]): Output[] { +>problematicFunction3 : (ors: (typeof Input.static)[]) => Output[] +>ors : { level1: { level2: { foo: string; }; }; }[] +>Input.static : { level1: { level2: { foo: string; }; }; } +>Input : TObject<{ level1: TObject<{ level2: TObject<{ foo: TString; }>; }>; }> +>static : { level1: { level2: { foo: string; }; }; } + + return ors; // Error +>ors : { level1: { level2: { foo: string; }; }; }[] +} + +export type Evaluate = T extends infer O ? { [K in keyof O]: O[K] } : never +>Evaluate : Evaluate + +export declare const Readonly: unique symbol; +>Readonly : unique symbol + +export declare const Optional: unique symbol; +>Optional : unique symbol + +export declare const Hint: unique symbol; +>Hint : unique symbol + +export declare const Kind: unique symbol; +>Kind : unique symbol + +export interface TKind { + [Kind]: string +>[Kind] : string +>Kind : unique symbol +} +export interface TSchema extends TKind { + [Readonly]?: string +>[Readonly] : string | undefined +>Readonly : unique symbol + + [Optional]?: string +>[Optional] : string | undefined +>Optional : unique symbol + + [Hint]?: string +>[Hint] : string | undefined +>Hint : unique symbol + + params: unknown[] +>params : unknown[] + + static: unknown +>static : unknown +} + +export type TReadonlyOptional = TOptional & TReadonly +>TReadonlyOptional : TReadonlyOptional + +export type TReadonly = T & { [Readonly]: 'Readonly' } +>TReadonly : TReadonly +>[Readonly] : "Readonly" +>Readonly : unique symbol + +export type TOptional = T & { [Optional]: 'Optional' } +>TOptional : TOptional +>[Optional] : "Optional" +>Optional : unique symbol + +export interface TString extends TSchema { + [Kind]: 'String'; +>[Kind] : "String" +>Kind : unique symbol + + static: string; +>static : string + + type: 'string'; +>type : "string" +} + +export type ReadonlyOptionalPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? K : never) : never }[keyof T] +>ReadonlyOptionalPropertyKeys : ReadonlyOptionalPropertyKeys + +export type ReadonlyPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? never : K) : never }[keyof T] +>ReadonlyPropertyKeys : ReadonlyPropertyKeys + +export type OptionalPropertyKeys = { [K in keyof T]: T[K] extends TOptional ? (T[K] extends TReadonly ? never : K) : never }[keyof T] +>OptionalPropertyKeys : OptionalPropertyKeys + +export type RequiredPropertyKeys = keyof Omit | ReadonlyPropertyKeys | OptionalPropertyKeys> +>RequiredPropertyKeys : Exclude | ReadonlyPropertyKeys | OptionalPropertyKeys> + +export type PropertiesReducer> = Evaluate<( +>PropertiesReducer : PropertiesReducer + + Readonly>>> & + Readonly>> & + Partial>> & + Required>> +)> +export type PropertiesReduce = PropertiesReducerPropertiesReduce : PropertiesReduce + + [K in keyof T]: Static +}> +export type TPropertyKey = string | number +>TPropertyKey : string | number + +export type TProperties = Record +>TProperties : { [x: string]: TSchema; [x: number]: TSchema; } + +export interface TObject extends TSchema { + [Kind]: 'Object' +>[Kind] : "Object" +>Kind : unique symbol + + static: PropertiesReduce +>static : Evaluate; }, ReadonlyOptionalPropertyKeys>>> & Readonly; }, ReadonlyPropertyKeys>> & Partial; }, OptionalPropertyKeys>> & Required; }, Exclude | ReadonlyPropertyKeys | OptionalPropertyKeys>>>> + + type: 'object' +>type : "object" + + properties: T +>properties : T +} + +export type Static = (T & { params: P; })['static'] +>Static : Static +>params : P + +declare namespace Type { +>Type : typeof Type + + function Object(object: T): TObject +>Object : (object: T) => TObject +>object : T + + function String(): TString +>String : () => TString +} + diff --git a/tests/baselines/reference/defaultValueInFunctionTypes.errors.txt b/tests/baselines/reference/defaultValueInFunctionTypes.errors.txt index 13ae5683e3b..9014a4ccb59 100644 --- a/tests/baselines/reference/defaultValueInFunctionTypes.errors.txt +++ b/tests/baselines/reference/defaultValueInFunctionTypes.errors.txt @@ -1,11 +1,17 @@ -defaultValueInFunctionTypes.ts(1,9): error TS2371: A parameter initializer is only allowed in a function or constructor implementation. -defaultValueInFunctionTypes.ts(2,11): error TS2371: A parameter initializer is only allowed in a function or constructor implementation. +defaultValueInFunctionTypes.ts(1,15): error TS2371: A parameter initializer is only allowed in a function or constructor implementation. +defaultValueInFunctionTypes.ts(3,9): error TS2371: A parameter initializer is only allowed in a function or constructor implementation. +defaultValueInFunctionTypes.ts(4,11): error TS2371: A parameter initializer is only allowed in a function or constructor implementation. -==== defaultValueInFunctionTypes.ts (2 errors) ==== +==== defaultValueInFunctionTypes.ts (3 errors) ==== + type Foo = ({ first = 0 }: { first?: number }) => unknown; + ~~~~~ +!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation. + var x: (a: number = 1) => number; ~~~~~~~~~~~~~ !!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation. var y = <(a : string = "") => any>(undefined) ~~~~~~~~~~~~~~~ -!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation. \ No newline at end of file +!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation. + \ No newline at end of file diff --git a/tests/baselines/reference/defaultValueInFunctionTypes.js b/tests/baselines/reference/defaultValueInFunctionTypes.js index ce9884dc648..c5a76f4133b 100644 --- a/tests/baselines/reference/defaultValueInFunctionTypes.js +++ b/tests/baselines/reference/defaultValueInFunctionTypes.js @@ -1,8 +1,11 @@ //// [tests/cases/compiler/defaultValueInFunctionTypes.ts] //// //// [defaultValueInFunctionTypes.ts] +type Foo = ({ first = 0 }: { first?: number }) => unknown; + var x: (a: number = 1) => number; -var y = <(a : string = "") => any>(undefined) +var y = <(a : string = "") => any>(undefined) + //// [defaultValueInFunctionTypes.js] var x; diff --git a/tests/baselines/reference/defaultValueInFunctionTypes.symbols b/tests/baselines/reference/defaultValueInFunctionTypes.symbols index ec06d6278cf..47dc7825f37 100644 --- a/tests/baselines/reference/defaultValueInFunctionTypes.symbols +++ b/tests/baselines/reference/defaultValueInFunctionTypes.symbols @@ -1,12 +1,17 @@ //// [tests/cases/compiler/defaultValueInFunctionTypes.ts] //// === defaultValueInFunctionTypes.ts === +type Foo = ({ first = 0 }: { first?: number }) => unknown; +>Foo : Symbol(Foo, Decl(defaultValueInFunctionTypes.ts, 0, 0)) +>first : Symbol(first, Decl(defaultValueInFunctionTypes.ts, 0, 13)) +>first : Symbol(first, Decl(defaultValueInFunctionTypes.ts, 0, 28)) + var x: (a: number = 1) => number; ->x : Symbol(x, Decl(defaultValueInFunctionTypes.ts, 0, 3)) ->a : Symbol(a, Decl(defaultValueInFunctionTypes.ts, 0, 8)) +>x : Symbol(x, Decl(defaultValueInFunctionTypes.ts, 2, 3)) +>a : Symbol(a, Decl(defaultValueInFunctionTypes.ts, 2, 8)) var y = <(a : string = "") => any>(undefined) ->y : Symbol(y, Decl(defaultValueInFunctionTypes.ts, 1, 3)) ->a : Symbol(a, Decl(defaultValueInFunctionTypes.ts, 1, 10)) +>y : Symbol(y, Decl(defaultValueInFunctionTypes.ts, 3, 3)) +>a : Symbol(a, Decl(defaultValueInFunctionTypes.ts, 3, 10)) >undefined : Symbol(undefined) diff --git a/tests/baselines/reference/defaultValueInFunctionTypes.types b/tests/baselines/reference/defaultValueInFunctionTypes.types index 96f3ecac93a..38e4e17edac 100644 --- a/tests/baselines/reference/defaultValueInFunctionTypes.types +++ b/tests/baselines/reference/defaultValueInFunctionTypes.types @@ -1,6 +1,12 @@ //// [tests/cases/compiler/defaultValueInFunctionTypes.ts] //// === defaultValueInFunctionTypes.ts === +type Foo = ({ first = 0 }: { first?: number }) => unknown; +>Foo : ({ first }: { first?: number; }) => unknown +>first : number +>0 : 0 +>first : number + var x: (a: number = 1) => number; >x : (a?: number) => number >a : number diff --git a/tests/baselines/reference/dependentDestructuredVariables.js b/tests/baselines/reference/dependentDestructuredVariables.js index f8d565cdba6..ed1a7307e58 100644 --- a/tests/baselines/reference/dependentDestructuredVariables.js +++ b/tests/baselines/reference/dependentDestructuredVariables.js @@ -451,8 +451,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/deprecatedInheritedJSDocOverload.baseline b/tests/baselines/reference/deprecatedInheritedJSDocOverload.baseline index 6fe36668283..1ee52023a0e 100644 --- a/tests/baselines/reference/deprecatedInheritedJSDocOverload.baseline +++ b/tests/baselines/reference/deprecatedInheritedJSDocOverload.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/deprecatedInheritedJSDocOverload.ts === // interface PartialObserver {} // interface Subscription {} diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map index 867cf6af490..591d3325010 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map @@ -1,3 +1,3 @@ //// [derivedClassConstructorWithExplicitReturns01.js.map] -{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO;QAAP,kBAAA,EAAA,OAAO;QAAnB,YACI,kBAAM,CAAC,CAAC,SAYX;QAfD,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;YACtB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;QACN,CAAC;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBDID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgIGZ1bmN0aW9uIEModmFsdWUpIHsNCiAgICAgICAgdGhpcy5jUHJvcCA9IDEwOw0KICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgY1Byb3A6IHZhbHVlLA0KICAgICAgICAgICAgZm9vOiBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfTsNCiAgICB9DQogICAgQy5wcm90b3R5cGUuZm9vID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gInRoaXMgbmV2ZXIgZ2V0cyB1c2VkLiI7IH07DQogICAgcmV0dXJuIEM7DQp9KCkpOw0KdmFyIEQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgX19leHRlbmRzKEQsIF9zdXBlcik7DQogICAgZnVuY3Rpb24gRChhKSB7DQogICAgICAgIGlmIChhID09PSB2b2lkIDApIHsgYSA9IDEwMDsgfQ0KICAgICAgICB2YXIgX3RoaXMgPSBfc3VwZXIuY2FsbCh0aGlzLCBhKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5kUHJvcCA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9Ow0KICAgICAgICBpZiAoTWF0aC5yYW5kb20oKSA8IDAuNSkgew0KICAgICAgICAgICAgIllvdSB3aW4hIjsNCiAgICAgICAgICAgIHJldHVybiB7DQogICAgICAgICAgICAgICAgY1Byb3A6IDEsDQogICAgICAgICAgICAgICAgZFByb3A6IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9LA0KICAgICAgICAgICAgICAgIGZvbzogZnVuY3Rpb24gKCkgeyByZXR1cm4gIllvdSB3aW4hISEhISI7IH0NCiAgICAgICAgICAgIH07DQogICAgICAgIH0NCiAgICAgICAgZWxzZQ0KICAgICAgICAgICAgcmV0dXJuIG51bGw7DQogICAgfQ0KICAgIHJldHVybiBEOw0KfShDKSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1kZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTtJQUtJLFdBQVksS0FBYTtRQUp6QixVQUFLLEdBQUcsRUFBRSxDQUFDO1FBS1AsT0FBTztZQUNILEtBQUssRUFBRSxLQUFLO1lBQ1osR0FBRztnQkFDQyxPQUFPLDhCQUE4QixDQUFDO1lBQzFDLENBQUM7U0FDSixDQUFBO0lBQ0wsQ0FBQztJQVRELGVBQUcsR0FBSCxjQUFRLE9BQU8sdUJBQXVCLENBQUMsQ0FBQyxDQUFDO0lBVTdDLFFBQUM7QUFBRCxDQUFDLEFBYkQsSUFhQztBQUVEO0lBQWdCLHFCQUFDO0lBR2IsV0FBWSxDQUFPO1FBQVAsa0JBQUEsRUFBQSxPQUFPO1FBQW5CLFlBQ0ksa0JBQU0sQ0FBQyxDQUFDLFNBWVg7UUFmRCxXQUFLLEdBQUcsY0FBTSxPQUFBLEtBQUksRUFBSixDQUFJLENBQUM7UUFLZixJQUFJLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxHQUFHLEVBQUUsQ0FBQztZQUN0QixVQUFVLENBQUE7WUFDVixPQUFPO2dCQUNILEtBQUssRUFBRSxDQUFDO2dCQUNSLEtBQUssRUFBRSxjQUFNLE9BQUEsS0FBSSxFQUFKLENBQUk7Z0JBQ2pCLEdBQUcsZ0JBQUssT0FBTyxjQUFjLENBQUEsQ0FBQyxDQUFDO2FBQ2xDLENBQUM7UUFDTixDQUFDOztZQUVHLE9BQU8sSUFBSSxDQUFDO0lBQ3BCLENBQUM7SUFDTCxRQUFDO0FBQUQsQ0FBQyxBQWpCRCxDQUFnQixDQUFDLEdBaUJoQiJ9,Y2xhc3MgQyB7CiAgICBjUHJvcCA9IDEwOwoKICAgIGZvbygpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9CgogICAgY29uc3RydWN0b3IodmFsdWU6IG51bWJlcikgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwKICAgICAgICAgICAgZm9vKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgRCBleHRlbmRzIEMgewogICAgZFByb3AgPSAoKSA9PiB0aGlzOwoKICAgIGNvbnN0cnVjdG9yKGEgPSAxMDApIHsKICAgICAgICBzdXBlcihhKTsKCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsKICAgICAgICAgICAgIllvdSB3aW4hIgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgY1Byb3A6IDEsCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywKICAgICAgICAgICAgICAgIGZvbygpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiIH0KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgIH0KfQ== +{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO;QAAP,kBAAA,EAAA,OAAO;QACf,YAAA,MAAK,YAAC,CAAC,CAAC,SAAC;QAHb,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;YACtB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;QACN,CAAC;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBDID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgIGZ1bmN0aW9uIEModmFsdWUpIHsNCiAgICAgICAgdGhpcy5jUHJvcCA9IDEwOw0KICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgY1Byb3A6IHZhbHVlLA0KICAgICAgICAgICAgZm9vOiBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfTsNCiAgICB9DQogICAgQy5wcm90b3R5cGUuZm9vID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gInRoaXMgbmV2ZXIgZ2V0cyB1c2VkLiI7IH07DQogICAgcmV0dXJuIEM7DQp9KCkpOw0KdmFyIEQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgX19leHRlbmRzKEQsIF9zdXBlcik7DQogICAgZnVuY3Rpb24gRChhKSB7DQogICAgICAgIGlmIChhID09PSB2b2lkIDApIHsgYSA9IDEwMDsgfQ0KICAgICAgICB2YXIgX3RoaXMgPSBfc3VwZXIuY2FsbCh0aGlzLCBhKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5kUHJvcCA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9Ow0KICAgICAgICBpZiAoTWF0aC5yYW5kb20oKSA8IDAuNSkgew0KICAgICAgICAgICAgIllvdSB3aW4hIjsNCiAgICAgICAgICAgIHJldHVybiB7DQogICAgICAgICAgICAgICAgY1Byb3A6IDEsDQogICAgICAgICAgICAgICAgZFByb3A6IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9LA0KICAgICAgICAgICAgICAgIGZvbzogZnVuY3Rpb24gKCkgeyByZXR1cm4gIllvdSB3aW4hISEhISI7IH0NCiAgICAgICAgICAgIH07DQogICAgICAgIH0NCiAgICAgICAgZWxzZQ0KICAgICAgICAgICAgcmV0dXJuIG51bGw7DQogICAgfQ0KICAgIHJldHVybiBEOw0KfShDKSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1kZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTtJQUtJLFdBQVksS0FBYTtRQUp6QixVQUFLLEdBQUcsRUFBRSxDQUFDO1FBS1AsT0FBTztZQUNILEtBQUssRUFBRSxLQUFLO1lBQ1osR0FBRztnQkFDQyxPQUFPLDhCQUE4QixDQUFDO1lBQzFDLENBQUM7U0FDSixDQUFBO0lBQ0wsQ0FBQztJQVRELGVBQUcsR0FBSCxjQUFRLE9BQU8sdUJBQXVCLENBQUMsQ0FBQyxDQUFDO0lBVTdDLFFBQUM7QUFBRCxDQUFDLEFBYkQsSUFhQztBQUVEO0lBQWdCLHFCQUFDO0lBR2IsV0FBWSxDQUFPO1FBQVAsa0JBQUEsRUFBQSxPQUFPO1FBQ2YsWUFBQSxNQUFLLFlBQUMsQ0FBQyxDQUFDLFNBQUM7UUFIYixXQUFLLEdBQUcsY0FBTSxPQUFBLEtBQUksRUFBSixDQUFJLENBQUM7UUFLZixJQUFJLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxHQUFHLEVBQUUsQ0FBQztZQUN0QixVQUFVLENBQUE7WUFDVixPQUFPO2dCQUNILEtBQUssRUFBRSxDQUFDO2dCQUNSLEtBQUssRUFBRSxjQUFNLE9BQUEsS0FBSSxFQUFKLENBQUk7Z0JBQ2pCLEdBQUcsZ0JBQUssT0FBTyxjQUFjLENBQUEsQ0FBQyxDQUFDO2FBQ2xDLENBQUM7UUFDTixDQUFDOztZQUVHLE9BQU8sSUFBSSxDQUFDO0lBQ3BCLENBQUM7SUFDTCxRQUFDO0FBQUQsQ0FBQyxBQWpCRCxDQUFnQixDQUFDLEdBaUJoQiJ9,Y2xhc3MgQyB7CiAgICBjUHJvcCA9IDEwOwoKICAgIGZvbygpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9CgogICAgY29uc3RydWN0b3IodmFsdWU6IG51bWJlcikgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwKICAgICAgICAgICAgZm9vKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgRCBleHRlbmRzIEMgewogICAgZFByb3AgPSAoKSA9PiB0aGlzOwoKICAgIGNvbnN0cnVjdG9yKGEgPSAxMDApIHsKICAgICAgICBzdXBlcihhKTsKCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsKICAgICAgICAgICAgIllvdSB3aW4hIgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgY1Byb3A6IDEsCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywKICAgICAgICAgICAgICAgIGZvbygpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiIH0KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgIH0KfQ== diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt index e967981014b..f51d0759aa4 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt @@ -270,36 +270,27 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts >>> var _this = _super.call(this, a) || this; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^^^^-> -1-> -2 > constructor(a = 100) { - > -3 > super( -4 > a -5 > ) -6 > ; - > - > if (Math.random() < 0.5) { - > "You win!" - > return { - > cProp: 1, - > dProp: () => this, - > foo() { return "You win!!!!!" } - > }; - > } - > else - > return null; - > } -1->Emitted(33, 9) Source(19, 5) + SourceIndex(0) +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^^^^-> +1->) { + > +2 > +3 > super +4 > ( +5 > a +6 > ) +7 > ; +1->Emitted(33, 9) Source(20, 9) + SourceIndex(0) 2 >Emitted(33, 21) Source(20, 9) + SourceIndex(0) -3 >Emitted(33, 39) Source(20, 15) + SourceIndex(0) -4 >Emitted(33, 40) Source(20, 16) + SourceIndex(0) -5 >Emitted(33, 41) Source(20, 17) + SourceIndex(0) -6 >Emitted(33, 50) Source(32, 6) + SourceIndex(0) +3 >Emitted(33, 27) Source(20, 14) + SourceIndex(0) +4 >Emitted(33, 39) Source(20, 15) + SourceIndex(0) +5 >Emitted(33, 40) Source(20, 16) + SourceIndex(0) +6 >Emitted(33, 41) Source(20, 17) + SourceIndex(0) +7 >Emitted(33, 50) Source(20, 18) + SourceIndex(0) --- >>> _this.dProp = function () { return _this; }; 1->^^^^^^^^ diff --git a/tests/baselines/reference/derivedClassParameterProperties.js b/tests/baselines/reference/derivedClassParameterProperties.js index e56735c84b6..0c6bc13af14 100644 --- a/tests/baselines/reference/derivedClassParameterProperties.js +++ b/tests/baselines/reference/derivedClassParameterProperties.js @@ -174,8 +174,7 @@ var Derived6 = /** @class */ (function (_super) { var _this = this; _this.a = 1; var b = 2; - _this = _super.call(this) || this; - return _this; + return _this = _super.call(this) || this; } return Derived6; }(Base)); diff --git a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js index ba92c5001c7..f64c8a7c62a 100644 --- a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js +++ b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js @@ -54,7 +54,7 @@ var Base = /** @class */ (function () { var Derived = /** @class */ (function (_super) { __extends(Derived, _super); function Derived() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // ok return _this; } return Derived; @@ -62,7 +62,7 @@ var Derived = /** @class */ (function (_super) { var Derived2 = /** @class */ (function (_super) { __extends(Derived2, _super); function Derived2(a) { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // error _this.a = a; return _this; } @@ -71,7 +71,7 @@ var Derived2 = /** @class */ (function (_super) { var Derived3 = /** @class */ (function (_super) { __extends(Derived3, _super); function Derived3(a) { - var _this = _super.call(this, function () { return _this; }) || this; + var _this = _super.call(this, function () { return _this; }) || this; // error _this.a = a; return _this; } @@ -80,7 +80,7 @@ var Derived3 = /** @class */ (function (_super) { var Derived4 = /** @class */ (function (_super) { __extends(Derived4, _super); function Derived4(a) { - var _this = _super.call(this, function () { return this; }) || this; + var _this = _super.call(this, function () { return this; }) || this; // ok _this.a = a; return _this; } diff --git a/tests/baselines/reference/derivedClassSuperProperties.js b/tests/baselines/reference/derivedClassSuperProperties.js index e87fd91b7d1..7a2f83b3f01 100644 --- a/tests/baselines/reference/derivedClassSuperProperties.js +++ b/tests/baselines/reference/derivedClassSuperProperties.js @@ -638,7 +638,7 @@ var DerivedWithFunctionExpression = /** @class */ (function (_super) { var DerivedWithParenthesis = /** @class */ (function (_super) { __extends(DerivedWithParenthesis, _super); function DerivedWithParenthesis() { - var _this = _super.call(this) || this; + var _this = (_this = _super.call(this) || this); _this.prop = true; return _this; } @@ -649,7 +649,7 @@ var DerivedWithParenthesisAfterStatement = /** @class */ (function (_super) { function DerivedWithParenthesisAfterStatement() { var _this = this; _this.prop; - _this = _super.call(this) || this; + (_this = _super.call(this) || this); _this.prop = true; return _this; } @@ -658,7 +658,7 @@ var DerivedWithParenthesisAfterStatement = /** @class */ (function (_super) { var DerivedWithParenthesisBeforeStatement = /** @class */ (function (_super) { __extends(DerivedWithParenthesisBeforeStatement, _super); function DerivedWithParenthesisBeforeStatement() { - var _this = _super.call(this) || this; + var _this = (_this = _super.call(this) || this); _this.prop = true; _this.prop; return _this; diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition.js b/tests/baselines/reference/derivedClassSuperStatementPosition.js index dccc2730c4c..dcbfd4dd78b 100644 --- a/tests/baselines/reference/derivedClassSuperStatementPosition.js +++ b/tests/baselines/reference/derivedClassSuperStatementPosition.js @@ -126,8 +126,8 @@ var DerivedBasic = /** @class */ (function (_super) { var DerivedAfterParameterDefault = /** @class */ (function (_super) { __extends(DerivedAfterParameterDefault, _super); function DerivedAfterParameterDefault(x) { - var _this = this; if (x === void 0) { x = false; } + var _this = this; _this.x1 = x; _this = _super.call(this, x) || this; _this.x2 = x; @@ -138,11 +138,11 @@ var DerivedAfterParameterDefault = /** @class */ (function (_super) { var DerivedAfterRestParameter = /** @class */ (function (_super) { __extends(DerivedAfterRestParameter, _super); function DerivedAfterRestParameter() { - var _this = this; var x = []; for (var _i = 0; _i < arguments.length; _i++) { x[_i] = arguments[_i]; } + var _this = this; _this.x1 = x; _this = _super.call(this, x) || this; _this.x2 = x; diff --git a/tests/baselines/reference/discriminateWithDivergentAccessors1.types b/tests/baselines/reference/discriminateWithDivergentAccessors1.types index b3c3adcd2a7..1b116244a97 100644 --- a/tests/baselines/reference/discriminateWithDivergentAccessors1.types +++ b/tests/baselines/reference/discriminateWithDivergentAccessors1.types @@ -27,7 +27,7 @@ if (weirdoBox.done) { weirdoBox.value; >weirdoBox.value : number ->weirdoBox : { done: true; value: number; } +>weirdoBox : { get done(): true; set done(v: T | null); value: number; } >value : number } @@ -64,7 +64,7 @@ if (weirdoBox2.done) { weirdoBox2.value; >weirdoBox2.value : string | number ->weirdoBox2 : { done: true; value: string; } | { done: true; value: number; } +>weirdoBox2 : { get done(): true; set done(v: T | null); value: string; } | { get done(): true; set done(v: T | null | undefined); value: number; } >value : string | number } diff --git a/tests/baselines/reference/divergentAccessors1.types b/tests/baselines/reference/divergentAccessors1.types index 0055a3a3f2d..30272e23711 100644 --- a/tests/baselines/reference/divergentAccessors1.types +++ b/tests/baselines/reference/divergentAccessors1.types @@ -33,7 +33,7 @@ { type T_HasGetSet = { ->T_HasGetSet : { foo: number; } +>T_HasGetSet : { get foo(): number; set foo(v: number | string); } get foo(): number; >foo : number @@ -44,20 +44,20 @@ } const t_hgs: T_HasGetSet = null as any; ->t_hgs : { foo: number; } +>t_hgs : { get foo(): number; set foo(v: string | number); } >null as any : any t_hgs.foo = "32"; >t_hgs.foo = "32" : "32" >t_hgs.foo : string | number ->t_hgs : { foo: number; } +>t_hgs : { get foo(): number; set foo(v: string | number); } >foo : string | number >"32" : "32" let r_t_hgs_foo: number = t_hgs.foo; >r_t_hgs_foo : number >t_hgs.foo : number ->t_hgs : { foo: number; } +>t_hgs : { get foo(): number; set foo(v: string | number); } >foo : number } diff --git a/tests/baselines/reference/divergentAccessorsTypes1.types b/tests/baselines/reference/divergentAccessorsTypes1.types index acdb70ab2bb..96ff1c336d1 100644 --- a/tests/baselines/reference/divergentAccessorsTypes1.types +++ b/tests/baselines/reference/divergentAccessorsTypes1.types @@ -50,7 +50,7 @@ interface Test2 { } type Test3 = { ->Test3 : { foo: string; bar: string | number; } +>Test3 : { get foo(): string; set foo(s: string | number); get bar(): string | number; set bar(s: string | number | boolean); } get foo(): string; >foo : string diff --git a/tests/baselines/reference/divergentAccessorsTypes6.types b/tests/baselines/reference/divergentAccessorsTypes6.types index c6a4cd79899..12baf79abce 100644 --- a/tests/baselines/reference/divergentAccessorsTypes6.types +++ b/tests/baselines/reference/divergentAccessorsTypes6.types @@ -53,8 +53,8 @@ interface I1 { >value : string } const o1 = { ->o1 : { x: number; } ->{ get x(): number { return 0; }, set x(value: Fail) {}} : { x: number; } +>o1 : { get x(): number; set x(value: Fail); } +>{ get x(): number { return 0; }, set x(value: Fail) {}} : { get x(): number; set x(value: Fail); } get x(): number { return 0; }, >x : number @@ -68,8 +68,8 @@ const o1 = { // A setter annotation still implies the getter return type. const o2 = { ->o2 : { p1: string; p2: number; } ->{ get p1() { return 0; }, // error - no annotation means type is implied from the setter annotation set p1(value: string) {}, get p2(): number { return 0; }, // ok - explicit annotation set p2(value: string) {},} : { p1: string; p2: number; } +>o2 : { p1: string; get p2(): number; set p2(value: string); } +>{ get p1() { return 0; }, // error - no annotation means type is implied from the setter annotation set p1(value: string) {}, get p2(): number { return 0; }, // ok - explicit annotation set p2(value: string) {},} : { p1: string; get p2(): number; set p2(value: string); } get p1() { return 0; }, // error - no annotation means type is implied from the setter annotation >p1 : string diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js index 529803ee0ad..5be6ad0fe39 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.js @@ -65,8 +65,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -84,8 +85,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -104,8 +106,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -136,8 +139,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -156,8 +160,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -188,8 +193,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -208,8 +214,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -228,8 +235,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -250,8 +258,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js index 4f7c65387d0..9bbe5eb7129 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js @@ -92,8 +92,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -144,8 +145,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -203,8 +205,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -274,8 +277,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -344,8 +348,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -434,8 +439,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -492,8 +498,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -547,8 +554,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -617,8 +625,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js index 8005821a836..bebb30336db 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.js @@ -34,8 +34,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -51,8 +52,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -69,8 +71,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -99,8 +102,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -117,8 +121,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -147,8 +152,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -165,8 +171,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js index d742ec3b438..04b4bc949ac 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js @@ -61,8 +61,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -108,8 +109,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -162,8 +164,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -228,8 +231,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -293,8 +297,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -378,8 +383,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -431,8 +437,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js index b531bc7e1e2..e89e9b9d6a8 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.js @@ -34,8 +34,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -51,8 +52,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -69,8 +71,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -99,8 +102,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -117,8 +121,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -147,8 +152,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -165,8 +171,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js index f643af7b873..699df6cff0b 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js @@ -61,8 +61,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -108,8 +109,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -162,8 +164,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -228,8 +231,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -293,8 +297,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -378,8 +383,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -431,8 +437,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js index 2c2ebee571a..97ea27906a2 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js +++ b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.js @@ -48,8 +48,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -67,8 +68,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -87,8 +89,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -119,8 +122,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -139,8 +143,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -171,8 +176,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -191,8 +197,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js index bcac094f21d..f65bf2d3cae 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js @@ -75,8 +75,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -124,8 +125,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -180,8 +182,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -248,8 +251,9 @@ var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -315,8 +319,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -402,8 +407,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -457,8 +463,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.forAwait(target=es2015).js b/tests/baselines/reference/emitter.forAwait(target=es2015).js index dccf5e8a179..134259e0b9c 100644 --- a/tests/baselines/reference/emitter.forAwait(target=es2015).js +++ b/tests/baselines/reference/emitter.forAwait(target=es2015).js @@ -136,8 +136,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -176,8 +177,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -255,8 +257,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -297,8 +300,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.forAwait(target=es2017).js b/tests/baselines/reference/emitter.forAwait(target=es2017).js index b05a5a8f951..9477434034b 100644 --- a/tests/baselines/reference/emitter.forAwait(target=es2017).js +++ b/tests/baselines/reference/emitter.forAwait(target=es2017).js @@ -114,8 +114,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -154,8 +155,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -222,8 +224,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -264,8 +267,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/emitter.forAwait(target=es5).js b/tests/baselines/reference/emitter.forAwait(target=es5).js index 2ac05501426..01b176d2245 100644 --- a/tests/baselines/reference/emitter.forAwait(target=es5).js +++ b/tests/baselines/reference/emitter.forAwait(target=es5).js @@ -261,8 +261,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -350,8 +351,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -526,8 +528,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -616,8 +619,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/errorLocationForInterfaceExtension.errors.txt b/tests/baselines/reference/errorLocationForInterfaceExtension.errors.txt index d9efcabac69..1043fb19864 100644 --- a/tests/baselines/reference/errorLocationForInterfaceExtension.errors.txt +++ b/tests/baselines/reference/errorLocationForInterfaceExtension.errors.txt @@ -1,4 +1,4 @@ -errorLocationForInterfaceExtension.ts(3,21): error TS2840: An interface cannot extend a primitive type like 'string'; an interface can only extend named types and classes +errorLocationForInterfaceExtension.ts(3,21): error TS2840: An interface cannot extend a primitive type like 'string'. It can only extend other named object types. ==== errorLocationForInterfaceExtension.ts (1 errors) ==== @@ -6,5 +6,5 @@ errorLocationForInterfaceExtension.ts(3,21): error TS2840: An interface cannot e interface x extends string { } ~~~~~~ -!!! error TS2840: An interface cannot extend a primitive type like 'string'; an interface can only extend named types and classes +!!! error TS2840: An interface cannot extend a primitive type like 'string'. It can only extend other named object types. \ No newline at end of file diff --git a/tests/baselines/reference/errorSuperCalls.js b/tests/baselines/reference/errorSuperCalls.js index 598d3e32848..be2bee7189e 100644 --- a/tests/baselines/reference/errorSuperCalls.js +++ b/tests/baselines/reference/errorSuperCalls.js @@ -146,8 +146,7 @@ var Derived = /** @class */ (function (_super) { //super call with type arguments function Derived() { var _this = _super.call(this) || this; - _this = _super.call(this) || this; - return _this; + return _super.call(this) || this; } return Derived; }(Base)); diff --git a/tests/baselines/reference/exhaustiveCaseCompletions9.baseline b/tests/baselines/reference/exhaustiveCaseCompletions9.baseline new file mode 100644 index 00000000000..5e97013efd3 --- /dev/null +++ b/tests/baselines/reference/exhaustiveCaseCompletions9.baseline @@ -0,0 +1,3551 @@ +// === Completions === +=== /tests/cases/fourslash/exhaustiveCaseCompletions9.ts === +// switch (Math.random() ? 123 : 456) { +// case "foo!": +// case +// ^ +// | ---------------------------------------------------------------------- +// | 123 +// | 456 +// | abstract +// | any +// | interface Array +// | var Array: ArrayConstructor +// | interface ArrayBuffer +// | var ArrayBuffer: ArrayBufferConstructor +// | as +// | asserts +// | async +// | await +// | bigint +// | boolean +// | interface Boolean +// | var Boolean: BooleanConstructor +// | break +// | case +// | catch +// | class +// | const +// | continue +// | interface DataView +// | var DataView: DataViewConstructor +// | interface Date +// | var Date: DateConstructor +// | debugger +// | declare +// | function decodeURI(encodedURI: string): string +// | function decodeURIComponent(encodedURIComponent: string): string +// | default +// | delete +// | do +// | else +// | function encodeURI(uri: string): string +// | function encodeURIComponent(uriComponent: string | number | boolean): string +// | enum +// | interface Error +// | var Error: ErrorConstructor +// | function eval(x: string): any +// | interface EvalError +// | var EvalError: EvalErrorConstructor +// | export +// | extends +// | false +// | finally +// | interface Float32Array +// | var Float32Array: Float32ArrayConstructor +// | interface Float64Array +// | var Float64Array: Float64ArrayConstructor +// | for +// | function +// | interface Function +// | var Function: FunctionConstructor +// | module globalThis +// | if +// | implements +// | import +// | in +// | infer +// | var Infinity: number +// | instanceof +// | interface Int16Array +// | var Int16Array: Int16ArrayConstructor +// | interface Int32Array +// | var Int32Array: Int32ArrayConstructor +// | interface Int8Array +// | var Int8Array: Int8ArrayConstructor +// | interface +// | namespace Intl +// | function isFinite(number: number): boolean +// | function isNaN(number: number): boolean +// | interface JSON +// | var JSON: JSON +// | keyof +// | let +// | interface Math +// | var Math: Math +// | module +// | namespace +// | var NaN: number +// | never +// | new +// | null +// | number +// | interface Number +// | var Number: NumberConstructor +// | object +// | interface Object +// | var Object: ObjectConstructor +// | package +// | function parseFloat(string: string): number +// | function parseInt(string: string, radix?: number): number +// | interface RangeError +// | var RangeError: RangeErrorConstructor +// | readonly +// | interface ReferenceError +// | var ReferenceError: ReferenceErrorConstructor +// | interface RegExp +// | var RegExp: RegExpConstructor +// | return +// | satisfies +// | string +// | interface String +// | var String: StringConstructor +// | super +// | switch +// | symbol +// | interface SyntaxError +// | var SyntaxError: SyntaxErrorConstructor +// | this +// | throw +// | true +// | try +// | type +// | interface TypeError +// | var TypeError: TypeErrorConstructor +// | typeof +// | interface Uint16Array +// | var Uint16Array: Uint16ArrayConstructor +// | interface Uint32Array +// | var Uint32Array: Uint32ArrayConstructor +// | interface Uint8Array +// | var Uint8Array: Uint8ArrayConstructor +// | interface Uint8ClampedArray +// | var Uint8ClampedArray: Uint8ClampedArrayConstructor +// | var undefined +// | unique +// | unknown +// | interface URIError +// | var URIError: URIErrorConstructor +// | var +// | void +// | while +// | with +// | yield +// | function escape(string: string): string +// | function unescape(string: string): string +// | +// | ---------------------------------------------------------------------- +// } + +[ + { + "marker": { + "fileName": "/tests/cases/fourslash/exhaustiveCaseCompletions9.ts", + "position": 62, + "name": "" + }, + "item": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "123", + "kind": "string", + "kindModifiers": "", + "sortText": "11", + "displayParts": [ + { + "text": "123", + "kind": "numericLiteral" + } + ] + }, + { + "name": "456", + "kind": "string", + "kindModifiers": "", + "sortText": "11", + "displayParts": [ + { + "text": "456", + "kind": "numericLiteral" + } + ] + }, + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "abstract", + "kind": "keyword" + } + ] + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "any", + "kind": "keyword" + } + ] + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Array", + "kind": "localName" + }, + { + "text": "<", + "kind": "punctuation" + }, + { + "text": "T", + "kind": "typeParameterName" + }, + { + "text": ">", + "kind": "punctuation" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ArrayBuffer", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ArrayBuffer", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ArrayBufferConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "Represents a raw buffer of binary data, which is used to store data for the\ndifferent typed arrays. ArrayBuffers cannot be read from or written to directly,\nbut can be passed to a typed array or DataView Object to interpret the raw\nbuffer as needed.", + "kind": "text" + } + ] + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "as", + "kind": "keyword" + } + ] + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "asserts", + "kind": "keyword" + } + ] + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "async", + "kind": "keyword" + } + ] + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "await", + "kind": "keyword" + } + ] + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "bigint", + "kind": "keyword" + } + ] + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "boolean", + "kind": "keyword" + } + ] + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Boolean", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Boolean", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "BooleanConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "break", + "kind": "keyword" + } + ] + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "case", + "kind": "keyword" + } + ] + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "catch", + "kind": "keyword" + } + ] + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "class", + "kind": "keyword" + } + ] + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "const", + "kind": "keyword" + } + ] + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "continue", + "kind": "keyword" + } + ] + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "DataView", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "DataView", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "DataViewConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Date", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Date", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "DateConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "Enables basic storage and retrieval of dates and times.", + "kind": "text" + } + ] + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "debugger", + "kind": "keyword" + } + ] + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "declare", + "kind": "keyword" + } + ] + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "decodeURI", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "encodedURI", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Gets the unencoded version of an encoded Uniform Resource Identifier (URI).", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "encodedURI", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A value representing an encoded URI.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "decodeURIComponent", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "encodedURIComponent", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "encodedURIComponent", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A value representing an encoded URI component.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "default", + "kind": "keyword" + } + ] + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "delete", + "kind": "keyword" + } + ] + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "do", + "kind": "keyword" + } + ] + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "else", + "kind": "keyword" + } + ] + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "encodeURI", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "uri", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Encodes a text string as a valid Uniform Resource Identifier (URI)", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "uri", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A value representing an unencoded URI.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "encodeURIComponent", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "uriComponent", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "|", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "|", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "boolean", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Encodes a text string as a valid component of a Uniform Resource Identifier (URI).", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "uriComponent", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A value representing an unencoded URI component.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "enum", + "kind": "keyword" + } + ] + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Error", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Error", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ErrorConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "eval", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "x", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Evaluates JavaScript code and executes it.", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "x", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A String value that contains valid JavaScript code.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "EvalError", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "EvalError", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "EvalErrorConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "export", + "kind": "keyword" + } + ] + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "extends", + "kind": "keyword" + } + ] + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "false", + "kind": "keyword" + } + ] + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "finally", + "kind": "keyword" + } + ] + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Float32Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Float32Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Float32ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\nof bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Float64Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Float64Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Float64ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 64-bit float values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "for", + "kind": "keyword" + } + ] + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + } + ] + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Function", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Function", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "FunctionConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "Creates a new function.", + "kind": "text" + } + ] + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "module", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalThis", + "kind": "moduleName" + } + ], + "documentation": [] + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "if", + "kind": "keyword" + } + ] + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "implements", + "kind": "keyword" + } + ] + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "import", + "kind": "keyword" + } + ] + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "in", + "kind": "keyword" + } + ] + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "infer", + "kind": "keyword" + } + ] + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Infinity", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "documentation": [] + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "instanceof", + "kind": "keyword" + } + ] + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int16Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int16Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int16ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int32Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int32Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int32ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int8Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int8Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Int8ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + } + ] + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "namespace", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Intl", + "kind": "moduleName" + } + ], + "documentation": [] + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "isFinite", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "number", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "boolean", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Determines whether a supplied number is finite.", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "number", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Any numeric value.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "isNaN", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "number", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "boolean", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "number", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A numeric value.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "JSON", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "JSON", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "JSON", + "kind": "localName" + } + ], + "documentation": [ + { + "text": "An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.", + "kind": "text" + } + ] + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "keyof", + "kind": "keyword" + } + ] + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "let", + "kind": "keyword" + } + ] + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Math", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Math", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Math", + "kind": "localName" + } + ], + "documentation": [ + { + "text": "An intrinsic object that provides basic mathematics functionality and constants.", + "kind": "text" + } + ] + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "module", + "kind": "keyword" + } + ] + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "namespace", + "kind": "keyword" + } + ] + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NaN", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "documentation": [] + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "never", + "kind": "keyword" + } + ] + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "new", + "kind": "keyword" + } + ] + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "null", + "kind": "keyword" + } + ] + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "number", + "kind": "keyword" + } + ] + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Number", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Number", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NumberConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.", + "kind": "text" + } + ] + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "object", + "kind": "keyword" + } + ] + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Object", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Object", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ObjectConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "Provides functionality common to all JavaScript objects.", + "kind": "text" + } + ] + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "package", + "kind": "keyword" + } + ] + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "parseFloat", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "string", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Converts a string to a floating-point number.", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "string", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A string that contains a floating-point number.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "parseInt", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "string", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "radix", + "kind": "parameterName" + }, + { + "text": "?", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Converts a string to an integer.", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": [ + { + "text": "string", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A string to convert into a number.", + "kind": "text" + } + ] + }, + { + "name": "param", + "text": [ + { + "text": "radix", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A value between 2 and 36 that specifies the base of the number in `string`.\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\nAll other strings are considered decimal.", + "kind": "text" + } + ] + } + ] + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "RangeError", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "RangeError", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "RangeErrorConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "readonly", + "kind": "keyword" + } + ] + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ReferenceError", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ReferenceError", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "ReferenceErrorConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "RegExp", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "RegExp", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "RegExpConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "return", + "kind": "keyword" + } + ] + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "satisfies", + "kind": "keyword" + } + ] + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "string", + "kind": "keyword" + } + ] + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "String", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "String", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "StringConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "Allows manipulation and formatting of text strings and determination and location of substrings within strings.", + "kind": "text" + } + ] + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "super", + "kind": "keyword" + } + ] + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "switch", + "kind": "keyword" + } + ] + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "symbol", + "kind": "keyword" + } + ] + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "SyntaxError", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "SyntaxError", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "SyntaxErrorConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "this", + "kind": "keyword" + } + ] + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "throw", + "kind": "keyword" + } + ] + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "true", + "kind": "keyword" + } + ] + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "try", + "kind": "keyword" + } + ] + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "type", + "kind": "keyword" + } + ] + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "TypeError", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "TypeError", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "TypeErrorConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "typeof", + "kind": "keyword" + } + ] + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint16Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint16Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint16ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint32Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint32Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint32ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint8Array", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint8Array", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint8ArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint8ClampedArray", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint8ClampedArray", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Uint8ClampedArrayConstructor", + "kind": "interfaceName" + } + ], + "documentation": [ + { + "text": "A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\nIf the requested number of bytes could not be allocated an exception is raised.", + "kind": "text" + } + ] + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "undefined", + "kind": "propertyName" + } + ], + "documentation": [] + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "unique", + "kind": "keyword" + } + ] + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "unknown", + "kind": "keyword" + } + ] + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15", + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "URIError", + "kind": "localName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "URIError", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "URIErrorConstructor", + "kind": "interfaceName" + } + ], + "documentation": [] + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + } + ] + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "void", + "kind": "keyword" + } + ] + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "while", + "kind": "keyword" + } + ] + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "with", + "kind": "keyword" + } + ] + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15", + "displayParts": [ + { + "text": "yield", + "kind": "keyword" + } + ] + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "escape", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "string", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated", + "text": [ + { + "text": "A legacy feature for browser compatibility", + "kind": "text" + } + ] + }, + { + "name": "param", + "text": [ + { + "text": "string", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A string value", + "kind": "text" + } + ] + } + ] + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "unescape", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "string", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.", + "kind": "text" + } + ], + "tags": [ + { + "name": "deprecated", + "text": [ + { + "text": "A legacy feature for browser compatibility", + "kind": "text" + } + ] + }, + { + "name": "param", + "text": [ + { + "text": "string", + "kind": "parameterName" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A string value", + "kind": "text" + } + ] + } + ] + }, + { + "name": "case 123: ...", + "kind": "", + "sortText": "15", + "insertText": "case 123:\ncase 456:", + "source": "SwitchCases/", + "kindModifiers": "", + "displayParts": [] + } + ] + } + } +] \ No newline at end of file diff --git a/tests/baselines/reference/exportAsNamespace5.js b/tests/baselines/reference/exportAsNamespace5.js new file mode 100644 index 00000000000..3d3e967ec0f --- /dev/null +++ b/tests/baselines/reference/exportAsNamespace5.js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/es2020/modules/exportAsNamespace5.ts] //// + +//// [three.d.ts] +export type Named = 0; +declare const Named: 0; + +//// [two.d.ts] +export * as default from "./three"; + +//// [one.ts] +import ns from "./two"; +type Alias = ns.Named; +ns.Named; + + +//// [one.js] +import ns from "./two"; +ns.Named; diff --git a/tests/baselines/reference/exportAsNamespace5.symbols b/tests/baselines/reference/exportAsNamespace5.symbols new file mode 100644 index 00000000000..8c5ffa52896 --- /dev/null +++ b/tests/baselines/reference/exportAsNamespace5.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es2020/modules/exportAsNamespace5.ts] //// + +=== three.d.ts === +export type Named = 0; +>Named : Symbol(Named, Decl(three.d.ts, 0, 0), Decl(three.d.ts, 1, 13)) + +declare const Named: 0; +>Named : Symbol(Named, Decl(three.d.ts, 0, 0), Decl(three.d.ts, 1, 13)) + +=== two.d.ts === +export * as default from "./three"; +>default : Symbol(default, Decl(two.d.ts, 0, 6)) + +=== one.ts === +import ns from "./two"; +>ns : Symbol(ns, Decl(one.ts, 0, 6)) + +type Alias = ns.Named; +>Alias : Symbol(Alias, Decl(one.ts, 0, 23)) +>ns : Symbol(ns, Decl(one.ts, 0, 6)) +>Named : Symbol(ns.Named, Decl(three.d.ts, 0, 0), Decl(three.d.ts, 1, 13)) + +ns.Named; +>ns.Named : Symbol(ns.Named, Decl(three.d.ts, 0, 0), Decl(three.d.ts, 1, 13)) +>ns : Symbol(ns, Decl(one.ts, 0, 6)) +>Named : Symbol(ns.Named, Decl(three.d.ts, 0, 0), Decl(three.d.ts, 1, 13)) + diff --git a/tests/baselines/reference/exportAsNamespace5.types b/tests/baselines/reference/exportAsNamespace5.types new file mode 100644 index 00000000000..a2850b11f16 --- /dev/null +++ b/tests/baselines/reference/exportAsNamespace5.types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/es2020/modules/exportAsNamespace5.ts] //// + +=== three.d.ts === +export type Named = 0; +>Named : 0 + +declare const Named: 0; +>Named : 0 + +=== two.d.ts === +export * as default from "./three"; +>default : typeof import("three") + +=== one.ts === +import ns from "./two"; +>ns : typeof ns + +type Alias = ns.Named; +>Alias : 0 +>ns : any + +ns.Named; +>ns.Named : 0 +>ns : typeof ns +>Named : 0 + diff --git a/tests/baselines/reference/findReferencesAfterEdit.baseline.jsonc b/tests/baselines/reference/findReferencesAfterEdit.baseline.jsonc index 6fd097f7ce0..460d8b215e9 100644 --- a/tests/baselines/reference/findReferencesAfterEdit.baseline.jsonc +++ b/tests/baselines/reference/findReferencesAfterEdit.baseline.jsonc @@ -144,11 +144,6 @@ -// === customWork === -// edits - - - // === findAllReferences === // === /tests/cases/fourslash/a.ts === // interface A { diff --git a/tests/baselines/reference/forAwaitPerIterationBindingDownlevel.js b/tests/baselines/reference/forAwaitPerIterationBindingDownlevel.js index 2ada0ae7b27..0f14a1b85df 100644 --- a/tests/baselines/reference/forAwaitPerIterationBindingDownlevel.js +++ b/tests/baselines/reference/forAwaitPerIterationBindingDownlevel.js @@ -67,8 +67,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/generatorYieldContextualType.symbols b/tests/baselines/reference/generatorYieldContextualType.symbols index 4fc40bbe754..364a96d995e 100644 --- a/tests/baselines/reference/generatorYieldContextualType.symbols +++ b/tests/baselines/reference/generatorYieldContextualType.symbols @@ -44,3 +44,322 @@ f2<0, 0, 1>(async function* () { return 0; }); + +// repro from #41428 +enum Directive { +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) + + Back, +>Back : Symbol(Directive.Back, Decl(generatorYieldContextualType.ts, 13, 16)) + + Cancel, +>Cancel : Symbol(Directive.Cancel, Decl(generatorYieldContextualType.ts, 14, 7)) + + LoadMore, +>LoadMore : Symbol(Directive.LoadMore, Decl(generatorYieldContextualType.ts, 15, 9)) + + Noop, +>Noop : Symbol(Directive.Noop, Decl(generatorYieldContextualType.ts, 16, 11)) +} + +namespace Directive { +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) + + export function is(value: Directive | T): value is Directive { +>is : Symbol(is, Decl(generatorYieldContextualType.ts, 20, 21)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 21, 21)) +>value : Symbol(value, Decl(generatorYieldContextualType.ts, 21, 24)) +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 21, 21)) +>value : Symbol(value, Decl(generatorYieldContextualType.ts, 21, 24)) +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) + + return typeof value === "number" && Directive[value] != null; +>value : Symbol(value, Decl(generatorYieldContextualType.ts, 21, 24)) +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) +>value : Symbol(value, Decl(generatorYieldContextualType.ts, 21, 24)) + } +} + +interface QuickPickItem { +>QuickPickItem : Symbol(QuickPickItem, Decl(generatorYieldContextualType.ts, 24, 1)) + + label: string; +>label : Symbol(QuickPickItem.label, Decl(generatorYieldContextualType.ts, 26, 25)) + + description?: string; +>description : Symbol(QuickPickItem.description, Decl(generatorYieldContextualType.ts, 27, 16)) + + detail?: string; +>detail : Symbol(QuickPickItem.detail, Decl(generatorYieldContextualType.ts, 28, 23)) + + picked?: boolean; +>picked : Symbol(QuickPickItem.picked, Decl(generatorYieldContextualType.ts, 29, 18)) + + alwaysShow?: boolean; +>alwaysShow : Symbol(QuickPickItem.alwaysShow, Decl(generatorYieldContextualType.ts, 30, 19)) +} + +interface QuickInputStep { +>QuickInputStep : Symbol(QuickInputStep, Decl(generatorYieldContextualType.ts, 32, 1)) + + placeholder?: string; +>placeholder : Symbol(QuickInputStep.placeholder, Decl(generatorYieldContextualType.ts, 34, 26)) + + prompt?: string; +>prompt : Symbol(QuickInputStep.prompt, Decl(generatorYieldContextualType.ts, 35, 23)) + + title?: string; +>title : Symbol(QuickInputStep.title, Decl(generatorYieldContextualType.ts, 36, 18)) +} + +interface QuickPickStep { +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 40, 24)) +>QuickPickItem : Symbol(QuickPickItem, Decl(generatorYieldContextualType.ts, 24, 1)) +>QuickPickItem : Symbol(QuickPickItem, Decl(generatorYieldContextualType.ts, 24, 1)) + + placeholder?: string; +>placeholder : Symbol(QuickPickStep.placeholder, Decl(generatorYieldContextualType.ts, 40, 66)) + + title?: string; +>title : Symbol(QuickPickStep.title, Decl(generatorYieldContextualType.ts, 41, 23)) +} + +type StepGenerator = +>StepGenerator : Symbol(StepGenerator, Decl(generatorYieldContextualType.ts, 43, 1)) + + | Generator< +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) + + QuickPickStep | QuickInputStep, +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>QuickInputStep : Symbol(QuickInputStep, Decl(generatorYieldContextualType.ts, 32, 1)) + + StepResult, +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) + + any | undefined + > + | AsyncGenerator< +>AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) + + QuickPickStep | QuickInputStep, +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>QuickInputStep : Symbol(QuickInputStep, Decl(generatorYieldContextualType.ts, 32, 1)) + + StepResult, +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) + + any | undefined + >; + +type StepItemType = T extends QuickPickStep +>StepItemType : Symbol(StepItemType, Decl(generatorYieldContextualType.ts, 55, 6)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 57, 18)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 57, 18)) +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>U : Symbol(U, Decl(generatorYieldContextualType.ts, 57, 52)) + + ? U[] +>U : Symbol(U, Decl(generatorYieldContextualType.ts, 57, 52)) + + : T extends QuickInputStep +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 57, 18)) +>QuickInputStep : Symbol(QuickInputStep, Decl(generatorYieldContextualType.ts, 32, 1)) + + ? string + : never; +namespace StepResult { +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) + + export const Break = Symbol("BreakStep"); +>Break : Symbol(Break, Decl(generatorYieldContextualType.ts, 63, 14)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) +} +type StepResult = typeof StepResult.Break | T; +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 65, 16)) +>StepResult.Break : Symbol(StepResult.Break, Decl(generatorYieldContextualType.ts, 63, 14)) +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) +>Break : Symbol(StepResult.Break, Decl(generatorYieldContextualType.ts, 63, 14)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 65, 16)) + +type StepResultGenerator = +>StepResultGenerator : Symbol(StepResultGenerator, Decl(generatorYieldContextualType.ts, 65, 49)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 66, 25)) + + | Generator, any | undefined> +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>QuickInputStep : Symbol(QuickInputStep, Decl(generatorYieldContextualType.ts, 32, 1)) +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 66, 25)) + + | AsyncGenerator< +>AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) + + QuickPickStep | QuickInputStep, +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>QuickInputStep : Symbol(QuickInputStep, Decl(generatorYieldContextualType.ts, 32, 1)) + + StepResult, +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 66, 25)) + + any | undefined + >; +type StepSelection = T extends QuickPickStep +>StepSelection : Symbol(StepSelection, Decl(generatorYieldContextualType.ts, 72, 6)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 73, 19)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 73, 19)) +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>U : Symbol(U, Decl(generatorYieldContextualType.ts, 73, 53)) + + ? U[] | Directive +>U : Symbol(U, Decl(generatorYieldContextualType.ts, 73, 53)) +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) + + : T extends QuickInputStep +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 73, 19)) +>QuickInputStep : Symbol(QuickInputStep, Decl(generatorYieldContextualType.ts, 32, 1)) + + ? string | Directive +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) + + : never; +type PartialStepState = Partial & { +>PartialStepState : Symbol(PartialStepState, Decl(generatorYieldContextualType.ts, 77, 10)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 78, 22)) +>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 78, 22)) + + counter: number; +>counter : Symbol(counter, Decl(generatorYieldContextualType.ts, 78, 51)) + + confirm?: boolean; +>confirm : Symbol(confirm, Decl(generatorYieldContextualType.ts, 79, 18)) + + startingStep?: number; +>startingStep : Symbol(startingStep, Decl(generatorYieldContextualType.ts, 80, 20)) + +}; +type StepState> = T & { +>StepState : Symbol(StepState, Decl(generatorYieldContextualType.ts, 82, 2)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 83, 15)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 83, 15)) + + counter: number; +>counter : Symbol(counter, Decl(generatorYieldContextualType.ts, 83, 51)) + + confirm?: boolean; +>confirm : Symbol(confirm, Decl(generatorYieldContextualType.ts, 84, 18)) + + startingStep?: number; +>startingStep : Symbol(startingStep, Decl(generatorYieldContextualType.ts, 85, 20)) + +}; + +function canPickStepContinue( +>canPickStepContinue : Symbol(canPickStepContinue, Decl(generatorYieldContextualType.ts, 87, 2)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 89, 29)) +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) + + _step: T, +>_step : Symbol(_step, Decl(generatorYieldContextualType.ts, 89, 54)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 89, 29)) + + _state: PartialStepState, +>_state : Symbol(_state, Decl(generatorYieldContextualType.ts, 90, 11)) +>PartialStepState : Symbol(PartialStepState, Decl(generatorYieldContextualType.ts, 77, 10)) + + _selection: StepItemType | Directive +>_selection : Symbol(_selection, Decl(generatorYieldContextualType.ts, 91, 27)) +>StepItemType : Symbol(StepItemType, Decl(generatorYieldContextualType.ts, 55, 6)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 89, 29)) +>Directive : Symbol(Directive, Decl(generatorYieldContextualType.ts, 10, 3), Decl(generatorYieldContextualType.ts, 18, 1)) + +): _selection is StepItemType { +>_selection : Symbol(_selection, Decl(generatorYieldContextualType.ts, 91, 27)) +>StepItemType : Symbol(StepItemType, Decl(generatorYieldContextualType.ts, 55, 6)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 89, 29)) + + return false; +} + +function createPickStep( +>createPickStep : Symbol(createPickStep, Decl(generatorYieldContextualType.ts, 95, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 97, 24)) +>QuickPickItem : Symbol(QuickPickItem, Decl(generatorYieldContextualType.ts, 24, 1)) + + step: QuickPickStep +>step : Symbol(step, Decl(generatorYieldContextualType.ts, 97, 49)) +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 97, 24)) + +): QuickPickStep { +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>T : Symbol(T, Decl(generatorYieldContextualType.ts, 97, 24)) + + return step; +>step : Symbol(step, Decl(generatorYieldContextualType.ts, 97, 49)) +} + +function* showStep< +>showStep : Symbol(showStep, Decl(generatorYieldContextualType.ts, 101, 1)) + + State extends PartialStepState & { repo: any }, +>State : Symbol(State, Decl(generatorYieldContextualType.ts, 103, 19)) +>PartialStepState : Symbol(PartialStepState, Decl(generatorYieldContextualType.ts, 77, 10)) +>repo : Symbol(repo, Decl(generatorYieldContextualType.ts, 104, 36)) + + Context extends { repos: any[]; title: string; status: any } +>Context : Symbol(Context, Decl(generatorYieldContextualType.ts, 104, 49)) +>repos : Symbol(repos, Decl(generatorYieldContextualType.ts, 105, 19)) +>title : Symbol(title, Decl(generatorYieldContextualType.ts, 105, 33)) +>status : Symbol(status, Decl(generatorYieldContextualType.ts, 105, 48)) + +>(state: State, _context: Context): StepResultGenerator { +>state : Symbol(state, Decl(generatorYieldContextualType.ts, 106, 2)) +>State : Symbol(State, Decl(generatorYieldContextualType.ts, 103, 19)) +>_context : Symbol(_context, Decl(generatorYieldContextualType.ts, 106, 15)) +>Context : Symbol(Context, Decl(generatorYieldContextualType.ts, 104, 49)) +>StepResultGenerator : Symbol(StepResultGenerator, Decl(generatorYieldContextualType.ts, 65, 49)) +>QuickPickItem : Symbol(QuickPickItem, Decl(generatorYieldContextualType.ts, 24, 1)) + + const step: QuickPickStep = createPickStep({ +>step : Symbol(step, Decl(generatorYieldContextualType.ts, 107, 7)) +>QuickPickStep : Symbol(QuickPickStep, Decl(generatorYieldContextualType.ts, 38, 1)) +>QuickPickItem : Symbol(QuickPickItem, Decl(generatorYieldContextualType.ts, 24, 1)) +>createPickStep : Symbol(createPickStep, Decl(generatorYieldContextualType.ts, 95, 1)) +>QuickPickItem : Symbol(QuickPickItem, Decl(generatorYieldContextualType.ts, 24, 1)) + + title: "", +>title : Symbol(title, Decl(generatorYieldContextualType.ts, 107, 76)) + + placeholder: "", +>placeholder : Symbol(placeholder, Decl(generatorYieldContextualType.ts, 108, 14)) + + }); + const selection: StepSelection = yield step; +>selection : Symbol(selection, Decl(generatorYieldContextualType.ts, 111, 7)) +>StepSelection : Symbol(StepSelection, Decl(generatorYieldContextualType.ts, 72, 6)) +>step : Symbol(step, Decl(generatorYieldContextualType.ts, 107, 7)) +>step : Symbol(step, Decl(generatorYieldContextualType.ts, 107, 7)) + + return canPickStepContinue(step, state, selection) +>canPickStepContinue : Symbol(canPickStepContinue, Decl(generatorYieldContextualType.ts, 87, 2)) +>step : Symbol(step, Decl(generatorYieldContextualType.ts, 107, 7)) +>state : Symbol(state, Decl(generatorYieldContextualType.ts, 106, 2)) +>selection : Symbol(selection, Decl(generatorYieldContextualType.ts, 111, 7)) + + ? selection[0] +>selection : Symbol(selection, Decl(generatorYieldContextualType.ts, 111, 7)) + + : StepResult.Break; +>StepResult.Break : Symbol(StepResult.Break, Decl(generatorYieldContextualType.ts, 63, 14)) +>StepResult : Symbol(StepResult, Decl(generatorYieldContextualType.ts, 61, 10), Decl(generatorYieldContextualType.ts, 64, 1)) +>Break : Symbol(StepResult.Break, Decl(generatorYieldContextualType.ts, 63, 14)) +} + diff --git a/tests/baselines/reference/generatorYieldContextualType.types b/tests/baselines/reference/generatorYieldContextualType.types index 84bac6e374e..280565cf56e 100644 --- a/tests/baselines/reference/generatorYieldContextualType.types +++ b/tests/baselines/reference/generatorYieldContextualType.types @@ -27,14 +27,250 @@ declare function f2(gen: () => Generator | AsyncGenerator(async function* () { >f2<0, 0, 1>(async function* () { const a = yield 0; return 0;}) : void >f2 : (gen: () => Generator | AsyncGenerator) => void ->async function* () { const a = yield 0; return 0;} : () => AsyncGenerator<0, 0, 1 | undefined> +>async function* () { const a = yield 0; return 0;} : () => AsyncGenerator<0, 0, 1> const a = yield 0; ->a : 1 | undefined ->yield 0 : 1 | undefined +>a : 1 +>yield 0 : 1 >0 : 0 return 0; >0 : 0 }); + +// repro from #41428 +enum Directive { +>Directive : Directive + + Back, +>Back : Directive.Back + + Cancel, +>Cancel : Directive.Cancel + + LoadMore, +>LoadMore : Directive.LoadMore + + Noop, +>Noop : Directive.Noop +} + +namespace Directive { +>Directive : typeof Directive + + export function is(value: Directive | T): value is Directive { +>is : (value: Directive | T) => value is Directive +>value : T | Directive + + return typeof value === "number" && Directive[value] != null; +>typeof value === "number" && Directive[value] != null : boolean +>typeof value === "number" : boolean +>typeof value : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>value : T | Directive +>"number" : "number" +>Directive[value] != null : boolean +>Directive[value] : (typeof Directive)[Directive | (T & number)] +>Directive : typeof Directive +>value : Directive | (T & number) + } +} + +interface QuickPickItem { + label: string; +>label : string + + description?: string; +>description : string | undefined + + detail?: string; +>detail : string | undefined + + picked?: boolean; +>picked : boolean | undefined + + alwaysShow?: boolean; +>alwaysShow : boolean | undefined +} + +interface QuickInputStep { + placeholder?: string; +>placeholder : string | undefined + + prompt?: string; +>prompt : string | undefined + + title?: string; +>title : string | undefined +} + +interface QuickPickStep { + placeholder?: string; +>placeholder : string | undefined + + title?: string; +>title : string | undefined +} + +type StepGenerator = +>StepGenerator : Generator, StepResult, any> | AsyncGenerator, StepResult, any> + + | Generator< + QuickPickStep | QuickInputStep, + StepResult, + any | undefined + > + | AsyncGenerator< + QuickPickStep | QuickInputStep, + StepResult, + any | undefined + >; + +type StepItemType = T extends QuickPickStep +>StepItemType : StepItemType + + ? U[] + : T extends QuickInputStep + ? string + : never; +namespace StepResult { +>StepResult : typeof StepResult + + export const Break = Symbol("BreakStep"); +>Break : unique symbol +>Symbol("BreakStep") : unique symbol +>Symbol : SymbolConstructor +>"BreakStep" : "BreakStep" +} +type StepResult = typeof StepResult.Break | T; +>StepResult : StepResult +>StepResult.Break : unique symbol +>StepResult : typeof StepResult +>Break : unique symbol + +type StepResultGenerator = +>StepResultGenerator : StepResultGenerator + + | Generator, any | undefined> + | AsyncGenerator< + QuickPickStep | QuickInputStep, + StepResult, + any | undefined + >; +type StepSelection = T extends QuickPickStep +>StepSelection : StepSelection + + ? U[] | Directive + : T extends QuickInputStep + ? string | Directive + : never; +type PartialStepState = Partial & { +>PartialStepState : PartialStepState + + counter: number; +>counter : number + + confirm?: boolean; +>confirm : boolean | undefined + + startingStep?: number; +>startingStep : number | undefined + +}; +type StepState> = T & { +>StepState : StepState + + counter: number; +>counter : number + + confirm?: boolean; +>confirm : boolean | undefined + + startingStep?: number; +>startingStep : number | undefined + +}; + +function canPickStepContinue( +>canPickStepContinue : >(_step: T, _state: PartialStepState, _selection: StepItemType | Directive) => _selection is StepItemType + + _step: T, +>_step : T + + _state: PartialStepState, +>_state : PartialStepState + + _selection: StepItemType | Directive +>_selection : Directive | StepItemType + +): _selection is StepItemType { + return false; +>false : false +} + +function createPickStep( +>createPickStep : (step: QuickPickStep) => QuickPickStep + + step: QuickPickStep +>step : QuickPickStep + +): QuickPickStep { + return step; +>step : QuickPickStep +} + +function* showStep< +>showStep : & { counter: number; confirm?: boolean | undefined; startingStep?: number | undefined; } & { repo: any; }, Context extends { repos: any[]; title: string; status: any; }>(state: State, _context: Context) => StepResultGenerator + + State extends PartialStepState & { repo: any }, +>repo : any + + Context extends { repos: any[]; title: string; status: any } +>repos : any[] +>title : string +>status : any + +>(state: State, _context: Context): StepResultGenerator { +>state : State +>_context : Context + + const step: QuickPickStep = createPickStep({ +>step : QuickPickStep +>createPickStep({ title: "", placeholder: "", }) : QuickPickStep +>createPickStep : (step: QuickPickStep) => QuickPickStep +>{ title: "", placeholder: "", } : { title: string; placeholder: string; } + + title: "", +>title : string +>"" : "" + + placeholder: "", +>placeholder : string +>"" : "" + + }); + const selection: StepSelection = yield step; +>selection : Directive | QuickPickItem[] +>step : QuickPickStep +>yield step : any +>step : QuickPickStep + + return canPickStepContinue(step, state, selection) +>canPickStepContinue(step, state, selection) ? selection[0] : StepResult.Break : QuickPickItem | unique symbol +>canPickStepContinue(step, state, selection) : boolean +>canPickStepContinue : >(_step: T, _state: PartialStepState, _selection: Directive | StepItemType) => _selection is StepItemType +>step : QuickPickStep +>state : State +>selection : Directive | QuickPickItem[] + + ? selection[0] +>selection[0] : QuickPickItem +>selection : QuickPickItem[] +>0 : 0 + + : StepResult.Break; +>StepResult.Break : unique symbol +>StepResult : typeof StepResult +>Break : unique symbol +} + diff --git a/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline b/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline index 9208d6fb4f9..9a39e039974 100644 --- a/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline +++ b/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile1.js diff --git a/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline b/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline index 0e19223306a..241ba6f3a50 100644 --- a/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline +++ b/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : declSingleFile.js diff --git a/tests/baselines/reference/getEmitOutputExternalModule.baseline b/tests/baselines/reference/getEmitOutputExternalModule.baseline index c577fb56792..9dfdf9a6362 100644 --- a/tests/baselines/reference/getEmitOutputExternalModule.baseline +++ b/tests/baselines/reference/getEmitOutputExternalModule.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : declSingleFile.js diff --git a/tests/baselines/reference/getEmitOutputExternalModule2.baseline b/tests/baselines/reference/getEmitOutputExternalModule2.baseline index dfbe9bf061d..cbd532561ab 100644 --- a/tests/baselines/reference/getEmitOutputExternalModule2.baseline +++ b/tests/baselines/reference/getEmitOutputExternalModule2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : declSingleFile.js diff --git a/tests/baselines/reference/getEmitOutputMapRoots.baseline b/tests/baselines/reference/getEmitOutputMapRoots.baseline index 67a136a3456..c87a6205f62 100644 --- a/tests/baselines/reference/getEmitOutputMapRoots.baseline +++ b/tests/baselines/reference/getEmitOutputMapRoots.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : declSingleFile.js.map diff --git a/tests/baselines/reference/getEmitOutputNoErrors.baseline b/tests/baselines/reference/getEmitOutputNoErrors.baseline index 8dea3c96fe6..a1c99f05899 100644 --- a/tests/baselines/reference/getEmitOutputNoErrors.baseline +++ b/tests/baselines/reference/getEmitOutputNoErrors.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js diff --git a/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline b/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline index e37174aa232..3a845632cfb 100644 --- a/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline +++ b/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile2.js diff --git a/tests/baselines/reference/getEmitOutputOut.baseline b/tests/baselines/reference/getEmitOutputOut.baseline index 26bb4e1b693..1ef6a24c11e 100644 --- a/tests/baselines/reference/getEmitOutputOut.baseline +++ b/tests/baselines/reference/getEmitOutputOut.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : out.js diff --git a/tests/baselines/reference/getEmitOutputOutFile.baseline b/tests/baselines/reference/getEmitOutputOutFile.baseline index ce3454c4ed4..bb6ab294ec0 100644 --- a/tests/baselines/reference/getEmitOutputOutFile.baseline +++ b/tests/baselines/reference/getEmitOutputOutFile.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : outFile.js diff --git a/tests/baselines/reference/getEmitOutputSingleFile.baseline b/tests/baselines/reference/getEmitOutputSingleFile.baseline index 929cd9d7a7d..274e040bfbb 100644 --- a/tests/baselines/reference/getEmitOutputSingleFile.baseline +++ b/tests/baselines/reference/getEmitOutputSingleFile.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : outputDir/singleFile.js diff --git a/tests/baselines/reference/getEmitOutputSingleFile2.baseline b/tests/baselines/reference/getEmitOutputSingleFile2.baseline index 0e19223306a..241ba6f3a50 100644 --- a/tests/baselines/reference/getEmitOutputSingleFile2.baseline +++ b/tests/baselines/reference/getEmitOutputSingleFile2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : declSingleFile.js diff --git a/tests/baselines/reference/getEmitOutputSourceMap.baseline b/tests/baselines/reference/getEmitOutputSourceMap.baseline index 5ef3f843b23..566225e0f17 100644 --- a/tests/baselines/reference/getEmitOutputSourceMap.baseline +++ b/tests/baselines/reference/getEmitOutputSourceMap.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js.map diff --git a/tests/baselines/reference/getEmitOutputSourceMap2.baseline b/tests/baselines/reference/getEmitOutputSourceMap2.baseline index 6a9d6cac3da..c954be858ac 100644 --- a/tests/baselines/reference/getEmitOutputSourceMap2.baseline +++ b/tests/baselines/reference/getEmitOutputSourceMap2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : sample/outDir/inputFile1.js.map diff --git a/tests/baselines/reference/getEmitOutputSourceRoot.baseline b/tests/baselines/reference/getEmitOutputSourceRoot.baseline index a5185984a6f..eb5eef155b5 100644 --- a/tests/baselines/reference/getEmitOutputSourceRoot.baseline +++ b/tests/baselines/reference/getEmitOutputSourceRoot.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js.map diff --git a/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline b/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline index a8013f697ca..f840171abc8 100644 --- a/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline +++ b/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile1.js.map diff --git a/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline b/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline index 0e15fe43aca..1639e59986e 100644 --- a/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline +++ b/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile1.js.map diff --git a/tests/baselines/reference/getEmitOutputTsxFile_React.baseline b/tests/baselines/reference/getEmitOutputTsxFile_React.baseline index 071d18992ea..5fa94301498 100644 --- a/tests/baselines/reference/getEmitOutputTsxFile_React.baseline +++ b/tests/baselines/reference/getEmitOutputTsxFile_React.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile1.js.map diff --git a/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline b/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline index 0176f4b628f..0b61cbd061f 100644 --- a/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline +++ b/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false EmitSkipped: false diff --git a/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline b/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline index cf4465be0be..388b00a4593 100644 --- a/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline +++ b/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false EmitSkipped: false diff --git a/tests/baselines/reference/getEmitOutputWithDeclarationFile3.baseline b/tests/baselines/reference/getEmitOutputWithDeclarationFile3.baseline index cd1f2739e33..03f6d17ba96 100644 --- a/tests/baselines/reference/getEmitOutputWithDeclarationFile3.baseline +++ b/tests/baselines/reference/getEmitOutputWithDeclarationFile3.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : declSingle.js diff --git a/tests/baselines/reference/getEmitOutputWithEarlySyntacticErrors.baseline b/tests/baselines/reference/getEmitOutputWithEarlySyntacticErrors.baseline index b011e5885e3..70fb5755627 100644 --- a/tests/baselines/reference/getEmitOutputWithEarlySyntacticErrors.baseline +++ b/tests/baselines/reference/getEmitOutputWithEarlySyntacticErrors.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile1.js diff --git a/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline b/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline index f992ec803b7..2328e3b7e1a 100644 --- a/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline +++ b/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js diff --git a/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline b/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline index a0ee0e676ea..fe6614c1639 100644 --- a/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline +++ b/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js diff --git a/tests/baselines/reference/getEmitOutputWithSemanticErrors.baseline b/tests/baselines/reference/getEmitOutputWithSemanticErrors.baseline index 7ada814a55e..93fdc50af7e 100644 --- a/tests/baselines/reference/getEmitOutputWithSemanticErrors.baseline +++ b/tests/baselines/reference/getEmitOutputWithSemanticErrors.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js diff --git a/tests/baselines/reference/getEmitOutputWithSemanticErrors2.baseline b/tests/baselines/reference/getEmitOutputWithSemanticErrors2.baseline index 739ef233191..a9e562a138a 100644 --- a/tests/baselines/reference/getEmitOutputWithSemanticErrors2.baseline +++ b/tests/baselines/reference/getEmitOutputWithSemanticErrors2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js diff --git a/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles.baseline b/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles.baseline index 2fb3cdd9210..0161f687cfc 100644 --- a/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles.baseline +++ b/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile1.js diff --git a/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles2.baseline b/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles2.baseline index 0d5ab3f6747..d151c68daed 100644 --- a/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles2.baseline +++ b/tests/baselines/reference/getEmitOutputWithSemanticErrorsForMultipleFiles2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : out.js diff --git a/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles.baseline b/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles.baseline index 1ec89e66d5a..061ded577c2 100644 --- a/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles.baseline +++ b/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile1.js diff --git a/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles2.baseline b/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles2.baseline index f429d4e1295..9ba713b1fdf 100644 --- a/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles2.baseline +++ b/tests/baselines/reference/getEmitOutputWithSyntacticErrorsForMultipleFiles2.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : out.js diff --git a/tests/baselines/reference/getEmitOutputWithSyntaxErrors.baseline b/tests/baselines/reference/getEmitOutputWithSyntaxErrors.baseline index f84b9e810c9..eec8ef779d8 100644 --- a/tests/baselines/reference/getEmitOutputWithSyntaxErrors.baseline +++ b/tests/baselines/reference/getEmitOutputWithSyntaxErrors.baseline @@ -1,3 +1,4 @@ +// === EmitOutput === EmitSkipped: false FileName : /tests/cases/fourslash/inputFile.js diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics01.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics01.baseline index 934bc31c831..96bf375c5bb 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics01.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics01.baseline @@ -1,3 +1,4 @@ +// === Syntax and Semantic Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics01.ts': /tests/cases/fourslash/server/a.js(1,5): error TS1134: Variable declaration expected. /tests/cases/fourslash/server/a.js(1,8): error TS1109: Expression expected. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics02.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics02.baseline index 6cf2f8c401f..11c339ae633 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics02.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics02.baseline @@ -1,3 +1,4 @@ +// === Syntax and Semantic Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics02.ts': /tests/cases/fourslash/server/b.js(2,8): error TS8010: Type annotations can only be used in TypeScript files. /tests/cases/fourslash/server/b.js(3,17): error TS8010: Type annotations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics1.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics1.baseline index 780c5a15082..9081913b130 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics1.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics1.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics1.ts': /tests/cases/fourslash/a.js(1,1): error TS8002: 'import ... =' can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics10.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics10.baseline index ca184aa5aad..15656d8827c 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics10.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics10.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics10.ts': /tests/cases/fourslash/a.js(1,12): error TS8004: Type parameter declarations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics11.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics11.baseline index c23fbe8672f..b36ee67f51b 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics11.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics11.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics11.ts': /tests/cases/fourslash/a.js(1,15): error TS8010: Type annotations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics12.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics12.baseline index 73ca590b32a..edb02e002fa 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics12.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics12.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics12.ts': /tests/cases/fourslash/a.js(1,1): error TS8009: The 'declare' modifier can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics13.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics13.baseline index a2dcecb6a40..2b783648360 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics13.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics13.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics13.ts': /tests/cases/fourslash/a.js(1,8): error TS8010: Type annotations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics14.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics14.baseline index ef2ddacd1b4..448946bd354 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics14.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics14.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics14.ts': /tests/cases/fourslash/a.js(1,13): error TS1109: Expression expected. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics15.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics15.baseline index f30956f93c4..c1d353f34d7 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics15.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics15.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics15.ts': /tests/cases/fourslash/a.js(1,12): error TS8012: Parameter modifiers can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics16.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics16.baseline index c72e41a2d04..1f981f155fa 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics16.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics16.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics16.ts': /tests/cases/fourslash/a.js(1,13): error TS8009: The '?' modifier can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics17.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics17.baseline index 199c3cbfd80..ab38aab2ae4 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics17.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics17.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics17.ts': /tests/cases/fourslash/a.js(1,15): error TS8010: Type annotations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics18.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics18.baseline index c493a7f97c8..8a87a35f510 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics18.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics18.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics18.ts': /tests/cases/fourslash/a.js(4,5): error TS8009: The 'public' modifier can only be used in TypeScript files. /tests/cases/fourslash/b.js(2,8): error TS8010: Type annotations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics19.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics19.baseline index 28d89307f19..a9140894126 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics19.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics19.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics19.ts': /tests/cases/fourslash/a.js(1,6): error TS8006: 'enum' declarations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics2.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics2.baseline index f786f88c988..30a83b4abcd 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics2.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics2.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics2.ts': /tests/cases/fourslash/a.js(1,1): error TS8003: 'export =' can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics3.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics3.baseline index de3624928b0..df86e69efad 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics3.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics3.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics3.ts': /tests/cases/fourslash/a.js(1,9): error TS8004: Type parameter declarations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics4.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics4.baseline index 59e80b81dd2..fd665a0c293 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics4.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics4.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics4.ts': /tests/cases/fourslash/a.js(1,1): error TS8009: The 'public' modifier can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics5.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics5.baseline index 06f705ebe79..592f178ae04 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics5.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics5.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics5.ts': /tests/cases/fourslash/a.js(1,9): error TS8005: 'implements' clauses can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics6.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics6.baseline index 61985450110..b9efdb08364 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics6.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics6.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics6.ts': /tests/cases/fourslash/a.js(1,11): error TS8006: 'interface' declarations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics7.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics7.baseline index 86420e6a056..2118fe9ddbb 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics7.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics7.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics7.ts': /tests/cases/fourslash/a.js(1,8): error TS8006: 'module' declarations can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics8.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics8.baseline index 27ea265b073..7976cf8dc66 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics8.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics8.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics8.ts': /tests/cases/fourslash/a.js(1,6): error TS8008: Type aliases can only be used in TypeScript files. diff --git a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics9.baseline b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics9.baseline index 64193706ccc..d821cd787a0 100644 --- a/tests/baselines/reference/getJavaScriptSyntacticDiagnostics9.baseline +++ b/tests/baselines/reference/getJavaScriptSyntacticDiagnostics9.baseline @@ -1,3 +1,4 @@ +// === Syntax Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics9.ts': /tests/cases/fourslash/a.js(1,1): error TS8009: The 'public' modifier can only be used in TypeScript files. diff --git a/tests/baselines/reference/getOccurrencesAfterEdit.baseline.jsonc b/tests/baselines/reference/getOccurrencesAfterEdit.baseline.jsonc index 54a5cc22412..8cefe285822 100644 --- a/tests/baselines/reference/getOccurrencesAfterEdit.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesAfterEdit.baseline.jsonc @@ -10,11 +10,6 @@ -// === customWork === -// Added new line - - - // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesAfterEdit.ts === // diff --git a/tests/baselines/reference/goToSource16_callbackParamDifferentFile.baseline.jsonc b/tests/baselines/reference/goToSource16_callbackParamDifferentFile.baseline.jsonc new file mode 100644 index 00000000000..c619fc880e8 --- /dev/null +++ b/tests/baselines/reference/goToSource16_callbackParamDifferentFile.baseline.jsonc @@ -0,0 +1,20 @@ +// === goToSourceDefinition === +// === /node_modules/yargs/callback.js === +// export class Yargs { [|positional|]() { } } + +// === /index.ts === +// import { command } from "yargs"; +// command("foo", yargs => { +// yargs./*GOTO SOURCE DEF*/positional(); +// }); + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "", + "name": "", + "unverified": true + } + ] \ No newline at end of file diff --git a/tests/baselines/reference/goToSource17_AddsFileToProject.baseline.jsonc b/tests/baselines/reference/goToSource17_AddsFileToProject.baseline.jsonc new file mode 100644 index 00000000000..c619fc880e8 --- /dev/null +++ b/tests/baselines/reference/goToSource17_AddsFileToProject.baseline.jsonc @@ -0,0 +1,20 @@ +// === goToSourceDefinition === +// === /node_modules/yargs/callback.js === +// export class Yargs { [|positional|]() { } } + +// === /index.ts === +// import { command } from "yargs"; +// command("foo", yargs => { +// yargs./*GOTO SOURCE DEF*/positional(); +// }); + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "", + "name": "", + "unverified": true + } + ] \ No newline at end of file diff --git a/tests/baselines/reference/goToSource18_reusedFromDifferentFolder.baseline.jsonc b/tests/baselines/reference/goToSource18_reusedFromDifferentFolder.baseline.jsonc new file mode 100644 index 00000000000..b3386930c33 --- /dev/null +++ b/tests/baselines/reference/goToSource18_reusedFromDifferentFolder.baseline.jsonc @@ -0,0 +1,21 @@ +// === goToSourceDefinition === +// === /node_modules/yargs/callback.js === +// export class Yargs { [|positional|]() { } } + +// === /some/index.ts === +// import { random } from "../folder/random"; +// import { command } from "yargs"; +// command("foo", yargs => { +// yargs./*GOTO SOURCE DEF*/positional(); +// }); + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "", + "name": "", + "unverified": true + } + ] \ No newline at end of file diff --git a/tests/baselines/reference/importStatementCompletions3.baseline b/tests/baselines/reference/importStatementCompletions3.baseline index 34cb78c2585..7ec48dfcf97 100644 --- a/tests/baselines/reference/importStatementCompletions3.baseline +++ b/tests/baselines/reference/importStatementCompletions3.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/./bar.ts === // import f // ^ diff --git a/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.js b/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.js new file mode 100644 index 00000000000..899ea0c480a --- /dev/null +++ b/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.js @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/indexTypeNoSubstitutionTemplateLiteral.ts] //// + +//// [indexTypeNoSubstitutionTemplateLiteral.ts] +function Foo() {} +Foo[`b`] = function () {}; + +type Test = keyof typeof Foo; + + + +//// [indexTypeNoSubstitutionTemplateLiteral.js] +"use strict"; +function Foo() { } +Foo["b"] = function () { }; diff --git a/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.symbols b/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.symbols new file mode 100644 index 00000000000..ac79be00f62 --- /dev/null +++ b/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/indexTypeNoSubstitutionTemplateLiteral.ts] //// + +=== indexTypeNoSubstitutionTemplateLiteral.ts === +function Foo() {} +>Foo : Symbol(Foo, Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 0, 0), Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 0, 17)) + +Foo[`b`] = function () {}; +>Foo : Symbol(Foo, Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 0, 0), Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 0, 17)) +>`b` : Symbol(Foo[`b`], Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 0, 17)) + +type Test = keyof typeof Foo; +>Test : Symbol(Test, Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 1, 26)) +>Foo : Symbol(Foo, Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 0, 0), Decl(indexTypeNoSubstitutionTemplateLiteral.ts, 0, 17)) + + diff --git a/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.types b/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.types new file mode 100644 index 00000000000..72b90d63893 --- /dev/null +++ b/tests/baselines/reference/indexTypeNoSubstitutionTemplateLiteral.types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/indexTypeNoSubstitutionTemplateLiteral.ts] //// + +=== indexTypeNoSubstitutionTemplateLiteral.ts === +function Foo() {} +>Foo : typeof Foo + +Foo[`b`] = function () {}; +>Foo[`b`] = function () {} : () => void +>Foo[`b`] : () => void +>Foo : typeof Foo +>`b` : "b" +>function () {} : () => void + +type Test = keyof typeof Foo; +>Test : "b" +>Foo : typeof Foo + + diff --git a/tests/baselines/reference/inlayHintsCrash1.baseline b/tests/baselines/reference/inlayHintsCrash1.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsCrash1.baseline +++ b/tests/baselines/reference/inlayHintsCrash1.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsEnumMemberValue.baseline b/tests/baselines/reference/inlayHintsEnumMemberValue.baseline index 276bc9406f1..3d8faad243d 100644 --- a/tests/baselines/reference/inlayHintsEnumMemberValue.baseline +++ b/tests/baselines/reference/inlayHintsEnumMemberValue.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === A, ^ { diff --git a/tests/baselines/reference/inlayHintsFunctionParameterTypes1.baseline b/tests/baselines/reference/inlayHintsFunctionParameterTypes1.baseline index af66775ae95..826eda94b7d 100644 --- a/tests/baselines/reference/inlayHintsFunctionParameterTypes1.baseline +++ b/tests/baselines/reference/inlayHintsFunctionParameterTypes1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === const f1: F1 = (a, b) => { } ^ { diff --git a/tests/baselines/reference/inlayHintsFunctionParameterTypes2.baseline b/tests/baselines/reference/inlayHintsFunctionParameterTypes2.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsFunctionParameterTypes2.baseline +++ b/tests/baselines/reference/inlayHintsFunctionParameterTypes2.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsFunctionParameterTypes3.baseline b/tests/baselines/reference/inlayHintsFunctionParameterTypes3.baseline index 33923495c7b..e1398ee7447 100644 --- a/tests/baselines/reference/inlayHintsFunctionParameterTypes3.baseline +++ b/tests/baselines/reference/inlayHintsFunctionParameterTypes3.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === bar: function (x?): void { ^ { diff --git a/tests/baselines/reference/inlayHintsFunctionParameterTypes4.baseline b/tests/baselines/reference/inlayHintsFunctionParameterTypes4.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsFunctionParameterTypes4.baseline +++ b/tests/baselines/reference/inlayHintsFunctionParameterTypes4.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsImportType1.baseline b/tests/baselines/reference/inlayHintsImportType1.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsImportType1.baseline +++ b/tests/baselines/reference/inlayHintsImportType1.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsImportType2.baseline b/tests/baselines/reference/inlayHintsImportType2.baseline index 3d4f8098c30..31cbfee9728 100644 --- a/tests/baselines/reference/inlayHintsImportType2.baseline +++ b/tests/baselines/reference/inlayHintsImportType2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === function bar () { return require('./a').a; } ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveAnyParameter1.baseline b/tests/baselines/reference/inlayHintsInteractiveAnyParameter1.baseline index 82f85a385b9..83129828724 100644 --- a/tests/baselines/reference/inlayHintsInteractiveAnyParameter1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveAnyParameter1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo(1); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveAnyParameter2.baseline b/tests/baselines/reference/inlayHintsInteractiveAnyParameter2.baseline index 9709ddac5c2..da90a70f3f6 100644 --- a/tests/baselines/reference/inlayHintsInteractiveAnyParameter2.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveAnyParameter2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo(1); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes1.baseline b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes1.baseline index 6f97856e805..f3060b08a61 100644 --- a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === const f1: F1 = (a, b) => { } ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes2.baseline b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes2.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes2.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes2.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes3.baseline b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes3.baseline index f1f6e03387b..b743a60ef69 100644 --- a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes3.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes3.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === bar: function (x?): void { ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes4.baseline b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes4.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes4.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes4.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes5.baseline b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes5.baseline new file mode 100644 index 00000000000..64fcd1e25f1 --- /dev/null +++ b/tests/baselines/reference/inlayHintsInteractiveFunctionParameterTypes5.baseline @@ -0,0 +1,17 @@ +// === Inlay Hints === +export function fn(b = foo) {} + ^ +{ + "text": "", + "displayParts": [ + { + "text": ": " + }, + { + "text": "1n" + } + ], + "position": 40, + "kind": "Type", + "whitespaceBefore": true +} \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsInteractiveImportType1.baseline b/tests/baselines/reference/inlayHintsInteractiveImportType1.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsInteractiveImportType1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveImportType1.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsInteractiveImportType2.baseline b/tests/baselines/reference/inlayHintsInteractiveImportType2.baseline index 787ee663b83..97bc815a9b9 100644 --- a/tests/baselines/reference/inlayHintsInteractiveImportType2.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveImportType2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === function bar () { return require('./a').a; } ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveJsDocParameterNames.baseline b/tests/baselines/reference/inlayHintsInteractiveJsDocParameterNames.baseline index af633a5b975..77aae93700e 100644 --- a/tests/baselines/reference/inlayHintsInteractiveJsDocParameterNames.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveJsDocParameterNames.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === y.foo(1, 2) ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline b/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline index 809e9d6eda1..df760582ca2 100644 --- a/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === async function foo () { ^ { @@ -60,7 +61,7 @@ function bar () { return import('./a') } "text": "import(" }, { - "text": "\"/a\"" + "text": "'/a'" }, { "text": ")" diff --git a/tests/baselines/reference/inlayHintsInteractiveMultifileFunctionCalls.baseline b/tests/baselines/reference/inlayHintsInteractiveMultifileFunctionCalls.baseline index 47ac8e6d4ad..f5baa970cd3 100644 --- a/tests/baselines/reference/inlayHintsInteractiveMultifileFunctionCalls.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveMultifileFunctionCalls.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === helperB("hello, world!"); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveOverloadCall.baseline b/tests/baselines/reference/inlayHintsInteractiveOverloadCall.baseline index 10df249d878..b17e715e142 100644 --- a/tests/baselines/reference/inlayHintsInteractiveOverloadCall.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveOverloadCall.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === call(1); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveParameterNames.baseline b/tests/baselines/reference/inlayHintsInteractiveParameterNames.baseline index b6ab7a563a2..e67854cd0f0 100644 --- a/tests/baselines/reference/inlayHintsInteractiveParameterNames.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveParameterNames.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo1(1, 2); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan1.baseline b/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan1.baseline index 966225e43a3..3e575d07dc1 100644 --- a/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === function c2 () { foo2(1, 2); } ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan2.baseline b/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan2.baseline index acc0b6dbdba..829a2c2e9aa 100644 --- a/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan2.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveParameterNamesInSpan2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo2(1, 2); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveParameterNamesWithComments.baseline b/tests/baselines/reference/inlayHintsInteractiveParameterNamesWithComments.baseline index 9ca391a20c7..b9db834b7f8 100644 --- a/tests/baselines/reference/inlayHintsInteractiveParameterNamesWithComments.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveParameterNamesWithComments.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === fn(/* nobody knows exactly what this param is */ 42); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveRestParameters1.baseline b/tests/baselines/reference/inlayHintsInteractiveRestParameters1.baseline index 6241709b7f3..d02222ea5f3 100644 --- a/tests/baselines/reference/inlayHintsInteractiveRestParameters1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveRestParameters1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo1(1, 1, 1, 1); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveRestParameters2.baseline b/tests/baselines/reference/inlayHintsInteractiveRestParameters2.baseline index 8d5e91db2fd..b7d6518b759 100644 --- a/tests/baselines/reference/inlayHintsInteractiveRestParameters2.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveRestParameters2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo(...x, 3); ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveReturnType.baseline b/tests/baselines/reference/inlayHintsInteractiveReturnType.baseline index bf401880c3d..62d9fe4979f 100644 --- a/tests/baselines/reference/inlayHintsInteractiveReturnType.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveReturnType.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === function foo1 () { ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveVariableTypes1.baseline b/tests/baselines/reference/inlayHintsInteractiveVariableTypes1.baseline index 18fe7f7b62d..1544f14cc7a 100644 --- a/tests/baselines/reference/inlayHintsInteractiveVariableTypes1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveVariableTypes1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === const m = () => 123; ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveVariableTypes2.baseline b/tests/baselines/reference/inlayHintsInteractiveVariableTypes2.baseline index bc18a904cd2..a4923e8db2e 100644 --- a/tests/baselines/reference/inlayHintsInteractiveVariableTypes2.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveVariableTypes2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === const array = [1, 2] ^ { diff --git a/tests/baselines/reference/inlayHintsInteractiveWithClosures.baseline b/tests/baselines/reference/inlayHintsInteractiveWithClosures.baseline index 105dc629106..73b11708e1b 100644 --- a/tests/baselines/reference/inlayHintsInteractiveWithClosures.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveWithClosures.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo1(1)(2); ^ { diff --git a/tests/baselines/reference/inlayHintsJsDocParameterNames.baseline b/tests/baselines/reference/inlayHintsJsDocParameterNames.baseline index d53b81a3519..1330bfee62a 100644 --- a/tests/baselines/reference/inlayHintsJsDocParameterNames.baseline +++ b/tests/baselines/reference/inlayHintsJsDocParameterNames.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === y.foo(1, 2) ^ { diff --git a/tests/baselines/reference/inlayHintsMultifile1.baseline b/tests/baselines/reference/inlayHintsMultifile1.baseline index d6a0b7c62e3..65f9122bbb7 100644 --- a/tests/baselines/reference/inlayHintsMultifile1.baseline +++ b/tests/baselines/reference/inlayHintsMultifile1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === async function foo () { ^ { diff --git a/tests/baselines/reference/inlayHintsNoHintWhenArgumentMatchesName.baseline b/tests/baselines/reference/inlayHintsNoHintWhenArgumentMatchesName.baseline index 0370f29f5f9..3e3ab26f16b 100644 --- a/tests/baselines/reference/inlayHintsNoHintWhenArgumentMatchesName.baseline +++ b/tests/baselines/reference/inlayHintsNoHintWhenArgumentMatchesName.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo(a, 2); ^ { diff --git a/tests/baselines/reference/inlayHintsNoParameterHints.baseline b/tests/baselines/reference/inlayHintsNoParameterHints.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsNoParameterHints.baseline +++ b/tests/baselines/reference/inlayHintsNoParameterHints.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsNoVariableTypeHints.baseline b/tests/baselines/reference/inlayHintsNoVariableTypeHints.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsNoVariableTypeHints.baseline +++ b/tests/baselines/reference/inlayHintsNoVariableTypeHints.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsOverloadCall.baseline b/tests/baselines/reference/inlayHintsOverloadCall.baseline index 8c9f5baed42..b7f45a405fc 100644 --- a/tests/baselines/reference/inlayHintsOverloadCall.baseline +++ b/tests/baselines/reference/inlayHintsOverloadCall.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === call(1); ^ { diff --git a/tests/baselines/reference/inlayHintsParameterNames.baseline b/tests/baselines/reference/inlayHintsParameterNames.baseline index b2c2c8aee18..cce97fe2afb 100644 --- a/tests/baselines/reference/inlayHintsParameterNames.baseline +++ b/tests/baselines/reference/inlayHintsParameterNames.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo1(1, 2); ^ { diff --git a/tests/baselines/reference/inlayHintsParameterNamesInSpan1.baseline b/tests/baselines/reference/inlayHintsParameterNamesInSpan1.baseline index 888d50fcb5f..76f65a424f4 100644 --- a/tests/baselines/reference/inlayHintsParameterNamesInSpan1.baseline +++ b/tests/baselines/reference/inlayHintsParameterNamesInSpan1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === function c2 () { foo2(1, 2); } ^ { diff --git a/tests/baselines/reference/inlayHintsParameterNamesInSpan2.baseline b/tests/baselines/reference/inlayHintsParameterNamesInSpan2.baseline index f0484d4044d..93352d5c059 100644 --- a/tests/baselines/reference/inlayHintsParameterNamesInSpan2.baseline +++ b/tests/baselines/reference/inlayHintsParameterNamesInSpan2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo2(1, 2); ^ { diff --git a/tests/baselines/reference/inlayHintsPropertyDeclarations.baseline b/tests/baselines/reference/inlayHintsPropertyDeclarations.baseline index cdbf7df70b8..c3392e6f7c5 100644 --- a/tests/baselines/reference/inlayHintsPropertyDeclarations.baseline +++ b/tests/baselines/reference/inlayHintsPropertyDeclarations.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === a = 1 ^ { diff --git a/tests/baselines/reference/inlayHintsQuotePreference1.baseline b/tests/baselines/reference/inlayHintsQuotePreference1.baseline new file mode 100644 index 00000000000..8f70348c8da --- /dev/null +++ b/tests/baselines/reference/inlayHintsQuotePreference1.baseline @@ -0,0 +1,34 @@ +// === Inlay Hints === +export function fn(a = a1, b = b1) {} + ^ +{ + "text": "", + "displayParts": [ + { + "text": ": " + }, + { + "text": "\"\\\"\"" + } + ], + "position": 64, + "kind": "Type", + "whitespaceBefore": true +} + +export function fn(a = a1, b = b1) {} + ^ +{ + "text": "", + "displayParts": [ + { + "text": ": " + }, + { + "text": "\"\\\\\"" + } + ], + "position": 72, + "kind": "Type", + "whitespaceBefore": true +} \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsQuotePreference2.baseline b/tests/baselines/reference/inlayHintsQuotePreference2.baseline new file mode 100644 index 00000000000..29753105561 --- /dev/null +++ b/tests/baselines/reference/inlayHintsQuotePreference2.baseline @@ -0,0 +1,34 @@ +// === Inlay Hints === +export function fn(a = a1, b = b1) {} + ^ +{ + "text": "", + "displayParts": [ + { + "text": ": " + }, + { + "text": "'\\''" + } + ], + "position": 64, + "kind": "Type", + "whitespaceBefore": true +} + +export function fn(a = a1, b = b1) {} + ^ +{ + "text": "", + "displayParts": [ + { + "text": ": " + }, + { + "text": "'\\\\'" + } + ], + "position": 72, + "kind": "Type", + "whitespaceBefore": true +} \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsRestParameters1.baseline b/tests/baselines/reference/inlayHintsRestParameters1.baseline index ee07967f75d..400a73a4ed7 100644 --- a/tests/baselines/reference/inlayHintsRestParameters1.baseline +++ b/tests/baselines/reference/inlayHintsRestParameters1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo1(1, 1, 1, 1); ^ { diff --git a/tests/baselines/reference/inlayHintsRestParameters2.baseline b/tests/baselines/reference/inlayHintsRestParameters2.baseline index 79c2a63f63c..ca3298fc414 100644 --- a/tests/baselines/reference/inlayHintsRestParameters2.baseline +++ b/tests/baselines/reference/inlayHintsRestParameters2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo(...x, 3); ^ { diff --git a/tests/baselines/reference/inlayHintsReturnType.baseline b/tests/baselines/reference/inlayHintsReturnType.baseline index 1a17fa50721..1a683a63e8b 100644 --- a/tests/baselines/reference/inlayHintsReturnType.baseline +++ b/tests/baselines/reference/inlayHintsReturnType.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === function foo1 () { ^ { diff --git a/tests/baselines/reference/inlayHintsTypeMatchesName.baseline b/tests/baselines/reference/inlayHintsTypeMatchesName.baseline index 6136dbb8025..1d8aa81fc42 100644 --- a/tests/baselines/reference/inlayHintsTypeMatchesName.baseline +++ b/tests/baselines/reference/inlayHintsTypeMatchesName.baseline @@ -1 +1,2 @@ +// === Inlay Hints === === No inlay hints === \ No newline at end of file diff --git a/tests/baselines/reference/inlayHintsVariableTypes1.baseline b/tests/baselines/reference/inlayHintsVariableTypes1.baseline index 6cea19f330c..642373f89a9 100644 --- a/tests/baselines/reference/inlayHintsVariableTypes1.baseline +++ b/tests/baselines/reference/inlayHintsVariableTypes1.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === const m = () => 123; ^ { diff --git a/tests/baselines/reference/inlayHintsVariableTypes2.baseline b/tests/baselines/reference/inlayHintsVariableTypes2.baseline index ff04dbe0e59..863c60d6c58 100644 --- a/tests/baselines/reference/inlayHintsVariableTypes2.baseline +++ b/tests/baselines/reference/inlayHintsVariableTypes2.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === const array = [1, 2] ^ { diff --git a/tests/baselines/reference/inlayHintsWithClosures.baseline b/tests/baselines/reference/inlayHintsWithClosures.baseline index 4b2eade0844..c7bb22e70e6 100644 --- a/tests/baselines/reference/inlayHintsWithClosures.baseline +++ b/tests/baselines/reference/inlayHintsWithClosures.baseline @@ -1,3 +1,4 @@ +// === Inlay Hints === foo1(1)(2); ^ { diff --git a/tests/baselines/reference/interfacedeclWithIndexerErrors.errors.txt b/tests/baselines/reference/interfacedeclWithIndexerErrors.errors.txt index 3bf6e26191e..124418ea5b2 100644 --- a/tests/baselines/reference/interfacedeclWithIndexerErrors.errors.txt +++ b/tests/baselines/reference/interfacedeclWithIndexerErrors.errors.txt @@ -3,7 +3,7 @@ interfacedeclWithIndexerErrors.ts(14,5): error TS2411: Property 'p4' of type 'nu interfacedeclWithIndexerErrors.ts(15,5): error TS2411: Property 'p5' of type '(s: number) => string' is not assignable to 'string' index type '() => string'. interfacedeclWithIndexerErrors.ts(19,5): error TS2411: Property 'f3' of type '(a: string) => number' is not assignable to 'string' index type '() => string'. interfacedeclWithIndexerErrors.ts(20,5): error TS2411: Property 'f4' of type '(s: number) => string' is not assignable to 'string' index type '() => string'. -interfacedeclWithIndexerErrors.ts(44,21): error TS2840: An interface cannot extend a primitive type like 'number'; an interface can only extend named types and classes +interfacedeclWithIndexerErrors.ts(44,21): error TS2840: An interface cannot extend a primitive type like 'number'. It can only extend other named object types. interfacedeclWithIndexerErrors.ts(48,18): error TS2693: 'string' only refers to a type, but is being used as a value here. @@ -63,7 +63,7 @@ interfacedeclWithIndexerErrors.ts(48,18): error TS2693: 'string' only refers to interface e extends number { ~~~~~~ -!!! error TS2840: An interface cannot extend a primitive type like 'number'; an interface can only extend named types and classes +!!! error TS2840: An interface cannot extend a primitive type like 'number'. It can only extend other named object types. } interface f { diff --git a/tests/baselines/reference/jsDocAliasQuickInfo.baseline b/tests/baselines/reference/jsDocAliasQuickInfo.baseline index 6cefb8e5eee..61f5a015fbe 100644 --- a/tests/baselines/reference/jsDocAliasQuickInfo.baseline +++ b/tests/baselines/reference/jsDocAliasQuickInfo.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /jsDocAliasQuickInfo.ts === // /** // * Comment diff --git a/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline b/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline index 5f2b3405c4b..9f91774fb21 100644 --- a/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline +++ b/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/jsDocDontBreakWithNamespaces.js === // /** // * @returns {module:@nodefuel/web~Webserver~wsServer#hello} Websocket server object diff --git a/tests/baselines/reference/jsDocFunctionSignatures5.baseline b/tests/baselines/reference/jsDocFunctionSignatures5.baseline index 003c9614018..0adafac9959 100644 --- a/tests/baselines/reference/jsDocFunctionSignatures5.baseline +++ b/tests/baselines/reference/jsDocFunctionSignatures5.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/Foo.js === // /** // * Filters a path based on a regexp or glob pattern. diff --git a/tests/baselines/reference/jsDocFunctionSignatures6.baseline b/tests/baselines/reference/jsDocFunctionSignatures6.baseline index 643979b9f02..ca8e7fbd539 100644 --- a/tests/baselines/reference/jsDocFunctionSignatures6.baseline +++ b/tests/baselines/reference/jsDocFunctionSignatures6.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/Foo.js === // /** // * @param {string} p1 - A string param diff --git a/tests/baselines/reference/jsDocSignature-43394.baseline b/tests/baselines/reference/jsDocSignature-43394.baseline index 1dccabe0b2c..8a48d948928 100644 --- a/tests/baselines/reference/jsDocSignature-43394.baseline +++ b/tests/baselines/reference/jsDocSignature-43394.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/jsDocSignature-43394.ts === // /** // * @typedef {Object} Foo diff --git a/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline b/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline index 816b0a69d14..eaa535157e1 100644 --- a/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline +++ b/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/jsDocTypeTag1.js === // /** @type {String} */ // var S; diff --git a/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline b/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline index 2c1244f0f50..eef0206fc22 100644 --- a/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline +++ b/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/jsDocTypeTag2.js === // /** @type {string} */ // var s; diff --git a/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline b/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline index b2a5af5fbcf..beac39f4ca7 100644 --- a/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline +++ b/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/jsDocTypedef1.js === // /** // * @typedef {Object} Opts diff --git a/tests/baselines/reference/jsFileJsdocTypedefTagTypeExpressionCompletion4.baseline b/tests/baselines/reference/jsFileJsdocTypedefTagTypeExpressionCompletion4.baseline index 31b55c76e24..46d12c0df98 100644 --- a/tests/baselines/reference/jsFileJsdocTypedefTagTypeExpressionCompletion4.baseline +++ b/tests/baselines/reference/jsFileJsdocTypedefTagTypeExpressionCompletion4.baseline @@ -1,3 +1,4 @@ +// === Completions === === /a.js === // const foo = { // bar: { diff --git a/tests/baselines/reference/jsdocLink1.baseline b/tests/baselines/reference/jsdocLink1.baseline index d97a97d7a19..bdb568f2030 100644 --- a/tests/baselines/reference/jsdocLink1.baseline +++ b/tests/baselines/reference/jsdocLink1.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/jsdocLink1.ts === // class C { // } diff --git a/tests/baselines/reference/jsdocLink2.baseline b/tests/baselines/reference/jsdocLink2.baseline index 80887fc8182..43b06e17f89 100644 --- a/tests/baselines/reference/jsdocLink2.baseline +++ b/tests/baselines/reference/jsdocLink2.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/script.ts === // /** // * {@link C} diff --git a/tests/baselines/reference/jsdocLink3.baseline b/tests/baselines/reference/jsdocLink3.baseline index f8304c54287..c3f94329761 100644 --- a/tests/baselines/reference/jsdocLink3.baseline +++ b/tests/baselines/reference/jsdocLink3.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /module1.ts === // import { C } from './jsdocLink3' // /** diff --git a/tests/baselines/reference/jsdocLink4.baseline b/tests/baselines/reference/jsdocLink4.baseline index 966cbb71f37..632fb6d7cdc 100644 --- a/tests/baselines/reference/jsdocLink4.baseline +++ b/tests/baselines/reference/jsdocLink4.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/jsdocLink4.ts === // declare class I { // /** {@link I} */ diff --git a/tests/baselines/reference/jsdocLink5.baseline b/tests/baselines/reference/jsdocLink5.baseline index 6140e7db4f7..b89b8fe3b95 100644 --- a/tests/baselines/reference/jsdocLink5.baseline +++ b/tests/baselines/reference/jsdocLink5.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/jsdocLink5.ts === // function g() { } // /** diff --git a/tests/baselines/reference/jsdocOnInheritedMembers1.baseline b/tests/baselines/reference/jsdocOnInheritedMembers1.baseline index 920aab2d2a4..ad5f09b18a1 100644 --- a/tests/baselines/reference/jsdocOnInheritedMembers1.baseline +++ b/tests/baselines/reference/jsdocOnInheritedMembers1.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.js === // /** @template T */ // class A { diff --git a/tests/baselines/reference/jsdocOnInheritedMembers2.baseline b/tests/baselines/reference/jsdocOnInheritedMembers2.baseline index a46cad1a89b..b80ffc8fc2f 100644 --- a/tests/baselines/reference/jsdocOnInheritedMembers2.baseline +++ b/tests/baselines/reference/jsdocOnInheritedMembers2.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.js === // /** @template T */ // class A { diff --git a/tests/baselines/reference/jsdocParameterTagSnippetCompletion1.baseline b/tests/baselines/reference/jsdocParameterTagSnippetCompletion1.baseline index d391120bfe8..970b5ae2584 100644 --- a/tests/baselines/reference/jsdocParameterTagSnippetCompletion1.baseline +++ b/tests/baselines/reference/jsdocParameterTagSnippetCompletion1.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/b.js === // /** // * @p diff --git a/tests/baselines/reference/jsdocParameterTagSnippetCompletion2.baseline b/tests/baselines/reference/jsdocParameterTagSnippetCompletion2.baseline index bae9309cb2b..0e8cc9b8cee 100644 --- a/tests/baselines/reference/jsdocParameterTagSnippetCompletion2.baseline +++ b/tests/baselines/reference/jsdocParameterTagSnippetCompletion2.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/b.js === // /** // * diff --git a/tests/baselines/reference/jsdocParameterTagSnippetCompletion3.baseline b/tests/baselines/reference/jsdocParameterTagSnippetCompletion3.baseline index 676ec666e05..31809167ab0 100644 --- a/tests/baselines/reference/jsdocParameterTagSnippetCompletion3.baseline +++ b/tests/baselines/reference/jsdocParameterTagSnippetCompletion3.baseline @@ -1,3 +1,4 @@ +// === Completions === === /tests/cases/fourslash/a.js === // /** // * @p diff --git a/tests/baselines/reference/jsdocReturnsTag.baseline b/tests/baselines/reference/jsdocReturnsTag.baseline index 4bfc851f6c5..03ab3e04bfb 100644 --- a/tests/baselines/reference/jsdocReturnsTag.baseline +++ b/tests/baselines/reference/jsdocReturnsTag.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/dummy.js === // /** // * Find an item diff --git a/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.js b/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.js new file mode 100644 index 00000000000..163d4d1aa99 --- /dev/null +++ b/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.js @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx] //// + +//// [jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx] +namespace JSX { + export interface ElementChildrenAttribute { + children: {}; + } +} + +interface Props { + className?: string | undefined; +} + +function NoticeList(props: Props) { + return null; +} + + +; + + + +; + +//// [jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.jsx] +"use strict"; +function NoticeList(props) { + return null; +} + +; + + +; diff --git a/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.symbols b/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.symbols new file mode 100644 index 00000000000..d5db851faa2 --- /dev/null +++ b/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.symbols @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx] //// + +=== jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx === +namespace JSX { +>JSX : Symbol(JSX, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 0, 0)) + + export interface ElementChildrenAttribute { +>ElementChildrenAttribute : Symbol(ElementChildrenAttribute, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 0, 15)) + + children: {}; +>children : Symbol(ElementChildrenAttribute.children, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 1, 45)) + } +} + +interface Props { +>Props : Symbol(Props, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 4, 1)) + + className?: string | undefined; +>className : Symbol(Props.className, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 6, 17)) +} + +function NoticeList(props: Props) { +>NoticeList : Symbol(NoticeList, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 8, 1)) +>props : Symbol(props, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 10, 20)) +>Props : Symbol(Props, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 4, 1)) + + return null; +} + + +>NoticeList : Symbol(NoticeList, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 8, 1)) +>className : Symbol(className, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 14, 11)) + +; +>NoticeList : Symbol(NoticeList, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 8, 1)) + + +>NoticeList : Symbol(NoticeList, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 8, 1)) +>className : Symbol(className, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 17, 11)) + +; +>NoticeList : Symbol(NoticeList, Decl(jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx, 8, 1)) + diff --git a/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.types b/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.types new file mode 100644 index 00000000000..b39f5f10b4f --- /dev/null +++ b/tests/baselines/reference/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.types @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx] //// + +=== jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx === +namespace JSX { + export interface ElementChildrenAttribute { + children: {}; +>children : {} + } +} + +interface Props { + className?: string | undefined; +>className : string | undefined +} + +function NoticeList(props: Props) { +>NoticeList : (props: Props) => null +>props : Props + + return null; +} + + +> : error +>NoticeList : (props: Props) => null +>className : string + +; +>NoticeList : (props: Props) => null + + +> : error +>NoticeList : (props: Props) => null +>className : string + +; +>NoticeList : (props: Props) => null + diff --git a/tests/baselines/reference/jsxEmptyExpressionNotCountedAsChild2.errors.txt b/tests/baselines/reference/jsxEmptyExpressionNotCountedAsChild2.errors.txt index 791fd8062fb..2060eafe1c3 100644 --- a/tests/baselines/reference/jsxEmptyExpressionNotCountedAsChild2.errors.txt +++ b/tests/baselines/reference/jsxEmptyExpressionNotCountedAsChild2.errors.txt @@ -1,8 +1,5 @@ -jsxEmptyExpressionNotCountedAsChild2.tsx(28,2): error TS2322: Type '{ __children__: never[]; }' is not assignable to type '{ bar?: number | undefined; } & { __children__: () => number; }'. - Type '{ __children__: never[]; }' is not assignable to type '{ __children__: () => number; }'. - Types of property '__children__' are incompatible. - Type 'never[]' is not assignable to type '() => number'. - Type 'never[]' provides no match for the signature '(): number'. +jsxEmptyExpressionNotCountedAsChild2.tsx(28,2): error TS2322: Type '{}' is not assignable to type '{ bar?: number | undefined; } & { __children__: () => number; }'. + Property '__children__' is missing in type '{}' but required in type '{ __children__: () => number; }'. ==== jsxEmptyExpressionNotCountedAsChild2.tsx (1 errors) ==== @@ -35,9 +32,7 @@ jsxEmptyExpressionNotCountedAsChild2.tsx(28,2): error TS2322: Type '{ __children {}; // error ~~~~~~~~~~~~~ -!!! error TS2322: Type '{ __children__: never[]; }' is not assignable to type '{ bar?: number | undefined; } & { __children__: () => number; }'. -!!! error TS2322: Type '{ __children__: never[]; }' is not assignable to type '{ __children__: () => number; }'. -!!! error TS2322: Types of property '__children__' are incompatible. -!!! error TS2322: Type 'never[]' is not assignable to type '() => number'. -!!! error TS2322: Type 'never[]' provides no match for the signature '(): number'. +!!! error TS2322: Type '{}' is not assignable to type '{ bar?: number | undefined; } & { __children__: () => number; }'. +!!! error TS2322: Property '__children__' is missing in type '{}' but required in type '{ __children__: () => number; }'. +!!! related TS2728 jsxEmptyExpressionNotCountedAsChild2.tsx:22:46: '__children__' is declared here. \ No newline at end of file diff --git a/tests/baselines/reference/jsxSpreadTag.errors.txt b/tests/baselines/reference/jsxSpreadTag(target=es2015).errors.txt similarity index 100% rename from tests/baselines/reference/jsxSpreadTag.errors.txt rename to tests/baselines/reference/jsxSpreadTag(target=es2015).errors.txt diff --git a/tests/baselines/reference/jsxSpreadTag.js b/tests/baselines/reference/jsxSpreadTag(target=es2015).js similarity index 100% rename from tests/baselines/reference/jsxSpreadTag.js rename to tests/baselines/reference/jsxSpreadTag(target=es2015).js diff --git a/tests/baselines/reference/jsxSpreadTag.symbols b/tests/baselines/reference/jsxSpreadTag(target=es2015).symbols similarity index 100% rename from tests/baselines/reference/jsxSpreadTag.symbols rename to tests/baselines/reference/jsxSpreadTag(target=es2015).symbols diff --git a/tests/baselines/reference/jsxSpreadTag.types b/tests/baselines/reference/jsxSpreadTag(target=es2015).types similarity index 100% rename from tests/baselines/reference/jsxSpreadTag.types rename to tests/baselines/reference/jsxSpreadTag(target=es2015).types diff --git a/tests/baselines/reference/jsxSpreadTag(target=esnext).errors.txt b/tests/baselines/reference/jsxSpreadTag(target=esnext).errors.txt new file mode 100644 index 00000000000..56375b473f6 --- /dev/null +++ b/tests/baselines/reference/jsxSpreadTag(target=esnext).errors.txt @@ -0,0 +1,36 @@ +/a.tsx(5,13): error TS2304: Cannot find name 'Comp'. +/a.tsx(9,13): error TS2304: Cannot find name 'Comp'. +/a.tsx(13,13): error TS2304: Cannot find name 'Comp'. +/a.tsx(17,13): error TS2304: Cannot find name 'Comp'. + + +==== /a.tsx (4 errors) ==== + declare const React: any; + + const t1 =
} />; + const t2 =
} />; + const t3 = x
} + {...{ wrong:
x
}} + />; + const t4 = x
} + {...{ wrong() { return
x
; }}} + />; + const t5 = x} + {...{ get wrong() { return
x
; }}} + />; + const t6 = x} + {...{ set wrong(s) { let a =
x
; }}} + />; + \ No newline at end of file diff --git a/tests/baselines/reference/jsxSpreadTag(target=esnext).js b/tests/baselines/reference/jsxSpreadTag(target=esnext).js new file mode 100644 index 00000000000..e08bd329744 --- /dev/null +++ b/tests/baselines/reference/jsxSpreadTag(target=esnext).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/jsxSpreadTag.ts] //// + +//// [a.tsx] +declare const React: any; + +const t1 =
} />; +const t2 =
} />; +const t3 = x
} + {...{ wrong:
x
}} +/>; +const t4 = x
} + {...{ wrong() { return
x
; }}} +/>; +const t5 = x} + {...{ get wrong() { return
x
; }}} +/>; +const t6 = x} + {...{ set wrong(s) { let a =
x
; }}} +/>; + + +//// [a.js] +const t1 = React.createElement("div", { ...React.createElement("span", null) }); +const t2 = React.createElement("div", { ...React.createElement("span", { className: "foo" }) }); +const t3 = React.createElement(Comp, { right: React.createElement("div", null, "x"), wrong: React.createElement("div", null, "x") }); +const t4 = React.createElement(Comp, { right: React.createElement("div", null, "x"), wrong() { return React.createElement("div", null, "x"); } }); +const t5 = React.createElement(Comp, { right: React.createElement("div", null, "x"), get wrong() { return React.createElement("div", null, "x"); } }); +const t6 = React.createElement(Comp, { right: React.createElement("div", null, "x"), set wrong(s) { let a = React.createElement("div", null, "x"); } }); diff --git a/tests/baselines/reference/jsxSpreadTag(target=esnext).symbols b/tests/baselines/reference/jsxSpreadTag(target=esnext).symbols new file mode 100644 index 00000000000..924dceb10df --- /dev/null +++ b/tests/baselines/reference/jsxSpreadTag(target=esnext).symbols @@ -0,0 +1,56 @@ +//// [tests/cases/compiler/jsxSpreadTag.ts] //// + +=== /a.tsx === +declare const React: any; +>React : Symbol(React, Decl(a.tsx, 0, 13)) + +const t1 =
} />; +>t1 : Symbol(t1, Decl(a.tsx, 2, 5)) + +const t2 =
} />; +>t2 : Symbol(t2, Decl(a.tsx, 3, 5)) +>className : Symbol(className, Decl(a.tsx, 3, 25)) + +const t3 = t3 : Symbol(t3, Decl(a.tsx, 4, 5)) + + right={
x
} +>right : Symbol(right, Decl(a.tsx, 4, 16)) + + {...{ wrong:
x
}} +>wrong : Symbol(wrong, Decl(a.tsx, 6, 9)) + +/>; +const t4 = t4 : Symbol(t4, Decl(a.tsx, 8, 5)) + + right={
x
} +>right : Symbol(right, Decl(a.tsx, 8, 16)) + + {...{ wrong() { return
x
; }}} +>wrong : Symbol(wrong, Decl(a.tsx, 10, 9)) + +/>; +const t5 = t5 : Symbol(t5, Decl(a.tsx, 12, 5)) + + right={
x
} +>right : Symbol(right, Decl(a.tsx, 12, 16)) + + {...{ get wrong() { return
x
; }}} +>wrong : Symbol(wrong, Decl(a.tsx, 14, 9)) + +/>; +const t6 = t6 : Symbol(t6, Decl(a.tsx, 16, 5)) + + right={
x
} +>right : Symbol(right, Decl(a.tsx, 16, 16)) + + {...{ set wrong(s) { let a =
x
; }}} +>wrong : Symbol(wrong, Decl(a.tsx, 18, 9)) +>s : Symbol(s, Decl(a.tsx, 18, 20)) +>a : Symbol(a, Decl(a.tsx, 18, 28)) + +/>; + diff --git a/tests/baselines/reference/jsxSpreadTag(target=esnext).types b/tests/baselines/reference/jsxSpreadTag(target=esnext).types new file mode 100644 index 00000000000..2ba64ac4526 --- /dev/null +++ b/tests/baselines/reference/jsxSpreadTag(target=esnext).types @@ -0,0 +1,100 @@ +//// [tests/cases/compiler/jsxSpreadTag.ts] //// + +=== /a.tsx === +declare const React: any; +>React : any + +const t1 =
} />; +>t1 : any +>
} /> : any +>div : any +> : any +>span : any + +const t2 =
} />; +>t2 : any +>
} /> : any +>div : any +> : any +>span : any +>className : string + +const t3 = t3 : any +>x
} {...{ wrong:
x
}}/> : any +>Comp : any + + right={
x
} +>right : any +>
x
: any +>div : any +>div : any + + {...{ wrong:
x
}} +>{ wrong:
x
} : { wrong: any; } +>wrong : any +>
x
: any +>div : any +>div : any + +/>; +const t4 = t4 : any +>x
} {...{ wrong() { return
x
; }}}/> : any +>Comp : any + + right={
x
} +>right : any +>
x
: any +>div : any +>div : any + + {...{ wrong() { return
x
; }}} +>{ wrong() { return
x
; }} : { wrong(): any; } +>wrong : () => any +>
x
: any +>div : any +>div : any + +/>; +const t5 = t5 : any +>x
} {...{ get wrong() { return
x
; }}}/> : any +>Comp : any + + right={
x
} +>right : any +>
x
: any +>div : any +>div : any + + {...{ get wrong() { return
x
; }}} +>{ get wrong() { return
x
; }} : { readonly wrong: any; } +>wrong : any +>
x
: any +>div : any +>div : any + +/>; +const t6 = t6 : any +>x
} {...{ set wrong(s) { let a =
x
; }}}/> : any +>Comp : any + + right={
x
} +>right : any +>
x
: any +>div : any +>div : any + + {...{ set wrong(s) { let a =
x
; }}} +>{ set wrong(s) { let a =
x
; }} : { wrong: any; } +>wrong : any +>s : any +>a : any +>
x
: any +>div : any +>div : any + +/>; + diff --git a/tests/baselines/reference/keyofAndIndexedAccess2.errors.txt b/tests/baselines/reference/keyofAndIndexedAccess2.errors.txt index c4e09ca02b0..472421be8dc 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess2.errors.txt +++ b/tests/baselines/reference/keyofAndIndexedAccess2.errors.txt @@ -24,7 +24,7 @@ keyofAndIndexedAccess2.ts(52,3): error TS2322: Type 'number' is not assignable t keyofAndIndexedAccess2.ts(53,3): error TS2322: Type 'number' is not assignable to type 'T[K]'. 'T[K]' could be instantiated with an arbitrary type which could be unrelated to 'number'. keyofAndIndexedAccess2.ts(65,7): error TS2339: Property 'foo' does not exist on type 'T'. -keyofAndIndexedAccess2.ts(66,3): error TS2536: Type 'string' cannot be used to index type 'T'. +keyofAndIndexedAccess2.ts(66,3): error TS2862: Type 'T' is generic and can only be indexed for reading. keyofAndIndexedAccess2.ts(67,3): error TS2322: Type 'number' is not assignable to type 'T[keyof T]'. 'number' is assignable to the constraint of type 'T[keyof T]', but 'T[keyof T]' could be instantiated with a different subtype of constraint 'number'. keyofAndIndexedAccess2.ts(68,3): error TS2322: Type 'number' is not assignable to type 'T[K]'. @@ -146,7 +146,7 @@ keyofAndIndexedAccess2.ts(108,5): error TS2322: Type '123' is not assignable to !!! error TS2339: Property 'foo' does not exist on type 'T'. obj[k1] = 123; // Error ~~~~~~~ -!!! error TS2536: Type 'string' cannot be used to index type 'T'. +!!! error TS2862: Type 'T' is generic and can only be indexed for reading. obj[k2] = 123; // Error ~~~~~~~ !!! error TS2322: Type 'number' is not assignable to type 'T[keyof T]'. diff --git a/tests/baselines/reference/linkedEditingJsxTag10.linkedEditing.txt b/tests/baselines/reference/linkedEditingJsxTag10.linkedEditing.txt index d8322f53ea4..6ecbcb2cbc3 100644 --- a/tests/baselines/reference/linkedEditingJsxTag10.linkedEditing.txt +++ b/tests/baselines/reference/linkedEditingJsxTag10.linkedEditing.txt @@ -1,3 +1,4 @@ +// === Linked Editing === === /jsx0.tsx === const jsx = <> diff --git a/tests/baselines/reference/linkedEditingJsxTag11.linkedEditing.txt b/tests/baselines/reference/linkedEditingJsxTag11.linkedEditing.txt index c6000d3eb54..f4b7c8169f0 100644 --- a/tests/baselines/reference/linkedEditingJsxTag11.linkedEditing.txt +++ b/tests/baselines/reference/linkedEditingJsxTag11.linkedEditing.txt @@ -1,3 +1,4 @@ +// === Linked Editing === === /customElements.tsx === const jsx = <[|/*0*/fbt:enum|] knownProp="accepted" unknownProp="rejected"> diff --git a/tests/baselines/reference/mappedTypeGenericWithKnownKeys.errors.txt b/tests/baselines/reference/mappedTypeGenericWithKnownKeys.errors.txt index e5b38519c31..3bab572ad8d 100644 --- a/tests/baselines/reference/mappedTypeGenericWithKnownKeys.errors.txt +++ b/tests/baselines/reference/mappedTypeGenericWithKnownKeys.errors.txt @@ -1,5 +1,5 @@ mappedTypeGenericWithKnownKeys.ts(9,9): error TS2551: Property 'unknownLiteralKey' does not exist on type 'Record'. Did you mean 'knownLiteralKey'? -mappedTypeGenericWithKnownKeys.ts(10,5): error TS2536: Type 'string' cannot be used to index type 'Record'. +mappedTypeGenericWithKnownKeys.ts(10,5): error TS2862: Type 'Record' is generic and can only be indexed for reading. ==== mappedTypeGenericWithKnownKeys.ts (2 errors) ==== @@ -16,6 +16,6 @@ mappedTypeGenericWithKnownKeys.ts(10,5): error TS2536: Type 'string' cannot be u !!! error TS2551: Property 'unknownLiteralKey' does not exist on type 'Record'. Did you mean 'knownLiteralKey'? obj['' as string] = 4; // error ~~~~~~~~~~~~~~~~~ -!!! error TS2536: Type 'string' cannot be used to index type 'Record'. +!!! error TS2862: Type 'Record' is generic and can only be indexed for reading. } \ No newline at end of file diff --git a/tests/baselines/reference/moduleNodeNextImportFix.baseline b/tests/baselines/reference/moduleNodeNextImportFix.baseline index 09260962708..6bffcba0921 100644 --- a/tests/baselines/reference/moduleNodeNextImportFix.baseline +++ b/tests/baselines/reference/moduleNodeNextImportFix.baseline @@ -1,3 +1,4 @@ +// === Syntax and Semantic Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/moduleNodeNextImportFix.ts': diff --git a/tests/baselines/reference/moduleResolution/nested-node-module.js b/tests/baselines/reference/moduleResolution/nested-node-module.js index c1ba22b9f83..5084ead6eb4 100644 --- a/tests/baselines/reference/moduleResolution/nested-node-module.js +++ b/tests/baselines/reference/moduleResolution/nested-node-module.js @@ -2,7 +2,9 @@ //// [/root/src/libs/guid/package.json] -{"typings":"dist/guid.d.ts"} +{ + "typings": "dist/guid.d.ts" +} //// [/root/src/libs/guid/dist/guid.d.ts] @@ -29,7 +31,9 @@ Resolution:: { //// [/root/src/libs/guid/package.json] -{"typings":"dist/guid.d.ts"} +{ + "typings": "dist/guid.d.ts" +} //// [/root/src/libs/guid/dist/guid.d.ts] diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js index 30e9c41445c..f773dece940 100644 --- a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js +++ b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js @@ -11,7 +11,9 @@ //// [/root/generated/folder2/file4/package.json] -{"typings":"dist/types.d.ts"} +{ + "typings": "dist/types.d.ts" +} //// [/root/someanotherfolder/file5/index.d.ts] @@ -176,7 +178,9 @@ Resolution:: { //// [/root/generated/folder2/file4/package.json] -{"typings":"dist/types.d.ts"} +{ + "typings": "dist/types.d.ts" +} //// [/root/someanotherfolder/file5/index.d.ts] diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl.js b/tests/baselines/reference/moduleResolution/node-baseUrl.js index ecb69b20769..49064b654eb 100644 --- a/tests/baselines/reference/moduleResolution/node-baseUrl.js +++ b/tests/baselines/reference/moduleResolution/node-baseUrl.js @@ -8,7 +8,9 @@ //// [/root/m3/package.json] -{"typings":"dist/typings.d.ts"} +{ + "typings": "dist/typings.d.ts" +} //// [/root/m3/dist/typings.d.ts] @@ -112,7 +114,9 @@ Resolution:: { //// [/root/m3/package.json] -{"typings":"dist/typings.d.ts"} +{ + "typings": "dist/typings.d.ts" +} //// [/root/m3/dist/typings.d.ts] diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js index b5f9ceb12e0..b8ffa99a4d1 100644 --- a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js +++ b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js @@ -4,7 +4,10 @@ //// [/app/node_modules/linked/index.d.ts] symlink(/linked/index.d.ts) //// [/app/node_modules/linked/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "linked" from /app/app.ts when preserveSymlinks is false Resolution:: { @@ -34,7 +37,10 @@ Resolution:: { //// [/app/node_modules/linked/index.d.ts] symlink(/linked/index.d.ts) //// [/app/node_modules/linked/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "linked" from /app/app.ts when preserveSymlinks is true Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js index 50b20f9a56f..f13c1b45d43 100644 --- a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js +++ b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js @@ -4,7 +4,10 @@ //// [/app/node_modules/linked/index.d.ts] symlink(/linked/index.d.ts) //// [/app/node_modules/linked/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "linked" from /app/src/app.ts Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js index 5508c607f53..8db60837c2d 100644 --- a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js +++ b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js @@ -4,7 +4,10 @@ //// [/sub/node_modules/a/index.ts] symlink(/modules/a.ts) //// [/sub/node_modules/a/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "a" from /sub/dir/foo.ts Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js index 94c2f091ad1..d438ba81df7 100644 --- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js +++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js @@ -3,7 +3,9 @@ Resolving "./foo" from /a/b/c.ts //// [/a/b/foo/package.json] -{"main":"/c/d"} +{ + "main": "/c/d" +} //// [/a/b/foo/index.d.ts] @@ -39,7 +41,9 @@ Resolving "./foo" from /a/b/c.ts with host that doesnt have directoryExists //// [/a/b/foo/package.json] -{"main":"/c/d"} +{ + "main": "/c/d" +} //// [/a/b/foo/index.d.ts] diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js index 9e5149dce23..32b8649572d 100644 --- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js +++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js @@ -1,9 +1,17 @@ -Resolving "b" from /a/b.ts with typings: ["a","b"] +Resolving "b" from /a/b.ts with typings: [ + "a", + "b" +] //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":["a","b"]} +{ + "typings": [ + "a", + "b" + ] +} //// [/a/b.d.ts] @@ -40,12 +48,20 @@ Resolution:: { ] } -Resolving "b" from /a/b.ts with typings: ["a","b"] with host that doesnt have directoryExists +Resolving "b" from /a/b.ts with typings: [ + "a", + "b" +] with host that doesnt have directoryExists //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":["a","b"]} +{ + "typings": [ + "a", + "b" + ] +} //// [/a/b.d.ts] @@ -82,12 +98,18 @@ Resolution:: { ] } -Resolving "b" from /a/b.ts with typings: {"a":"b"} +Resolving "b" from /a/b.ts with typings: { + "a": "b" +} //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":{"a":"b"}} +{ + "typings": { + "a": "b" + } +} //// [/a/b.d.ts] @@ -124,12 +146,18 @@ Resolution:: { ] } -Resolving "b" from /a/b.ts with typings: {"a":"b"} with host that doesnt have directoryExists +Resolving "b" from /a/b.ts with typings: { + "a": "b" +} with host that doesnt have directoryExists //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":{"a":"b"}} +{ + "typings": { + "a": "b" + } +} //// [/a/b.d.ts] @@ -171,7 +199,9 @@ Resolving "b" from /a/b.ts with typings: true //// [/node_modules/b/package.json] -{"typings":true} +{ + "typings": true +} //// [/a/b.d.ts] @@ -213,7 +243,9 @@ Resolving "b" from /a/b.ts with typings: true with host that doesnt have directo //// [/node_modules/b/package.json] -{"typings":true} +{ + "typings": true +} //// [/a/b.d.ts] @@ -255,7 +287,9 @@ Resolving "b" from /a/b.ts with typings: null //// [/node_modules/b/package.json] -{"typings":null} +{ + "typings": null +} //// [/a/b.d.ts] @@ -297,7 +331,9 @@ Resolving "b" from /a/b.ts with typings: null with host that doesnt have directo //// [/node_modules/b/package.json] -{"typings":null} +{ + "typings": null +} //// [/a/b.d.ts] diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js index 33180674c0d..4376a6e8bd8 100644 --- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js +++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js @@ -3,7 +3,9 @@ Resolving "./bar" from /a/b/c/d.ts with typings: c/d/e.d.ts //// [/a/b/c/bar/package.json] -{"typings":"c/d/e.d.ts"} +{ + "typings": "c/d/e.d.ts" +} //// [/a/b/c/bar/c/d/e.d.ts] @@ -30,7 +32,9 @@ Resolving "./bar" from /a/b/c/d.ts with typings: c/d/e.d.ts with host that doesn //// [/a/b/c/bar/package.json] -{"typings":"c/d/e.d.ts"} +{ + "typings": "c/d/e.d.ts" +} //// [/a/b/c/bar/c/d/e.d.ts] @@ -57,7 +61,9 @@ Resolving "../../bar" from /a/b/c/d.ts with typings: e.d.ts //// [/a/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/a/bar/e.d.ts] @@ -84,7 +90,9 @@ Resolving "../../bar" from /a/b/c/d.ts with typings: e.d.ts with host that doesn //// [/a/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/a/bar/e.d.ts] @@ -111,7 +119,9 @@ Resolving "/bar" from /a/b/c/d.ts with typings: e.d.ts //// [/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/bar/e.d.ts] @@ -138,7 +148,9 @@ Resolving "/bar" from /a/b/c/d.ts with typings: e.d.ts with host that doesnt hav //// [/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/bar/e.d.ts] @@ -165,7 +177,9 @@ Resolving "c:/bar" from c:/a/b/c/d.ts with typings: e.d.ts //// [c:/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [c:/bar/e.d.ts] @@ -192,7 +206,9 @@ Resolving "c:/bar" from c:/a/b/c/d.ts with typings: e.d.ts with host that doesnt //// [c:/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [c:/bar/e.d.ts] diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js index c2b369638d1..00864f5b8e2 100644 --- a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js +++ b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js @@ -24,7 +24,9 @@ Resolution:: { //// [/root/src/types/lib/package.json] -{"types":"typings/lib.d.ts"} +{ + "types": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { @@ -70,7 +72,9 @@ Resolution:: { //// [/root/src/node_modules/lib/package.json] -{"types":"typings/lib.d.ts"} +{ + "types": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { @@ -122,7 +126,9 @@ Resolution:: { //// [/root/src/node_modules/@types/lib/package.json] -{"types":"typings/lib.d.ts"} +{ + "types": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js index 4f96a2c8cc9..ce3cedf2096 100644 --- a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js +++ b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js @@ -60,7 +60,9 @@ Resolution:: { //// [/root/node_modules/lib/package.json] -{"typings":"typings/lib.d.ts"} +{ + "typings": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { @@ -124,7 +126,9 @@ Resolution:: { //// [/root/node_modules/@types/lib/package.json] -{"typings":"typings/lib.d.ts"} +{ + "typings": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { diff --git a/tests/baselines/reference/nameOrDottedSpan_classes.baseline b/tests/baselines/reference/nameOrDottedSpan_classes.baseline index 88383c638a8..17174b8b8ec 100644 --- a/tests/baselines/reference/nameOrDottedSpan_classes.baseline +++ b/tests/baselines/reference/nameOrDottedSpan_classes.baseline @@ -1,3 +1,4 @@ +// === NameOrDottedNameSpans === 1 >module Foo.Bar { diff --git a/tests/baselines/reference/nameOrDottedSpan_stmts.baseline b/tests/baselines/reference/nameOrDottedSpan_stmts.baseline index d0d35199e81..df2a33598bd 100644 --- a/tests/baselines/reference/nameOrDottedSpan_stmts.baseline +++ b/tests/baselines/reference/nameOrDottedSpan_stmts.baseline @@ -1,3 +1,4 @@ +// === NameOrDottedNameSpans === 1 >function f() { diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue.symbols deleted file mode 100644 index 6461b7c88b2..00000000000 --- a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue.symbols +++ /dev/null @@ -1,144 +0,0 @@ -//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue.ts] //// - -=== narrowByClauseExpressionInSwitchTrue.ts === -// https://github.com/microsoft/TypeScript/issues/37178 - -type A = { type: "A" }; ->A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue.ts, 0, 0)) ->type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 10)) - -type B = { type: "B" }; ->B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 23)) ->type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 10)) - -type AorB = A | B; ->AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 23)) ->A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue.ts, 0, 0)) ->B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 23)) - -const isA = (x: AorB): x is A => x.type === "A"; ->isA : Symbol(isA, Decl(narrowByClauseExpressionInSwitchTrue.ts, 6, 5)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 6, 13)) ->AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 23)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 6, 13)) ->A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue.ts, 0, 0)) ->x.type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 10)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 6, 13)) ->type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 10)) - -const isB = (x: AorB): x is B => x.type === "B"; ->isB : Symbol(isB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 7, 5)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 7, 13)) ->AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 23)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 7, 13)) ->B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 23)) ->x.type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 10)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 7, 13)) ->type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 10)) - -function test1(x: AorB) { ->test1 : Symbol(test1, Decl(narrowByClauseExpressionInSwitchTrue.ts, 7, 48)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 9, 15)) ->AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 23)) - - switch (true) { - case isA(x): ->isA : Symbol(isA, Decl(narrowByClauseExpressionInSwitchTrue.ts, 6, 5)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 9, 15)) - - x; ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 9, 15)) - - break; - case isB(x): ->isB : Symbol(isB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 7, 5)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 9, 15)) - - x; ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 9, 15)) - - break; - } -} - -function test2(x: AorB) { ->test2 : Symbol(test2, Decl(narrowByClauseExpressionInSwitchTrue.ts, 18, 1)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 20, 15)) ->AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 3, 23)) - - switch (true) { - case isA(x): ->isA : Symbol(isA, Decl(narrowByClauseExpressionInSwitchTrue.ts, 6, 5)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 20, 15)) - - x; ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 20, 15)) - - // fallthrough - case isB(x): ->isB : Symbol(isB, Decl(narrowByClauseExpressionInSwitchTrue.ts, 7, 5)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 20, 15)) - - x; ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 20, 15)) - - break; - } -} - -let x: string | undefined; ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 31, 3)) - -switch (true) { - case typeof x !== "undefined": ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 31, 3)) - - x.trim(); ->x.trim : Symbol(String.trim, Decl(lib.es5.d.ts, --, --)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 31, 3)) ->trim : Symbol(String.trim, Decl(lib.es5.d.ts, --, --)) -} - -type SomeType = { type: "SomeType" }; ->SomeType : Symbol(SomeType, Decl(narrowByClauseExpressionInSwitchTrue.ts, 36, 1)) ->type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue.ts, 38, 17)) - -declare function isSomeType(x: unknown): x is SomeType; ->isSomeType : Symbol(isSomeType, Decl(narrowByClauseExpressionInSwitchTrue.ts, 38, 37)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 39, 28)) ->x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue.ts, 39, 28)) ->SomeType : Symbol(SomeType, Decl(narrowByClauseExpressionInSwitchTrue.ts, 36, 1)) - -function processInput(input: string | RegExp | SomeType) { ->processInput : Symbol(processInput, Decl(narrowByClauseExpressionInSwitchTrue.ts, 39, 55)) ->input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue.ts, 41, 22)) ->RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) ->SomeType : Symbol(SomeType, Decl(narrowByClauseExpressionInSwitchTrue.ts, 36, 1)) - - switch (true) { - case typeof input === "string": ->input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue.ts, 41, 22)) - - input; ->input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue.ts, 41, 22)) - - break; - case input instanceof RegExp: ->input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue.ts, 41, 22)) ->RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - input; ->input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue.ts, 41, 22)) - - break; - case isSomeType(input): ->isSomeType : Symbol(isSomeType, Decl(narrowByClauseExpressionInSwitchTrue.ts, 38, 37)) ->input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue.ts, 41, 22)) - - input; ->input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue.ts, 41, 22)) - - break; - } -} - diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue1.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue1.symbols new file mode 100644 index 00000000000..3892a6c7fdd --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue1.symbols @@ -0,0 +1,144 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue1.ts] //// + +=== narrowByClauseExpressionInSwitchTrue1.ts === +// https://github.com/microsoft/TypeScript/issues/37178 + +type A = { type: "A" }; +>A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 0, 0)) +>type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 10)) + +type B = { type: "B" }; +>B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 23)) +>type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 10)) + +type AorB = A | B; +>AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 23)) +>A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 0, 0)) +>B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 23)) + +const isA = (x: AorB): x is A => x.type === "A"; +>isA : Symbol(isA, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 6, 5)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 6, 13)) +>AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 23)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 6, 13)) +>A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 0, 0)) +>x.type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 10)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 6, 13)) +>type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 10)) + +const isB = (x: AorB): x is B => x.type === "B"; +>isB : Symbol(isB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 7, 5)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 7, 13)) +>AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 23)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 7, 13)) +>B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 23)) +>x.type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 10)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 7, 13)) +>type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 10)) + +function test1(x: AorB) { +>test1 : Symbol(test1, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 7, 48)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 9, 15)) +>AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 23)) + + switch (true) { + case isA(x): +>isA : Symbol(isA, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 6, 5)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 9, 15)) + + x; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 9, 15)) + + break; + case isB(x): +>isB : Symbol(isB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 7, 5)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 9, 15)) + + x; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 9, 15)) + + break; + } +} + +function test2(x: AorB) { +>test2 : Symbol(test2, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 18, 1)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 20, 15)) +>AorB : Symbol(AorB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 3, 23)) + + switch (true) { + case isA(x): +>isA : Symbol(isA, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 6, 5)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 20, 15)) + + x; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 20, 15)) + + // fallthrough + case isB(x): +>isB : Symbol(isB, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 7, 5)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 20, 15)) + + x; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 20, 15)) + + break; + } +} + +let x: string | undefined; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 31, 3)) + +switch (true) { + case typeof x !== "undefined": +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 31, 3)) + + x.trim(); +>x.trim : Symbol(String.trim, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 31, 3)) +>trim : Symbol(String.trim, Decl(lib.es5.d.ts, --, --)) +} + +type SomeType = { type: "SomeType" }; +>SomeType : Symbol(SomeType, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 36, 1)) +>type : Symbol(type, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 38, 17)) + +declare function isSomeType(x: unknown): x is SomeType; +>isSomeType : Symbol(isSomeType, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 38, 37)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 39, 28)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 39, 28)) +>SomeType : Symbol(SomeType, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 36, 1)) + +function processInput(input: string | RegExp | SomeType) { +>processInput : Symbol(processInput, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 39, 55)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 41, 22)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>SomeType : Symbol(SomeType, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 36, 1)) + + switch (true) { + case typeof input === "string": +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 41, 22)) + + input; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 41, 22)) + + break; + case input instanceof RegExp: +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 41, 22)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + input; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 41, 22)) + + break; + case isSomeType(input): +>isSomeType : Symbol(isSomeType, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 38, 37)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 41, 22)) + + input; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue1.ts, 41, 22)) + + break; + } +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue1.types similarity index 90% rename from tests/baselines/reference/narrowByClauseExpressionInSwitchTrue.types rename to tests/baselines/reference/narrowByClauseExpressionInSwitchTrue1.types index f8a1d9bc87e..fa20aae9246 100644 --- a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue.types +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue1.types @@ -1,6 +1,6 @@ -//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue.ts] //// +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue1.ts] //// -=== narrowByClauseExpressionInSwitchTrue.ts === +=== narrowByClauseExpressionInSwitchTrue1.ts === // https://github.com/microsoft/TypeScript/issues/37178 type A = { type: "A" }; diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue10.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue10.symbols new file mode 100644 index 00000000000..2abb5fc5d41 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue10.symbols @@ -0,0 +1,107 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue10.ts] //// + +=== narrowByClauseExpressionInSwitchTrue10.ts === +function foo(cond1: boolean, cond2: boolean) { +>foo : Symbol(foo, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 0)) +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 13)) +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 28)) + + switch (true) { + case cond1 || cond2: +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 13)) +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 28)) + + cond1; // boolean +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 13)) + + // ^? + cond2; // boolean +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 28)) + + // ^? + break; + + case cond2: +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 28)) + + cond1; // false +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 13)) + + // ^? + cond2;; // never +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 28)) + + // ^? + break; + + default: + cond1; // false +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 13)) + + // ^? + cond2; // false +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 28)) + + // ^? + break; + } + + cond1; // boolean +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 13)) + + // ^? + cond2; // boolean +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 0, 28)) + + // ^? +} + +function blah(cond1: boolean, cond2: boolean) { +>blah : Symbol(blah, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 28, 1)) +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 14)) +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 29)) + + if (cond1 || cond2) { +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 14)) +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 29)) + + cond1; // boolean +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 14)) + + // ^? + cond2; // boolean +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 29)) + + // ^? + } else if (cond2) { +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 29)) + + cond1; // false +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 14)) + + // ^? + cond2; // never +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 29)) + + // ^? + } else { + cond1; // false +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 14)) + + // ^? + cond2; // false +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 29)) + + // ^? + } + + cond1; // boolean +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 14)) + + // ^? + cond2; // boolean +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue10.ts, 30, 29)) + + // ^? +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue10.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue10.types new file mode 100644 index 00000000000..d6e8cedfdc6 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue10.types @@ -0,0 +1,111 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue10.ts] //// + +=== narrowByClauseExpressionInSwitchTrue10.ts === +function foo(cond1: boolean, cond2: boolean) { +>foo : (cond1: boolean, cond2: boolean) => void +>cond1 : boolean +>cond2 : boolean + + switch (true) { +>true : true + + case cond1 || cond2: +>cond1 || cond2 : boolean +>cond1 : boolean +>cond2 : boolean + + cond1; // boolean +>cond1 : boolean + + // ^? + cond2; // boolean +>cond2 : boolean + + // ^? + break; + + case cond2: +>cond2 : boolean + + cond1; // false +>cond1 : false + + // ^? + cond2;; // never +>cond2 : never + + // ^? + break; + + default: + cond1; // false +>cond1 : false + + // ^? + cond2; // false +>cond2 : false + + // ^? + break; + } + + cond1; // boolean +>cond1 : boolean + + // ^? + cond2; // boolean +>cond2 : boolean + + // ^? +} + +function blah(cond1: boolean, cond2: boolean) { +>blah : (cond1: boolean, cond2: boolean) => void +>cond1 : boolean +>cond2 : boolean + + if (cond1 || cond2) { +>cond1 || cond2 : boolean +>cond1 : boolean +>cond2 : boolean + + cond1; // boolean +>cond1 : boolean + + // ^? + cond2; // boolean +>cond2 : boolean + + // ^? + } else if (cond2) { +>cond2 : false + + cond1; // false +>cond1 : false + + // ^? + cond2; // never +>cond2 : never + + // ^? + } else { + cond1; // false +>cond1 : false + + // ^? + cond2; // false +>cond2 : false + + // ^? + } + + cond1; // boolean +>cond1 : boolean + + // ^? + cond2; // boolean +>cond2 : boolean + + // ^? +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue2.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue2.symbols new file mode 100644 index 00000000000..8ce5e2928f4 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue2.symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue2.ts] //// + +=== narrowByClauseExpressionInSwitchTrue2.ts === +// https://github.com/microsoft/TypeScript/issues/55986 + +declare const f: 'a' | 'b' | 'c'; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + +switch(true) { + case f === 'a': +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + + case f === 'b': +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + + f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + + break + default: + f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) +} + +f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + +switch(true) { + case f === 'a': +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + + f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + + case f === 'b': +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + + f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + + break + default: + f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) +} + +f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue2.ts, 2, 13)) + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue2.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue2.types new file mode 100644 index 00000000000..d1637eb248f --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue2.types @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue2.ts] //// + +=== narrowByClauseExpressionInSwitchTrue2.ts === +// https://github.com/microsoft/TypeScript/issues/55986 + +declare const f: 'a' | 'b' | 'c'; +>f : "a" | "b" | "c" + +switch(true) { +>true : true + + case f === 'a': +>f === 'a' : boolean +>f : "a" | "b" | "c" +>'a' : "a" + + case f === 'b': +>f === 'b' : boolean +>f : "a" | "b" | "c" +>'b' : "b" + + f; +>f : "a" | "b" + + break + default: + f; +>f : "c" +} + +f; +>f : "a" | "b" | "c" + +switch(true) { +>true : true + + case f === 'a': +>f === 'a' : boolean +>f : "a" | "b" | "c" +>'a' : "a" + + f; +>f : "a" + + case f === 'b': +>f === 'b' : boolean +>f : "a" | "b" | "c" +>'b' : "b" + + f; +>f : "a" | "b" + + break + default: + f; +>f : "c" +} + +f; +>f : "a" | "b" | "c" + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.errors.txt b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.errors.txt new file mode 100644 index 00000000000..cec1802a21f --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.errors.txt @@ -0,0 +1,32 @@ +narrowByClauseExpressionInSwitchTrue3.ts(12,9): error TS2367: This comparison appears to be unintentional because the types '"square"' and '"circle"' have no overlap. +narrowByClauseExpressionInSwitchTrue3.ts(13,32): error TS2339: Property 'radius' does not exist on type 'never'. +narrowByClauseExpressionInSwitchTrue3.ts(15,14): error TS2367: This comparison appears to be unintentional because the types '"square"' and '"circle"' have no overlap. + + +==== narrowByClauseExpressionInSwitchTrue3.ts (3 errors) ==== + type Shape = + | { kind: "circle", radius: number } + | { kind: "square", sideLength: number } + + function wat(shape: Shape) { + switch (true) { + case shape.kind === "circle": + return Math.PI * shape.radius ** 2; + case shape.kind === "circle": // should error + } + + if (shape.kind === "circle") { + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2367: This comparison appears to be unintentional because the types '"square"' and '"circle"' have no overlap. + return Math.PI * shape.radius ** 2; + ~~~~~~ +!!! error TS2339: Property 'radius' does not exist on type 'never'. + } + else if (shape.kind === "circle") { + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2367: This comparison appears to be unintentional because the types '"square"' and '"circle"' have no overlap. + // ~~~~ + // Property 'kind' does not exist on type 'never'. + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.symbols new file mode 100644 index 00000000000..b6811492524 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.symbols @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue3.ts] //// + +=== narrowByClauseExpressionInSwitchTrue3.ts === +type Shape = +>Shape : Symbol(Shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 0, 0)) + + | { kind: "circle", radius: number } +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 7)) +>radius : Symbol(radius, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 23)) + + | { kind: "square", sideLength: number } +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) +>sideLength : Symbol(sideLength, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 23)) + +function wat(shape: Shape) { +>wat : Symbol(wat, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 44)) +>shape : Symbol(shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 4, 13)) +>Shape : Symbol(Shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 0, 0)) + + switch (true) { + case shape.kind === "circle": +>shape.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 7), Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) +>shape : Symbol(shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 4, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 7), Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) + + return Math.PI * shape.radius ** 2; +>Math.PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>shape.radius : Symbol(radius, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 23)) +>shape : Symbol(shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 4, 13)) +>radius : Symbol(radius, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 23)) + + case shape.kind === "circle": // should error +>shape.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 7), Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) +>shape : Symbol(shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 4, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 1, 7), Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) + } + + if (shape.kind === "circle") { +>shape.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) +>shape : Symbol(shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 4, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) + + return Math.PI * shape.radius ** 2; +>Math.PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>shape : Symbol(shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 4, 13)) + } + else if (shape.kind === "circle") { +>shape.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) +>shape : Symbol(shape, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 4, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue3.ts, 2, 7)) + + // ~~~~ + // Property 'kind' does not exist on type 'never'. + } +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.types new file mode 100644 index 00000000000..1fde85a0298 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue3.types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue3.ts] //// + +=== narrowByClauseExpressionInSwitchTrue3.ts === +type Shape = +>Shape : { kind: "circle"; radius: number; } | { kind: "square"; sideLength: number; } + + | { kind: "circle", radius: number } +>kind : "circle" +>radius : number + + | { kind: "square", sideLength: number } +>kind : "square" +>sideLength : number + +function wat(shape: Shape) { +>wat : (shape: Shape) => number | undefined +>shape : Shape + + switch (true) { +>true : true + + case shape.kind === "circle": +>shape.kind === "circle" : boolean +>shape.kind : "circle" | "square" +>shape : Shape +>kind : "circle" | "square" +>"circle" : "circle" + + return Math.PI * shape.radius ** 2; +>Math.PI * shape.radius ** 2 : number +>Math.PI : number +>Math : Math +>PI : number +>shape.radius ** 2 : number +>shape.radius : number +>shape : { kind: "circle"; radius: number; } +>radius : number +>2 : 2 + + case shape.kind === "circle": // should error +>shape.kind === "circle" : boolean +>shape.kind : "circle" | "square" +>shape : Shape +>kind : "circle" | "square" +>"circle" : "circle" + } + + if (shape.kind === "circle") { +>shape.kind === "circle" : boolean +>shape.kind : "square" +>shape : { kind: "square"; sideLength: number; } +>kind : "square" +>"circle" : "circle" + + return Math.PI * shape.radius ** 2; +>Math.PI * shape.radius ** 2 : number +>Math.PI : number +>Math : Math +>PI : number +>shape.radius ** 2 : number +>shape.radius : any +>shape : never +>radius : any +>2 : 2 + } + else if (shape.kind === "circle") { +>shape.kind === "circle" : boolean +>shape.kind : "square" +>shape : { kind: "square"; sideLength: number; } +>kind : "square" +>"circle" : "circle" + + // ~~~~ + // Property 'kind' does not exist on type 'never'. + } +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue4.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue4.symbols new file mode 100644 index 00000000000..c505b1d47c9 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue4.symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue4.ts] //// + +=== narrowByClauseExpressionInSwitchTrue4.ts === +declare const f: 'a' | 'b' | 'c'; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue4.ts, 0, 13)) + +switch (true) { + case f === "a": +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue4.ts, 0, 13)) + + default: + f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue4.ts, 0, 13)) + + case f === "b": +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue4.ts, 0, 13)) + + f; +>f : Symbol(f, Decl(narrowByClauseExpressionInSwitchTrue4.ts, 0, 13)) +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue4.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue4.types new file mode 100644 index 00000000000..8dc6062a2b6 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue4.types @@ -0,0 +1,27 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue4.ts] //// + +=== narrowByClauseExpressionInSwitchTrue4.ts === +declare const f: 'a' | 'b' | 'c'; +>f : "a" | "b" | "c" + +switch (true) { +>true : true + + case f === "a": +>f === "a" : boolean +>f : "a" | "b" | "c" +>"a" : "a" + + default: + f; +>f : "a" | "c" + + case f === "b": +>f === "b" : boolean +>f : "a" | "b" | "c" +>"b" : "b" + + f; +>f : "a" | "b" | "c" +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue5.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue5.symbols new file mode 100644 index 00000000000..3c890662516 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue5.symbols @@ -0,0 +1,304 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue5.ts] //// + +=== narrowByClauseExpressionInSwitchTrue5.ts === +type A = { kind: "A", value: number }; +>A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 0)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10)) +>value : Symbol(value, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 21)) + +type B = { kind: "B", name: string }; +>B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 38)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) +>name : Symbol(name, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 21)) + +type C = { kind: "C", cond: boolean }; +>C : Symbol(C, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 37)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10)) +>cond : Symbol(cond, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 21)) + +type D = { kind: "D", value: boolean }; +>D : Symbol(D, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 38)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10)) +>value : Symbol(value, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 21)) + +type E = { kind: "E", x: number, y: number }; +>E : Symbol(E, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 39)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 21)) +>y : Symbol(y, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 32)) + +type All = A | B | C | D | E; +>All : Symbol(All, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 45)) +>A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 0)) +>B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 38)) +>C : Symbol(C, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 37)) +>D : Symbol(D, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 38)) +>E : Symbol(E, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 39)) + +function fn1switch(input: All) { +>fn1switch : Symbol(fn1switch, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 6, 29)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) +>All : Symbol(All, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 45)) + + switch (true) { + case input.kind === "A": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + case input.kind === "B": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + if (input.kind === "A") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) + + return; + } + + input; // Should be B; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) + + // ^? + + // fallthrough + case input.kind === "C": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + input; // Should be B | C +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) + + // ^? + break; + default: + input; // Should be D | E +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) + + // ^? + } + + input; // Should not be A +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 8, 19)) + + // ^? +} + +function fn1ifelse(input: All) { +>fn1ifelse : Symbol(fn1ifelse, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 31, 1)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) +>All : Symbol(All, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 45)) + + if (input.kind === "A" || input.kind === "B") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + if (input.kind === "A") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) + + return; + } + + input; // Should be B; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) + + // ^? + } + if (input.kind === "C" || input.kind === "B") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + input; // Should be B | C +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) + + // ^? + } + else { + input; // Should be D | E +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) + + // ^? + } + + input; // Should not be A +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 33, 19)) + + // ^? +} + +function fn2switch(input: All) { +>fn2switch : Symbol(fn2switch, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 53, 1)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) +>All : Symbol(All, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 45)) + + switch (true) { + case input.kind === "A": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + case input.kind === "B": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + if (input.kind === "A") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) + + return; + } + + input; // Should be B; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) + + // ^? + + // fallthrough + case input.kind === "C": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + input; // Should be B | C +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) + + // ^? + break; + default: + input; // Should be D | E +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) + + // ^? + return; + } + + input; // Should be B | C +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 55, 19)) + + // ^? +} + +function fn2ifelse(input: All) { +>fn2ifelse : Symbol(fn2ifelse, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 79, 1)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) +>All : Symbol(All, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 45)) + + if (input.kind === "A" || input.kind === "B") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + if (input.kind === "A") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) + + return; + } + + input; // Should be B; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) + + // ^? + } + if (input.kind === "C" || input.kind === "B") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + input; // Should be B | C +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) + + // ^? + } + else { + input; // Should be D | E +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) + + // ^? + return; + } + + input; // Should be B | C +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 81, 19)) + + // ^? +} + +function fn3switch(input: All) { +>fn3switch : Symbol(fn3switch, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 102, 1)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) +>All : Symbol(All, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 45)) + + switch (true) { + case input.kind === "A": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + case input.kind === "B": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + if (input.kind === "A") { +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10)) + + return; + } + + input; // Should be B; +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) + + // ^? + + // fallthrough + default: + input; // Should be B | D | E +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) + + // ^? + break; + + case input.kind === "C": +>input.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 0, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 1, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 2, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 3, 10), Decl(narrowByClauseExpressionInSwitchTrue5.ts, 4, 10)) + + input; // Should be C +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) + + // ^? + break; + } + + input; // Should not be A +>input : Symbol(input, Decl(narrowByClauseExpressionInSwitchTrue5.ts, 104, 19)) + + // ^? +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue5.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue5.types new file mode 100644 index 00000000000..d2b4c5c0780 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue5.types @@ -0,0 +1,348 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue5.ts] //// + +=== narrowByClauseExpressionInSwitchTrue5.ts === +type A = { kind: "A", value: number }; +>A : { kind: "A"; value: number; } +>kind : "A" +>value : number + +type B = { kind: "B", name: string }; +>B : { kind: "B"; name: string; } +>kind : "B" +>name : string + +type C = { kind: "C", cond: boolean }; +>C : { kind: "C"; cond: boolean; } +>kind : "C" +>cond : boolean + +type D = { kind: "D", value: boolean }; +>D : { kind: "D"; value: boolean; } +>kind : "D" +>value : boolean + +type E = { kind: "E", x: number, y: number }; +>E : { kind: "E"; x: number; y: number; } +>kind : "E" +>x : number +>y : number + +type All = A | B | C | D | E; +>All : A | B | C | D | E + +function fn1switch(input: All) { +>fn1switch : (input: All) => void +>input : All + + switch (true) { +>true : true + + case input.kind === "A": +>input.kind === "A" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"A" : "A" + + case input.kind === "B": +>input.kind === "B" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"B" : "B" + + if (input.kind === "A") { +>input.kind === "A" : boolean +>input.kind : "A" | "B" +>input : A | B +>kind : "A" | "B" +>"A" : "A" + + return; + } + + input; // Should be B; +>input : B + + // ^? + + // fallthrough + case input.kind === "C": +>input.kind === "C" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"C" : "C" + + input; // Should be B | C +>input : B | C + + // ^? + break; + default: + input; // Should be D | E +>input : D | E + + // ^? + } + + input; // Should not be A +>input : B | C | D | E + + // ^? +} + +function fn1ifelse(input: All) { +>fn1ifelse : (input: All) => void +>input : All + + if (input.kind === "A" || input.kind === "B") { +>input.kind === "A" || input.kind === "B" : boolean +>input.kind === "A" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"A" : "A" +>input.kind === "B" : boolean +>input.kind : "B" | "C" | "D" | "E" +>input : B | C | D | E +>kind : "B" | "C" | "D" | "E" +>"B" : "B" + + if (input.kind === "A") { +>input.kind === "A" : boolean +>input.kind : "A" | "B" +>input : A | B +>kind : "A" | "B" +>"A" : "A" + + return; + } + + input; // Should be B; +>input : B + + // ^? + } + if (input.kind === "C" || input.kind === "B") { +>input.kind === "C" || input.kind === "B" : boolean +>input.kind === "C" : boolean +>input.kind : "B" | "C" | "D" | "E" +>input : B | C | D | E +>kind : "B" | "C" | "D" | "E" +>"C" : "C" +>input.kind === "B" : boolean +>input.kind : "B" | "D" | "E" +>input : B | D | E +>kind : "B" | "D" | "E" +>"B" : "B" + + input; // Should be B | C +>input : B | C + + // ^? + } + else { + input; // Should be D | E +>input : D | E + + // ^? + } + + input; // Should not be A +>input : B | C | D | E + + // ^? +} + +function fn2switch(input: All) { +>fn2switch : (input: All) => void +>input : All + + switch (true) { +>true : true + + case input.kind === "A": +>input.kind === "A" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"A" : "A" + + case input.kind === "B": +>input.kind === "B" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"B" : "B" + + if (input.kind === "A") { +>input.kind === "A" : boolean +>input.kind : "A" | "B" +>input : A | B +>kind : "A" | "B" +>"A" : "A" + + return; + } + + input; // Should be B; +>input : B + + // ^? + + // fallthrough + case input.kind === "C": +>input.kind === "C" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"C" : "C" + + input; // Should be B | C +>input : B | C + + // ^? + break; + default: + input; // Should be D | E +>input : D | E + + // ^? + return; + } + + input; // Should be B | C +>input : B | C + + // ^? +} + +function fn2ifelse(input: All) { +>fn2ifelse : (input: All) => void +>input : All + + if (input.kind === "A" || input.kind === "B") { +>input.kind === "A" || input.kind === "B" : boolean +>input.kind === "A" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"A" : "A" +>input.kind === "B" : boolean +>input.kind : "B" | "C" | "D" | "E" +>input : B | C | D | E +>kind : "B" | "C" | "D" | "E" +>"B" : "B" + + if (input.kind === "A") { +>input.kind === "A" : boolean +>input.kind : "A" | "B" +>input : A | B +>kind : "A" | "B" +>"A" : "A" + + return; + } + + input; // Should be B; +>input : B + + // ^? + } + if (input.kind === "C" || input.kind === "B") { +>input.kind === "C" || input.kind === "B" : boolean +>input.kind === "C" : boolean +>input.kind : "B" | "C" | "D" | "E" +>input : B | C | D | E +>kind : "B" | "C" | "D" | "E" +>"C" : "C" +>input.kind === "B" : boolean +>input.kind : "B" | "D" | "E" +>input : B | D | E +>kind : "B" | "D" | "E" +>"B" : "B" + + input; // Should be B | C +>input : B | C + + // ^? + } + else { + input; // Should be D | E +>input : D | E + + // ^? + return; + } + + input; // Should be B | C +>input : B | C + + // ^? +} + +function fn3switch(input: All) { +>fn3switch : (input: All) => void +>input : All + + switch (true) { +>true : true + + case input.kind === "A": +>input.kind === "A" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"A" : "A" + + case input.kind === "B": +>input.kind === "B" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"B" : "B" + + if (input.kind === "A") { +>input.kind === "A" : boolean +>input.kind : "A" | "B" +>input : A | B +>kind : "A" | "B" +>"A" : "A" + + return; + } + + input; // Should be B; +>input : B + + // ^? + + // fallthrough + default: + input; // Should be B | D | E +>input : B | D | E + + // ^? + break; + + case input.kind === "C": +>input.kind === "C" : boolean +>input.kind : "A" | "B" | "C" | "D" | "E" +>input : All +>kind : "A" | "B" | "C" | "D" | "E" +>"C" : "C" + + input; // Should be C +>input : C + + // ^? + break; + } + + input; // Should not be A +>input : B | C | D | E + + // ^? +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.errors.txt b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.errors.txt new file mode 100644 index 00000000000..e33e6ac6fce --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.errors.txt @@ -0,0 +1,89 @@ +narrowByClauseExpressionInSwitchTrue6.ts(70,15): error TS2339: Property 'bProps' does not exist on type 'A | B'. + Property 'bProps' does not exist on type 'A'. +narrowByClauseExpressionInSwitchTrue6.ts(73,15): error TS2339: Property 'cProps' does not exist on type 'MyType'. + Property 'cProps' does not exist on type 'A'. + + +==== narrowByClauseExpressionInSwitchTrue6.ts (2 errors) ==== + interface A { + kind: "a"; + aProps: string; + } + + interface B { + kind: "b"; + bProps: string; + } + + interface C { + kind: "c"; + cProps: string; + } + + + type MyType = A | B | C; + + function isA(x: MyType) { + switch (true) { + default: + const never: never = x; + case x.kind === "a": + x.aProps; + break; + case x.kind === "b": + x.bProps; + break; + case x.kind === "c": + x.cProps; + break; + } + + switch (true) { + default: + const never: never = x; + case x.kind === "a": { + x.aProps; + break; + } + case x.kind === "b": { + x.bProps; + break; + } + case x.kind === "c": { + x.cProps; + break; + } + } + + switch (true) { + default: + x.aProps; + break; + case x.kind === "b": + x.bProps; + break; + case x.kind === "c": + x.cProps; + break; + } + + switch (true) { + default: + const never: never = x; + case x.kind === "a": + x.aProps; + // fallthrough + case x.kind === "b": + x.bProps; + ~~~~~~ +!!! error TS2339: Property 'bProps' does not exist on type 'A | B'. +!!! error TS2339: Property 'bProps' does not exist on type 'A'. + // fallthrough + case x.kind === "c": + x.cProps; + ~~~~~~ +!!! error TS2339: Property 'cProps' does not exist on type 'MyType'. +!!! error TS2339: Property 'cProps' does not exist on type 'A'. + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.symbols new file mode 100644 index 00000000000..9ed6be6a7cf --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.symbols @@ -0,0 +1,198 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue6.ts] //// + +=== narrowByClauseExpressionInSwitchTrue6.ts === +interface A { +>A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 0)) + + kind: "a"; +>kind : Symbol(A.kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13)) + + aProps: string; +>aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) +} + +interface B { +>B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 3, 1)) + + kind: "b"; +>kind : Symbol(B.kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13)) + + bProps: string; +>bProps : Symbol(B.bProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 6, 14)) +} + +interface C { +>C : Symbol(C, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 8, 1)) + + kind: "c"; +>kind : Symbol(C.kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + cProps: string; +>cProps : Symbol(C.cProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 11, 14)) +} + + +type MyType = A | B | C; +>MyType : Symbol(MyType, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 13, 1)) +>A : Symbol(A, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 0)) +>B : Symbol(B, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 3, 1)) +>C : Symbol(C, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 8, 1)) + +function isA(x: MyType) { +>isA : Symbol(isA, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 16, 24)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>MyType : Symbol(MyType, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 13, 1)) + + switch (true) { + default: + const never: never = x; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 21, 17)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) + + case x.kind === "a": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.aProps; +>x.aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) + + break; + case x.kind === "b": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.bProps; +>x.bProps : Symbol(B.bProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 6, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>bProps : Symbol(B.bProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 6, 14)) + + break; + case x.kind === "c": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.cProps; +>x.cProps : Symbol(C.cProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 11, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>cProps : Symbol(C.cProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 11, 14)) + + break; + } + + switch (true) { + default: + const never: never = x; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 35, 17)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) + + case x.kind === "a": { +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.aProps; +>x.aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) + + break; + } + case x.kind === "b": { +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.bProps; +>x.bProps : Symbol(B.bProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 6, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>bProps : Symbol(B.bProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 6, 14)) + + break; + } + case x.kind === "c": { +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.cProps; +>x.cProps : Symbol(C.cProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 11, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>cProps : Symbol(C.cProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 11, 14)) + + break; + } + } + + switch (true) { + default: + x.aProps; +>x.aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) + + break; + case x.kind === "b": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.bProps; +>x.bProps : Symbol(B.bProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 6, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>bProps : Symbol(B.bProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 6, 14)) + + break; + case x.kind === "c": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.cProps; +>x.cProps : Symbol(C.cProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 11, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>cProps : Symbol(C.cProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 11, 14)) + + break; + } + + switch (true) { + default: + const never: never = x; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 64, 17)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) + + case x.kind === "a": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.aProps; +>x.aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>aProps : Symbol(A.aProps, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 1, 14)) + + // fallthrough + case x.kind === "b": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.bProps; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) + + // fallthrough + case x.kind === "c": +>x.kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) +>kind : Symbol(kind, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 0, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 5, 13), Decl(narrowByClauseExpressionInSwitchTrue6.ts, 10, 13)) + + x.cProps; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue6.ts, 18, 13)) + } +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.types new file mode 100644 index 00000000000..4a96c67b071 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue6.types @@ -0,0 +1,222 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue6.ts] //// + +=== narrowByClauseExpressionInSwitchTrue6.ts === +interface A { + kind: "a"; +>kind : "a" + + aProps: string; +>aProps : string +} + +interface B { + kind: "b"; +>kind : "b" + + bProps: string; +>bProps : string +} + +interface C { + kind: "c"; +>kind : "c" + + cProps: string; +>cProps : string +} + + +type MyType = A | B | C; +>MyType : A | B | C + +function isA(x: MyType) { +>isA : (x: MyType) => void +>x : MyType + + switch (true) { +>true : true + + default: + const never: never = x; +>never : never +>x : never + + case x.kind === "a": +>x.kind === "a" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"a" : "a" + + x.aProps; +>x.aProps : string +>x : A +>aProps : string + + break; + case x.kind === "b": +>x.kind === "b" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"b" : "b" + + x.bProps; +>x.bProps : string +>x : B +>bProps : string + + break; + case x.kind === "c": +>x.kind === "c" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"c" : "c" + + x.cProps; +>x.cProps : string +>x : C +>cProps : string + + break; + } + + switch (true) { +>true : true + + default: + const never: never = x; +>never : never +>x : never + + case x.kind === "a": { +>x.kind === "a" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"a" : "a" + + x.aProps; +>x.aProps : string +>x : A +>aProps : string + + break; + } + case x.kind === "b": { +>x.kind === "b" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"b" : "b" + + x.bProps; +>x.bProps : string +>x : B +>bProps : string + + break; + } + case x.kind === "c": { +>x.kind === "c" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"c" : "c" + + x.cProps; +>x.cProps : string +>x : C +>cProps : string + + break; + } + } + + switch (true) { +>true : true + + default: + x.aProps; +>x.aProps : string +>x : A +>aProps : string + + break; + case x.kind === "b": +>x.kind === "b" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"b" : "b" + + x.bProps; +>x.bProps : string +>x : B +>bProps : string + + break; + case x.kind === "c": +>x.kind === "c" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"c" : "c" + + x.cProps; +>x.cProps : string +>x : C +>cProps : string + + break; + } + + switch (true) { +>true : true + + default: + const never: never = x; +>never : never +>x : never + + case x.kind === "a": +>x.kind === "a" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"a" : "a" + + x.aProps; +>x.aProps : string +>x : A +>aProps : string + + // fallthrough + case x.kind === "b": +>x.kind === "b" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"b" : "b" + + x.bProps; +>x.bProps : any +>x : A | B +>bProps : any + + // fallthrough + case x.kind === "c": +>x.kind === "c" : boolean +>x.kind : "a" | "b" | "c" +>x : MyType +>kind : "a" | "b" | "c" +>"c" : "c" + + x.cProps; +>x.cProps : any +>x : MyType +>cProps : any + } +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.errors.txt b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.errors.txt new file mode 100644 index 00000000000..ae09d39b7ca --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.errors.txt @@ -0,0 +1,90 @@ +narrowByClauseExpressionInSwitchTrue7.ts(80,19): error TS2322: Type 'Derived2' is not assignable to type 'never'. + + +==== narrowByClauseExpressionInSwitchTrue7.ts (1 errors) ==== + class Base { + basey: string = ""; + } + + class Derived1 extends Base { + d: string = ""; + } + + class Derived2 extends Base { + d: string = ""; + other: string = ""; + } + + function classy(base: Base, someDerived: Derived1 | Derived2) { + switch (true) { + case base instanceof Derived1: + base.d + // fallthrough + default: + base.basey + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d + break; + case someDerived instanceof Derived2: + someDerived.d + break + default: + const never: never = someDerived; + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d + // fallthrough + case someDerived instanceof Derived2: + someDerived.d + break + default: + const never: never = someDerived; + } + + switch (true) { + default: + const never: never = someDerived; + case someDerived instanceof Derived1: + someDerived.d; + someDerived.basey; + break + case someDerived instanceof Derived2: + someDerived.d; + someDerived.other; + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d; + someDerived.basey; + break + default: + const never: never = someDerived; + case someDerived instanceof Derived2: + someDerived.d; + someDerived.other; + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d; + someDerived.basey; + break + case someDerived instanceof Derived2: + someDerived.d; + someDerived.other; + default: + someDerived.d; + someDerived.other; + const never: never = someDerived; + ~~~~~ +!!! error TS2322: Type 'Derived2' is not assignable to type 'never'. + } + + } + \ No newline at end of file diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.symbols new file mode 100644 index 00000000000..ad0dd8f89d8 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.symbols @@ -0,0 +1,229 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue7.ts] //// + +=== narrowByClauseExpressionInSwitchTrue7.ts === +class Base { +>Base : Symbol(Base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 0)) + + basey: string = ""; +>basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) +} + +class Derived1 extends Base { +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) +>Base : Symbol(Base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 0)) + + d: string = ""; +>d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) +} + +class Derived2 extends Base { +>Derived2 : Symbol(Derived2, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 6, 1)) +>Base : Symbol(Base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 0)) + + d: string = ""; +>d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) + + other: string = ""; +>other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) +} + +function classy(base: Base, someDerived: Derived1 | Derived2) { +>classy : Symbol(classy, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 11, 1)) +>base : Symbol(base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 16)) +>Base : Symbol(Base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 0)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) +>Derived2 : Symbol(Derived2, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 6, 1)) + + switch (true) { + case base instanceof Derived1: +>base : Symbol(base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 16)) +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) + + base.d +>base.d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) +>base : Symbol(base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 16)) +>d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) + + // fallthrough + default: + base.basey +>base.basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) +>base : Symbol(base, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 16)) +>basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) + } + + switch (true) { + case someDerived instanceof Derived1: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) + + someDerived.d +>someDerived.d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) + + break; + case someDerived instanceof Derived2: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived2 : Symbol(Derived2, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 6, 1)) + + someDerived.d +>someDerived.d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) + + break + default: + const never: never = someDerived; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 30, 17)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) + } + + switch (true) { + case someDerived instanceof Derived1: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) + + someDerived.d +>someDerived.d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) + + // fallthrough + case someDerived instanceof Derived2: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived2 : Symbol(Derived2, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 6, 1)) + + someDerived.d +>someDerived.d : Symbol(d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29), Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29), Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) + + break + default: + const never: never = someDerived; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 41, 17)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) + } + + switch (true) { + default: + const never: never = someDerived; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 46, 17)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) + + case someDerived instanceof Derived1: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) + + someDerived.d; +>someDerived.d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) + + someDerived.basey; +>someDerived.basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) + + break + case someDerived instanceof Derived2: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived2 : Symbol(Derived2, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 6, 1)) + + someDerived.d; +>someDerived.d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) + + someDerived.other; +>someDerived.other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) + } + + switch (true) { + case someDerived instanceof Derived1: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) + + someDerived.d; +>someDerived.d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) + + someDerived.basey; +>someDerived.basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) + + break + default: + const never: never = someDerived; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 62, 17)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) + + case someDerived instanceof Derived2: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived2 : Symbol(Derived2, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 6, 1)) + + someDerived.d; +>someDerived.d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) + + someDerived.other; +>someDerived.other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) + } + + switch (true) { + case someDerived instanceof Derived1: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived1 : Symbol(Derived1, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 2, 1)) + + someDerived.d; +>someDerived.d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived1.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 4, 29)) + + someDerived.basey; +>someDerived.basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>basey : Symbol(Base.basey, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 0, 12)) + + break + case someDerived instanceof Derived2: +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>Derived2 : Symbol(Derived2, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 6, 1)) + + someDerived.d; +>someDerived.d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) + + someDerived.other; +>someDerived.other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) + + default: + someDerived.d; +>someDerived.d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>d : Symbol(Derived2.d, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 8, 29)) + + someDerived.other; +>someDerived.other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) +>other : Symbol(Derived2.other, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 9, 19)) + + const never: never = someDerived; +>never : Symbol(never, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 79, 17)) +>someDerived : Symbol(someDerived, Decl(narrowByClauseExpressionInSwitchTrue7.ts, 13, 27)) + } + +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.types new file mode 100644 index 00000000000..a783c583b22 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue7.types @@ -0,0 +1,253 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue7.ts] //// + +=== narrowByClauseExpressionInSwitchTrue7.ts === +class Base { +>Base : Base + + basey: string = ""; +>basey : string +>"" : "" +} + +class Derived1 extends Base { +>Derived1 : Derived1 +>Base : Base + + d: string = ""; +>d : string +>"" : "" +} + +class Derived2 extends Base { +>Derived2 : Derived2 +>Base : Base + + d: string = ""; +>d : string +>"" : "" + + other: string = ""; +>other : string +>"" : "" +} + +function classy(base: Base, someDerived: Derived1 | Derived2) { +>classy : (base: Base, someDerived: Derived1 | Derived2) => void +>base : Base +>someDerived : Derived1 | Derived2 + + switch (true) { +>true : true + + case base instanceof Derived1: +>base instanceof Derived1 : boolean +>base : Base +>Derived1 : typeof Derived1 + + base.d +>base.d : string +>base : Derived1 +>d : string + + // fallthrough + default: + base.basey +>base.basey : string +>base : Base +>basey : string + } + + switch (true) { +>true : true + + case someDerived instanceof Derived1: +>someDerived instanceof Derived1 : boolean +>someDerived : Derived1 | Derived2 +>Derived1 : typeof Derived1 + + someDerived.d +>someDerived.d : string +>someDerived : Derived1 +>d : string + + break; + case someDerived instanceof Derived2: +>someDerived instanceof Derived2 : boolean +>someDerived : Derived1 | Derived2 +>Derived2 : typeof Derived2 + + someDerived.d +>someDerived.d : string +>someDerived : Derived2 +>d : string + + break + default: + const never: never = someDerived; +>never : never +>someDerived : never + } + + switch (true) { +>true : true + + case someDerived instanceof Derived1: +>someDerived instanceof Derived1 : boolean +>someDerived : Derived1 | Derived2 +>Derived1 : typeof Derived1 + + someDerived.d +>someDerived.d : string +>someDerived : Derived1 +>d : string + + // fallthrough + case someDerived instanceof Derived2: +>someDerived instanceof Derived2 : boolean +>someDerived : Derived1 | Derived2 +>Derived2 : typeof Derived2 + + someDerived.d +>someDerived.d : string +>someDerived : Derived1 | Derived2 +>d : string + + break + default: + const never: never = someDerived; +>never : never +>someDerived : never + } + + switch (true) { +>true : true + + default: + const never: never = someDerived; +>never : never +>someDerived : never + + case someDerived instanceof Derived1: +>someDerived instanceof Derived1 : boolean +>someDerived : Derived1 | Derived2 +>Derived1 : typeof Derived1 + + someDerived.d; +>someDerived.d : string +>someDerived : Derived1 +>d : string + + someDerived.basey; +>someDerived.basey : string +>someDerived : Derived1 +>basey : string + + break + case someDerived instanceof Derived2: +>someDerived instanceof Derived2 : boolean +>someDerived : Derived1 | Derived2 +>Derived2 : typeof Derived2 + + someDerived.d; +>someDerived.d : string +>someDerived : Derived2 +>d : string + + someDerived.other; +>someDerived.other : string +>someDerived : Derived2 +>other : string + } + + switch (true) { +>true : true + + case someDerived instanceof Derived1: +>someDerived instanceof Derived1 : boolean +>someDerived : Derived1 | Derived2 +>Derived1 : typeof Derived1 + + someDerived.d; +>someDerived.d : string +>someDerived : Derived1 +>d : string + + someDerived.basey; +>someDerived.basey : string +>someDerived : Derived1 +>basey : string + + break + default: + const never: never = someDerived; +>never : never +>someDerived : never + + case someDerived instanceof Derived2: +>someDerived instanceof Derived2 : boolean +>someDerived : Derived1 | Derived2 +>Derived2 : typeof Derived2 + + someDerived.d; +>someDerived.d : string +>someDerived : Derived2 +>d : string + + someDerived.other; +>someDerived.other : string +>someDerived : Derived2 +>other : string + } + + switch (true) { +>true : true + + case someDerived instanceof Derived1: +>someDerived instanceof Derived1 : boolean +>someDerived : Derived1 | Derived2 +>Derived1 : typeof Derived1 + + someDerived.d; +>someDerived.d : string +>someDerived : Derived1 +>d : string + + someDerived.basey; +>someDerived.basey : string +>someDerived : Derived1 +>basey : string + + break + case someDerived instanceof Derived2: +>someDerived instanceof Derived2 : boolean +>someDerived : Derived1 | Derived2 +>Derived2 : typeof Derived2 + + someDerived.d; +>someDerived.d : string +>someDerived : Derived2 +>d : string + + someDerived.other; +>someDerived.other : string +>someDerived : Derived2 +>other : string + + default: + someDerived.d; +>someDerived.d : string +>someDerived : Derived2 +>d : string + + someDerived.other; +>someDerived.other : string +>someDerived : Derived2 +>other : string + + const never: never = someDerived; +>never : never +>someDerived : Derived2 + } + +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue8.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue8.symbols new file mode 100644 index 00000000000..ec14234e62b --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue8.symbols @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue8.ts] //// + +=== narrowByClauseExpressionInSwitchTrue8.ts === +function foo(cond1: boolean, cond2: boolean) { +>foo : Symbol(foo, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 0)) +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 13)) +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 28)) + + switch (true) { + case cond1: +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 13)) + + cond1; // Should be true +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 13)) + + // ^? + cond2; // Should be boolean +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 28)) + + // ^? + break; + + case cond2: +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 28)) + + cond1; // Should be false? +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 13)) + + // ^? + cond2; // Should be true +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 28)) + + // ^? + break; + + default: + cond1; // Should be false? +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 13)) + + // ^? + cond2; // Should be false? +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 28)) + + // ^? + break; + } + + cond1; // Should be boolean +>cond1 : Symbol(cond1, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 13)) + + // ^? + cond2; // Should be boolean +>cond2 : Symbol(cond2, Decl(narrowByClauseExpressionInSwitchTrue8.ts, 0, 28)) + + // ^? +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue8.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue8.types new file mode 100644 index 00000000000..45230dc5e12 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue8.types @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue8.ts] //// + +=== narrowByClauseExpressionInSwitchTrue8.ts === +function foo(cond1: boolean, cond2: boolean) { +>foo : (cond1: boolean, cond2: boolean) => void +>cond1 : boolean +>cond2 : boolean + + switch (true) { +>true : true + + case cond1: +>cond1 : boolean + + cond1; // Should be true +>cond1 : true + + // ^? + cond2; // Should be boolean +>cond2 : boolean + + // ^? + break; + + case cond2: +>cond2 : boolean + + cond1; // Should be false? +>cond1 : false + + // ^? + cond2; // Should be true +>cond2 : true + + // ^? + break; + + default: + cond1; // Should be false? +>cond1 : false + + // ^? + cond2; // Should be false? +>cond2 : false + + // ^? + break; + } + + cond1; // Should be boolean +>cond1 : boolean + + // ^? + cond2; // Should be boolean +>cond2 : boolean + + // ^? +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue9.symbols b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue9.symbols new file mode 100644 index 00000000000..1cbdfc55b27 --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue9.symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue9.ts] //// + +=== narrowByClauseExpressionInSwitchTrue9.ts === +interface IProps { +>IProps : Symbol(IProps, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 0, 0)) + + one: boolean; +>one : Symbol(IProps.one, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 0, 18)) +} + +class Foo { +>Foo : Symbol(Foo, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 2, 1)) + + mine: string = ""; +>mine : Symbol(Foo.mine, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 4, 11)) + + myMethod(x: IProps) { +>myMethod : Symbol(Foo.myMethod, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 5, 22)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 7, 13)) +>IProps : Symbol(IProps, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 0, 0)) + + const { one } = x; +>one : Symbol(one, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 8, 15)) +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 7, 13)) + + switch (true) { + case one: +>one : Symbol(one, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 8, 15)) + + break; + default: + let x = this.mine; +>x : Symbol(x, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 13, 19)) +>this.mine : Symbol(Foo.mine, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 4, 11)) +>this : Symbol(Foo, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 2, 1)) +>mine : Symbol(Foo.mine, Decl(narrowByClauseExpressionInSwitchTrue9.ts, 4, 11)) + } + } +} + diff --git a/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue9.types b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue9.types new file mode 100644 index 00000000000..75557462a5b --- /dev/null +++ b/tests/baselines/reference/narrowByClauseExpressionInSwitchTrue9.types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/narrowByClauseExpressionInSwitchTrue9.ts] //// + +=== narrowByClauseExpressionInSwitchTrue9.ts === +interface IProps { + one: boolean; +>one : boolean +} + +class Foo { +>Foo : Foo + + mine: string = ""; +>mine : string +>"" : "" + + myMethod(x: IProps) { +>myMethod : (x: IProps) => void +>x : IProps + + const { one } = x; +>one : boolean +>x : IProps + + switch (true) { +>true : true + + case one: +>one : boolean + + break; + default: + let x = this.mine; +>x : string +>this.mine : string +>this : this +>mine : string + } + } +} + diff --git a/tests/baselines/reference/narrowByParenthesizedSwitchExpression.symbols b/tests/baselines/reference/narrowByParenthesizedSwitchExpression.symbols new file mode 100644 index 00000000000..4bcf3c49d16 --- /dev/null +++ b/tests/baselines/reference/narrowByParenthesizedSwitchExpression.symbols @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/narrowByParenthesizedSwitchExpression.ts] //// + +=== narrowByParenthesizedSwitchExpression.ts === +interface Base { +>Base : Symbol(Base, Decl(narrowByParenthesizedSwitchExpression.ts, 0, 0)) + + type: "foo" | "bar"; +>type : Symbol(Base.type, Decl(narrowByParenthesizedSwitchExpression.ts, 0, 16)) +} + +interface Foo extends Base { +>Foo : Symbol(Foo, Decl(narrowByParenthesizedSwitchExpression.ts, 2, 1)) +>Base : Symbol(Base, Decl(narrowByParenthesizedSwitchExpression.ts, 0, 0)) + + type: "foo"; +>type : Symbol(Foo.type, Decl(narrowByParenthesizedSwitchExpression.ts, 4, 28)) + + foo: string; +>foo : Symbol(Foo.foo, Decl(narrowByParenthesizedSwitchExpression.ts, 5, 14)) +} + +interface Bar extends Base { +>Bar : Symbol(Bar, Decl(narrowByParenthesizedSwitchExpression.ts, 7, 1)) +>Base : Symbol(Base, Decl(narrowByParenthesizedSwitchExpression.ts, 0, 0)) + + type: "bar"; +>type : Symbol(Bar.type, Decl(narrowByParenthesizedSwitchExpression.ts, 9, 28)) + + bar: number; +>bar : Symbol(Bar.bar, Decl(narrowByParenthesizedSwitchExpression.ts, 10, 14)) +} + +function getV(): Foo | Bar { +>getV : Symbol(getV, Decl(narrowByParenthesizedSwitchExpression.ts, 12, 1)) +>Foo : Symbol(Foo, Decl(narrowByParenthesizedSwitchExpression.ts, 2, 1)) +>Bar : Symbol(Bar, Decl(narrowByParenthesizedSwitchExpression.ts, 7, 1)) + + return null!; +} + +const v = getV(); +>v : Symbol(v, Decl(narrowByParenthesizedSwitchExpression.ts, 18, 5)) +>getV : Symbol(getV, Decl(narrowByParenthesizedSwitchExpression.ts, 12, 1)) + +switch ((v.type)) { +>v.type : Symbol(type, Decl(narrowByParenthesizedSwitchExpression.ts, 4, 28), Decl(narrowByParenthesizedSwitchExpression.ts, 9, 28)) +>v : Symbol(v, Decl(narrowByParenthesizedSwitchExpression.ts, 18, 5)) +>type : Symbol(type, Decl(narrowByParenthesizedSwitchExpression.ts, 4, 28), Decl(narrowByParenthesizedSwitchExpression.ts, 9, 28)) + + case "bar": + v.bar; +>v.bar : Symbol(Bar.bar, Decl(narrowByParenthesizedSwitchExpression.ts, 10, 14)) +>v : Symbol(v, Decl(narrowByParenthesizedSwitchExpression.ts, 18, 5)) +>bar : Symbol(Bar.bar, Decl(narrowByParenthesizedSwitchExpression.ts, 10, 14)) + + break; + + case "foo": + v.foo; +>v.foo : Symbol(Foo.foo, Decl(narrowByParenthesizedSwitchExpression.ts, 5, 14)) +>v : Symbol(v, Decl(narrowByParenthesizedSwitchExpression.ts, 18, 5)) +>foo : Symbol(Foo.foo, Decl(narrowByParenthesizedSwitchExpression.ts, 5, 14)) + + break; +} + diff --git a/tests/baselines/reference/narrowByParenthesizedSwitchExpression.types b/tests/baselines/reference/narrowByParenthesizedSwitchExpression.types new file mode 100644 index 00000000000..6601417a33c --- /dev/null +++ b/tests/baselines/reference/narrowByParenthesizedSwitchExpression.types @@ -0,0 +1,63 @@ +//// [tests/cases/compiler/narrowByParenthesizedSwitchExpression.ts] //// + +=== narrowByParenthesizedSwitchExpression.ts === +interface Base { + type: "foo" | "bar"; +>type : "foo" | "bar" +} + +interface Foo extends Base { + type: "foo"; +>type : "foo" + + foo: string; +>foo : string +} + +interface Bar extends Base { + type: "bar"; +>type : "bar" + + bar: number; +>bar : number +} + +function getV(): Foo | Bar { +>getV : () => Foo | Bar + + return null!; +>null! : never +} + +const v = getV(); +>v : Foo | Bar +>getV() : Foo | Bar +>getV : () => Foo | Bar + +switch ((v.type)) { +>(v.type) : "foo" | "bar" +>v.type : "foo" | "bar" +>v : Foo | Bar +>type : "foo" | "bar" + + case "bar": +>"bar" : "bar" + + v.bar; +>v.bar : number +>v : Bar +>bar : number + + break; + + case "foo": +>"foo" : "foo" + + v.foo; +>v.foo : string +>v : Foo +>foo : string + + break; +} + diff --git a/tests/baselines/reference/narrowingUnionToUnion.js b/tests/baselines/reference/narrowingUnionToUnion.js index e623d346c0b..efe6819d094 100644 --- a/tests/baselines/reference/narrowingUnionToUnion.js +++ b/tests/baselines/reference/narrowingUnionToUnion.js @@ -226,6 +226,43 @@ declare const workingAgain: Record | undefined | unknown; isMyDiscriminatedUnion(working) && working.type === 'A' && working.aProp; isMyDiscriminatedUnion(broken) && broken.type === 'A' && broken.aProp; isMyDiscriminatedUnion(workingAgain) && workingAgain.type === 'A' && workingAgain.aProp; + +// Repro from #56144 + +type Union = + | { type: 'a'; variant: 1 } + | { type: 'a'; variant: 2 } + | { type: 'b' }; + +function example1(value: Union): { type: 'a'; variant: 2 } | null { + if (value.type !== 'a') { + return null; + } + if (value.variant === 1) { + return null; + } + return value; +} + +function example2(value: Union): { type: 'a'; variant: 2 } | null { + if (value.type !== 'a') { + return null; + } + if (value.type === 'a' && value.variant === 1) { + return null; + } + return value; +} + +function example3(value: Union): { type: 'a'; variant: 2 } | null { + if (value.type !== 'a') { + return null; + } + if (value.type && value.variant === 1) { + return null; + } + return value; +} //// [narrowingUnionToUnion.js] @@ -387,6 +424,33 @@ function f1x(obj) { isMyDiscriminatedUnion(working) && working.type === 'A' && working.aProp; isMyDiscriminatedUnion(broken) && broken.type === 'A' && broken.aProp; isMyDiscriminatedUnion(workingAgain) && workingAgain.type === 'A' && workingAgain.aProp; +function example1(value) { + if (value.type !== 'a') { + return null; + } + if (value.variant === 1) { + return null; + } + return value; +} +function example2(value) { + if (value.type !== 'a') { + return null; + } + if (value.type === 'a' && value.variant === 1) { + return null; + } + return value; +} +function example3(value) { + if (value.type !== 'a') { + return null; + } + if (value.type && value.variant === 1) { + return null; + } + return value; +} //// [narrowingUnionToUnion.d.ts] @@ -451,3 +515,24 @@ declare function isMyDiscriminatedUnion(item: unknown): item is MyDiscriminatedU declare const working: unknown; declare const broken: Record | undefined; declare const workingAgain: Record | undefined | unknown; +type Union = { + type: 'a'; + variant: 1; +} | { + type: 'a'; + variant: 2; +} | { + type: 'b'; +}; +declare function example1(value: Union): { + type: 'a'; + variant: 2; +} | null; +declare function example2(value: Union): { + type: 'a'; + variant: 2; +} | null; +declare function example3(value: Union): { + type: 'a'; + variant: 2; +} | null; diff --git a/tests/baselines/reference/narrowingUnionToUnion.symbols b/tests/baselines/reference/narrowingUnionToUnion.symbols index e6ad800b8fe..3de33f45c90 100644 --- a/tests/baselines/reference/narrowingUnionToUnion.symbols +++ b/tests/baselines/reference/narrowingUnionToUnion.symbols @@ -538,3 +538,100 @@ isMyDiscriminatedUnion(workingAgain) && workingAgain.type === 'A' && workingAgai >workingAgain : Symbol(workingAgain, Decl(narrowingUnionToUnion.ts, 220, 13)) >aProp : Symbol(aProp, Decl(narrowingUnionToUnion.ts, 214, 40)) +// Repro from #56144 + +type Union = +>Union : Symbol(Union, Decl(narrowingUnionToUnion.ts, 224, 88)) + + | { type: 'a'; variant: 1 } +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 229, 18)) + + | { type: 'a'; variant: 2 } +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 230, 7)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 230, 18)) + + | { type: 'b' }; +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 231, 7)) + +function example1(value: Union): { type: 'a'; variant: 2 } | null { +>example1 : Symbol(example1, Decl(narrowingUnionToUnion.ts, 231, 20)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 233, 18)) +>Union : Symbol(Union, Decl(narrowingUnionToUnion.ts, 224, 88)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 233, 34)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 233, 45)) + + if (value.type !== 'a') { +>value.type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7), Decl(narrowingUnionToUnion.ts, 231, 7)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 233, 18)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7), Decl(narrowingUnionToUnion.ts, 231, 7)) + + return null; + } + if (value.variant === 1) { +>value.variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 229, 18), Decl(narrowingUnionToUnion.ts, 230, 18)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 233, 18)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 229, 18), Decl(narrowingUnionToUnion.ts, 230, 18)) + + return null; + } + return value; +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 233, 18)) +} + +function example2(value: Union): { type: 'a'; variant: 2 } | null { +>example2 : Symbol(example2, Decl(narrowingUnionToUnion.ts, 241, 1)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 243, 18)) +>Union : Symbol(Union, Decl(narrowingUnionToUnion.ts, 224, 88)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 243, 34)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 243, 45)) + + if (value.type !== 'a') { +>value.type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7), Decl(narrowingUnionToUnion.ts, 231, 7)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 243, 18)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7), Decl(narrowingUnionToUnion.ts, 231, 7)) + + return null; + } + if (value.type === 'a' && value.variant === 1) { +>value.type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 243, 18)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7)) +>value.variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 229, 18), Decl(narrowingUnionToUnion.ts, 230, 18)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 243, 18)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 229, 18), Decl(narrowingUnionToUnion.ts, 230, 18)) + + return null; + } + return value; +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 243, 18)) +} + +function example3(value: Union): { type: 'a'; variant: 2 } | null { +>example3 : Symbol(example3, Decl(narrowingUnionToUnion.ts, 251, 1)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 253, 18)) +>Union : Symbol(Union, Decl(narrowingUnionToUnion.ts, 224, 88)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 253, 34)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 253, 45)) + + if (value.type !== 'a') { +>value.type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7), Decl(narrowingUnionToUnion.ts, 231, 7)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 253, 18)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7), Decl(narrowingUnionToUnion.ts, 231, 7)) + + return null; + } + if (value.type && value.variant === 1) { +>value.type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 253, 18)) +>type : Symbol(type, Decl(narrowingUnionToUnion.ts, 229, 7), Decl(narrowingUnionToUnion.ts, 230, 7)) +>value.variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 229, 18), Decl(narrowingUnionToUnion.ts, 230, 18)) +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 253, 18)) +>variant : Symbol(variant, Decl(narrowingUnionToUnion.ts, 229, 18), Decl(narrowingUnionToUnion.ts, 230, 18)) + + return null; + } + return value; +>value : Symbol(value, Decl(narrowingUnionToUnion.ts, 253, 18)) +} + diff --git a/tests/baselines/reference/narrowingUnionToUnion.types b/tests/baselines/reference/narrowingUnionToUnion.types index 0371411ea74..07ecb01d822 100644 --- a/tests/baselines/reference/narrowingUnionToUnion.types +++ b/tests/baselines/reference/narrowingUnionToUnion.types @@ -574,3 +574,113 @@ isMyDiscriminatedUnion(workingAgain) && workingAgain.type === 'A' && workingAgai >workingAgain : { type: "A"; aProp: number; } >aProp : number +// Repro from #56144 + +type Union = +>Union : { type: 'a'; variant: 1; } | { type: 'a'; variant: 2; } | { type: 'b'; } + + | { type: 'a'; variant: 1 } +>type : "a" +>variant : 1 + + | { type: 'a'; variant: 2 } +>type : "a" +>variant : 2 + + | { type: 'b' }; +>type : "b" + +function example1(value: Union): { type: 'a'; variant: 2 } | null { +>example1 : (value: Union) => { type: 'a'; variant: 2;} | null +>value : Union +>type : "a" +>variant : 2 + + if (value.type !== 'a') { +>value.type !== 'a' : boolean +>value.type : "a" | "b" +>value : Union +>type : "a" | "b" +>'a' : "a" + + return null; + } + if (value.variant === 1) { +>value.variant === 1 : boolean +>value.variant : 1 | 2 +>value : { type: "a"; variant: 1; } | { type: "a"; variant: 2; } +>variant : 1 | 2 +>1 : 1 + + return null; + } + return value; +>value : { type: "a"; variant: 2; } +} + +function example2(value: Union): { type: 'a'; variant: 2 } | null { +>example2 : (value: Union) => { type: 'a'; variant: 2;} | null +>value : Union +>type : "a" +>variant : 2 + + if (value.type !== 'a') { +>value.type !== 'a' : boolean +>value.type : "a" | "b" +>value : Union +>type : "a" | "b" +>'a' : "a" + + return null; + } + if (value.type === 'a' && value.variant === 1) { +>value.type === 'a' && value.variant === 1 : boolean +>value.type === 'a' : boolean +>value.type : "a" +>value : { type: "a"; variant: 1; } | { type: "a"; variant: 2; } +>type : "a" +>'a' : "a" +>value.variant === 1 : boolean +>value.variant : 1 | 2 +>value : { type: "a"; variant: 1; } | { type: "a"; variant: 2; } +>variant : 1 | 2 +>1 : 1 + + return null; + } + return value; +>value : { type: "a"; variant: 2; } +} + +function example3(value: Union): { type: 'a'; variant: 2 } | null { +>example3 : (value: Union) => { type: 'a'; variant: 2;} | null +>value : Union +>type : "a" +>variant : 2 + + if (value.type !== 'a') { +>value.type !== 'a' : boolean +>value.type : "a" | "b" +>value : Union +>type : "a" | "b" +>'a' : "a" + + return null; + } + if (value.type && value.variant === 1) { +>value.type && value.variant === 1 : boolean +>value.type : "a" +>value : { type: "a"; variant: 1; } | { type: "a"; variant: 2; } +>type : "a" +>value.variant === 1 : boolean +>value.variant : 1 | 2 +>value : { type: "a"; variant: 1; } | { type: "a"; variant: 2; } +>variant : 1 | 2 +>1 : 1 + + return null; + } + return value; +>value : { type: "a"; variant: 2; } +} + diff --git a/tests/baselines/reference/nestedSuperCallEmit.js b/tests/baselines/reference/nestedSuperCallEmit.js new file mode 100644 index 00000000000..705323a4db1 --- /dev/null +++ b/tests/baselines/reference/nestedSuperCallEmit.js @@ -0,0 +1,74 @@ +//// [tests/cases/compiler/nestedSuperCallEmit.ts] //// + +//// [nestedSuperCallEmit.ts] +// https://github.com/microsoft/TypeScript/issues/55646 +abstract class Foo { + constructor(shouldThrow: boolean) { + if (shouldThrow) { + throw new Error('Please retry'); + } else { + console.log('OK'); + } + } +} + +class Bar extends Foo { + constructor() { + try { + super(true); + } catch (e: unknown) { + console.log('Error: ' + (e as Error).message); + // retry + super(false); + } + } +} + +new Bar(); + + +//// [nestedSuperCallEmit.js] +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +// https://github.com/microsoft/TypeScript/issues/55646 +var Foo = /** @class */ (function () { + function Foo(shouldThrow) { + if (shouldThrow) { + throw new Error('Please retry'); + } + else { + console.log('OK'); + } + } + return Foo; +}()); +var Bar = /** @class */ (function (_super) { + __extends(Bar, _super); + function Bar() { + var _this = this; + try { + _this = _super.call(this, true) || this; + } + catch (e) { + console.log('Error: ' + e.message); + // retry + _this = _super.call(this, false) || this; + } + return _this; + } + return Bar; +}(Foo)); +new Bar(); diff --git a/tests/baselines/reference/noImplicitReturnsExclusions.errors.txt b/tests/baselines/reference/noImplicitReturnsExclusions.errors.txt index d6e2b800cd1..179d92dce87 100644 --- a/tests/baselines/reference/noImplicitReturnsExclusions.errors.txt +++ b/tests/baselines/reference/noImplicitReturnsExclusions.errors.txt @@ -4,9 +4,10 @@ noImplicitReturnsExclusions.ts(40,10): error TS7030: Not all code paths return a noImplicitReturnsExclusions.ts(44,10): error TS7030: Not all code paths return a value. noImplicitReturnsExclusions.ts(48,10): error TS7030: Not all code paths return a value. noImplicitReturnsExclusions.ts(53,10): error TS7030: Not all code paths return a value. +noImplicitReturnsExclusions.ts(88,53): error TS7030: Not all code paths return a value. -==== noImplicitReturnsExclusions.ts (6 errors) ==== +==== noImplicitReturnsExclusions.ts (7 errors) ==== // Functions with a return type of any, undefined, or a type that includes void are excluded // from --noImplicitReturns checks. @@ -75,4 +76,42 @@ noImplicitReturnsExclusions.ts(53,10): error TS7030: Not all code paths return a if (b) return 42; if (b) return; } + + declare class HistoryItem { + input: { + location: { + uri: string; + }; + }; + } + + interface Thenable { + then( + onfulfilled?: (value: T) => TResult | Thenable, + onrejected?: (reason: any) => TResult | Thenable + ): Thenable; + then( + onfulfilled?: (value: T) => TResult | Thenable, + onrejected?: (reason: any) => void + ): Thenable; + } + + export declare function executeCommand( + command: string, + ...rest: any[] + ): Thenable; + + export declare function registerCommand( + command: string, + callback: (...args: any[]) => any, + thisArg?: any + ): void; + + registerCommand("_references-view.showHistoryItem", async (item) => { // Error, contextual return type of Promise + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS7030: Not all code paths return a value. + if (item instanceof HistoryItem) { + return executeCommand("vscode.open", item.input.location.uri); + } + }); \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitReturnsExclusions.symbols b/tests/baselines/reference/noImplicitReturnsExclusions.symbols index 8be41c53188..be91e6a0817 100644 --- a/tests/baselines/reference/noImplicitReturnsExclusions.symbols +++ b/tests/baselines/reference/noImplicitReturnsExclusions.symbols @@ -124,3 +124,116 @@ function f16(b: boolean) { // Error >b : Symbol(b, Decl(noImplicitReturnsExclusions.ts, 52, 13)) } +declare class HistoryItem { +>HistoryItem : Symbol(HistoryItem, Decl(noImplicitReturnsExclusions.ts, 55, 1)) + + input: { +>input : Symbol(HistoryItem.input, Decl(noImplicitReturnsExclusions.ts, 57, 27)) + + location: { +>location : Symbol(location, Decl(noImplicitReturnsExclusions.ts, 58, 10)) + + uri: string; +>uri : Symbol(uri, Decl(noImplicitReturnsExclusions.ts, 59, 15)) + + }; + }; +} + +interface Thenable { +>Thenable : Symbol(Thenable, Decl(noImplicitReturnsExclusions.ts, 63, 1)) +>T : Symbol(T, Decl(noImplicitReturnsExclusions.ts, 65, 19)) + + then( +>then : Symbol(Thenable.then, Decl(noImplicitReturnsExclusions.ts, 65, 23), Decl(noImplicitReturnsExclusions.ts, 69, 23)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 66, 7)) + + onfulfilled?: (value: T) => TResult | Thenable, +>onfulfilled : Symbol(onfulfilled, Decl(noImplicitReturnsExclusions.ts, 66, 16)) +>value : Symbol(value, Decl(noImplicitReturnsExclusions.ts, 67, 19)) +>T : Symbol(T, Decl(noImplicitReturnsExclusions.ts, 65, 19)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 66, 7)) +>Thenable : Symbol(Thenable, Decl(noImplicitReturnsExclusions.ts, 63, 1)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 66, 7)) + + onrejected?: (reason: any) => TResult | Thenable +>onrejected : Symbol(onrejected, Decl(noImplicitReturnsExclusions.ts, 67, 60)) +>reason : Symbol(reason, Decl(noImplicitReturnsExclusions.ts, 68, 18)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 66, 7)) +>Thenable : Symbol(Thenable, Decl(noImplicitReturnsExclusions.ts, 63, 1)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 66, 7)) + + ): Thenable; +>Thenable : Symbol(Thenable, Decl(noImplicitReturnsExclusions.ts, 63, 1)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 66, 7)) + + then( +>then : Symbol(Thenable.then, Decl(noImplicitReturnsExclusions.ts, 65, 23), Decl(noImplicitReturnsExclusions.ts, 69, 23)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 70, 7)) + + onfulfilled?: (value: T) => TResult | Thenable, +>onfulfilled : Symbol(onfulfilled, Decl(noImplicitReturnsExclusions.ts, 70, 16)) +>value : Symbol(value, Decl(noImplicitReturnsExclusions.ts, 71, 19)) +>T : Symbol(T, Decl(noImplicitReturnsExclusions.ts, 65, 19)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 70, 7)) +>Thenable : Symbol(Thenable, Decl(noImplicitReturnsExclusions.ts, 63, 1)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 70, 7)) + + onrejected?: (reason: any) => void +>onrejected : Symbol(onrejected, Decl(noImplicitReturnsExclusions.ts, 71, 60)) +>reason : Symbol(reason, Decl(noImplicitReturnsExclusions.ts, 72, 18)) + + ): Thenable; +>Thenable : Symbol(Thenable, Decl(noImplicitReturnsExclusions.ts, 63, 1)) +>TResult : Symbol(TResult, Decl(noImplicitReturnsExclusions.ts, 70, 7)) +} + +export declare function executeCommand( +>executeCommand : Symbol(executeCommand, Decl(noImplicitReturnsExclusions.ts, 74, 1)) +>T : Symbol(T, Decl(noImplicitReturnsExclusions.ts, 76, 39)) + + command: string, +>command : Symbol(command, Decl(noImplicitReturnsExclusions.ts, 76, 52)) + + ...rest: any[] +>rest : Symbol(rest, Decl(noImplicitReturnsExclusions.ts, 77, 18)) + +): Thenable; +>Thenable : Symbol(Thenable, Decl(noImplicitReturnsExclusions.ts, 63, 1)) +>T : Symbol(T, Decl(noImplicitReturnsExclusions.ts, 76, 39)) + +export declare function registerCommand( +>registerCommand : Symbol(registerCommand, Decl(noImplicitReturnsExclusions.ts, 79, 15)) + + command: string, +>command : Symbol(command, Decl(noImplicitReturnsExclusions.ts, 81, 40)) + + callback: (...args: any[]) => any, +>callback : Symbol(callback, Decl(noImplicitReturnsExclusions.ts, 82, 18)) +>args : Symbol(args, Decl(noImplicitReturnsExclusions.ts, 83, 13)) + + thisArg?: any +>thisArg : Symbol(thisArg, Decl(noImplicitReturnsExclusions.ts, 83, 36)) + +): void; + +registerCommand("_references-view.showHistoryItem", async (item) => { // Error, contextual return type of Promise +>registerCommand : Symbol(registerCommand, Decl(noImplicitReturnsExclusions.ts, 79, 15)) +>item : Symbol(item, Decl(noImplicitReturnsExclusions.ts, 87, 59)) + + if (item instanceof HistoryItem) { +>item : Symbol(item, Decl(noImplicitReturnsExclusions.ts, 87, 59)) +>HistoryItem : Symbol(HistoryItem, Decl(noImplicitReturnsExclusions.ts, 55, 1)) + + return executeCommand("vscode.open", item.input.location.uri); +>executeCommand : Symbol(executeCommand, Decl(noImplicitReturnsExclusions.ts, 74, 1)) +>item.input.location.uri : Symbol(uri, Decl(noImplicitReturnsExclusions.ts, 59, 15)) +>item.input.location : Symbol(location, Decl(noImplicitReturnsExclusions.ts, 58, 10)) +>item.input : Symbol(HistoryItem.input, Decl(noImplicitReturnsExclusions.ts, 57, 27)) +>item : Symbol(item, Decl(noImplicitReturnsExclusions.ts, 87, 59)) +>input : Symbol(HistoryItem.input, Decl(noImplicitReturnsExclusions.ts, 57, 27)) +>location : Symbol(location, Decl(noImplicitReturnsExclusions.ts, 58, 10)) +>uri : Symbol(uri, Decl(noImplicitReturnsExclusions.ts, 59, 15)) + } +}); + diff --git a/tests/baselines/reference/noImplicitReturnsExclusions.types b/tests/baselines/reference/noImplicitReturnsExclusions.types index 3b81060b324..547287b962e 100644 --- a/tests/baselines/reference/noImplicitReturnsExclusions.types +++ b/tests/baselines/reference/noImplicitReturnsExclusions.types @@ -129,3 +129,98 @@ function f16(b: boolean) { // Error >b : false } +declare class HistoryItem { +>HistoryItem : HistoryItem + + input: { +>input : { location: { uri: string;}; } + + location: { +>location : { uri: string; } + + uri: string; +>uri : string + + }; + }; +} + +interface Thenable { + then( +>then : { (onfulfilled?: ((value: T) => TResult | Thenable) | undefined, onrejected?: ((reason: any) => TResult | Thenable) | undefined): Thenable; (onfulfilled?: ((value: T) => TResult | Thenable) | undefined, onrejected?: ((reason: any) => void) | undefined): Thenable; } + + onfulfilled?: (value: T) => TResult | Thenable, +>onfulfilled : ((value: T) => TResult | Thenable) | undefined +>value : T + + onrejected?: (reason: any) => TResult | Thenable +>onrejected : ((reason: any) => TResult | Thenable) | undefined +>reason : any + + ): Thenable; + then( +>then : { (onfulfilled?: ((value: T) => TResult | Thenable) | undefined, onrejected?: ((reason: any) => TResult | Thenable) | undefined): Thenable; (onfulfilled?: ((value: T) => TResult | Thenable) | undefined, onrejected?: ((reason: any) => void) | undefined): Thenable; } + + onfulfilled?: (value: T) => TResult | Thenable, +>onfulfilled : ((value: T) => TResult | Thenable) | undefined +>value : T + + onrejected?: (reason: any) => void +>onrejected : ((reason: any) => void) | undefined +>reason : any + + ): Thenable; +} + +export declare function executeCommand( +>executeCommand : (command: string, ...rest: any[]) => Thenable + + command: string, +>command : string + + ...rest: any[] +>rest : any[] + +): Thenable; + +export declare function registerCommand( +>registerCommand : (command: string, callback: (...args: any[]) => any, thisArg?: any) => void + + command: string, +>command : string + + callback: (...args: any[]) => any, +>callback : (...args: any[]) => any +>args : any[] + + thisArg?: any +>thisArg : any + +): void; + +registerCommand("_references-view.showHistoryItem", async (item) => { // Error, contextual return type of Promise +>registerCommand("_references-view.showHistoryItem", async (item) => { // Error, contextual return type of Promise if (item instanceof HistoryItem) { return executeCommand("vscode.open", item.input.location.uri); }}) : void +>registerCommand : (command: string, callback: (...args: any[]) => any, thisArg?: any) => void +>"_references-view.showHistoryItem" : "_references-view.showHistoryItem" +>async (item) => { // Error, contextual return type of Promise if (item instanceof HistoryItem) { return executeCommand("vscode.open", item.input.location.uri); }} : (item: any) => Promise +>item : any + + if (item instanceof HistoryItem) { +>item instanceof HistoryItem : boolean +>item : any +>HistoryItem : typeof HistoryItem + + return executeCommand("vscode.open", item.input.location.uri); +>executeCommand("vscode.open", item.input.location.uri) : Thenable +>executeCommand : (command: string, ...rest: any[]) => Thenable +>"vscode.open" : "vscode.open" +>item.input.location.uri : string +>item.input.location : { uri: string; } +>item.input : { location: { uri: string; }; } +>item : HistoryItem +>input : { location: { uri: string; }; } +>location : { uri: string; } +>uri : string + } +}); + diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=node16).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=node16).js index 7c584a82861..0d0046de24d 100644 --- a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=node16).js +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=node16).js @@ -40,6 +40,7 @@ export * as fs from "fs"; //// [index.d.ts] +/// export * from "fs"; export * as fs from "fs"; //// [index.d.ts] diff --git a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).js b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).js index 7c584a82861..0d0046de24d 100644 --- a/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).js +++ b/tests/baselines/reference/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).js @@ -40,6 +40,7 @@ export * as fs from "fs"; //// [index.d.ts] +/// export * from "fs"; export * as fs from "fs"; //// [index.d.ts] diff --git a/tests/baselines/reference/nodeModulesImportAssignments(module=node16).js b/tests/baselines/reference/nodeModulesImportAssignments(module=node16).js index e56ab00bb87..779a5236c5d 100644 --- a/tests/baselines/reference/nodeModulesImportAssignments(module=node16).js +++ b/tests/baselines/reference/nodeModulesImportAssignments(module=node16).js @@ -58,8 +58,11 @@ export { fs2 }; //// [index.d.ts] +/// export import fs2 = require("fs"); //// [index.d.ts] +/// export import fs2 = require("fs"); //// [file.d.ts] +/// export import fs2 = require("fs"); diff --git a/tests/baselines/reference/nodeModulesImportAssignments(module=nodenext).js b/tests/baselines/reference/nodeModulesImportAssignments(module=nodenext).js index e56ab00bb87..779a5236c5d 100644 --- a/tests/baselines/reference/nodeModulesImportAssignments(module=nodenext).js +++ b/tests/baselines/reference/nodeModulesImportAssignments(module=nodenext).js @@ -58,8 +58,11 @@ export { fs2 }; //// [index.d.ts] +/// export import fs2 = require("fs"); //// [index.d.ts] +/// export import fs2 = require("fs"); //// [file.d.ts] +/// export import fs2 = require("fs"); diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=node16).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=node16).js index e8e9b78464c..53eeb9bd5a7 100644 --- a/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=node16).js +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=node16).js @@ -40,8 +40,10 @@ export * as fs from "fs"; //// [index.d.ts] +/// export * from "fs"; export * as fs from "fs"; //// [index.d.ts] +/// export * from "fs"; export * as fs from "fs"; diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=nodenext).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=nodenext).js index e8e9b78464c..53eeb9bd5a7 100644 --- a/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=nodenext).js +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions2(module=nodenext).js @@ -40,8 +40,10 @@ export * as fs from "fs"; //// [index.d.ts] +/// export * from "fs"; export * as fs from "fs"; //// [index.d.ts] +/// export * from "fs"; export * as fs from "fs"; diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).js index 8abf8ba9ada..5f98164aaaa 100644 --- a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).js +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=node16).js @@ -39,6 +39,8 @@ export { default } from "fs"; //// [index.d.ts] +/// export { default } from "fs"; //// [index.d.ts] +/// export { default } from "fs"; diff --git a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).js b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).js index 8abf8ba9ada..5f98164aaaa 100644 --- a/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).js +++ b/tests/baselines/reference/nodeModulesImportHelpersCollisions3(module=nodenext).js @@ -39,6 +39,8 @@ export { default } from "fs"; //// [index.d.ts] +/// export { default } from "fs"; //// [index.d.ts] +/// export { default } from "fs"; diff --git a/tests/baselines/reference/nodeNextPathCompletions.baseline b/tests/baselines/reference/nodeNextPathCompletions.baseline index c6bfcf57017..493195286c2 100644 --- a/tests/baselines/reference/nodeNextPathCompletions.baseline +++ b/tests/baselines/reference/nodeNextPathCompletions.baseline @@ -1,3 +1,4 @@ +// === Completions === === /src/foo.ts === // import { fooFromIndex } from ""; // ^ diff --git a/tests/baselines/reference/nonJsDeclarationFilePathCompletions.baseline b/tests/baselines/reference/nonJsDeclarationFilePathCompletions.baseline index 70fe83fefe5..b7debbb67a4 100644 --- a/tests/baselines/reference/nonJsDeclarationFilePathCompletions.baseline +++ b/tests/baselines/reference/nonJsDeclarationFilePathCompletions.baseline @@ -1,3 +1,4 @@ +// === Completions === === /project/usage.ts === // import { HtmlModuleThing } from "./"; // ^ diff --git a/tests/baselines/reference/objectLiteralErrors.types b/tests/baselines/reference/objectLiteralErrors.types index ad8ecb995ff..28e9f4ff1aa 100644 --- a/tests/baselines/reference/objectLiteralErrors.types +++ b/tests/baselines/reference/objectLiteralErrors.types @@ -297,8 +297,8 @@ var f17 = { a: 0, get b() { return 1; }, get a() { return 0; } }; // Get and set accessor with mismatched type annotations (only g2 is an error after #43662 implemented) var g1 = { get a(): number { return 4; }, set a(n: string) { } }; ->g1 : { a: number; } ->{ get a(): number { return 4; }, set a(n: string) { } } : { a: number; } +>g1 : { get a(): number; set a(n: string); } +>{ get a(): number { return 4; }, set a(n: string) { } } : { get a(): number; set a(n: string); } >a : number >4 : 4 >a : number @@ -313,8 +313,8 @@ var g2 = { get a() { return 4; }, set a(n: string) { } }; >n : string var g3 = { get a(): number { return undefined; }, set a(n: string) { } }; ->g3 : { a: number; } ->{ get a(): number { return undefined; }, set a(n: string) { } } : { a: number; } +>g3 : { get a(): number; set a(n: string); } +>{ get a(): number { return undefined; }, set a(n: string) { } } : { get a(): number; set a(n: string); } >a : number >undefined : undefined >a : number diff --git a/tests/baselines/reference/objectRestSpread.js b/tests/baselines/reference/objectRestSpread.js index bd5561390e1..5908b8d2d41 100644 --- a/tests/baselines/reference/objectRestSpread.js +++ b/tests/baselines/reference/objectRestSpread.js @@ -40,8 +40,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.symbols b/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.symbols new file mode 100644 index 00000000000..0bc8cf09402 --- /dev/null +++ b/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/parenthesizedJSDocCastAtReturnStatement.ts] //// + +=== index.js === +/** @type {Map>} */ +const cache = new Map() +>cache : Symbol(cache, Decl(index.js, 1, 5)) +>Map : Symbol(Map, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + +/** + * @param {string} key + * @returns {() => string} + */ +const getStringGetter = (key) => { +>getStringGetter : Symbol(getStringGetter, Decl(index.js, 7, 5)) +>key : Symbol(key, Decl(index.js, 7, 25)) + + return () => { + return /** @type {string} */ (cache.get(key)) +>cache.get : Symbol(Map.get, Decl(lib.es2015.collection.d.ts, --, --)) +>cache : Symbol(cache, Decl(index.js, 1, 5)) +>get : Symbol(Map.get, Decl(lib.es2015.collection.d.ts, --, --)) +>key : Symbol(key, Decl(index.js, 7, 25)) + } +} + diff --git a/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.types b/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.types new file mode 100644 index 00000000000..cc1d5a66f92 --- /dev/null +++ b/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/parenthesizedJSDocCastAtReturnStatement.ts] //// + +=== index.js === +/** @type {Map>} */ +const cache = new Map() +>cache : Map> +>new Map() : Map +>Map : MapConstructor + +/** + * @param {string} key + * @returns {() => string} + */ +const getStringGetter = (key) => { +>getStringGetter : (key: string) => () => string +>(key) => { return () => { return /** @type {string} */ (cache.get(key)) }} : (key: string) => () => string +>key : string + + return () => { +>() => { return /** @type {string} */ (cache.get(key)) } : () => string + + return /** @type {string} */ (cache.get(key)) +>(cache.get(key)) : string +>cache.get(key) : string | Set | undefined +>cache.get : (key: string) => string | Set | undefined +>cache : Map> +>get : (key: string) => string | Set | undefined +>key : string + } +} + diff --git a/tests/baselines/reference/partiallyNamedTuples3.js b/tests/baselines/reference/partiallyNamedTuples3.js new file mode 100644 index 00000000000..36d639391a5 --- /dev/null +++ b/tests/baselines/reference/partiallyNamedTuples3.js @@ -0,0 +1,17 @@ +//// [tests/cases/conformance/types/tuple/named/partiallyNamedTuples3.ts] //// + +//// [partiallyNamedTuples3.ts] +declare const tuple: [number, name: string, boolean, value: number, string]; + +const output = ((...args) => args)(...tuple); + + +//// [partiallyNamedTuples3.js] +"use strict"; +var output = (function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return args; +}).apply(void 0, tuple); diff --git a/tests/baselines/reference/partiallyNamedTuples3.symbols b/tests/baselines/reference/partiallyNamedTuples3.symbols new file mode 100644 index 00000000000..9a73d914ddc --- /dev/null +++ b/tests/baselines/reference/partiallyNamedTuples3.symbols @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/types/tuple/named/partiallyNamedTuples3.ts] //// + +=== partiallyNamedTuples3.ts === +declare const tuple: [number, name: string, boolean, value: number, string]; +>tuple : Symbol(tuple, Decl(partiallyNamedTuples3.ts, 0, 13)) + +const output = ((...args) => args)(...tuple); +>output : Symbol(output, Decl(partiallyNamedTuples3.ts, 2, 5)) +>args : Symbol(args, Decl(partiallyNamedTuples3.ts, 2, 17)) +>args : Symbol(args, Decl(partiallyNamedTuples3.ts, 2, 17)) +>tuple : Symbol(tuple, Decl(partiallyNamedTuples3.ts, 0, 13)) + diff --git a/tests/baselines/reference/partiallyNamedTuples3.types b/tests/baselines/reference/partiallyNamedTuples3.types new file mode 100644 index 00000000000..91da7e460d7 --- /dev/null +++ b/tests/baselines/reference/partiallyNamedTuples3.types @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/types/tuple/named/partiallyNamedTuples3.ts] //// + +=== partiallyNamedTuples3.ts === +declare const tuple: [number, name: string, boolean, value: number, string]; +>tuple : [number, name: string, boolean, value: number, string] + +const output = ((...args) => args)(...tuple); +>output : [number, name: string, boolean, value: number, string] +>((...args) => args)(...tuple) : [number, name: string, boolean, value: number, string] +>((...args) => args) : (args_0: number, name: string, args_2: boolean, value: number, args_4: string) => [number, name: string, boolean, value: number, string] +>(...args) => args : (args_0: number, name: string, args_2: boolean, value: number, args_4: string) => [number, name: string, boolean, value: number, string] +>args : [number, name: string, boolean, value: number, string] +>args : [number, name: string, boolean, value: number, string] +>...tuple : string | number | boolean +>tuple : [number, name: string, boolean, value: number, string] + diff --git a/tests/baselines/reference/privateNamesIncompatibleModifiers.js b/tests/baselines/reference/privateNamesIncompatibleModifiers.js index eb79678bc30..6b6c916a43b 100644 --- a/tests/baselines/reference/privateNamesIncompatibleModifiers.js +++ b/tests/baselines/reference/privateNamesIncompatibleModifiers.js @@ -51,8 +51,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/pushTypeGetTypeOfAlias.errors.txt b/tests/baselines/reference/pushTypeGetTypeOfAlias.errors.txt new file mode 100644 index 00000000000..126aabf4f24 --- /dev/null +++ b/tests/baselines/reference/pushTypeGetTypeOfAlias.errors.txt @@ -0,0 +1,11 @@ +bar.js(2,1): error TS2303: Circular definition of import alias 'blah'. +bar.js(2,24): error TS2339: Property 'someProp' does not exist on type '{ (): void; blah: any; }'. + + +==== bar.js (2 errors) ==== + module.exports = function () {}; + exports.blah = exports.someProp; + ~~~~~~~~~~~~ +!!! error TS2303: Circular definition of import alias 'blah'. + ~~~~~~~~ +!!! error TS2339: Property 'someProp' does not exist on type '{ (): void; blah: any; }'. \ No newline at end of file diff --git a/tests/baselines/reference/pushTypeGetTypeOfAlias.symbols b/tests/baselines/reference/pushTypeGetTypeOfAlias.symbols new file mode 100644 index 00000000000..a535ccabdea --- /dev/null +++ b/tests/baselines/reference/pushTypeGetTypeOfAlias.symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/pushTypeGetTypeOfAlias.ts] //// + +=== bar.js === +module.exports = function () {}; +>module.exports : Symbol(module.exports, Decl(bar.js, 0, 0)) +>module : Symbol(export=, Decl(bar.js, 0, 0)) +>exports : Symbol(export=, Decl(bar.js, 0, 0)) + +exports.blah = exports.someProp; +>exports.blah : Symbol(blah, Decl(bar.js, 0, 32)) +>exports : Symbol(blah, Decl(bar.js, 0, 32)) +>blah : Symbol(blah, Decl(bar.js, 0, 32)) +>exports : Symbol("bar", Decl(bar.js, 0, 0)) + diff --git a/tests/baselines/reference/pushTypeGetTypeOfAlias.types b/tests/baselines/reference/pushTypeGetTypeOfAlias.types new file mode 100644 index 00000000000..3c5be072c65 --- /dev/null +++ b/tests/baselines/reference/pushTypeGetTypeOfAlias.types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/pushTypeGetTypeOfAlias.ts] //// + +=== bar.js === +module.exports = function () {}; +>module.exports = function () {} : { (): void; blah: any; } +>module.exports : { (): void; blah: any; } +>module : { exports: { (): void; blah: any; }; } +>exports : { (): void; blah: any; } +>function () {} : () => void + +exports.blah = exports.someProp; +>exports.blah = exports.someProp : any +>exports.blah : any +>exports : { (): void; blah: any; } +>blah : any +>exports.someProp : any +>exports : { (): void; blah: any; } +>someProp : any + diff --git a/tests/baselines/reference/quickInfoAlias.baseline b/tests/baselines/reference/quickInfoAlias.baseline index 3da8bf54377..88c4a40dc4b 100644 --- a/tests/baselines/reference/quickInfoAlias.baseline +++ b/tests/baselines/reference/quickInfoAlias.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /c.ts === // /** // * Doc 2 diff --git a/tests/baselines/reference/quickInfoAtPropWithAmbientDeclarationInJs.baseline b/tests/baselines/reference/quickInfoAtPropWithAmbientDeclarationInJs.baseline index f54fc1c08a7..cdcb396da4c 100644 --- a/tests/baselines/reference/quickInfoAtPropWithAmbientDeclarationInJs.baseline +++ b/tests/baselines/reference/quickInfoAtPropWithAmbientDeclarationInJs.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.js === // class C { // constructor() { diff --git a/tests/baselines/reference/quickInfoCircularInstantiationExpression.baseline b/tests/baselines/reference/quickInfoCircularInstantiationExpression.baseline index d4d4c097b99..2c190b11c43 100644 --- a/tests/baselines/reference/quickInfoCircularInstantiationExpression.baseline +++ b/tests/baselines/reference/quickInfoCircularInstantiationExpression.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoCircularInstantiationExpression.ts === // declare function foo(t: T): typeof foo; // foo(""); diff --git a/tests/baselines/reference/quickInfoCommentsClass.baseline b/tests/baselines/reference/quickInfoCommentsClass.baseline index 2320404ca1c..70477175c0c 100644 --- a/tests/baselines/reference/quickInfoCommentsClass.baseline +++ b/tests/baselines/reference/quickInfoCommentsClass.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoCommentsClass.ts === // /** This is class c2 without constructor*/ // class c2 { diff --git a/tests/baselines/reference/quickInfoCommentsClassMembers.baseline b/tests/baselines/reference/quickInfoCommentsClassMembers.baseline index 795b95e7da9..8492ed1944a 100644 --- a/tests/baselines/reference/quickInfoCommentsClassMembers.baseline +++ b/tests/baselines/reference/quickInfoCommentsClassMembers.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoCommentsClassMembers.ts === // /** This is comment for c1*/ // class c1 { diff --git a/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline b/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline index 07a3aa1dd22..46db8bc10c5 100644 --- a/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline +++ b/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoCommentsCommentParsing.ts === // /// This is simple /// comments // function simple() { diff --git a/tests/baselines/reference/quickInfoCommentsFunctionDeclaration.baseline b/tests/baselines/reference/quickInfoCommentsFunctionDeclaration.baseline index 76dc6b63ae6..ed94be75fe0 100644 --- a/tests/baselines/reference/quickInfoCommentsFunctionDeclaration.baseline +++ b/tests/baselines/reference/quickInfoCommentsFunctionDeclaration.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoCommentsFunctionDeclaration.ts === // /** This comment should appear for foo*/ // function foo() { diff --git a/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline b/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline index e09a0952705..ef4ff78194c 100644 --- a/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline +++ b/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoCommentsFunctionExpression.ts === // /** lambdaFoo var comment*/ // var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; diff --git a/tests/baselines/reference/quickInfoDisplayPartsArrowFunctionExpression.baseline b/tests/baselines/reference/quickInfoDisplayPartsArrowFunctionExpression.baseline index 8f9bd7e6386..1a59669f5bb 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsArrowFunctionExpression.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsArrowFunctionExpression.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsArrowFunctionExpression.ts === // var x = a => 10; // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsClass.baseline b/tests/baselines/reference/quickInfoDisplayPartsClass.baseline index f0755ac5155..4a23d7e88a3 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClass.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClass.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClass.ts === // class c { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassAccessors.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassAccessors.baseline index c3592ada13d..fa10abdf8f9 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassAccessors.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassAccessors.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassAccessors.ts === // class c { // public get publicProperty() { return ""; } diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassAutoAccessors.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassAutoAccessors.baseline index 28b3f045c88..8a7779717b0 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassAutoAccessors.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassAutoAccessors.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassAutoAccessors.ts === // class c { // public accessor publicProperty: string; diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassConstructor.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassConstructor.baseline index 2aab66121b7..81a44f6b6d7 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassConstructor.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassConstructor.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassConstructor.ts === // class c { // constructor() { diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassDefaultAnonymous.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassDefaultAnonymous.baseline index a098ab06f9e..344dda6046b 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassDefaultAnonymous.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassDefaultAnonymous.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.ts === // export default class { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassDefaultNamed.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassDefaultNamed.baseline index 646bda5fd00..6b365359fb4 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassDefaultNamed.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassDefaultNamed.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassDefaultNamed.ts === // export default class C { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassIncomplete.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassIncomplete.baseline index 7802faff0c1..38095e74e89 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassIncomplete.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassIncomplete.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassIncomplete.ts === // class { // ^^^^^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassMethod.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassMethod.baseline index 3e739c8b4de..59333da1aef 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassMethod.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassMethod.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassMethod.ts === // class c { // public publicMethod() { } diff --git a/tests/baselines/reference/quickInfoDisplayPartsClassProperty.baseline b/tests/baselines/reference/quickInfoDisplayPartsClassProperty.baseline index 8a5adb6ad08..7dbcdbc6cec 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsClassProperty.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsClassProperty.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsClassProperty.ts === // class c { // public publicProperty: string; diff --git a/tests/baselines/reference/quickInfoDisplayPartsConst.baseline b/tests/baselines/reference/quickInfoDisplayPartsConst.baseline index 513cc0d2c9e..ab682f5974d 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsConst.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsConst.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsConst.ts === // const a = 10; // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsEnum1.baseline b/tests/baselines/reference/quickInfoDisplayPartsEnum1.baseline index 6e7eacfee59..76df896caa4 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsEnum1.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsEnum1.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsEnum1.ts === // enum E { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsEnum2.baseline b/tests/baselines/reference/quickInfoDisplayPartsEnum2.baseline index a3082f890d8..74cea351771 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsEnum2.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsEnum2.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsEnum2.ts === // enum E { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsEnum3.baseline b/tests/baselines/reference/quickInfoDisplayPartsEnum3.baseline index 4d70350891d..81f3d2db914 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsEnum3.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsEnum3.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsEnum3.ts === // enum E { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsEnum4.baseline b/tests/baselines/reference/quickInfoDisplayPartsEnum4.baseline index 1b9fe48619d..f48e166e4cb 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsEnum4.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsEnum4.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsEnum4.ts === // const enum Foo { // "\t" = 9, diff --git a/tests/baselines/reference/quickInfoDisplayPartsExternalModuleAlias.baseline b/tests/baselines/reference/quickInfoDisplayPartsExternalModuleAlias.baseline index bf0173b6f21..7745fa24426 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsExternalModuleAlias.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsExternalModuleAlias.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsExternalModuleAlias_file1.ts === // import a1 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); // ^^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsExternalModules.baseline b/tests/baselines/reference/quickInfoDisplayPartsExternalModules.baseline index 0ce40cd0f59..06e804b0d93 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsExternalModules.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsExternalModules.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsExternalModules.ts === // export namespace m { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsFunction.baseline b/tests/baselines/reference/quickInfoDisplayPartsFunction.baseline index e97900efd67..f821703daf7 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsFunction.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsFunction.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsFunction.ts === // function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { // ^^^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsFunctionExpression.baseline b/tests/baselines/reference/quickInfoDisplayPartsFunctionExpression.baseline index 31c2eb23ece..10601e1d5d3 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsFunctionExpression.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsFunctionExpression.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsFunctionExpression.ts === // var x = function foo() { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsFunctionIncomplete.baseline b/tests/baselines/reference/quickInfoDisplayPartsFunctionIncomplete.baseline index ade64c39cc5..d5cc54296c7 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsFunctionIncomplete.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsFunctionIncomplete.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsFunctionIncomplete.ts === // function (param: string) { // ^^^^^^^^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsInterface.baseline b/tests/baselines/reference/quickInfoDisplayPartsInterface.baseline index 689938309e5..2619bd0fe81 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsInterface.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsInterface.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsInterface.ts === // interface i { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsInterfaceMembers.baseline b/tests/baselines/reference/quickInfoDisplayPartsInterfaceMembers.baseline index df3eafe5705..21441e8e5dd 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsInterfaceMembers.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsInterfaceMembers.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsInterfaceMembers.ts === // interface I { // property: string; diff --git a/tests/baselines/reference/quickInfoDisplayPartsInternalModuleAlias.baseline b/tests/baselines/reference/quickInfoDisplayPartsInternalModuleAlias.baseline index 715e8055de2..0b2754eff81 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsInternalModuleAlias.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsInternalModuleAlias.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsInternalModuleAlias.ts === // module m.m1 { // export class c { diff --git a/tests/baselines/reference/quickInfoDisplayPartsLet.baseline b/tests/baselines/reference/quickInfoDisplayPartsLet.baseline index db61e72f097..4ba81a21147 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsLet.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsLet.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsLet.ts === // let a = 10; // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsLiteralLikeNames01.baseline b/tests/baselines/reference/quickInfoDisplayPartsLiteralLikeNames01.baseline index f2e8f1886c6..f070027118b 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsLiteralLikeNames01.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsLiteralLikeNames01.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsLiteralLikeNames01.ts === // class C { // public 1() { } diff --git a/tests/baselines/reference/quickInfoDisplayPartsLocalFunction.baseline b/tests/baselines/reference/quickInfoDisplayPartsLocalFunction.baseline index 69eeef0f8cd..7a172f986fd 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsLocalFunction.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsLocalFunction.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsLocalFunction.ts === // function outerFoo() { // ^^^^^^^^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsModules.baseline b/tests/baselines/reference/quickInfoDisplayPartsModules.baseline index c7483f308c9..4dbccdf8898 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsModules.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsModules.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsModules.ts === // namespace m { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline b/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline index dcd1de9e5a6..a434b4d5822 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsParameters.ts === // /** @return *crunch* */ // function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { diff --git a/tests/baselines/reference/quickInfoDisplayPartsTypeAlias.baseline b/tests/baselines/reference/quickInfoDisplayPartsTypeAlias.baseline index 9e6dab5b259..abce4f22f05 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsTypeAlias.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsTypeAlias.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsTypeAlias.ts === // class c { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInClass.baseline b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInClass.baseline index 280377195ff..fdd4984b230 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInClass.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInClass.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInClass.ts === // class c { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunction.baseline b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunction.baseline index e44572ec1c2..8c1e3b3f30d 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunction.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunction.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInFunction.ts === // function foo(a: U) { // ^^^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline index 60d77d3a82c..76879f3e9e7 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts === // type MixinCtor = new () => A & { constructor: MixinCtor }; // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInInterface.baseline b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInInterface.baseline index 0cf35c6a26e..9a39fbdd993 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInInterface.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInInterface.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInInterface.ts === // interface I { // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline index 738066034a5..e57500c0125 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.ts === // type List = T[] // ^^^^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsUsing.baseline b/tests/baselines/reference/quickInfoDisplayPartsUsing.baseline index f71da8902a3..71ee2c0d294 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsUsing.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsUsing.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsUsing.ts === // using a = "a"; // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsVar.baseline b/tests/baselines/reference/quickInfoDisplayPartsVar.baseline index 2bf532491b3..fd4db6a83e4 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsVar.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsVar.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsVar.ts === // var a = 10; // ^ diff --git a/tests/baselines/reference/quickInfoDisplayPartsVarWithStringTypes01.baseline b/tests/baselines/reference/quickInfoDisplayPartsVarWithStringTypes01.baseline index 693e40e4583..5647b2a07c1 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsVarWithStringTypes01.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsVarWithStringTypes01.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoDisplayPartsVarWithStringTypes01.ts === // let hello: "hello" | 'hello' = "hello"; // ^^^^^ diff --git a/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode1.baseline b/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode1.baseline index b3ec939c77d..5e83f546a4a 100644 --- a/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode1.baseline +++ b/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode1.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/a.js === // const foo = { // f1: (params) => { } diff --git a/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode2.baseline b/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode2.baseline index afe499b5614..52867228ab1 100644 --- a/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode2.baseline +++ b/tests/baselines/reference/quickInfoForArgumentsPropertyNameInJsMode2.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/a.js === // function f(x) { // ^ diff --git a/tests/baselines/reference/quickInfoForConstAssertions.baseline b/tests/baselines/reference/quickInfoForConstAssertions.baseline index 09098d7b7a9..ae2371632db 100644 --- a/tests/baselines/reference/quickInfoForConstAssertions.baseline +++ b/tests/baselines/reference/quickInfoForConstAssertions.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForConstAssertions.ts === // const a = { a: 1 } as const; // ^^^^^ diff --git a/tests/baselines/reference/quickInfoForJSDocCodefence.baseline b/tests/baselines/reference/quickInfoForJSDocCodefence.baseline index 653feb17c17..6f6b6908db7 100644 --- a/tests/baselines/reference/quickInfoForJSDocCodefence.baseline +++ b/tests/baselines/reference/quickInfoForJSDocCodefence.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForJSDocCodefence.ts === // /** // * @example diff --git a/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline b/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline index 4280f6bc8e9..13e285ca3d3 100644 --- a/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline +++ b/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForJSDocUnknownTag.ts === // /** // * @example diff --git a/tests/baselines/reference/quickInfoForJSDocWithHttpLinks.baseline b/tests/baselines/reference/quickInfoForJSDocWithHttpLinks.baseline index 28f7d6984be..ea0e79b3b58 100644 --- a/tests/baselines/reference/quickInfoForJSDocWithHttpLinks.baseline +++ b/tests/baselines/reference/quickInfoForJSDocWithHttpLinks.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForJSDocWithHttpLinks.js === // /** @typedef {number} https://wat */ // ^^^^^ diff --git a/tests/baselines/reference/quickInfoForJSDocWithUnresolvedHttpLinks.baseline b/tests/baselines/reference/quickInfoForJSDocWithUnresolvedHttpLinks.baseline index b74400052bf..ba49b977c0f 100644 --- a/tests/baselines/reference/quickInfoForJSDocWithUnresolvedHttpLinks.baseline +++ b/tests/baselines/reference/quickInfoForJSDocWithUnresolvedHttpLinks.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForJSDocWithHttpLinks.js === // /** @see {@link https://hva} */ // var see2 = true diff --git a/tests/baselines/reference/quickInfoForObjectBindingElementName03.baseline b/tests/baselines/reference/quickInfoForObjectBindingElementName03.baseline index 57bb3fba30a..e32129e4ee5 100644 --- a/tests/baselines/reference/quickInfoForObjectBindingElementName03.baseline +++ b/tests/baselines/reference/quickInfoForObjectBindingElementName03.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForObjectBindingElementName03.ts === // interface Options { // /** diff --git a/tests/baselines/reference/quickInfoForObjectBindingElementName04.baseline b/tests/baselines/reference/quickInfoForObjectBindingElementName04.baseline index 50b0ac4a41c..c85ba86e54e 100644 --- a/tests/baselines/reference/quickInfoForObjectBindingElementName04.baseline +++ b/tests/baselines/reference/quickInfoForObjectBindingElementName04.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForObjectBindingElementName04.ts === // interface Options { // /** diff --git a/tests/baselines/reference/quickInfoForObjectBindingElementName05.baseline b/tests/baselines/reference/quickInfoForObjectBindingElementName05.baseline index 1bf9532809e..36781df3e6f 100644 --- a/tests/baselines/reference/quickInfoForObjectBindingElementName05.baseline +++ b/tests/baselines/reference/quickInfoForObjectBindingElementName05.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForObjectBindingElementName05.ts === // interface A { // /** diff --git a/tests/baselines/reference/quickInfoForObjectBindingElementName06.baseline b/tests/baselines/reference/quickInfoForObjectBindingElementName06.baseline index 33ed9bf843e..499f47cac18 100644 --- a/tests/baselines/reference/quickInfoForObjectBindingElementName06.baseline +++ b/tests/baselines/reference/quickInfoForObjectBindingElementName06.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoForObjectBindingElementName06.ts === // type Foo = { // /** diff --git a/tests/baselines/reference/quickInfoImportMeta.baseline b/tests/baselines/reference/quickInfoImportMeta.baseline index 768c0f8549a..0e20a5dce7d 100644 --- a/tests/baselines/reference/quickInfoImportMeta.baseline +++ b/tests/baselines/reference/quickInfoImportMeta.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/foo.ts === // /// // /// diff --git a/tests/baselines/reference/quickInfoInheritDoc.baseline b/tests/baselines/reference/quickInfoInheritDoc.baseline index c148237ac95..3c4a4b8b2b9 100644 --- a/tests/baselines/reference/quickInfoInheritDoc.baseline +++ b/tests/baselines/reference/quickInfoInheritDoc.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoInheritDoc.ts === // abstract class BaseClass { // /** diff --git a/tests/baselines/reference/quickInfoInheritDoc2.baseline b/tests/baselines/reference/quickInfoInheritDoc2.baseline index 5c985207c61..d2aaaeda13c 100644 --- a/tests/baselines/reference/quickInfoInheritDoc2.baseline +++ b/tests/baselines/reference/quickInfoInheritDoc2.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoInheritDoc2.ts === // class Base { // /** diff --git a/tests/baselines/reference/quickInfoInheritDoc3.baseline b/tests/baselines/reference/quickInfoInheritDoc3.baseline index ea789302487..d99290ad419 100644 --- a/tests/baselines/reference/quickInfoInheritDoc3.baseline +++ b/tests/baselines/reference/quickInfoInheritDoc3.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoInheritDoc3.ts === // function getBaseClass() { // return class Base { diff --git a/tests/baselines/reference/quickInfoInheritDoc4.baseline b/tests/baselines/reference/quickInfoInheritDoc4.baseline index 46f0da2953d..77c59a8b26d 100644 --- a/tests/baselines/reference/quickInfoInheritDoc4.baseline +++ b/tests/baselines/reference/quickInfoInheritDoc4.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoInheritDoc4.ts === // var A: any; // diff --git a/tests/baselines/reference/quickInfoInheritDoc5.baseline b/tests/baselines/reference/quickInfoInheritDoc5.baseline index d676359cdbc..263026c1d1e 100644 --- a/tests/baselines/reference/quickInfoInheritDoc5.baseline +++ b/tests/baselines/reference/quickInfoInheritDoc5.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoInheritDoc5.js === // function A() {} // diff --git a/tests/baselines/reference/quickInfoInheritDoc6.baseline b/tests/baselines/reference/quickInfoInheritDoc6.baseline index 2208131b40a..2f73a1ff873 100644 --- a/tests/baselines/reference/quickInfoInheritDoc6.baseline +++ b/tests/baselines/reference/quickInfoInheritDoc6.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoInheritDoc6.js === // class B extends UNRESOLVED_VALUE_DEFINITELY_DOES_NOT_EXIST { // /** diff --git a/tests/baselines/reference/quickInfoInheritedLinkTag.baseline b/tests/baselines/reference/quickInfoInheritedLinkTag.baseline index 754a66b6821..8b2ef7117eb 100644 --- a/tests/baselines/reference/quickInfoInheritedLinkTag.baseline +++ b/tests/baselines/reference/quickInfoInheritedLinkTag.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoInheritedLinkTag.ts === // export class C { // /** diff --git a/tests/baselines/reference/quickInfoJSDocAtBeforeSpace.baseline b/tests/baselines/reference/quickInfoJSDocAtBeforeSpace.baseline index 26e7258e717..e73693d5540 100644 --- a/tests/baselines/reference/quickInfoJSDocAtBeforeSpace.baseline +++ b/tests/baselines/reference/quickInfoJSDocAtBeforeSpace.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJSDocAtBeforeSpace.ts === // /** // * @return Don't @ me diff --git a/tests/baselines/reference/quickInfoJSDocTags.baseline b/tests/baselines/reference/quickInfoJSDocTags.baseline index 3422078a998..6d162336304 100644 --- a/tests/baselines/reference/quickInfoJSDocTags.baseline +++ b/tests/baselines/reference/quickInfoJSDocTags.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJSDocTags.ts === // /** // * This is class Foo. diff --git a/tests/baselines/reference/quickInfoJsDoc.baseline b/tests/baselines/reference/quickInfoJsDoc.baseline index f3d763849ca..c47cad84ba7 100644 --- a/tests/baselines/reference/quickInfoJsDoc.baseline +++ b/tests/baselines/reference/quickInfoJsDoc.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDoc.ts === // /** // * A constant diff --git a/tests/baselines/reference/quickInfoJsDocAlias.baseline b/tests/baselines/reference/quickInfoJsDocAlias.baseline index 8fbd9b68665..81f8fa873b6 100644 --- a/tests/baselines/reference/quickInfoJsDocAlias.baseline +++ b/tests/baselines/reference/quickInfoJsDocAlias.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /b.ts === // import { A } from "./a"; // A() diff --git a/tests/baselines/reference/quickInfoJsDocGetterSetter.baseline b/tests/baselines/reference/quickInfoJsDocGetterSetter.baseline index 129d839f3df..9390e77ffe4 100644 --- a/tests/baselines/reference/quickInfoJsDocGetterSetter.baseline +++ b/tests/baselines/reference/quickInfoJsDocGetterSetter.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocGetterSetter.ts === // class A { // /** diff --git a/tests/baselines/reference/quickInfoJsDocInheritage.baseline b/tests/baselines/reference/quickInfoJsDocInheritage.baseline index 1de01504e5e..6b9afc72339 100644 --- a/tests/baselines/reference/quickInfoJsDocInheritage.baseline +++ b/tests/baselines/reference/quickInfoJsDocInheritage.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocInheritage.ts === // interface A { // /** diff --git a/tests/baselines/reference/quickInfoJsDocTags1.baseline b/tests/baselines/reference/quickInfoJsDocTags1.baseline index 4bdd50de8d0..fa684958936 100644 --- a/tests/baselines/reference/quickInfoJsDocTags1.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags1.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags1.ts === // /** // * Doc diff --git a/tests/baselines/reference/quickInfoJsDocTags10.baseline b/tests/baselines/reference/quickInfoJsDocTags10.baseline index eab5a333214..9abeae90244 100644 --- a/tests/baselines/reference/quickInfoJsDocTags10.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags10.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags10.js === // /** // * @param {T1} a diff --git a/tests/baselines/reference/quickInfoJsDocTags11.baseline b/tests/baselines/reference/quickInfoJsDocTags11.baseline index 542210bfbd1..184901160b8 100644 --- a/tests/baselines/reference/quickInfoJsDocTags11.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags11.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags11.js === // /** // * @param {T1} a diff --git a/tests/baselines/reference/quickInfoJsDocTags12.baseline b/tests/baselines/reference/quickInfoJsDocTags12.baseline index 35604c9a70f..657360b6a5d 100644 --- a/tests/baselines/reference/quickInfoJsDocTags12.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags12.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags12.ts === // /** // * @param {Object} options the args object diff --git a/tests/baselines/reference/quickInfoJsDocTags13.baseline b/tests/baselines/reference/quickInfoJsDocTags13.baseline new file mode 100644 index 00000000000..4c90d27ed34 --- /dev/null +++ b/tests/baselines/reference/quickInfoJsDocTags13.baseline @@ -0,0 +1,369 @@ +// === SignatureHelp === +=== /tests/cases/fourslash/./a.js === +// /** +// * First overload +// * @overload +// * @param {number} a +// * @returns {void} +// */ +// +// /** +// * Second overload +// * @overload +// * @param {string} a +// * @returns {void} +// */ +// +// /** +// * @param {string | number} a +// * @returns {void} +// */ +// function f(a) {} +// +// f(1); +// ^ +// | ---------------------------------------------------------------------- +// | f(**a: number**): void +// | First overload +// | ---------------------------------------------------------------------- +// f(""); +// ^ +// | ---------------------------------------------------------------------- +// | f(**a: string**): void +// | Second overload +// | ---------------------------------------------------------------------- + +[ + { + "marker": { + "fileName": "/tests/cases/fourslash/./a.js", + "position": 238, + "name": "a" + }, + "item": { + "items": [ + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "f", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "a", + "documentation": [], + "displayParts": [ + { + "text": "a", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [ + { + "text": "First overload", + "kind": "text" + } + ], + "tags": [] + }, + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "f", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "a", + "documentation": [], + "displayParts": [ + { + "text": "a", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [ + { + "text": "Second overload", + "kind": "text" + } + ], + "tags": [] + } + ], + "applicableSpan": { + "start": 238, + "length": 1 + }, + "selectedItemIndex": 0, + "argumentIndex": 0, + "argumentCount": 1 + } + }, + { + "marker": { + "fileName": "/tests/cases/fourslash/./a.js", + "position": 244, + "name": "b" + }, + "item": { + "items": [ + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "f", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "a", + "documentation": [], + "displayParts": [ + { + "text": "a", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [ + { + "text": "First overload", + "kind": "text" + } + ], + "tags": [] + }, + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "f", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "a", + "documentation": [], + "displayParts": [ + { + "text": "a", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [ + { + "text": "Second overload", + "kind": "text" + } + ], + "tags": [] + } + ], + "applicableSpan": { + "start": 244, + "length": 2 + }, + "selectedItemIndex": 1, + "argumentIndex": 0, + "argumentCount": 1 + } + } +] \ No newline at end of file diff --git a/tests/baselines/reference/quickInfoJsDocTags3.baseline b/tests/baselines/reference/quickInfoJsDocTags3.baseline index d0ccb4e9a8d..ff1de54b66d 100644 --- a/tests/baselines/reference/quickInfoJsDocTags3.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags3.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags3.ts === // interface Foo { // /** diff --git a/tests/baselines/reference/quickInfoJsDocTags4.baseline b/tests/baselines/reference/quickInfoJsDocTags4.baseline index e48d3bed692..019b580902f 100644 --- a/tests/baselines/reference/quickInfoJsDocTags4.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags4.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags4.ts === // class Foo { // /** diff --git a/tests/baselines/reference/quickInfoJsDocTags5.baseline b/tests/baselines/reference/quickInfoJsDocTags5.baseline index aaf4ef4997a..8da5413da6f 100644 --- a/tests/baselines/reference/quickInfoJsDocTags5.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags5.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags5.js === // class Foo { // /** diff --git a/tests/baselines/reference/quickInfoJsDocTags6.baseline b/tests/baselines/reference/quickInfoJsDocTags6.baseline index aca6f256b1f..369916645dd 100644 --- a/tests/baselines/reference/quickInfoJsDocTags6.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags6.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags6.js === // class Foo { // /** diff --git a/tests/baselines/reference/quickInfoJsDocTags7.baseline b/tests/baselines/reference/quickInfoJsDocTags7.baseline index 3dd651ec66c..78dfd1fe99f 100644 --- a/tests/baselines/reference/quickInfoJsDocTags7.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags7.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags7.js === // /** // * @typedef {{ [x: string]: any, y: number }} Foo diff --git a/tests/baselines/reference/quickInfoJsDocTags8.baseline b/tests/baselines/reference/quickInfoJsDocTags8.baseline index ac76cd09327..06ad0ea310d 100644 --- a/tests/baselines/reference/quickInfoJsDocTags8.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags8.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags8.js === // /** // * @typedef {{ [x: string]: any, y: number }} Foo diff --git a/tests/baselines/reference/quickInfoJsDocTags9.baseline b/tests/baselines/reference/quickInfoJsDocTags9.baseline index 036159a2a22..414a194e29c 100644 --- a/tests/baselines/reference/quickInfoJsDocTags9.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags9.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTags9.js === // /** // * @typedef {{ [x: string]: any, y: number }} Foo diff --git a/tests/baselines/reference/quickInfoJsDocTagsCallback.baseline b/tests/baselines/reference/quickInfoJsDocTagsCallback.baseline index abae9e22cb6..bec1fcd678c 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsCallback.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsCallback.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTagsCallback.js === // /** // * @callback cb diff --git a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline index f9327731844..3c5faa39d23 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTagsFunctionOverload01.ts === // /** // * Doc foo diff --git a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline index 5d58d766606..a672cd597b0 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTagsFunctionOverload03.ts === // declare function foo(): void; // ^^^ diff --git a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline index 2c8cdb80573..44420b87c67 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTagsFunctionOverload05.ts === // declare function foo(): void; // ^^^ diff --git a/tests/baselines/reference/quickInfoJsDocTagsTypedef.baseline b/tests/baselines/reference/quickInfoJsDocTagsTypedef.baseline index d766b0cce62..ca9834e92f5 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsTypedef.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsTypedef.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoJsDocTagsTypedef.js === // /** // * Bar comment diff --git a/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline b/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline index 22a08e3bff6..c82fe061346 100644 --- a/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline +++ b/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/quickInfoJsDocTextFormatting1.ts === // /** // * @param {number} var1 **Highlighted text** diff --git a/tests/baselines/reference/quickInfoJsDocThisTag.baseline b/tests/baselines/reference/quickInfoJsDocThisTag.baseline index a873e110a4d..b039c374a1f 100644 --- a/tests/baselines/reference/quickInfoJsDocThisTag.baseline +++ b/tests/baselines/reference/quickInfoJsDocThisTag.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.ts === // /** @this {number} */ // function f() { diff --git a/tests/baselines/reference/quickInfoLink10.baseline b/tests/baselines/reference/quickInfoLink10.baseline index 419b71b3657..94c7babf59d 100644 --- a/tests/baselines/reference/quickInfoLink10.baseline +++ b/tests/baselines/reference/quickInfoLink10.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink10.ts === // /** // * start {@link https://vscode.dev/ | end} diff --git a/tests/baselines/reference/quickInfoLink2.baseline b/tests/baselines/reference/quickInfoLink2.baseline index c8730e1df51..fc984248f16 100644 --- a/tests/baselines/reference/quickInfoLink2.baseline +++ b/tests/baselines/reference/quickInfoLink2.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink2.js === // /** // * @typedef AdditionalWallabyConfig Additional valid Wallaby config properties diff --git a/tests/baselines/reference/quickInfoLink3.baseline b/tests/baselines/reference/quickInfoLink3.baseline index 0af1d0dc41a..6b1febab100 100644 --- a/tests/baselines/reference/quickInfoLink3.baseline +++ b/tests/baselines/reference/quickInfoLink3.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink3.ts === // class Foo { // /** diff --git a/tests/baselines/reference/quickInfoLink4.baseline b/tests/baselines/reference/quickInfoLink4.baseline index a3b2823e957..d20a343db40 100644 --- a/tests/baselines/reference/quickInfoLink4.baseline +++ b/tests/baselines/reference/quickInfoLink4.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink4.ts === // type A = 1 | 2; // diff --git a/tests/baselines/reference/quickInfoLink5.baseline b/tests/baselines/reference/quickInfoLink5.baseline index 3b8bac7d039..6302fcd24e2 100644 --- a/tests/baselines/reference/quickInfoLink5.baseline +++ b/tests/baselines/reference/quickInfoLink5.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink5.ts === // const A = 123; // /** diff --git a/tests/baselines/reference/quickInfoLink6.baseline b/tests/baselines/reference/quickInfoLink6.baseline index 603890210d6..521613452bc 100644 --- a/tests/baselines/reference/quickInfoLink6.baseline +++ b/tests/baselines/reference/quickInfoLink6.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink6.ts === // const A = 123; // /** diff --git a/tests/baselines/reference/quickInfoLink7.baseline b/tests/baselines/reference/quickInfoLink7.baseline index 654f671ab12..11d59558054 100644 --- a/tests/baselines/reference/quickInfoLink7.baseline +++ b/tests/baselines/reference/quickInfoLink7.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink7.ts === // /** // * See {@link | } instead diff --git a/tests/baselines/reference/quickInfoLink8.baseline b/tests/baselines/reference/quickInfoLink8.baseline index d34e8a666bf..8e003df7323 100644 --- a/tests/baselines/reference/quickInfoLink8.baseline +++ b/tests/baselines/reference/quickInfoLink8.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink8.ts === // const A = 123; // /** diff --git a/tests/baselines/reference/quickInfoLink9.baseline b/tests/baselines/reference/quickInfoLink9.baseline index 4c5dd0a2b3f..b925be560f2 100644 --- a/tests/baselines/reference/quickInfoLink9.baseline +++ b/tests/baselines/reference/quickInfoLink9.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLink9.ts === // type Foo = { // /** diff --git a/tests/baselines/reference/quickInfoLinkCodePlain.baseline b/tests/baselines/reference/quickInfoLinkCodePlain.baseline index 2324d5f6da1..143b85205e6 100644 --- a/tests/baselines/reference/quickInfoLinkCodePlain.baseline +++ b/tests/baselines/reference/quickInfoLinkCodePlain.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoLinkCodePlain.ts === // export class C { // /** diff --git a/tests/baselines/reference/quickInfoNestedExportEqualExportDefault.baseline b/tests/baselines/reference/quickInfoNestedExportEqualExportDefault.baseline index e699a2cdfd8..3dec1073bd9 100644 --- a/tests/baselines/reference/quickInfoNestedExportEqualExportDefault.baseline +++ b/tests/baselines/reference/quickInfoNestedExportEqualExportDefault.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoNestedExportEqualExportDefault.ts === // export = (state, messages) => { // export default { diff --git a/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline b/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline index 4871481dcb4..934c4c108ff 100644 --- a/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline +++ b/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.tsx === // declare namespace JSX { // interface IntrinsicElements { [elemName: string]: any; } diff --git a/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline b/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline index 9babfbe8568..b6e088885f9 100644 --- a/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline +++ b/tests/baselines/reference/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.tsx === // declare namespace JSX { // interface IntrinsicElements { diff --git a/tests/baselines/reference/quickInfoOnJsxNamespacedName.baseline b/tests/baselines/reference/quickInfoOnJsxNamespacedName.baseline index b30eaf3dd5f..4a209d31976 100644 --- a/tests/baselines/reference/quickInfoOnJsxNamespacedName.baseline +++ b/tests/baselines/reference/quickInfoOnJsxNamespacedName.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.tsx === // ; // ^^^ diff --git a/tests/baselines/reference/quickInfoOnParameterProperties.baseline b/tests/baselines/reference/quickInfoOnParameterProperties.baseline index 545aff93e8b..789f84dc60c 100644 --- a/tests/baselines/reference/quickInfoOnParameterProperties.baseline +++ b/tests/baselines/reference/quickInfoOnParameterProperties.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoOnParameterProperties.ts === // interface IFoo { // /** this is the name of blabla diff --git a/tests/baselines/reference/quickInfoOnThis5.baseline b/tests/baselines/reference/quickInfoOnThis5.baseline index bff1208541e..2075bc2603b 100644 --- a/tests/baselines/reference/quickInfoOnThis5.baseline +++ b/tests/baselines/reference/quickInfoOnThis5.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoOnThis5.ts === // const foo = { // num: 0, diff --git a/tests/baselines/reference/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline b/tests/baselines/reference/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline index a0f4657820f..ce486a59eec 100644 --- a/tests/baselines/reference/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline +++ b/tests/baselines/reference/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts === // export type DocumentFilter = { // /** A language id, like `typescript`. */ diff --git a/tests/baselines/reference/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline b/tests/baselines/reference/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline index 6186029bbd8..932dfe01dd7 100644 --- a/tests/baselines/reference/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline +++ b/tests/baselines/reference/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/something.js === // var C = function () { } // /** diff --git a/tests/baselines/reference/quickInfoSatisfiesTag.baseline b/tests/baselines/reference/quickInfoSatisfiesTag.baseline index 692bb15ca83..62247027be5 100644 --- a/tests/baselines/reference/quickInfoSatisfiesTag.baseline +++ b/tests/baselines/reference/quickInfoSatisfiesTag.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /a.js === // /** @satisfies {number} comment */ // const a = 1; diff --git a/tests/baselines/reference/quickInfoThrowsTag.baseline b/tests/baselines/reference/quickInfoThrowsTag.baseline index 9230f30868c..5a9fc8ea59b 100644 --- a/tests/baselines/reference/quickInfoThrowsTag.baseline +++ b/tests/baselines/reference/quickInfoThrowsTag.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/quickInfoThrowsTag.ts === // class E extends Error {} // diff --git a/tests/baselines/reference/quickInfoTypedefTag.baseline b/tests/baselines/reference/quickInfoTypedefTag.baseline index 8400bfb988a..79595a19883 100644 --- a/tests/baselines/reference/quickInfoTypedefTag.baseline +++ b/tests/baselines/reference/quickInfoTypedefTag.baseline @@ -1,3 +1,4 @@ +// === QuickInfo === === /tests/cases/fourslash/a.js === // /** // * The typedef tag should not appear in the quickinfo. diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types index a011075ca94..be2f30d8efd 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types @@ -16,7 +16,7 @@ import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); var selfVar = self; >selfVar : any ->self : any +>self : error export = selfVar; >selfVar : any diff --git a/tests/baselines/reference/restTuplesFromContextualTypes.types b/tests/baselines/reference/restTuplesFromContextualTypes.types index d80a1124a0f..a9de22bade9 100644 --- a/tests/baselines/reference/restTuplesFromContextualTypes.types +++ b/tests/baselines/reference/restTuplesFromContextualTypes.types @@ -265,8 +265,8 @@ f3((a, b, c) => {}) f3((...x) => {}) >f3((...x) => {}) : void >f3 : (cb: (x: number, args_0: boolean, ...args_1: string[]) => void) => void ->(...x) => {} : (x_0: number, x_1: boolean, ...x_2: string[]) => void ->x : [number, boolean, ...string[]] +>(...x) => {} : (x: number, x_1: boolean, ...x_2: string[]) => void +>x : [x: number, boolean, ...string[]] f3((a, ...x) => {}) >f3((a, ...x) => {}) : void diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js index b30631e9660..e0a2cb5de07 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js @@ -67,7 +67,9 @@ File '/fs.js' does not exist. File '/fs.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -114,7 +116,9 @@ declare module 'fs' {} Module 'fs' was resolved as ambient module declared in '/a/b/node.d.ts' since this file was not modified. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -188,7 +192,9 @@ File '/fs.js' does not exist. File '/fs.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js index 004e9587fbf..514a18f42c6 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js @@ -230,7 +230,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -328,7 +330,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -426,7 +430,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -520,7 +526,9 @@ Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. ======== Module name './b1' was successfully resolved to 'b1.ts'. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -618,7 +626,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -703,7 +713,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js index 72d2d86b788..7adcba0f8b2 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js @@ -60,7 +60,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -127,7 +129,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js index 7a45a125154..3db291a132c 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -82,7 +85,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js index 18045e3e86b..975eed61793 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -58,7 +61,9 @@ File: a.ts var x = 1 -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js index 3221fff6526..91db05ff837 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -72,7 +75,10 @@ typerefs1: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs1'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js index b447d49cb82..dae77167797 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js @@ -45,7 +45,10 @@ a: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -99,7 +102,10 @@ b: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js index b1167cc20c1..358c57df5ec 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js +++ b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -73,7 +76,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js index 6f5da2221ba..caa57f5c989 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js @@ -45,7 +45,10 @@ a: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -99,7 +102,10 @@ a: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js index f30dbc1a16f..7608a460c10 100644 --- a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js @@ -36,7 +36,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -81,7 +84,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js index a5bf5df5b7c..a238d15384f 100644 --- a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js +++ b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js @@ -52,7 +52,9 @@ File 'node_modules/a/index.js' does not exist. File 'node_modules/a/index.jsx' does not exist. ======== Module name 'a' was not resolved. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] file1.ts(2,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. diff --git a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js index e44d249ea79..281b3fa52a8 100644 --- a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js +++ b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js @@ -32,7 +32,9 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts"] +MissingPaths:: [ + "non-existing-file.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js index 8a34bd96c96..17543c39f00 100644 --- a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js +++ b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js @@ -32,7 +32,9 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts"] +MissingPaths:: [ + "non-existing-file.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -73,7 +75,9 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts"] +MissingPaths:: [ + "non-existing-file.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js index 0fd85855f91..f89808a1ea1 100644 --- a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -73,7 +76,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js index 60ced1319f6..7658653c5fc 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js index e494ceb8496..35fab4bb660 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag /node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. @@ -221,7 +223,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js index 49716296d4b..9a3a6bbd321 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -214,7 +216,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Property 'y' is missing in type 'import("/node_modules/b/node_modules/x/index").default' but required in type 'import("/node_modules/a/node_modules/x/index").default'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js index 8266c0b0a8c..415b2885b5a 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Types have separate declarations of a private property 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js index 60ced1319f6..7658653c5fc 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js index e494ceb8496..35fab4bb660 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag /node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. @@ -221,7 +223,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js index 49716296d4b..9a3a6bbd321 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -214,7 +216,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Property 'y' is missing in type 'import("/node_modules/b/node_modules/x/index").default' but required in type 'import("/node_modules/a/node_modules/x/index").default'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js index 8266c0b0a8c..415b2885b5a 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Types have separate declarations of a private property 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js index 749a3ee2c20..81d9d56b21a 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js @@ -19,7 +19,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a.ts(2,17): error TS2306: File 'b.ts' is not a module. @@ -46,7 +48,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a.ts(2,17): error TS2306: File 'b.ts' is not a module. @@ -59,7 +63,9 @@ File: a.ts var x = 2 -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -99,7 +105,9 @@ c: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a.ts(2,15): error TS2306: File 'b.ts' is not a module. a.ts(3,31): error TS2792: Cannot find module 'c'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? diff --git a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js index d99269c37cb..7ed3ff6eba2 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js +++ b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js @@ -22,7 +22,9 @@ typedefs: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -51,7 +53,9 @@ typedefs: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -63,7 +67,9 @@ File: /a.ts var x = 2 -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -107,7 +113,9 @@ typedefs2: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(2,39): error TS2688: Cannot find type definition file for 'typedefs2'. diff --git a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js index 9beb9e804df..94e20f8c9ca 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js +++ b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js @@ -14,7 +14,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -35,7 +37,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js index 95e201cc992..72c9fc904bc 100644 --- a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(2,22): error TS6059: File 'b.ts' is not under 'rootDir' '/a/b'. 'rootDir' is expected to contain all source files. a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. @@ -75,7 +78,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(2,22): error TS6059: File 'b.ts' is not under 'rootDir' '/a/c'. 'rootDir' is expected to contain all source files. a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. diff --git a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js index 99e81c6693e..ea315d07916 100644 --- a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js +++ b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js @@ -14,7 +14,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -36,7 +38,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.symbols b/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.symbols new file mode 100644 index 00000000000..0c9d7d4a266 --- /dev/null +++ b/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.symbols @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/reverseMappedTypePrimitiveConstraintProperty.ts] //// + +=== reverseMappedTypePrimitiveConstraintProperty.ts === +declare function test< +>test : Symbol(test, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 0, 0)) + + T extends { prop: string; nested: { nestedProp: string } }, +>T : Symbol(T, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 0, 22)) +>prop : Symbol(prop, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 1, 13)) +>nested : Symbol(nested, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 1, 27)) +>nestedProp : Symbol(nestedProp, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 1, 37)) + +>(obj: { [K in keyof T]: T[K] }): T; +>obj : Symbol(obj, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 2, 2)) +>K : Symbol(K, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 2, 10)) +>T : Symbol(T, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 0, 22)) +>T : Symbol(T, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 0, 22)) +>K : Symbol(K, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 2, 10)) +>T : Symbol(T, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 0, 22)) + +const result = test({ +>result : Symbol(result, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 4, 5)) +>test : Symbol(test, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 0, 0)) + + prop: "foo", // this one should not widen to string +>prop : Symbol(prop, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 4, 21)) + + nested: { +>nested : Symbol(nested, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 5, 14)) + + nestedProp: "bar", +>nestedProp : Symbol(nestedProp, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 6, 11)) + + }, + extra: "baz", +>extra : Symbol(extra, Decl(reverseMappedTypePrimitiveConstraintProperty.ts, 8, 4)) + +}); + diff --git a/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.types b/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.types new file mode 100644 index 00000000000..00b671a8a74 --- /dev/null +++ b/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.types @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/reverseMappedTypePrimitiveConstraintProperty.ts] //// + +=== reverseMappedTypePrimitiveConstraintProperty.ts === +declare function test< +>test : (obj: { [K in keyof T]: T[K]; }) => T + + T extends { prop: string; nested: { nestedProp: string } }, +>prop : string +>nested : { nestedProp: string; } +>nestedProp : string + +>(obj: { [K in keyof T]: T[K] }): T; +>obj : { [K in keyof T]: T[K]; } + +const result = test({ +>result : { prop: "foo"; nested: { nestedProp: string; }; extra: string; } +>test({ prop: "foo", // this one should not widen to string nested: { nestedProp: "bar", }, extra: "baz",}) : { prop: "foo"; nested: { nestedProp: string; }; extra: string; } +>test : (obj: { [K in keyof T]: T[K]; }) => T +>{ prop: "foo", // this one should not widen to string nested: { nestedProp: "bar", }, extra: "baz",} : { prop: "foo"; nested: { nestedProp: string; }; extra: string; } + + prop: "foo", // this one should not widen to string +>prop : "foo" +>"foo" : "foo" + + nested: { +>nested : { nestedProp: string; } +>{ nestedProp: "bar", } : { nestedProp: string; } + + nestedProp: "bar", +>nestedProp : string +>"bar" : "bar" + + }, + extra: "baz", +>extra : string +>"baz" : "baz" + +}); + diff --git a/tests/baselines/reference/signatureHelpAfterParameter.baseline b/tests/baselines/reference/signatureHelpAfterParameter.baseline index b91cbc3d0ba..9631f35778f 100644 --- a/tests/baselines/reference/signatureHelpAfterParameter.baseline +++ b/tests/baselines/reference/signatureHelpAfterParameter.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpAfterParameter.ts === // type Type = (a, b, c) => void // const a: Type = (a, b) => {} diff --git a/tests/baselines/reference/signatureHelpCommentsClass.baseline b/tests/baselines/reference/signatureHelpCommentsClass.baseline index cd2cf216957..9debd337be4 100644 --- a/tests/baselines/reference/signatureHelpCommentsClass.baseline +++ b/tests/baselines/reference/signatureHelpCommentsClass.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpCommentsClass.ts === // /** This is class c2 without constructor*/ // class c2 { diff --git a/tests/baselines/reference/signatureHelpCommentsClassMembers.baseline b/tests/baselines/reference/signatureHelpCommentsClassMembers.baseline index 976aa317068..ca94de5bf76 100644 --- a/tests/baselines/reference/signatureHelpCommentsClassMembers.baseline +++ b/tests/baselines/reference/signatureHelpCommentsClassMembers.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpCommentsClassMembers.ts === // /** This is comment for c1*/ // class c1 { diff --git a/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline b/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline index 4d1c395b6cb..6ac04dc9311 100644 --- a/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline +++ b/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts === // /// This is simple /// comments // function simple() { diff --git a/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline b/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline index 2e09ffe3217..b4f440598fe 100644 --- a/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline +++ b/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpCommentsFunctionDeclaration.ts === // /** This comment should appear for foo*/ // function foo() { diff --git a/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline b/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline index 87b967bb589..18e7b7c77f9 100644 --- a/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline +++ b/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpCommentsFunctionExpression.ts === // /** lambdaFoo var comment*/ // var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; diff --git a/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline b/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline index 3c53b2a8722..50b18e69557 100644 --- a/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline +++ b/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpConstructorCallParamProperties.ts === // class Circle { // /** diff --git a/tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline b/tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline index 504c321e9ad..179c98dc37f 100644 --- a/tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline +++ b/tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/server/jsdocCallbackTag.js === // /** // * @callback FooHandler - A kind of magic diff --git a/tests/baselines/reference/signatureHelpJSDocTags.baseline b/tests/baselines/reference/signatureHelpJSDocTags.baseline index c7153917d6c..57c3f959b2c 100644 --- a/tests/baselines/reference/signatureHelpJSDocTags.baseline +++ b/tests/baselines/reference/signatureHelpJSDocTags.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpJSDocTags.ts === // /** // * This is class Foo. diff --git a/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline b/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline index 8fa5f4b2f0d..dd9150bd45a 100644 --- a/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline +++ b/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/test.js === // foo.filter() // ^ diff --git a/tests/baselines/reference/signatureHelpTypeArguments2.baseline b/tests/baselines/reference/signatureHelpTypeArguments2.baseline index b2e999604da..3e6aac851f0 100644 --- a/tests/baselines/reference/signatureHelpTypeArguments2.baseline +++ b/tests/baselines/reference/signatureHelpTypeArguments2.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpTypeArguments2.ts === // /** some documentation // * @template T some documentation 2 diff --git a/tests/baselines/reference/signatureHelpWithUnknown.baseline b/tests/baselines/reference/signatureHelpWithUnknown.baseline index c78887cdbac..0d666b95115 100644 --- a/tests/baselines/reference/signatureHelpWithUnknown.baseline +++ b/tests/baselines/reference/signatureHelpWithUnknown.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelpWithUnknown.ts === // eval(\ // ^ diff --git a/tests/baselines/reference/signatureHelp_unionType.baseline b/tests/baselines/reference/signatureHelp_unionType.baseline index feea6c66a9a..4a5e62912e2 100644 --- a/tests/baselines/reference/signatureHelp_unionType.baseline +++ b/tests/baselines/reference/signatureHelp_unionType.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/signatureHelp_unionType.ts === // declare const a: (fn?: ((x: string) => string) | ((y: number) => number)) => void; // declare const b: (x: string | number) => void; diff --git a/tests/baselines/reference/simpleRecursionWithBaseCase.symbols b/tests/baselines/reference/simpleRecursionWithBaseCase.symbols deleted file mode 100644 index ffee8b1acba..00000000000 --- a/tests/baselines/reference/simpleRecursionWithBaseCase.symbols +++ /dev/null @@ -1,67 +0,0 @@ -//// [tests/cases/compiler/simpleRecursionWithBaseCase.ts] //// - -=== simpleRecursionWithBaseCase.ts === -function fn1(n: number) { ->fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase.ts, 0, 0)) ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 0, 13)) - - if (n === 0) { ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 0, 13)) - - return 3; - } else { - return fn1(n - 1); ->fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase.ts, 0, 0)) ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 0, 13)) - } -} -const num: number = fn1(); ->num : Symbol(num, Decl(simpleRecursionWithBaseCase.ts, 7, 5)) ->fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase.ts, 0, 0)) - -function fn2(n: number) { ->fn2 : Symbol(fn2, Decl(simpleRecursionWithBaseCase.ts, 7, 26)) ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 9, 13)) - - return fn2(n); ->fn2 : Symbol(fn2, Decl(simpleRecursionWithBaseCase.ts, 7, 26)) ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 9, 13)) -} -const nev: never = fn2(); ->nev : Symbol(nev, Decl(simpleRecursionWithBaseCase.ts, 12, 5)) ->fn2 : Symbol(fn2, Decl(simpleRecursionWithBaseCase.ts, 7, 26)) - -function fn3(n: number) { ->fn3 : Symbol(fn3, Decl(simpleRecursionWithBaseCase.ts, 12, 25)) ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 14, 13)) - - if (n === 0) { ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 14, 13)) - - return 3; - } else { - return fn1("hello world"); ->fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase.ts, 0, 0)) - } -} - -function fn4(n: number) { ->fn4 : Symbol(fn4, Decl(simpleRecursionWithBaseCase.ts, 20, 1)) ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 22, 13)) - - if (n === 0) { ->n : Symbol(n, Decl(simpleRecursionWithBaseCase.ts, 22, 13)) - - return 3; - } else { - return notfoundsymbol("hello world"); - } -} - -function fn5() { ->fn5 : Symbol(fn5, Decl(simpleRecursionWithBaseCase.ts, 28, 1)) - - return [fn5][0](); ->fn5 : Symbol(fn5, Decl(simpleRecursionWithBaseCase.ts, 28, 1)) -} - diff --git a/tests/baselines/reference/simpleRecursionWithBaseCase.errors.txt b/tests/baselines/reference/simpleRecursionWithBaseCase1.errors.txt similarity index 59% rename from tests/baselines/reference/simpleRecursionWithBaseCase.errors.txt rename to tests/baselines/reference/simpleRecursionWithBaseCase1.errors.txt index 5e30f2578cc..77c1830dc69 100644 --- a/tests/baselines/reference/simpleRecursionWithBaseCase.errors.txt +++ b/tests/baselines/reference/simpleRecursionWithBaseCase1.errors.txt @@ -1,11 +1,11 @@ -simpleRecursionWithBaseCase.ts(8,21): error TS2554: Expected 1 arguments, but got 0. -simpleRecursionWithBaseCase.ts(13,20): error TS2554: Expected 1 arguments, but got 0. -simpleRecursionWithBaseCase.ts(19,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. -simpleRecursionWithBaseCase.ts(27,16): error TS2304: Cannot find name 'notfoundsymbol'. -simpleRecursionWithBaseCase.ts(31,10): error TS7023: 'fn5' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +simpleRecursionWithBaseCase1.ts(8,21): error TS2554: Expected 1 arguments, but got 0. +simpleRecursionWithBaseCase1.ts(13,20): error TS2554: Expected 1 arguments, but got 0. +simpleRecursionWithBaseCase1.ts(19,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. +simpleRecursionWithBaseCase1.ts(27,16): error TS2304: Cannot find name 'notfoundsymbol'. +simpleRecursionWithBaseCase1.ts(31,10): error TS7023: 'fn5' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. -==== simpleRecursionWithBaseCase.ts (5 errors) ==== +==== simpleRecursionWithBaseCase1.ts (5 errors) ==== function fn1(n: number) { if (n === 0) { return 3; @@ -16,7 +16,7 @@ simpleRecursionWithBaseCase.ts(31,10): error TS7023: 'fn5' implicitly has return const num: number = fn1(); ~~~~~ !!! error TS2554: Expected 1 arguments, but got 0. -!!! related TS6210 simpleRecursionWithBaseCase.ts:1:14: An argument for 'n' was not provided. +!!! related TS6210 simpleRecursionWithBaseCase1.ts:1:14: An argument for 'n' was not provided. function fn2(n: number) { return fn2(n); @@ -24,7 +24,7 @@ simpleRecursionWithBaseCase.ts(31,10): error TS7023: 'fn5' implicitly has return const nev: never = fn2(); ~~~~~ !!! error TS2554: Expected 1 arguments, but got 0. -!!! related TS6210 simpleRecursionWithBaseCase.ts:10:14: An argument for 'n' was not provided. +!!! related TS6210 simpleRecursionWithBaseCase1.ts:10:14: An argument for 'n' was not provided. function fn3(n: number) { if (n === 0) { diff --git a/tests/baselines/reference/simpleRecursionWithBaseCase.js b/tests/baselines/reference/simpleRecursionWithBaseCase1.js similarity index 84% rename from tests/baselines/reference/simpleRecursionWithBaseCase.js rename to tests/baselines/reference/simpleRecursionWithBaseCase1.js index 41711a8089a..d743dffeaa6 100644 --- a/tests/baselines/reference/simpleRecursionWithBaseCase.js +++ b/tests/baselines/reference/simpleRecursionWithBaseCase1.js @@ -1,6 +1,6 @@ -//// [tests/cases/compiler/simpleRecursionWithBaseCase.ts] //// +//// [tests/cases/compiler/simpleRecursionWithBaseCase1.ts] //// -//// [simpleRecursionWithBaseCase.ts] +//// [simpleRecursionWithBaseCase1.ts] function fn1(n: number) { if (n === 0) { return 3; @@ -36,7 +36,7 @@ function fn5() { } -//// [simpleRecursionWithBaseCase.js] +//// [simpleRecursionWithBaseCase1.js] "use strict"; function fn1(n) { if (n === 0) { diff --git a/tests/baselines/reference/simpleRecursionWithBaseCase1.symbols b/tests/baselines/reference/simpleRecursionWithBaseCase1.symbols new file mode 100644 index 00000000000..23d282c63ee --- /dev/null +++ b/tests/baselines/reference/simpleRecursionWithBaseCase1.symbols @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/simpleRecursionWithBaseCase1.ts] //// + +=== simpleRecursionWithBaseCase1.ts === +function fn1(n: number) { +>fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase1.ts, 0, 0)) +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 0, 13)) + + if (n === 0) { +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 0, 13)) + + return 3; + } else { + return fn1(n - 1); +>fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase1.ts, 0, 0)) +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 0, 13)) + } +} +const num: number = fn1(); +>num : Symbol(num, Decl(simpleRecursionWithBaseCase1.ts, 7, 5)) +>fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase1.ts, 0, 0)) + +function fn2(n: number) { +>fn2 : Symbol(fn2, Decl(simpleRecursionWithBaseCase1.ts, 7, 26)) +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 9, 13)) + + return fn2(n); +>fn2 : Symbol(fn2, Decl(simpleRecursionWithBaseCase1.ts, 7, 26)) +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 9, 13)) +} +const nev: never = fn2(); +>nev : Symbol(nev, Decl(simpleRecursionWithBaseCase1.ts, 12, 5)) +>fn2 : Symbol(fn2, Decl(simpleRecursionWithBaseCase1.ts, 7, 26)) + +function fn3(n: number) { +>fn3 : Symbol(fn3, Decl(simpleRecursionWithBaseCase1.ts, 12, 25)) +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 14, 13)) + + if (n === 0) { +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 14, 13)) + + return 3; + } else { + return fn1("hello world"); +>fn1 : Symbol(fn1, Decl(simpleRecursionWithBaseCase1.ts, 0, 0)) + } +} + +function fn4(n: number) { +>fn4 : Symbol(fn4, Decl(simpleRecursionWithBaseCase1.ts, 20, 1)) +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 22, 13)) + + if (n === 0) { +>n : Symbol(n, Decl(simpleRecursionWithBaseCase1.ts, 22, 13)) + + return 3; + } else { + return notfoundsymbol("hello world"); + } +} + +function fn5() { +>fn5 : Symbol(fn5, Decl(simpleRecursionWithBaseCase1.ts, 28, 1)) + + return [fn5][0](); +>fn5 : Symbol(fn5, Decl(simpleRecursionWithBaseCase1.ts, 28, 1)) +} + diff --git a/tests/baselines/reference/simpleRecursionWithBaseCase.types b/tests/baselines/reference/simpleRecursionWithBaseCase1.types similarity index 87% rename from tests/baselines/reference/simpleRecursionWithBaseCase.types rename to tests/baselines/reference/simpleRecursionWithBaseCase1.types index e80cb085238..e05a9c85422 100644 --- a/tests/baselines/reference/simpleRecursionWithBaseCase.types +++ b/tests/baselines/reference/simpleRecursionWithBaseCase1.types @@ -1,6 +1,6 @@ -//// [tests/cases/compiler/simpleRecursionWithBaseCase.ts] //// +//// [tests/cases/compiler/simpleRecursionWithBaseCase1.ts] //// -=== simpleRecursionWithBaseCase.ts === +=== simpleRecursionWithBaseCase1.ts === function fn1(n: number) { >fn1 : (n: number) => number >n : number diff --git a/tests/baselines/reference/simpleRecursionWithBaseCase2.symbols b/tests/baselines/reference/simpleRecursionWithBaseCase2.symbols new file mode 100644 index 00000000000..5d136037364 --- /dev/null +++ b/tests/baselines/reference/simpleRecursionWithBaseCase2.symbols @@ -0,0 +1,119 @@ +//// [tests/cases/compiler/simpleRecursionWithBaseCase2.ts] //// + +=== simpleRecursionWithBaseCase2.ts === +async function rec1() { +>rec1 : Symbol(rec1, Decl(simpleRecursionWithBaseCase2.ts, 0, 0)) + + if (Math.random() < 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return rec1(); +>rec1 : Symbol(rec1, Decl(simpleRecursionWithBaseCase2.ts, 0, 0)) + + } else { + return "hello"; + } +} + +async function rec2() { +>rec2 : Symbol(rec2, Decl(simpleRecursionWithBaseCase2.ts, 6, 1)) + + if (Math.random() < 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return await rec2(); +>rec2 : Symbol(rec2, Decl(simpleRecursionWithBaseCase2.ts, 6, 1)) + + } else { + return "hello"; + } +} + +async function rec3() { +>rec3 : Symbol(rec3, Decl(simpleRecursionWithBaseCase2.ts, 14, 1)) + + return rec3(); +>rec3 : Symbol(rec3, Decl(simpleRecursionWithBaseCase2.ts, 14, 1)) +} + +async function rec4() { +>rec4 : Symbol(rec4, Decl(simpleRecursionWithBaseCase2.ts, 18, 1)) + + return await rec4(); +>rec4 : Symbol(rec4, Decl(simpleRecursionWithBaseCase2.ts, 18, 1)) +} + +async function rec5() { +>rec5 : Symbol(rec5, Decl(simpleRecursionWithBaseCase2.ts, 22, 1)) + + if (Math.random() < 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return ((rec1())); +>rec1 : Symbol(rec1, Decl(simpleRecursionWithBaseCase2.ts, 0, 0)) + + } else { + return "hello"; + } +} + +async function rec6() { +>rec6 : Symbol(rec6, Decl(simpleRecursionWithBaseCase2.ts, 30, 1)) + + if (Math.random() < 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return await ((rec1())); +>rec1 : Symbol(rec1, Decl(simpleRecursionWithBaseCase2.ts, 0, 0)) + + } else { + return "hello"; + } +} + +declare const ps: Promise | number; +>ps : Symbol(ps, Decl(simpleRecursionWithBaseCase2.ts, 40, 13)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) + +async function foo1() { +>foo1 : Symbol(foo1, Decl(simpleRecursionWithBaseCase2.ts, 40, 43)) + + if (Math.random() > 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return ps; +>ps : Symbol(ps, Decl(simpleRecursionWithBaseCase2.ts, 40, 13)) + + } else { + return await foo1(); +>foo1 : Symbol(foo1, Decl(simpleRecursionWithBaseCase2.ts, 40, 43)) + } +} + +async function foo2() { +>foo2 : Symbol(foo2, Decl(simpleRecursionWithBaseCase2.ts, 48, 1)) + + if (Math.random() > 0.5) { +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + + return ps; +>ps : Symbol(ps, Decl(simpleRecursionWithBaseCase2.ts, 40, 13)) + + } else { + return foo2(); +>foo2 : Symbol(foo2, Decl(simpleRecursionWithBaseCase2.ts, 48, 1)) + } +} + diff --git a/tests/baselines/reference/simpleRecursionWithBaseCase2.types b/tests/baselines/reference/simpleRecursionWithBaseCase2.types new file mode 100644 index 00000000000..2afe3c81fe7 --- /dev/null +++ b/tests/baselines/reference/simpleRecursionWithBaseCase2.types @@ -0,0 +1,156 @@ +//// [tests/cases/compiler/simpleRecursionWithBaseCase2.ts] //// + +=== simpleRecursionWithBaseCase2.ts === +async function rec1() { +>rec1 : () => Promise + + if (Math.random() < 0.5) { +>Math.random() < 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + + return rec1(); +>rec1() : Promise +>rec1 : () => Promise + + } else { + return "hello"; +>"hello" : "hello" + } +} + +async function rec2() { +>rec2 : () => Promise + + if (Math.random() < 0.5) { +>Math.random() < 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + + return await rec2(); +>await rec2() : string +>rec2() : Promise +>rec2 : () => Promise + + } else { + return "hello"; +>"hello" : "hello" + } +} + +async function rec3() { +>rec3 : () => Promise + + return rec3(); +>rec3() : Promise +>rec3 : () => Promise +} + +async function rec4() { +>rec4 : () => Promise + + return await rec4(); +>await rec4() : never +>rec4() : Promise +>rec4 : () => Promise +} + +async function rec5() { +>rec5 : () => Promise + + if (Math.random() < 0.5) { +>Math.random() < 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + + return ((rec1())); +>((rec1())) : Promise +>(rec1()) : Promise +>rec1() : Promise +>rec1 : () => Promise + + } else { + return "hello"; +>"hello" : "hello" + } +} + +async function rec6() { +>rec6 : () => Promise + + if (Math.random() < 0.5) { +>Math.random() < 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + + return await ((rec1())); +>await ((rec1())) : string +>((rec1())) : Promise +>(rec1()) : Promise +>rec1() : Promise +>rec1 : () => Promise + + } else { + return "hello"; +>"hello" : "hello" + } +} + +declare const ps: Promise | number; +>ps : number | Promise + +async function foo1() { +>foo1 : () => Promise + + if (Math.random() > 0.5) { +>Math.random() > 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + + return ps; +>ps : number | Promise + + } else { + return await foo1(); +>await foo1() : string | number +>foo1() : Promise +>foo1 : () => Promise + } +} + +async function foo2() { +>foo2 : () => Promise + + if (Math.random() > 0.5) { +>Math.random() > 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + + return ps; +>ps : number | Promise + + } else { + return foo2(); +>foo2() : Promise +>foo2 : () => Promise + } +} + diff --git a/tests/baselines/reference/smartSelection_JSDoc.baseline b/tests/baselines/reference/smartSelection_JSDoc.baseline index 6f223644e43..dbee4ea20f3 100644 --- a/tests/baselines/reference/smartSelection_JSDoc.baseline +++ b/tests/baselines/reference/smartSelection_JSDoc.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === // Not a JSDoc comment /** * @param {number} x The number to square diff --git a/tests/baselines/reference/smartSelection_JSDocTags1.baseline b/tests/baselines/reference/smartSelection_JSDocTags1.baseline index 26c5fb2e9b3..f81f3ff22f7 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags1.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags1.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @returns {Array<{ value: /**/string }>} */ diff --git a/tests/baselines/reference/smartSelection_JSDocTags10.baseline b/tests/baselines/reference/smartSelection_JSDocTags10.baseline index 195a0bd6eb3..2e6d61512f5 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags10.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags10.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @template T * @extends {/**/Set} diff --git a/tests/baselines/reference/smartSelection_JSDocTags11.baseline b/tests/baselines/reference/smartSelection_JSDocTags11.baseline index 65972750980..22d85592c2c 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags11.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags11.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const x = 1; type Foo = { /** comment */ diff --git a/tests/baselines/reference/smartSelection_JSDocTags12.baseline b/tests/baselines/reference/smartSelection_JSDocTags12.baseline index 82acc073265..27e9299bce6 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags12.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags12.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === type B = {}; type A = { a(/** Comment */ /**/p0: number, /** Comment */ p1: number, /** Comment */ p2: number): string; diff --git a/tests/baselines/reference/smartSelection_JSDocTags13.baseline b/tests/baselines/reference/smartSelection_JSDocTags13.baseline index 5a68ca1e23b..fa3e734fbe4 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags13.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags13.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === let a; let b: { /** Comment */ /**/p0: number diff --git a/tests/baselines/reference/smartSelection_JSDocTags2.baseline b/tests/baselines/reference/smartSelection_JSDocTags2.baseline index e7c80be4688..30e52bdd811 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags2.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags2.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @type {/**/string} */ diff --git a/tests/baselines/reference/smartSelection_JSDocTags3.baseline b/tests/baselines/reference/smartSelection_JSDocTags3.baseline index d4c29c10733..3c5e5d61231 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags3.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags3.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @param {/**/string} x */ diff --git a/tests/baselines/reference/smartSelection_JSDocTags4.baseline b/tests/baselines/reference/smartSelection_JSDocTags4.baseline index 7a82e42bd48..4e8f46b7231 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags4.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags4.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @typedef {object} Foo * @property {string} a diff --git a/tests/baselines/reference/smartSelection_JSDocTags5.baseline b/tests/baselines/reference/smartSelection_JSDocTags5.baseline index 2d1913987d2..0190c0a29b1 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags5.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags5.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @callback Foo * @param {string} data diff --git a/tests/baselines/reference/smartSelection_JSDocTags6.baseline b/tests/baselines/reference/smartSelection_JSDocTags6.baseline index 5475ba42b45..dd12beba973 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags6.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags6.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @template T * @param {/**/T} x diff --git a/tests/baselines/reference/smartSelection_JSDocTags7.baseline b/tests/baselines/reference/smartSelection_JSDocTags7.baseline index 2e67e7f5d04..4efef4413aa 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags7.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags7.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @constructor * @param {/**/number} data diff --git a/tests/baselines/reference/smartSelection_JSDocTags8.baseline b/tests/baselines/reference/smartSelection_JSDocTags8.baseline index 4c50de4c099..8cb58f0c774 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags8.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags8.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** * @this {/**/Foo} * @param {*} e diff --git a/tests/baselines/reference/smartSelection_JSDocTags9.baseline b/tests/baselines/reference/smartSelection_JSDocTags9.baseline index 9192ca8fdc2..519e3a2ce7b 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags9.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags9.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === /** @enum {/**/number} */ const Foo = { x: 0, diff --git a/tests/baselines/reference/smartSelection_behindCaret.baseline b/tests/baselines/reference/smartSelection_behindCaret.baseline index 6b7b393f7ea..ad31ec6e7e7 100644 --- a/tests/baselines/reference/smartSelection_behindCaret.baseline +++ b/tests/baselines/reference/smartSelection_behindCaret.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === let/**/ x: string let diff --git a/tests/baselines/reference/smartSelection_bindingPatterns.baseline b/tests/baselines/reference/smartSelection_bindingPatterns.baseline index 78f3e4a10b7..05740da1c79 100644 --- a/tests/baselines/reference/smartSelection_bindingPatterns.baseline +++ b/tests/baselines/reference/smartSelection_bindingPatterns.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const { /**/x, y: a, ...zs = {} } = {}; x diff --git a/tests/baselines/reference/smartSelection_comment1.baseline b/tests/baselines/reference/smartSelection_comment1.baseline index 2e541c0b230..2ce4a0f7c03 100644 --- a/tests/baselines/reference/smartSelection_comment1.baseline +++ b/tests/baselines/reference/smartSelection_comment1.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const a = 1; ///**/comment content comment content diff --git a/tests/baselines/reference/smartSelection_comment2.baseline b/tests/baselines/reference/smartSelection_comment2.baseline index ccb5286f0b5..4ce50a231cf 100644 --- a/tests/baselines/reference/smartSelection_comment2.baseline +++ b/tests/baselines/reference/smartSelection_comment2.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const a = 1; //a b/**/c d a bc d diff --git a/tests/baselines/reference/smartSelection_complex.baseline b/tests/baselines/reference/smartSelection_complex.baseline index 2fc5c68c449..df5537f4cb1 100644 --- a/tests/baselines/reference/smartSelection_complex.baseline +++ b/tests/baselines/reference/smartSelection_complex.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === type X = IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[/**/K] : P[K]; } & Pick>) K diff --git a/tests/baselines/reference/smartSelection_emptyRanges.baseline b/tests/baselines/reference/smartSelection_emptyRanges.baseline index e2d9bfae3f6..907314e506a 100644 --- a/tests/baselines/reference/smartSelection_emptyRanges.baseline +++ b/tests/baselines/reference/smartSelection_emptyRanges.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === class HomePage { componentDidMount(/**/) { if (this.props.username) { diff --git a/tests/baselines/reference/smartSelection_function1.baseline b/tests/baselines/reference/smartSelection_function1.baseline index 908d7e1b510..6344b9c6471 100644 --- a/tests/baselines/reference/smartSelection_function1.baseline +++ b/tests/baselines/reference/smartSelection_function1.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const f1 = () => { /**/ }; diff --git a/tests/baselines/reference/smartSelection_function2.baseline b/tests/baselines/reference/smartSelection_function2.baseline index 3d92a4c3582..1b4f84b37c5 100644 --- a/tests/baselines/reference/smartSelection_function2.baseline +++ b/tests/baselines/reference/smartSelection_function2.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === function f2() { /**/ } diff --git a/tests/baselines/reference/smartSelection_function3.baseline b/tests/baselines/reference/smartSelection_function3.baseline index 230106f98fa..afd3e7948cf 100644 --- a/tests/baselines/reference/smartSelection_function3.baseline +++ b/tests/baselines/reference/smartSelection_function3.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const f3 = function () { /**/ } diff --git a/tests/baselines/reference/smartSelection_functionParams1.baseline b/tests/baselines/reference/smartSelection_functionParams1.baseline index 1162ceb917a..555d09e0c34 100644 --- a/tests/baselines/reference/smartSelection_functionParams1.baseline +++ b/tests/baselines/reference/smartSelection_functionParams1.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === function f(/**/p, q?, ...r: any[] = []) {} p diff --git a/tests/baselines/reference/smartSelection_functionParams2.baseline b/tests/baselines/reference/smartSelection_functionParams2.baseline index 5f355ff0f0e..8c6c1d318b8 100644 --- a/tests/baselines/reference/smartSelection_functionParams2.baseline +++ b/tests/baselines/reference/smartSelection_functionParams2.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === function f( a, /**/b diff --git a/tests/baselines/reference/smartSelection_imports.baseline b/tests/baselines/reference/smartSelection_imports.baseline index f3a449ee13e..0f9ecd5402c 100644 --- a/tests/baselines/reference/smartSelection_imports.baseline +++ b/tests/baselines/reference/smartSelection_imports.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === import { /**/x as y, z } from './z'; import { b } from './'; diff --git a/tests/baselines/reference/smartSelection_lastBlankLine.baseline b/tests/baselines/reference/smartSelection_lastBlankLine.baseline index 3cbad44aac4..9041f4dd74e 100644 --- a/tests/baselines/reference/smartSelection_lastBlankLine.baseline +++ b/tests/baselines/reference/smartSelection_lastBlankLine.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === class C {} /**/ diff --git a/tests/baselines/reference/smartSelection_loneVariableDeclaration.baseline b/tests/baselines/reference/smartSelection_loneVariableDeclaration.baseline index df2345bd20f..c1151f045f8 100644 --- a/tests/baselines/reference/smartSelection_loneVariableDeclaration.baseline +++ b/tests/baselines/reference/smartSelection_loneVariableDeclaration.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const /**/x = 3; x diff --git a/tests/baselines/reference/smartSelection_mappedTypes.baseline b/tests/baselines/reference/smartSelection_mappedTypes.baseline index 5dd6b37d7fe..a86781764a5 100644 --- a/tests/baselines/reference/smartSelection_mappedTypes.baseline +++ b/tests/baselines/reference/smartSelection_mappedTypes.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === type M = { /**/-readonly [K in keyof any]-?: any }; - diff --git a/tests/baselines/reference/smartSelection_objectTypes.baseline b/tests/baselines/reference/smartSelection_objectTypes.baseline index 612d5df2faa..bbddb7b86af 100644 --- a/tests/baselines/reference/smartSelection_objectTypes.baseline +++ b/tests/baselines/reference/smartSelection_objectTypes.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === type X = { /**/foo?: string; readonly bar: { x: number }; diff --git a/tests/baselines/reference/smartSelection_punctuationPriority.baseline b/tests/baselines/reference/smartSelection_punctuationPriority.baseline index 176327b8c98..751bb9c96c3 100644 --- a/tests/baselines/reference/smartSelection_punctuationPriority.baseline +++ b/tests/baselines/reference/smartSelection_punctuationPriority.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === console/**/.log(); console diff --git a/tests/baselines/reference/smartSelection_simple1.baseline b/tests/baselines/reference/smartSelection_simple1.baseline index 16cc30487d8..9a12de3f735 100644 --- a/tests/baselines/reference/smartSelection_simple1.baseline +++ b/tests/baselines/reference/smartSelection_simple1.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === class Foo { bar(a, b) { if (/**/a === b) { diff --git a/tests/baselines/reference/smartSelection_simple2.baseline b/tests/baselines/reference/smartSelection_simple2.baseline index 2c4b520d449..1a8c06681c6 100644 --- a/tests/baselines/reference/smartSelection_simple2.baseline +++ b/tests/baselines/reference/smartSelection_simple2.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === export interface IService { _serviceBrand: any; diff --git a/tests/baselines/reference/smartSelection_stringLiteral.baseline b/tests/baselines/reference/smartSelection_stringLiteral.baseline index 4e062d162ce..137bf44a6b5 100644 --- a/tests/baselines/reference/smartSelection_stringLiteral.baseline +++ b/tests/baselines/reference/smartSelection_stringLiteral.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === const a = 'a'; const b = /**/'b'; diff --git a/tests/baselines/reference/smartSelection_templateStrings.baseline b/tests/baselines/reference/smartSelection_templateStrings.baseline index 91fec157842..48e71b2db79 100644 --- a/tests/baselines/reference/smartSelection_templateStrings.baseline +++ b/tests/baselines/reference/smartSelection_templateStrings.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === `a /**/b ${ 'c' } d` diff --git a/tests/baselines/reference/smartSelection_templateStrings2.baseline b/tests/baselines/reference/smartSelection_templateStrings2.baseline index cb49f567cb6..d755f49a2a7 100644 --- a/tests/baselines/reference/smartSelection_templateStrings2.baseline +++ b/tests/baselines/reference/smartSelection_templateStrings2.baseline @@ -1,3 +1,4 @@ +// === Smart Selection === `a ${b} /**/c` a ${b} c diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map index 5d54d7ce505..978d87c83e9 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map @@ -1,3 +1,3 @@ //// [sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map] -{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAA,qEAGC;QAFU,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBBYnN0cmFjdEdyZWV0ZXIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7DQogICAgZnVuY3Rpb24gQWJzdHJhY3RHcmVldGVyKCkgew0KICAgIH0NCiAgICByZXR1cm4gQWJzdHJhY3RHcmVldGVyOw0KfSgpKTsNCnZhciBHcmVldGVyID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKF9zdXBlcikgew0KICAgIF9fZXh0ZW5kcyhHcmVldGVyLCBfc3VwZXIpOw0KICAgIGZ1bmN0aW9uIEdyZWV0ZXIoKSB7DQogICAgICAgIHZhciBfdGhpcyA9IF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5hID0gMTA7DQogICAgICAgIF90aGlzLm5hbWVBID0gIlRlbiI7DQogICAgICAgIHJldHVybiBfdGhpczsNCiAgICB9DQogICAgcmV0dXJuIEdyZWV0ZXI7DQp9KEFic3RyYWN0R3JlZXRlcikpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uQ2xhc3NXaXRoRGVmYXVsdENvbnN0cnVjdG9yQW5kRXh0ZW5kc0NsYXVzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTtJQUFBO0lBQ0EsQ0FBQztJQUFELHNCQUFDO0FBQUQsQ0FBQyxBQURELElBQ0M7QUFFRDtJQUFzQiwyQkFBZTtJQUFyQztRQUFBLHFFQUdDO1FBRlUsT0FBQyxHQUFHLEVBQUUsQ0FBQztRQUNQLFdBQUssR0FBRyxLQUFLLENBQUM7O0lBQ3pCLENBQUM7SUFBRCxjQUFDO0FBQUQsQ0FBQyxBQUhELENBQXNCLGVBQWUsR0FHcEMifQ==,Y2xhc3MgQWJzdHJhY3RHcmVldGVyIHsKfQoKY2xhc3MgR3JlZXRlciBleHRlbmRzIEFic3RyYWN0R3JlZXRlciB7CiAgICBwdWJsaWMgYSA9IDEwOwogICAgcHVibGljIG5hbWVBID0gIlRlbiI7Cn0= +{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;;QACW,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBBYnN0cmFjdEdyZWV0ZXIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7DQogICAgZnVuY3Rpb24gQWJzdHJhY3RHcmVldGVyKCkgew0KICAgIH0NCiAgICByZXR1cm4gQWJzdHJhY3RHcmVldGVyOw0KfSgpKTsNCnZhciBHcmVldGVyID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKF9zdXBlcikgew0KICAgIF9fZXh0ZW5kcyhHcmVldGVyLCBfc3VwZXIpOw0KICAgIGZ1bmN0aW9uIEdyZWV0ZXIoKSB7DQogICAgICAgIHZhciBfdGhpcyA9IF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5hID0gMTA7DQogICAgICAgIF90aGlzLm5hbWVBID0gIlRlbiI7DQogICAgICAgIHJldHVybiBfdGhpczsNCiAgICB9DQogICAgcmV0dXJuIEdyZWV0ZXI7DQp9KEFic3RyYWN0R3JlZXRlcikpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uQ2xhc3NXaXRoRGVmYXVsdENvbnN0cnVjdG9yQW5kRXh0ZW5kc0NsYXVzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTtJQUFBO0lBQ0EsQ0FBQztJQUFELHNCQUFDO0FBQUQsQ0FBQyxBQURELElBQ0M7QUFFRDtJQUFzQiwyQkFBZTtJQUFyQzs7UUFDVyxPQUFDLEdBQUcsRUFBRSxDQUFDO1FBQ1AsV0FBSyxHQUFHLEtBQUssQ0FBQzs7SUFDekIsQ0FBQztJQUFELGNBQUM7QUFBRCxDQUFDLEFBSEQsQ0FBc0IsZUFBZSxHQUdwQyJ9,Y2xhc3MgQWJzdHJhY3RHcmVldGVyIHsKfQoKY2xhc3MgR3JlZXRlciBleHRlbmRzIEFic3RyYWN0R3JlZXRlciB7CiAgICBwdWJsaWMgYSA9IDEwOwogICAgcHVibGljIG5hbWVBID0gIlRlbiI7Cn0= diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt index cb8de191c8f..63e48feb6da 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt @@ -92,29 +92,20 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1 >Emitted(23, 5) Source(4, 1) + SourceIndex(0) --- >>> var _this = _super !== null && _super.apply(this, arguments) || this; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > class Greeter extends AbstractGreeter { - > public a = 10; - > public nameA = "Ten"; - > } -1->Emitted(24, 9) Source(4, 1) + SourceIndex(0) -2 >Emitted(24, 78) Source(7, 2) + SourceIndex(0) ---- >>> _this.a = 10; -1 >^^^^^^^^ +1->^^^^^^^^ 2 > ^^^^^^^ 3 > ^^^ 4 > ^^ 5 > ^ 6 > ^^^^^^^^-> -1 > +1->class Greeter extends AbstractGreeter { + > public 2 > a 3 > = 4 > 10 5 > ; -1 >Emitted(25, 9) Source(5, 12) + SourceIndex(0) +1->Emitted(25, 9) Source(5, 12) + SourceIndex(0) 2 >Emitted(25, 16) Source(5, 13) + SourceIndex(0) 3 >Emitted(25, 19) Source(5, 16) + SourceIndex(0) 4 >Emitted(25, 21) Source(5, 18) + SourceIndex(0) diff --git a/tests/baselines/reference/strictModeInConstructor.js b/tests/baselines/reference/strictModeInConstructor.js index c0cf843fcec..3009bd8e018 100644 --- a/tests/baselines/reference/strictModeInConstructor.js +++ b/tests/baselines/reference/strictModeInConstructor.js @@ -97,7 +97,7 @@ var B = /** @class */ (function (_super) { var C = /** @class */ (function (_super) { __extends(C, _super); function C() { - var _this = _super.call(this) || this; + var _this = _super.call(this) || this; // No error _this.s = 9; "use strict"; return _this; @@ -129,7 +129,7 @@ var Bs = /** @class */ (function (_super) { var Cs = /** @class */ (function (_super) { __extends(Cs, _super); function Cs() { - var _this = _super.call(this) || this; + var _this = _super.call(this) || this; // No error "use strict"; return _this; } diff --git a/tests/baselines/reference/stringMappingDeferralInConditionalTypes.symbols b/tests/baselines/reference/stringMappingDeferralInConditionalTypes.symbols new file mode 100644 index 00000000000..dc7a1a0bae7 --- /dev/null +++ b/tests/baselines/reference/stringMappingDeferralInConditionalTypes.symbols @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/types/literal/stringMappingDeferralInConditionalTypes.ts] //// + +=== stringMappingDeferralInConditionalTypes.ts === +// https://github.com/microsoft/TypeScript/issues/55847 + +type A = Lowercase extends "foo" ? 1 : 0; +>A : Symbol(A, Decl(stringMappingDeferralInConditionalTypes.ts, 0, 0)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 2, 7)) +>Lowercase : Symbol(Lowercase, Decl(lib.es5.d.ts, --, --)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 2, 7)) + +let x1: A<"foo"> = 1; // ok +>x1 : Symbol(x1, Decl(stringMappingDeferralInConditionalTypes.ts, 3, 3)) +>A : Symbol(A, Decl(stringMappingDeferralInConditionalTypes.ts, 0, 0)) + +type B = Lowercase extends `f${string}` ? 1 : 0; +>B : Symbol(B, Decl(stringMappingDeferralInConditionalTypes.ts, 3, 21)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 5, 7)) +>Lowercase : Symbol(Lowercase, Decl(lib.es5.d.ts, --, --)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 5, 7)) + +let x2: B<"foo"> = 1; // ok +>x2 : Symbol(x2, Decl(stringMappingDeferralInConditionalTypes.ts, 6, 3)) +>B : Symbol(B, Decl(stringMappingDeferralInConditionalTypes.ts, 3, 21)) + +type C = Capitalize> extends "Foo" ? 1 : 0; +>C : Symbol(C, Decl(stringMappingDeferralInConditionalTypes.ts, 6, 21)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 8, 7)) +>Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --)) +>Lowercase : Symbol(Lowercase, Decl(lib.es5.d.ts, --, --)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 8, 7)) + +let x3: C<"foo"> = 1; // ok +>x3 : Symbol(x3, Decl(stringMappingDeferralInConditionalTypes.ts, 9, 3)) +>C : Symbol(C, Decl(stringMappingDeferralInConditionalTypes.ts, 6, 21)) + +type D = Capitalize> extends "Foo" ? 1 : 0; +>D : Symbol(D, Decl(stringMappingDeferralInConditionalTypes.ts, 9, 21)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 11, 7)) +>Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --)) +>Lowercase : Symbol(Lowercase, Decl(lib.es5.d.ts, --, --)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 11, 7)) + +let x4: D<"foo"> = 1; // ok +>x4 : Symbol(x4, Decl(stringMappingDeferralInConditionalTypes.ts, 12, 3)) +>D : Symbol(D, Decl(stringMappingDeferralInConditionalTypes.ts, 9, 21)) + +type E = Lowercase<`f${S & string}` & `${S & string}f`>; +>E : Symbol(E, Decl(stringMappingDeferralInConditionalTypes.ts, 12, 21)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 14, 7)) +>Lowercase : Symbol(Lowercase, Decl(lib.es5.d.ts, --, --)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 14, 7)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 14, 7)) + +type F = E<""> extends "f" ? 1 : 0; // 1 +>F : Symbol(F, Decl(stringMappingDeferralInConditionalTypes.ts, 14, 59)) +>E : Symbol(E, Decl(stringMappingDeferralInConditionalTypes.ts, 12, 21)) + +type G = E extends "f" ? 1 : 0; +>G : Symbol(G, Decl(stringMappingDeferralInConditionalTypes.ts, 15, 35)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 16, 7)) +>E : Symbol(E, Decl(stringMappingDeferralInConditionalTypes.ts, 12, 21)) +>S : Symbol(S, Decl(stringMappingDeferralInConditionalTypes.ts, 16, 7)) + +let x5: G<""> = 1; // ok +>x5 : Symbol(x5, Decl(stringMappingDeferralInConditionalTypes.ts, 17, 3)) +>G : Symbol(G, Decl(stringMappingDeferralInConditionalTypes.ts, 15, 35)) + diff --git a/tests/baselines/reference/stringMappingDeferralInConditionalTypes.types b/tests/baselines/reference/stringMappingDeferralInConditionalTypes.types new file mode 100644 index 00000000000..2fe4b9b9415 --- /dev/null +++ b/tests/baselines/reference/stringMappingDeferralInConditionalTypes.types @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/types/literal/stringMappingDeferralInConditionalTypes.ts] //// + +=== stringMappingDeferralInConditionalTypes.ts === +// https://github.com/microsoft/TypeScript/issues/55847 + +type A = Lowercase extends "foo" ? 1 : 0; +>A : A + +let x1: A<"foo"> = 1; // ok +>x1 : 1 +>1 : 1 + +type B = Lowercase extends `f${string}` ? 1 : 0; +>B : B + +let x2: B<"foo"> = 1; // ok +>x2 : 1 +>1 : 1 + +type C = Capitalize> extends "Foo" ? 1 : 0; +>C : C + +let x3: C<"foo"> = 1; // ok +>x3 : 1 +>1 : 1 + +type D = Capitalize> extends "Foo" ? 1 : 0; +>D : D + +let x4: D<"foo"> = 1; // ok +>x4 : 1 +>1 : 1 + +type E = Lowercase<`f${S & string}` & `${S & string}f`>; +>E : Lowercase<`f${S & string}` & `${S & string}f`> + +type F = E<""> extends "f" ? 1 : 0; // 1 +>F : 1 + +type G = E extends "f" ? 1 : 0; +>G : G + +let x5: G<""> = 1; // ok +>x5 : 1 +>1 : 1 + diff --git a/tests/baselines/reference/superCallArgsMustMatch.js b/tests/baselines/reference/superCallArgsMustMatch.js index fb131390c77..ef0926b4aed 100644 --- a/tests/baselines/reference/superCallArgsMustMatch.js +++ b/tests/baselines/reference/superCallArgsMustMatch.js @@ -52,10 +52,9 @@ var T5 = /** @class */ (function () { var T6 = /** @class */ (function (_super) { __extends(T6, _super); function T6() { - var _this = // Should error; base constructor has type T for first arg, // which is instantiated with 'number' in the extends clause - _super.call(this, "hi") || this; + var _this = _super.call(this, "hi") || this; var x = _this.foo; return _this; } diff --git a/tests/baselines/reference/superCallBeforeThisAccessing2.js b/tests/baselines/reference/superCallBeforeThisAccessing2.js index d98cc8c493e..fda977387ed 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing2.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing2.js @@ -36,7 +36,7 @@ var Base = /** @class */ (function () { var D = /** @class */ (function (_super) { __extends(D, _super); function D() { - var _this = _super.call(this, function () { _this._t; }) || this; + var _this = _super.call(this, function () { _this._t; }) || this; // no error. only check when this is directly accessing in constructor return _this; } return D; diff --git a/tests/baselines/reference/superCallBeforeThisAccessing3.js b/tests/baselines/reference/superCallBeforeThisAccessing3.js index 26f94d674d1..ea89301abe0 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing3.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing3.js @@ -43,8 +43,7 @@ var D = /** @class */ (function (_super) { var x = function () { _this._t; }; x(); // no error; we only check super is called before this when the container is a constructor _this._t; // error - _this = _super.call(this, undefined) || this; - return _this; + return _this = _super.call(this, undefined) || this; } return D; }(Base)); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing4.js b/tests/baselines/reference/superCallBeforeThisAccessing4.js index 118b1918ede..74d9c4cced1 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing4.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing4.js @@ -38,8 +38,7 @@ var D = /** @class */ (function (_super) { function D() { var _this = this; _this._t; - _this = _super.call(this) || this; - return _this; + return _this = _super.call(this) || this; } return D; }(null)); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing7.js b/tests/baselines/reference/superCallBeforeThisAccessing7.js index 61e57f4ec49..b0e64b09729 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing7.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing7.js @@ -43,8 +43,7 @@ var D = /** @class */ (function (_super) { var x = { j: _this._t, }; - _this = _super.call(this, undefined) || this; - return _this; + return _this = _super.call(this, undefined) || this; } return D; }(Base)); diff --git a/tests/baselines/reference/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.js b/tests/baselines/reference/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.js index 63e50ca343a..99a5146cd81 100644 --- a/tests/baselines/reference/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.js +++ b/tests/baselines/reference/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.js @@ -13,7 +13,7 @@ class Foo { //// [superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface.js] var Foo = /** @class */ (function () { function Foo() { - return _super.call(this) || this; + return _super.call(this) || this; // error } return Foo; }()); diff --git a/tests/baselines/reference/superCallInConstructorWithNoBaseType.js b/tests/baselines/reference/superCallInConstructorWithNoBaseType.js index 3e97ae986f6..af6d986156c 100644 --- a/tests/baselines/reference/superCallInConstructorWithNoBaseType.js +++ b/tests/baselines/reference/superCallInConstructorWithNoBaseType.js @@ -16,13 +16,13 @@ class D { //// [superCallInConstructorWithNoBaseType.js] var C = /** @class */ (function () { function C() { - return _super.call(this) || this; + return _super.call(this) || this; // error } return C; }()); var D = /** @class */ (function () { function D(x) { - var _this = _super.call(this) || this; + var _this = _super.call(this) || this; // error this.x = x; return _this; } diff --git a/tests/baselines/reference/superCallParameterContextualTyping3.js b/tests/baselines/reference/superCallParameterContextualTyping3.js index 68789b03121..66bf7c33d3a 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping3.js +++ b/tests/baselines/reference/superCallParameterContextualTyping3.js @@ -59,10 +59,9 @@ var CBase = /** @class */ (function () { var C = /** @class */ (function (_super) { __extends(C, _super); function C() { - var _this = // Should be okay. // 'p' should have type 'string'. - _super.call(this, { + var _this = _super.call(this, { method: function (p) { p.length; } diff --git a/tests/baselines/reference/superWithGenericSpecialization.js b/tests/baselines/reference/superWithGenericSpecialization.js index 738cebaaafb..ab58f494333 100644 --- a/tests/baselines/reference/superWithGenericSpecialization.js +++ b/tests/baselines/reference/superWithGenericSpecialization.js @@ -40,7 +40,7 @@ var C = /** @class */ (function () { var D = /** @class */ (function (_super) { __extends(D, _super); function D() { - return _super.call(this) || this; + return _super.call(this) || this; // uses the type parameter type of the base class, ie string } return D; }(C)); diff --git a/tests/baselines/reference/thisInConstructorParameter2.js b/tests/baselines/reference/thisInConstructorParameter2.js index 61abc7e52d4..b8540253c4d 100644 --- a/tests/baselines/reference/thisInConstructorParameter2.js +++ b/tests/baselines/reference/thisInConstructorParameter2.js @@ -16,13 +16,13 @@ class P { //// [thisInConstructorParameter2.js] var P = /** @class */ (function () { function P(z, zz, zzz) { - var _this = this; if (z === void 0) { z = this; } if (zz === void 0) { zz = this; } if (zzz === void 0) { zzz = function (p) { if (p === void 0) { p = _this; } return _this; }; } + var _this = this; this.z = z; this.x = this; zzz = function (p) { diff --git a/tests/baselines/reference/thisInInvalidContexts.js b/tests/baselines/reference/thisInInvalidContexts.js index b28940e8725..0a00c94b7f3 100644 --- a/tests/baselines/reference/thisInInvalidContexts.js +++ b/tests/baselines/reference/thisInInvalidContexts.js @@ -70,7 +70,7 @@ var ClassWithNoInitializer = /** @class */ (function (_super) { __extends(ClassWithNoInitializer, _super); //'this' in optional super call function ClassWithNoInitializer() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // Error return _this; } return ClassWithNoInitializer; @@ -79,7 +79,7 @@ var ClassWithInitializer = /** @class */ (function (_super) { __extends(ClassWithInitializer, _super); //'this' in required super call function ClassWithInitializer() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // Error _this.t = 4; return _this; } diff --git a/tests/baselines/reference/thisInInvalidContextsExternalModule.js b/tests/baselines/reference/thisInInvalidContextsExternalModule.js index 4e21cfcda6c..e57ab3102fb 100644 --- a/tests/baselines/reference/thisInInvalidContextsExternalModule.js +++ b/tests/baselines/reference/thisInInvalidContextsExternalModule.js @@ -71,7 +71,7 @@ var ClassWithNoInitializer = /** @class */ (function (_super) { __extends(ClassWithNoInitializer, _super); //'this' in optional super call function ClassWithNoInitializer() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // error: "super" has to be called before "this" accessing return _this; } return ClassWithNoInitializer; @@ -80,7 +80,7 @@ var ClassWithInitializer = /** @class */ (function (_super) { __extends(ClassWithInitializer, _super); //'this' in required super call function ClassWithInitializer() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // Error _this.t = 4; return _this; } diff --git a/tests/baselines/reference/thisInSuperCall.js b/tests/baselines/reference/thisInSuperCall.js index 0e6656ce478..db50c0c89b6 100644 --- a/tests/baselines/reference/thisInSuperCall.js +++ b/tests/baselines/reference/thisInSuperCall.js @@ -48,7 +48,7 @@ var Base = /** @class */ (function () { var Foo = /** @class */ (function (_super) { __extends(Foo, _super); function Foo() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // error: "super" has to be called before "this" accessing return _this; } return Foo; @@ -56,7 +56,7 @@ var Foo = /** @class */ (function (_super) { var Foo2 = /** @class */ (function (_super) { __extends(Foo2, _super); function Foo2() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // error _this.p = 0; return _this; } @@ -65,7 +65,7 @@ var Foo2 = /** @class */ (function (_super) { var Foo3 = /** @class */ (function (_super) { __extends(Foo3, _super); function Foo3(p) { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // error _this.p = p; return _this; } diff --git a/tests/baselines/reference/thisInSuperCall2.js b/tests/baselines/reference/thisInSuperCall2.js index 364634df466..decc6c4eb47 100644 --- a/tests/baselines/reference/thisInSuperCall2.js +++ b/tests/baselines/reference/thisInSuperCall2.js @@ -45,7 +45,7 @@ var Base = /** @class */ (function () { var Foo = /** @class */ (function (_super) { __extends(Foo, _super); function Foo() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // error: "super" has to be called before "this" accessing return _this; } return Foo; @@ -53,7 +53,7 @@ var Foo = /** @class */ (function (_super) { var Foo2 = /** @class */ (function (_super) { __extends(Foo2, _super); function Foo2() { - var _this = _super.call(this, _this) || this; + var _this = _super.call(this, _this) || this; // error _this.x = 0; return _this; } diff --git a/tests/baselines/reference/thisPrototypeMethodCompoundAssignment.symbols b/tests/baselines/reference/thisPrototypeMethodCompoundAssignment.symbols new file mode 100644 index 00000000000..6ae74ef642e --- /dev/null +++ b/tests/baselines/reference/thisPrototypeMethodCompoundAssignment.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignment.ts] //// + +=== thisPrototypeMethodCompoundAssignment.ts === +Element.prototype.remove ??= function () { +>Element.prototype.remove : Symbol(ChildNode.remove, Decl(lib.dom.d.ts, --, --)) +>Element.prototype : Symbol(prototype, Decl(lib.dom.d.ts, --, --)) +>Element : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>prototype : Symbol(prototype, Decl(lib.dom.d.ts, --, --)) +>remove : Symbol(ChildNode.remove, Decl(lib.dom.d.ts, --, --)) + + this.parentNode?.removeChild(this); +>this.parentNode?.removeChild : Symbol(Node.removeChild, Decl(lib.dom.d.ts, --, --)) +>this.parentNode : Symbol(Node.parentNode, Decl(lib.dom.d.ts, --, --)) +>this : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>parentNode : Symbol(Node.parentNode, Decl(lib.dom.d.ts, --, --)) +>removeChild : Symbol(Node.removeChild, Decl(lib.dom.d.ts, --, --)) +>this : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +}; + diff --git a/tests/baselines/reference/thisPrototypeMethodCompoundAssignment.types b/tests/baselines/reference/thisPrototypeMethodCompoundAssignment.types new file mode 100644 index 00000000000..fb791050e71 --- /dev/null +++ b/tests/baselines/reference/thisPrototypeMethodCompoundAssignment.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignment.ts] //// + +=== thisPrototypeMethodCompoundAssignment.ts === +Element.prototype.remove ??= function () { +>Element.prototype.remove ??= function () { this.parentNode?.removeChild(this);} : () => void +>Element.prototype.remove : () => void +>Element.prototype : Element +>Element : { new (): Element; prototype: Element; } +>prototype : Element +>remove : () => void +>function () { this.parentNode?.removeChild(this);} : () => void + + this.parentNode?.removeChild(this); +>this.parentNode?.removeChild(this) : Element | undefined +>this.parentNode?.removeChild : ((child: T) => T) | undefined +>this.parentNode : ParentNode | null +>this : Element +>parentNode : ParentNode | null +>removeChild : ((child: T) => T) | undefined +>this : Element + +}; + diff --git a/tests/baselines/reference/thisPrototypeMethodCompoundAssignmentJs.symbols b/tests/baselines/reference/thisPrototypeMethodCompoundAssignmentJs.symbols new file mode 100644 index 00000000000..678d34b28c5 --- /dev/null +++ b/tests/baselines/reference/thisPrototypeMethodCompoundAssignmentJs.symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignmentJs.ts] //// + +=== index.js === +Element.prototype.remove ??= function () { +>Element.prototype.remove : Symbol(ChildNode.remove, Decl(lib.dom.d.ts, --, --)) +>Element.prototype : Symbol(prototype, Decl(lib.dom.d.ts, --, --)) +>Element : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>prototype : Symbol(prototype, Decl(lib.dom.d.ts, --, --)) +>remove : Symbol(ChildNode.remove, Decl(lib.dom.d.ts, --, --)) + + this.parentNode?.removeChild(this); +>this.parentNode?.removeChild : Symbol(Node.removeChild, Decl(lib.dom.d.ts, --, --)) +>this.parentNode : Symbol(Node.parentNode, Decl(lib.dom.d.ts, --, --)) +>this : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>parentNode : Symbol(Node.parentNode, Decl(lib.dom.d.ts, --, --)) +>removeChild : Symbol(Node.removeChild, Decl(lib.dom.d.ts, --, --)) +>this : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +}; + +/** + * @this Node + */ +Element.prototype.remove ??= function () { +>Element.prototype.remove : Symbol(ChildNode.remove, Decl(lib.dom.d.ts, --, --)) +>Element.prototype : Symbol(prototype, Decl(lib.dom.d.ts, --, --)) +>Element : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>prototype : Symbol(prototype, Decl(lib.dom.d.ts, --, --)) +>remove : Symbol(ChildNode.remove, Decl(lib.dom.d.ts, --, --)) + + this.parentNode?.removeChild(this); +>this.parentNode?.removeChild : Symbol(Node.removeChild, Decl(lib.dom.d.ts, --, --)) +>this.parentNode : Symbol(Node.parentNode, Decl(lib.dom.d.ts, --, --)) +>this : Symbol(this) +>parentNode : Symbol(Node.parentNode, Decl(lib.dom.d.ts, --, --)) +>removeChild : Symbol(Node.removeChild, Decl(lib.dom.d.ts, --, --)) +>this : Symbol(this) + +}; + diff --git a/tests/baselines/reference/thisPrototypeMethodCompoundAssignmentJs.types b/tests/baselines/reference/thisPrototypeMethodCompoundAssignmentJs.types new file mode 100644 index 00000000000..f5605442937 --- /dev/null +++ b/tests/baselines/reference/thisPrototypeMethodCompoundAssignmentJs.types @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignmentJs.ts] //// + +=== index.js === +Element.prototype.remove ??= function () { +>Element.prototype.remove ??= function () { this.parentNode?.removeChild(this);} : () => void +>Element.prototype.remove : () => void +>Element.prototype : Element +>Element : { new (): Element; prototype: Element; } +>prototype : Element +>remove : () => void +>function () { this.parentNode?.removeChild(this);} : () => void + + this.parentNode?.removeChild(this); +>this.parentNode?.removeChild(this) : Element | undefined +>this.parentNode?.removeChild : ((child: T) => T) | undefined +>this.parentNode : ParentNode | null +>this : Element +>parentNode : ParentNode | null +>removeChild : ((child: T) => T) | undefined +>this : Element + +}; + +/** + * @this Node + */ +Element.prototype.remove ??= function () { +>Element.prototype.remove ??= function () { this.parentNode?.removeChild(this);} : () => void +>Element.prototype.remove : () => void +>Element.prototype : Element +>Element : { new (): Element; prototype: Element; } +>prototype : Element +>remove : () => void +>function () { this.parentNode?.removeChild(this);} : (this: Node) => void + + this.parentNode?.removeChild(this); +>this.parentNode?.removeChild(this) : Node | undefined +>this.parentNode?.removeChild : ((child: T) => T) | undefined +>this.parentNode : ParentNode | null +>this : Node +>parentNode : ParentNode | null +>removeChild : ((child: T) => T) | undefined +>this : Node + +}; + diff --git a/tests/baselines/reference/thisTag3.errors.txt b/tests/baselines/reference/thisTag3.errors.txt new file mode 100644 index 00000000000..81623b16cef --- /dev/null +++ b/tests/baselines/reference/thisTag3.errors.txt @@ -0,0 +1,21 @@ +/a.js(7,9): error TS2730: An arrow function cannot have a 'this' parameter. +/a.js(10,21): error TS2339: Property 'fn' does not exist on type 'C'. + + +==== /a.js (2 errors) ==== + /** + * @typedef {{fn(a: string): void}} T + */ + + class C { + /** + * @this {T} + ~~~~ +!!! error TS2730: An arrow function cannot have a 'this' parameter. + * @param {string} a + */ + p = (a) => this.fn("" + a); + ~~ +!!! error TS2339: Property 'fn' does not exist on type 'C'. + } + \ No newline at end of file diff --git a/tests/baselines/reference/thisTag3.symbols b/tests/baselines/reference/thisTag3.symbols new file mode 100644 index 00000000000..9fbc0b5aabf --- /dev/null +++ b/tests/baselines/reference/thisTag3.symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/jsdoc/thisTag3.ts] //// + +=== /a.js === +/** + * @typedef {{fn(a: string): void}} T + */ + +class C { +>C : Symbol(C, Decl(a.js, 0, 0)) + + /** + * @this {T} + * @param {string} a + */ + p = (a) => this.fn("" + a); +>p : Symbol(C.p, Decl(a.js, 4, 9)) +>a : Symbol(a, Decl(a.js, 9, 9)) +>this : Symbol(C, Decl(a.js, 0, 0)) +>a : Symbol(a, Decl(a.js, 9, 9)) +} + diff --git a/tests/baselines/reference/thisTag3.types b/tests/baselines/reference/thisTag3.types new file mode 100644 index 00000000000..08334eacaef --- /dev/null +++ b/tests/baselines/reference/thisTag3.types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/jsdoc/thisTag3.ts] //// + +=== /a.js === +/** + * @typedef {{fn(a: string): void}} T + */ + +class C { +>C : C + + /** + * @this {T} + * @param {string} a + */ + p = (a) => this.fn("" + a); +>p : (this: T, a: string) => any +>(a) => this.fn("" + a) : (this: T, a: string) => any +>a : string +>this.fn("" + a) : any +>this.fn : any +>this : this +>fn : any +>"" + a : string +>"" : "" +>a : string +} + diff --git a/tests/baselines/reference/topLevelAwaitErrors.1(module=es2022).errors.txt b/tests/baselines/reference/topLevelAwaitErrors.1(module=es2022).errors.txt index d42f39d7ce8..cc05b8f8865 100644 --- a/tests/baselines/reference/topLevelAwaitErrors.1(module=es2022).errors.txt +++ b/tests/baselines/reference/topLevelAwaitErrors.1(module=es2022).errors.txt @@ -6,7 +6,7 @@ topLevelAwaitErrors.1.ts(8,14): error TS1005: '>' expected. topLevelAwaitErrors.1.ts(8,16): error TS2693: 'string' only refers to a type, but is being used as a value here. topLevelAwaitErrors.1.ts(11,17): error TS1109: Expression expected. topLevelAwaitErrors.1.ts(11,22): error TS1109: Expression expected. -topLevelAwaitErrors.1.ts(11,23): error TS2693: 'string' only refers to a type, but is being used as a value here. +topLevelAwaitErrors.1.ts(11,23): error TS2863: A class cannot extend a primitive type like 'string'. Classes can only extend constructable values. topLevelAwaitErrors.1.ts(11,29): error TS1005: ',' expected. topLevelAwaitErrors.1.ts(15,8): error TS1109: Expression expected. topLevelAwaitErrors.1.ts(18,2): error TS1109: Expression expected. @@ -49,7 +49,7 @@ topLevelAwaitErrors.1.ts(42,20): error TS1109: Expression expected. ~ !!! error TS1109: Expression expected. ~~~~~~ -!!! error TS2693: 'string' only refers to a type, but is being used as a value here. +!!! error TS2863: A class cannot extend a primitive type like 'string'. Classes can only extend constructable values. ~ !!! error TS1005: ',' expected. } diff --git a/tests/baselines/reference/topLevelAwaitErrors.1(module=esnext).errors.txt b/tests/baselines/reference/topLevelAwaitErrors.1(module=esnext).errors.txt index d42f39d7ce8..cc05b8f8865 100644 --- a/tests/baselines/reference/topLevelAwaitErrors.1(module=esnext).errors.txt +++ b/tests/baselines/reference/topLevelAwaitErrors.1(module=esnext).errors.txt @@ -6,7 +6,7 @@ topLevelAwaitErrors.1.ts(8,14): error TS1005: '>' expected. topLevelAwaitErrors.1.ts(8,16): error TS2693: 'string' only refers to a type, but is being used as a value here. topLevelAwaitErrors.1.ts(11,17): error TS1109: Expression expected. topLevelAwaitErrors.1.ts(11,22): error TS1109: Expression expected. -topLevelAwaitErrors.1.ts(11,23): error TS2693: 'string' only refers to a type, but is being used as a value here. +topLevelAwaitErrors.1.ts(11,23): error TS2863: A class cannot extend a primitive type like 'string'. Classes can only extend constructable values. topLevelAwaitErrors.1.ts(11,29): error TS1005: ',' expected. topLevelAwaitErrors.1.ts(15,8): error TS1109: Expression expected. topLevelAwaitErrors.1.ts(18,2): error TS1109: Expression expected. @@ -49,7 +49,7 @@ topLevelAwaitErrors.1.ts(42,20): error TS1109: Expression expected. ~ !!! error TS1109: Expression expected. ~~~~~~ -!!! error TS2693: 'string' only refers to a type, but is being used as a value here. +!!! error TS2863: A class cannot extend a primitive type like 'string'. Classes can only extend constructable values. ~ !!! error TS1005: ',' expected. } diff --git a/tests/baselines/reference/trailingCommaSignatureHelp.baseline b/tests/baselines/reference/trailingCommaSignatureHelp.baseline index 327474709eb..fdcd7d5f6ce 100644 --- a/tests/baselines/reference/trailingCommaSignatureHelp.baseline +++ b/tests/baselines/reference/trailingCommaSignatureHelp.baseline @@ -1,3 +1,4 @@ +// === SignatureHelp === === /tests/cases/fourslash/trailingCommaSignatureHelp.ts === // function str(n: number): string; // /** diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js index 567ccb0295e..014b8a37247 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js @@ -16,28 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -53,35 +59,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:06 AM] Projects in this build: +[12:00:16 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:07 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:17 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/lib/tsconfig.json'... +[12:00:18 AM] Building project '/src/lib/tsconfig.json'... -[12:00:17 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:18 AM] Building project '/src/app/tsconfig.json'... +[12:00:28 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -472,7 +479,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":445,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":445,"kind":"text"}]},{"pos":445,"end":664,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"8716820086-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":445,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":445,"kind":"text"}]},{"pos":445,"end":664,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"8716820086-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -598,7 +605,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -624,7 +631,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3705 + "size": 3706 } //// [/src/lib/module.d.ts] @@ -1022,17 +1029,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:32 AM] Projects in this build: +[12:00:42 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:33 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:43 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:34 AM] Building project '/src/lib/tsconfig.json'... +[12:00:44 AM] Building project '/src/lib/tsconfig.json'... -[12:00:42 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:52 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:43 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:53 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1264,7 +1271,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":473,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":473,"kind":"text"}]},{"pos":473,"end":692,"kind":"text"}],"mapHash":"-3706363920-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-22725808438-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":473,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":473,"kind":"text"}]},{"pos":473,"end":692,"kind":"text"}],"mapHash":"-3706363920-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-22725808438-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1391,7 +1398,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -1417,7 +1424,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3778 + "size": 3779 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js index afc3828d725..60fcfc44c12 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js @@ -16,8 +16,9 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1";function forappfile3Rest() { +export const z = 30; +import { x } from "file1"; +function forappfile3Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } @@ -28,22 +29,27 @@ const appfile4_ar = [20, 30]; appfile4Spread(10, ...appfile4_ar); //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -64,36 +70,37 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "downlevelIteration": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "downlevelIteration": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:12 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:13 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/lib/tsconfig.json'... +[12:00:24 AM] Building project '/src/lib/tsconfig.json'... -[12:00:23 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/app/tsconfig.json'... +[12:00:34 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -475,7 +482,7 @@ appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -879,13 +886,14 @@ sourceFile:file3.ts 2 > ^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; +1-> + >import { x } from "file1"; + > 2 > function 3 > forappfile3Rest -1->Emitted(67, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(67, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(67, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(67, 5) Source(3, 1) + SourceIndex(4) +2 >Emitted(67, 14) Source(3, 10) + SourceIndex(4) +3 >Emitted(67, 29) Source(3, 25) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -939,31 +947,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(68, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(68, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(68, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(68, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(68, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(68, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(68, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(68, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(68, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(68, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(68, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(68, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(68, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(68, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(68, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(68, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(68, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(68, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(68, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(68, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(68, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(68, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(68, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(68, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(68, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(68, 9) Source(4, 1) + SourceIndex(4) +2 >Emitted(68, 13) Source(4, 7) + SourceIndex(4) +3 >Emitted(68, 18) Source(4, 24) + SourceIndex(4) +4 >Emitted(68, 20) Source(4, 26) + SourceIndex(4) +5 >Emitted(68, 21) Source(4, 27) + SourceIndex(4) +6 >Emitted(68, 23) Source(4, 29) + SourceIndex(4) +7 >Emitted(68, 25) Source(4, 31) + SourceIndex(4) +8 >Emitted(68, 27) Source(4, 33) + SourceIndex(4) +9 >Emitted(68, 28) Source(4, 34) + SourceIndex(4) +10>Emitted(68, 30) Source(4, 36) + SourceIndex(4) +11>Emitted(68, 32) Source(4, 38) + SourceIndex(4) +12>Emitted(68, 34) Source(4, 40) + SourceIndex(4) +13>Emitted(68, 36) Source(4, 42) + SourceIndex(4) +14>Emitted(68, 38) Source(4, 44) + SourceIndex(4) +15>Emitted(68, 40) Source(4, 46) + SourceIndex(4) +16>Emitted(68, 42) Source(4, 48) + SourceIndex(4) +17>Emitted(68, 44) Source(4, 9) + SourceIndex(4) +18>Emitted(68, 45) Source(4, 10) + SourceIndex(4) +19>Emitted(68, 52) Source(4, 10) + SourceIndex(4) +20>Emitted(68, 54) Source(4, 15) + SourceIndex(4) +21>Emitted(68, 58) Source(4, 19) + SourceIndex(4) +22>Emitted(68, 72) Source(4, 7) + SourceIndex(4) +23>Emitted(68, 77) Source(4, 21) + SourceIndex(4) +24>Emitted(68, 78) Source(4, 48) + SourceIndex(4) +25>Emitted(68, 79) Source(4, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -971,8 +979,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(69, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(69, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(69, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(69, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -1120,7 +1128,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2167,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2167,"kind":"text"}]},{"pos":2167,"end":2746,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"25532738663-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"86928161834-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2167,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2167,"kind":"text"}]},{"pos":2167,"end":2746,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"40592392858-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"86928161834-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1295,7 +1303,7 @@ declare const appfile4_ar: number[]; } ], "hash": "86928161834-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map", - "mapHash": "25532738663-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", + "mapHash": "40592392858-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -1339,7 +1347,7 @@ declare const appfile4_ar: number[]; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "./file3.ts": "-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", "./file4.ts": "-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);" }, "root": [ @@ -1366,7 +1374,7 @@ declare const appfile4_ar: number[]; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7688 + "size": 7690 } //// [/src/lib/module.d.ts] @@ -2201,17 +2209,17 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/app --verbose -[12:00:38 AM] Projects in this build: +[12:00:48 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:39 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:49 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:40 AM] Building project '/src/lib/tsconfig.json'... +[12:00:50 AM] Building project '/src/lib/tsconfig.json'... -[12:00:48 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:58 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:49 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:59 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2300,7 +2308,7 @@ appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -2731,13 +2739,14 @@ sourceFile:file3.ts 2 > ^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; +1-> + >import { x } from "file1"; + > 2 > function 3 > forappfile3Rest -1->Emitted(68, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(68, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(68, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(68, 5) Source(3, 1) + SourceIndex(4) +2 >Emitted(68, 14) Source(3, 10) + SourceIndex(4) +3 >Emitted(68, 29) Source(3, 25) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -2791,31 +2800,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(69, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(69, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(69, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(69, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(69, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(69, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(69, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(69, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(69, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(69, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(69, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(69, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(69, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(69, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(69, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(69, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(69, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(69, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(69, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(69, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(69, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(69, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(69, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(69, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(69, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(69, 9) Source(4, 1) + SourceIndex(4) +2 >Emitted(69, 13) Source(4, 7) + SourceIndex(4) +3 >Emitted(69, 18) Source(4, 24) + SourceIndex(4) +4 >Emitted(69, 20) Source(4, 26) + SourceIndex(4) +5 >Emitted(69, 21) Source(4, 27) + SourceIndex(4) +6 >Emitted(69, 23) Source(4, 29) + SourceIndex(4) +7 >Emitted(69, 25) Source(4, 31) + SourceIndex(4) +8 >Emitted(69, 27) Source(4, 33) + SourceIndex(4) +9 >Emitted(69, 28) Source(4, 34) + SourceIndex(4) +10>Emitted(69, 30) Source(4, 36) + SourceIndex(4) +11>Emitted(69, 32) Source(4, 38) + SourceIndex(4) +12>Emitted(69, 34) Source(4, 40) + SourceIndex(4) +13>Emitted(69, 36) Source(4, 42) + SourceIndex(4) +14>Emitted(69, 38) Source(4, 44) + SourceIndex(4) +15>Emitted(69, 40) Source(4, 46) + SourceIndex(4) +16>Emitted(69, 42) Source(4, 48) + SourceIndex(4) +17>Emitted(69, 44) Source(4, 9) + SourceIndex(4) +18>Emitted(69, 45) Source(4, 10) + SourceIndex(4) +19>Emitted(69, 52) Source(4, 10) + SourceIndex(4) +20>Emitted(69, 54) Source(4, 15) + SourceIndex(4) +21>Emitted(69, 58) Source(4, 19) + SourceIndex(4) +22>Emitted(69, 72) Source(4, 7) + SourceIndex(4) +23>Emitted(69, 77) Source(4, 21) + SourceIndex(4) +24>Emitted(69, 78) Source(4, 48) + SourceIndex(4) +25>Emitted(69, 79) Source(4, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -2823,8 +2832,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(70, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(70, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(70, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(70, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -2972,7 +2981,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2195,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2195,"kind":"text"}]},{"pos":2195,"end":2774,"kind":"text"}],"mapHash":"18634709081-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"8867186558-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2195,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2195,"kind":"text"}]},{"pos":2195,"end":2774,"kind":"text"}],"mapHash":"49180617932-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"8867186558-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -3148,7 +3157,7 @@ declare const appfile4_ar: number[]; } ], "hash": "8867186558-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map", - "mapHash": "18634709081-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", + "mapHash": "49180617932-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -3192,7 +3201,7 @@ declare const appfile4_ar: number[]; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "./file3.ts": "-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", "./file4.ts": "-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);" }, "root": [ @@ -3219,7 +3228,7 @@ declare const appfile4_ar: number[]; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7756 + "size": 7758 } //// [/src/lib/module.d.ts.map] file written with same contents @@ -3899,17 +3908,17 @@ export const x = 10;function forlibfile1Rest() { }console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:01:00 AM] Projects in this build: +[12:01:10 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:01:01 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:11 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:01:02 AM] Building project '/src/lib/tsconfig.json'... +[12:01:12 AM] Building project '/src/lib/tsconfig.json'... -[12:01:10 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:20 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:11 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:21 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3996,7 +4005,7 @@ appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -4344,13 +4353,14 @@ sourceFile:file3.ts 2 > ^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; +1-> + >import { x } from "file1"; + > 2 > function 3 > forappfile3Rest -1->Emitted(66, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(66, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(66, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(66, 5) Source(3, 1) + SourceIndex(4) +2 >Emitted(66, 14) Source(3, 10) + SourceIndex(4) +3 >Emitted(66, 29) Source(3, 25) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -4404,31 +4414,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(67, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(67, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(67, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(67, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(67, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(67, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(67, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(67, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(67, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(67, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(67, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(67, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(67, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(67, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(67, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(67, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(67, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(67, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(67, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(67, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(67, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(67, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(67, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(67, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(67, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(67, 9) Source(4, 1) + SourceIndex(4) +2 >Emitted(67, 13) Source(4, 7) + SourceIndex(4) +3 >Emitted(67, 18) Source(4, 24) + SourceIndex(4) +4 >Emitted(67, 20) Source(4, 26) + SourceIndex(4) +5 >Emitted(67, 21) Source(4, 27) + SourceIndex(4) +6 >Emitted(67, 23) Source(4, 29) + SourceIndex(4) +7 >Emitted(67, 25) Source(4, 31) + SourceIndex(4) +8 >Emitted(67, 27) Source(4, 33) + SourceIndex(4) +9 >Emitted(67, 28) Source(4, 34) + SourceIndex(4) +10>Emitted(67, 30) Source(4, 36) + SourceIndex(4) +11>Emitted(67, 32) Source(4, 38) + SourceIndex(4) +12>Emitted(67, 34) Source(4, 40) + SourceIndex(4) +13>Emitted(67, 36) Source(4, 42) + SourceIndex(4) +14>Emitted(67, 38) Source(4, 44) + SourceIndex(4) +15>Emitted(67, 40) Source(4, 46) + SourceIndex(4) +16>Emitted(67, 42) Source(4, 48) + SourceIndex(4) +17>Emitted(67, 44) Source(4, 9) + SourceIndex(4) +18>Emitted(67, 45) Source(4, 10) + SourceIndex(4) +19>Emitted(67, 52) Source(4, 10) + SourceIndex(4) +20>Emitted(67, 54) Source(4, 15) + SourceIndex(4) +21>Emitted(67, 58) Source(4, 19) + SourceIndex(4) +22>Emitted(67, 72) Source(4, 7) + SourceIndex(4) +23>Emitted(67, 77) Source(4, 21) + SourceIndex(4) +24>Emitted(67, 78) Source(4, 48) + SourceIndex(4) +25>Emitted(67, 79) Source(4, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -4436,8 +4446,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(68, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(68, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(68, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(68, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -4585,7 +4595,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2112,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2112,"kind":"text"}]},{"pos":2112,"end":2691,"kind":"text"}],"mapHash":"10800515764-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"119511022230-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() { }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2112,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2112,"kind":"text"}]},{"pos":2112,"end":2691,"kind":"text"}],"mapHash":"35465374343-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"119511022230-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() { }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -4759,7 +4769,7 @@ declare const appfile4_ar: number[]; } ], "hash": "119511022230-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() { }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map", - "mapHash": "10800515764-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", + "mapHash": "35465374343-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -4803,7 +4813,7 @@ declare const appfile4_ar: number[]; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "./file3.ts": "-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", "./file4.ts": "-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);" }, "root": [ @@ -4830,7 +4840,7 @@ declare const appfile4_ar: number[]; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7542 + "size": 7544 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js index 1206e947286..aeff11dd765 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js @@ -17,29 +17,35 @@ declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] "myPrologue" -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] "myPrologue2"; const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -58,35 +64,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:13 AM] Projects in this build: +[12:00:23 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:14 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:15 AM] Building project '/src/lib/tsconfig.json'... +[12:00:25 AM] Building project '/src/lib/tsconfig.json'... -[12:00:24 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/app/tsconfig.json'... +[12:00:35 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -565,7 +572,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":525,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":525,"kind":"text"}]},{"pos":525,"end":762,"kind":"text"}],"sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"43697297756-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"18768809398-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":525,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":525,"kind":"text"}]},{"pos":525,"end":762,"kind":"text"}],"sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"43697297756-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"18768809398-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -757,7 +764,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "8812798660-\"myPrologue2\";\nconst myVar = 30;" }, "root": [ @@ -783,7 +790,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4394 + "size": 4393 } //// [/src/lib/module.d.ts] @@ -1307,17 +1314,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:39 AM] Projects in this build: +[12:00:49 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:40 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:50 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:41 AM] Building project '/src/lib/tsconfig.json'... +[12:00:51 AM] Building project '/src/lib/tsconfig.json'... -[12:00:49 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:59 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:50 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:00 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1632,7 +1639,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":553,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":553,"kind":"text"}]},{"pos":553,"end":790,"kind":"text"}],"mapHash":"3847555902-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36337196554-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":553,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":553,"kind":"text"}]},{"pos":553,"end":790,"kind":"text"}],"mapHash":"3847555902-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36337196554-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1825,7 +1832,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "8812798660-\"myPrologue2\";\nconst myVar = 30;" }, "root": [ @@ -1851,7 +1858,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4462 + "size": 4461 } //// [/src/lib/module.d.ts.map] file written with same contents @@ -2274,17 +2281,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:01:01 AM] Projects in this build: +[12:01:11 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:01:02 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:12 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:01:03 AM] Building project '/src/lib/tsconfig.json'... +[12:01:13 AM] Building project '/src/lib/tsconfig.json'... -[12:01:11 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:21 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:12 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:22 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2791,7 +2798,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":572,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":572,"kind":"text"}]},{"pos":572,"end":809,"kind":"text"}],"mapHash":"16708366-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-4070331525-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue5\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-19636782544-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":572,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":572,"kind":"text"}]},{"pos":572,"end":809,"kind":"text"}],"mapHash":"16708366-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-4070331525-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue5\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-19636782544-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2985,7 +2992,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "8812798660-\"myPrologue2\";\nconst myVar = 30;" }, "root": [ @@ -3011,7 +3018,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4498 + "size": 4497 } //// [/src/lib/module.d.ts.map] diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js index e00ce7c97d5..db7520a221f 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js @@ -16,28 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -53,40 +59,47 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:07 AM] Projects in this build: +[12:00:17 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:08 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/lib/tsconfig.json'... +[12:00:19 AM] Building project '/src/lib/tsconfig.json'... -[12:00:18 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/app/tsconfig.json'... +[12:00:29 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:14:9 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +src/app/tsconfig.json:16:5 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. -14 { "path": "../lib", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +16 { +   ~ +17 "path": "../lib", +  ~~~~~~~~~~~~~~~~~~~~~~~ +18 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +19 } +  ~~~~~ Found 1 error. @@ -489,22 +502,28 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:23 AM] Projects in this build: +[12:00:33 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:24 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:34 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:25 AM] Building project '/src/lib/tsconfig.json'... +[12:00:35 AM] Building project '/src/lib/tsconfig.json'... -[12:00:33 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/app/tsconfig.json'... +[12:00:44 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:14:9 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +src/app/tsconfig.json:16:5 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. -14 { "path": "../lib", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +16 { +   ~ +17 "path": "../lib", +  ~~~~~~~~~~~~~~~~~~~~~~~ +18 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +19 } +  ~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js index 294b2c70eea..bc41cbb9889 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js @@ -17,28 +17,34 @@ declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] #!someshebang app file3 -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -56,35 +62,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:09 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:10 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/lib/tsconfig.json'... +[12:00:21 AM] Building project '/src/lib/tsconfig.json'... -[12:00:20 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/app/tsconfig.json'... +[12:00:31 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -485,7 +492,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":469,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":469,"kind":"text"}]},{"pos":469,"end":688,"kind":"text"}],"mapHash":"-9078462836-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36155858807-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":469,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":469,"kind":"text"}]},{"pos":469,"end":688,"kind":"text"}],"mapHash":"-9078462836-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36155858807-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -611,7 +618,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -637,7 +644,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3837 + "size": 3838 } //// [/src/lib/module.d.ts] @@ -1044,17 +1051,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:35 AM] Projects in this build: +[12:00:45 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:36 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:46 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:37 AM] Building project '/src/lib/tsconfig.json'... +[12:00:47 AM] Building project '/src/lib/tsconfig.json'... -[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:55 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:46 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:56 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1291,7 +1298,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":497,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":497,"kind":"text"}]},{"pos":497,"end":716,"kind":"text"}],"mapHash":"-22024543371-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-32586228917-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":497,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":497,"kind":"text"}]},{"pos":497,"end":716,"kind":"text"}],"mapHash":"-22024543371-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-32586228917-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1418,7 +1425,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -1444,7 +1451,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3909 + "size": 3910 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js index a7dd7d2f123..017073fb7c2 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js @@ -16,29 +16,35 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, -"stripInternal": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, +"stripInternal": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -79,35 +85,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:09 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:10 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/lib/tsconfig.json'... +[12:00:21 AM] Building project '/src/lib/tsconfig.json'... -[12:00:20 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/app/tsconfig.json'... +[12:00:31 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1954,7 +1961,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4246,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4246,"kind":"text"}]},{"pos":4246,"end":4465,"kind":"text"}],"mapHash":"8297079767-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-81552364587-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4246,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4246,"kind":"text"}]},{"pos":4246,"end":4465,"kind":"text"}],"mapHash":"8297079767-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-81552364587-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2173,7 +2180,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -2200,7 +2207,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 10794 + "size": 10795 } //// [/src/lib/module.d.ts] @@ -4893,17 +4900,17 @@ export namespace normalN { Output:: /lib/tsc --b /src/app --verbose -[12:00:35 AM] Projects in this build: +[12:00:45 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:36 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:46 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:37 AM] Building project '/src/lib/tsconfig.json'... +[12:00:47 AM] Building project '/src/lib/tsconfig.json'... -[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:55 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:46 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:56 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -6551,7 +6558,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4274,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4274,"kind":"text"}]},{"pos":4274,"end":4493,"kind":"text"}],"mapHash":"14469018393-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-55607353175-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4274,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4274,"kind":"text"}]},{"pos":4274,"end":4493,"kind":"text"}],"mapHash":"14469018393-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-55607353175-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -6771,7 +6778,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -6798,7 +6805,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 10864 + "size": 10865 } //// [/src/lib/module.d.ts.map] file written with same contents @@ -8727,17 +8734,17 @@ export namespace normalN { Output:: /lib/tsc --b /src/app --verbose -[12:00:57 AM] Projects in this build: +[12:01:07 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:58 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:08 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:59 AM] Building project '/src/lib/tsconfig.json'... +[12:01:09 AM] Building project '/src/lib/tsconfig.json'... -[12:01:07 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:17 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:08 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:18 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -10592,7 +10599,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4288,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4288,"kind":"text"}]},{"pos":4288,"end":4507,"kind":"text"}],"mapHash":"-20858379531-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-162546178856-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n /*@internal*/ exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":181,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":181,"kind":"text"}]},{"pos":181,"end":259,"kind":"text"}],"mapHash":"-49236694807-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"4211667041-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-10240160902-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4288,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4288,"kind":"text"}]},{"pos":4288,"end":4507,"kind":"text"}],"mapHash":"-20858379531-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-162546178856-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n /*@internal*/ exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":181,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":181,"kind":"text"}]},{"pos":181,"end":259,"kind":"text"}],"mapHash":"-49236694807-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"4211667041-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-10240160902-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -10811,7 +10818,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/module.d.ts": "-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -10838,7 +10845,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 10803 + "size": 10804 } //// [/src/lib/module.d.ts.map] diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js index ab4a5f662f6..dad43e6e751 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js @@ -16,8 +16,9 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] /// @@ -28,21 +29,26 @@ const myVar = 30; declare class appfile4 { } //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -63,35 +69,36 @@ const globalConst = 10; declare class libfile0 { } //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:10 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:11 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/lib/tsconfig.json'... +[12:00:22 AM] Building project '/src/lib/tsconfig.json'... -[12:00:21 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/app/tsconfig.json'... +[12:00:32 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -608,7 +615,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":518,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":518,"kind":"text"}]},{"pos":518,"end":810,"kind":"text"}],"mapHash":"-46462971872-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-9589842580-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":518,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":518,"kind":"text"}]},{"pos":518,"end":810,"kind":"text"}],"mapHash":"-46462971872-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-9589842580-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -761,7 +768,7 @@ declare const myVar = 30; "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/tripleref.d.ts": "-2339691926-declare class libfile0 { }", "../lib/module.d.ts": "-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./tripleref.d.ts": "-3347356200-declare class appfile4 { }", "./file4.ts": "15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;" }, @@ -791,7 +798,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4790 + "size": 4791 } //// [/src/lib/module.d.ts] @@ -1267,17 +1274,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:36 AM] Projects in this build: +[12:00:46 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:37 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:47 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:38 AM] Building project '/src/lib/tsconfig.json'... +[12:00:48 AM] Building project '/src/lib/tsconfig.json'... -[12:00:46 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:56 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:47 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:57 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1585,7 +1592,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":546,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":546,"kind":"text"}]},{"pos":546,"end":838,"kind":"text"}],"mapHash":"-8132351063-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-74562651328-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":546,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":546,"kind":"text"}]},{"pos":546,"end":838,"kind":"text"}],"mapHash":"-8132351063-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-74562651328-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1739,7 +1746,7 @@ declare const myVar = 30; "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../lib/tripleref.d.ts": "-2339691926-declare class libfile0 { }", "../lib/module.d.ts": "-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./tripleref.d.ts": "-3347356200-declare class appfile4 { }", "./file4.ts": "15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;" }, @@ -1769,7 +1776,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4860 + "size": 4861 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js index 0a7218d35ef..f27a07e9f19 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js @@ -16,28 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "lib/file1"; +export const z = 30; +import { x } from "lib/file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -53,35 +59,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "../module.js", "rootDir": "../" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "../module.js", "rootDir": "../" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc -b /src/app --verbose -[12:00:08 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:09 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/lib/tsconfig.json'... +[12:00:20 AM] Building project '/src/lib/tsconfig.json'... -[12:00:19 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:29 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/app/tsconfig.json'... +[12:00:30 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -473,7 +480,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":453,"kind":"prepend","data":"../module.js","texts":[{"pos":0,"end":453,"kind":"text"}]},{"pos":453,"end":672,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"6195305346-var myGlob = 20;\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":249,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-17877883596-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","3263932623-export const z = 30;\r\nimport { x } from \"lib/file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-24691359027-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":453,"kind":"prepend","data":"../module.js","texts":[{"pos":0,"end":453,"kind":"text"}]},{"pos":453,"end":672,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"6195305346-var myGlob = 20;\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":249,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-17877883596-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-24691359027-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -599,7 +606,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../module.d.ts": "-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "3263932623-export const z = 30;\r\nimport { x } from \"lib/file1\";", + "./file3.ts": "-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -625,7 +632,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3731 + "size": 3733 } //// [/src/module.d.ts] diff --git a/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js b/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js index 49db06b89ce..e5821ea50c1 100644 --- a/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js +++ b/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js @@ -22,7 +22,11 @@ declare const console: { log(msg: any): void; }; //// [/src/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} diff --git a/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js b/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js index c5e1dc36c12..568457227a2 100644 --- a/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js +++ b/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js @@ -19,7 +19,15 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"declaration":true},"include":["src/**/*.tsx","src/**/*.ts"]} +{ + "compilerOptions": { + "declaration": true + }, + "include": [ + "src/**/*.tsx", + "src/**/*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js index ebace4018bb..b13b9afd1d5 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "../outFile.js", + "module": "amd" + } +} @@ -42,8 +48,18 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -198,8 +214,19 @@ Output:: [12:00:22 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -326,8 +353,18 @@ Output:: [12:00:31 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -449,8 +486,19 @@ Output:: [12:00:39 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -620,8 +668,20 @@ Output:: [12:00:47 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -764,8 +824,18 @@ Output:: [12:00:59 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -920,8 +990,20 @@ Output:: [12:01:07 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1096,8 +1178,19 @@ Output:: [12:01:18 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1253,8 +1346,19 @@ Output:: [12:01:26 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1381,8 +1485,18 @@ Output:: [12:01:35 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1504,8 +1618,20 @@ Output:: [12:01:43 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js index 71eca0184c1..10d9e7314b3 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} @@ -42,8 +46,16 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -205,8 +217,17 @@ Output:: [12:00:24 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -373,8 +394,16 @@ Output:: [12:00:38 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -526,8 +555,17 @@ Output:: [12:00:48 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -675,8 +713,18 @@ Output:: [12:00:58 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -856,8 +904,16 @@ Output:: [12:01:15 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -996,8 +1052,18 @@ Output:: [12:01:22 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1154,8 +1220,17 @@ Output:: [12:01:38 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1319,8 +1394,17 @@ Output:: [12:01:48 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1490,8 +1574,16 @@ Output:: [12:02:02 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1652,8 +1744,18 @@ Output:: [12:02:12 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js index 765f46f9742..9f0de1ad7fe 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + } +} @@ -42,8 +48,18 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -244,8 +260,19 @@ Output:: [12:00:23 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -385,8 +412,18 @@ Output:: [12:00:32 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -553,8 +590,20 @@ Output:: [12:00:44 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -681,8 +730,18 @@ Output:: [12:00:54 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -838,8 +897,18 @@ Output:: [12:01:08 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1041,8 +1110,19 @@ Output:: [12:01:18 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1178,8 +1258,19 @@ Output:: [12:01:26 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options.js b/tests/baselines/reference/tsbuild/commandLine/different-options.js index faafe7cf373..d5ccb469bb3 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} @@ -42,8 +46,16 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -234,8 +246,17 @@ Output:: [12:00:28 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -413,8 +434,16 @@ Output:: [12:00:42 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -611,8 +640,18 @@ Output:: [12:00:56 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -775,8 +814,16 @@ Output:: [12:01:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -960,8 +1007,16 @@ Output:: [12:01:33 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1120,8 +1175,17 @@ Output:: [12:01:42 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1287,8 +1351,17 @@ Output:: [12:01:52 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js index 722bf40327e..bfb07e03c1f 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js @@ -28,7 +28,15 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +48,20 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +79,33 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +118,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -213,17 +261,32 @@ Output:: [12:00:32 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -260,17 +323,33 @@ Output:: [12:00:43 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -283,8 +362,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -384,17 +474,33 @@ Output:: [12:00:53 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -407,8 +513,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -597,17 +714,32 @@ Output:: [12:00:57 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -639,17 +771,32 @@ Output:: [12:01:01 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -686,17 +833,33 @@ Output:: [12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -709,8 +872,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js index d8597c0c763..67ac3be94c9 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +46,18 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +75,31 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +122,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -352,17 +392,30 @@ Output:: [12:00:37 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -400,17 +453,31 @@ Output:: [12:00:47 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -425,8 +492,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -565,17 +641,31 @@ Output:: [12:00:59 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -588,8 +678,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -866,17 +965,30 @@ Output:: [12:01:06 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -909,17 +1021,30 @@ Output:: [12:01:10 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -957,17 +1082,31 @@ Output:: [12:01:21 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -982,8 +1121,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js index e1e8b5553bf..adff441ad5f 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js @@ -28,7 +28,14 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +47,19 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +77,32 @@ Output:: [12:00:24 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +115,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -129,17 +173,31 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -176,17 +234,32 @@ Output:: [12:00:35 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -199,8 +272,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -235,17 +318,32 @@ Output:: [12:00:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -258,8 +356,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -322,17 +430,31 @@ Output:: [12:00:46 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -364,17 +486,31 @@ Output:: [12:00:50 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -411,17 +547,32 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -434,8 +585,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js index 46f08bfaaed..2772beda603 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js @@ -28,7 +28,12 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +45,17 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +73,30 @@ Output:: [12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +119,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -141,17 +177,29 @@ Output:: [12:00:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -189,17 +237,30 @@ Output:: [12:00:41 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -222,8 +283,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -262,17 +331,30 @@ Output:: [12:00:54 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -295,8 +377,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -366,17 +456,29 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -409,17 +511,29 @@ Output:: [12:01:02 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -457,17 +571,30 @@ Output:: [12:01:16 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -490,8 +617,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js index 8ac86f63cb7..bab6aa754c2 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js @@ -28,7 +28,14 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +47,19 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +78,19 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -73,8 +103,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -325,8 +365,19 @@ Output:: [12:00:46 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -429,8 +480,19 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -443,8 +505,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -815,8 +887,19 @@ Output:: [12:01:20 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js index 79a1871aa12..7fc884d0e35 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js @@ -28,7 +28,12 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "composite": true, + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +45,17 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true, + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +74,17 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -83,8 +107,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -392,8 +424,17 @@ Output:: [12:00:48 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -535,8 +576,17 @@ Output:: [12:01:02 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -549,8 +599,16 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -893,8 +951,17 @@ Output:: [12:01:24 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js index 115950cb817..60d12caf3f9 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js @@ -28,7 +28,14 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +47,19 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +77,33 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +116,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -213,17 +259,32 @@ Output:: [12:00:32 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -260,17 +321,33 @@ Output:: [12:00:43 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -283,8 +360,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -387,17 +475,33 @@ Output:: [12:00:54 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -410,8 +514,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -546,17 +661,32 @@ Output:: [12:01:04 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -569,8 +699,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -761,17 +901,32 @@ Output:: [12:01:08 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -808,17 +963,32 @@ Output:: [12:01:20 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -831,8 +1001,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1031,17 +1211,33 @@ Output:: [12:01:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1054,8 +1250,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1178,17 +1385,33 @@ Output:: [12:01:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1201,8 +1424,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1342,17 +1576,32 @@ Output:: [12:01:54 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1365,8 +1614,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js index 4170d4d1cc6..b62700a6d9d 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js @@ -28,7 +28,12 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +45,17 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +73,31 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +120,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -352,17 +390,30 @@ Output:: [12:00:37 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -400,17 +451,31 @@ Output:: [12:00:47 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -425,8 +490,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -568,17 +642,31 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -595,8 +683,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) /src/project1/src/c.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -848,17 +945,30 @@ Output:: [12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -871,8 +981,16 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1148,17 +1266,30 @@ Output:: [12:01:20 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1196,17 +1327,30 @@ Output:: [12:01:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1221,8 +1365,16 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1372,17 +1524,31 @@ Output:: [12:01:41 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1397,8 +1563,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1540,17 +1715,31 @@ Output:: [12:01:52 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1567,8 +1756,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1823,17 +2021,30 @@ Output:: [12:02:10 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1850,8 +2061,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js index 78ba259f310..2515db0e316 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +46,18 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +75,32 @@ Output:: [12:00:24 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +113,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -129,17 +171,31 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -176,17 +232,32 @@ Output:: [12:00:35 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -199,8 +270,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -238,17 +319,32 @@ Output:: [12:00:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -261,8 +357,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -312,17 +418,31 @@ Output:: [12:00:49 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -335,8 +455,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -400,17 +529,31 @@ Output:: [12:00:53 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -447,17 +590,31 @@ Output:: [12:01:01 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -470,8 +627,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -541,17 +707,32 @@ Output:: [12:01:08 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -564,8 +745,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -603,17 +794,32 @@ Output:: [12:01:15 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -626,8 +832,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -681,17 +897,31 @@ Output:: [12:01:23 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -704,8 +934,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js index 23d4f804d97..1cc2245f287 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true}} +{ + "compilerOptions": { + "declaration": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +44,16 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +71,30 @@ Output:: [12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +117,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -141,17 +175,29 @@ Output:: [12:00:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -189,17 +235,30 @@ Output:: [12:00:41 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -222,8 +281,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -265,17 +332,30 @@ Output:: [12:00:51 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -298,8 +378,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -342,17 +430,29 @@ Output:: [12:01:04 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -375,8 +475,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -447,17 +554,29 @@ Output:: [12:01:08 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -495,17 +614,29 @@ Output:: [12:01:22 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -528,8 +659,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -583,17 +721,30 @@ Output:: [12:01:32 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -616,8 +767,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -659,17 +818,30 @@ Output:: [12:01:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -692,8 +864,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -739,17 +919,29 @@ Output:: [12:01:56 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -772,8 +964,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js index 0e3451aaf55..a344d1dad8c 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +46,18 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +76,19 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -73,8 +101,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -325,8 +363,19 @@ Output:: [12:00:46 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -432,8 +481,19 @@ Output:: [12:00:59 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -446,8 +506,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -650,8 +720,18 @@ Output:: [12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -664,8 +744,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1018,8 +1107,18 @@ Output:: [12:01:32 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1221,8 +1320,19 @@ Output:: [12:01:44 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1348,8 +1458,19 @@ Output:: [12:01:57 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1362,8 +1483,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1587,8 +1718,18 @@ Output:: [12:02:13 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1601,8 +1742,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js index 403e1b72961..080f726c74e 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +44,16 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +72,17 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -83,8 +105,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -392,8 +422,17 @@ Output:: [12:00:48 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -538,8 +577,17 @@ Output:: [12:01:00 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -556,8 +604,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) /src/project1/src/c.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -812,8 +868,16 @@ Output:: [12:01:15 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -826,8 +890,15 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1150,8 +1221,16 @@ Output:: [12:01:34 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1304,8 +1383,17 @@ Output:: [12:01:45 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1450,8 +1538,17 @@ Output:: [12:01:57 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1468,8 +1565,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1727,8 +1832,16 @@ Output:: [12:02:14 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1745,8 +1858,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js index d3b26f299a4..2e6c61c9f9a 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js @@ -247,7 +247,16 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: builds after fixing config file errors Input:: //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "files": [ + "a.ts", + "b.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js b/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js index 7aa9b54c81a..96d6988c497 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js @@ -16,30 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/tsconfig.first.json] -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } +{ + "extends": "./foobar.json", + "compilerOptions": { + "composite": true + } } //// [/src/tsconfig.json] -{ - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./tsconfig.first.json" }, - { "path": "./tsconfig.second.json" } - ] +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./tsconfig.first.json" + }, + { + "path": "./tsconfig.second.json" + } + ] } //// [/src/tsconfig.second.json] -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } +{ + "extends": "./foobar.json", + "compilerOptions": { + "composite": true + } } diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js index dea6a7439c4..5ecf37b7cfb 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js @@ -19,22 +19,61 @@ declare const console: { log(msg: any): void; }; export const a: Unrestricted = 1; //// [/src/shared/tsconfig-base.json] -{"include":["./typings-base/"]} +{ + "include": [ + "./typings-base/" + ] +} //// [/src/shared/tsconfig.json] -{"extends":"./tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"]} +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ] +} //// [/src/shared/typings-base/globals.d.ts] type Unrestricted = any; //// [/src/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/src/webpack/index.ts] export const b: Unrestricted = 1; //// [/src/webpack/tsconfig.json] -{"extends":"../shared/tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"],"references":[{"path":"../shared/tsconfig.json"}]} +{ + "extends": "../shared/tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js index 359f7a88d67..8680e1055b5 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js @@ -19,22 +19,61 @@ declare const console: { log(msg: any): void; }; export const a: Unrestricted = 1; //// [/src/shared/tsconfig-base.json] -{"include":["./typings-base/"]} +{ + "include": [ + "./typings-base/" + ] +} //// [/src/shared/tsconfig.json] -{"extends":"./tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"]} +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ] +} //// [/src/shared/typings-base/globals.d.ts] type Unrestricted = any; //// [/src/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/src/webpack/index.ts] export const b: Unrestricted = 1; //// [/src/webpack/tsconfig.json] -{"extends":"../shared/tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"],"references":[{"path":"../shared/tsconfig.json"}]} +{ + "extends": "../shared/tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js index 727acb686cc..60bbac3aa96 100644 --- a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js +++ b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js @@ -19,84 +19,100 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/src/folder/tsconfig.json] -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } +{ + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true + } } //// [/src/src/folder2/index.ts] export const x = 10; //// [/src/src/folder2/tsconfig.json] -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } +{ + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true + } } //// [/src/src/tsconfig.json] -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./folder" }, - { "path": "./folder2"} - ] - } +{ + "files": [], + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./folder" + }, + { + "path": "./folder2" + } + ] +} //// [/src/tests/index.ts] export const x = 10; //// [/src/tests/tsconfig.json] -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "../src" } - ] +{ + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../src" + } + ] } //// [/src/tsconfig.json] -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./src" }, - { "path": "./tests"} - ] +{ + "files": [], + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./src" + }, + { + "path": "./tests" + } + ] } Output:: /lib/tsc --b /src --verbose -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/src/folder/tsconfig.json * src/src/folder2/tsconfig.json * src/src/tsconfig.json * src/tests/tsconfig.json * src/tsconfig.json -[12:00:07 AM] Project 'src/src/folder/tsconfig.json' is out of date because output file 'src/src/folder/tsconfig.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/src/folder/tsconfig.json' is out of date because output file 'src/src/folder/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/src/folder/tsconfig.json'... +[12:00:20 AM] Building project '/src/src/folder/tsconfig.json'... -[12:00:14 AM] Project 'src/src/folder2/tsconfig.json' is out of date because output file 'src/src/folder2/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/src/folder2/tsconfig.json' is out of date because output file 'src/src/folder2/tsconfig.tsbuildinfo' does not exist -[12:00:15 AM] Building project '/src/src/folder2/tsconfig.json'... +[12:00:27 AM] Building project '/src/src/folder2/tsconfig.json'... -[12:00:21 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/tests/tsconfig.json'... +[12:00:34 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -292,18 +308,18 @@ Input:: Output:: /lib/tsc --b /src --verbose -[12:00:28 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * src/src/folder/tsconfig.json * src/src/folder2/tsconfig.json * src/src/tsconfig.json * src/tests/tsconfig.json * src/tsconfig.json -[12:00:29 AM] Project 'src/src/folder/tsconfig.json' is up to date because newest input 'src/src/folder/index.ts' is older than output 'src/src/folder/tsconfig.tsbuildinfo' +[12:00:41 AM] Project 'src/src/folder/tsconfig.json' is up to date because newest input 'src/src/folder/index.ts' is older than output 'src/src/folder/tsconfig.tsbuildinfo' -[12:00:30 AM] Project 'src/src/folder2/tsconfig.json' is up to date because newest input 'src/src/folder2/index.ts' is older than output 'src/src/folder2/tsconfig.tsbuildinfo' +[12:00:42 AM] Project 'src/src/folder2/tsconfig.json' is up to date because newest input 'src/src/folder2/index.ts' is older than output 'src/src/folder2/tsconfig.tsbuildinfo' -[12:00:31 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:43 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js index 4b2d3b0c8a2..89b0b031bf5 100644 --- a/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js +++ b/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js @@ -16,25 +16,56 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/project1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [] +} //// [/src/project2/src/b.ts] export const b = 10; //// [/src/project2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [] +} //// [/src/project3/src/c.ts] export const c = 10; //// [/src/project3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../project1"},{"path":"../project2"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../project1" + }, + { + "path": "../project2" + } + ] +} //// [/src/project4/src/d.ts] export const d = 10; //// [/src/project4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../project3"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../project3" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js index d7bee00a388..60e45f272da 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js @@ -20,7 +20,15 @@ declare const console: { log(msg: any): void; }; export declare type Nominal = MyNominal; //// [/src/solution/src/common/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"include":["./nominal.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "include": [ + "./nominal.ts" + ] +} //// [/src/solution/src/common/types.d.ts] declare type MyNominal = T & { @@ -32,7 +40,20 @@ import { Nominal } from '../common/nominal'; export type MyNominal = Nominal; //// [/src/solution/src/subProject/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../common"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../common" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/subProject2/index.ts] import { MyNominal } from '../subProject/index'; @@ -44,16 +65,55 @@ export function getVar(): keyof typeof variable { } //// [/src/solution/src/subProject2/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../subProject"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../subProject" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"./subProject"},{"path":"./subProject2"}],"include":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./subProject" + }, + { + "path": "./subProject2" + } + ], + "include": [] +} //// [/src/solution/tsconfig.base.json] -{"compilerOptions":{"rootDir":"./","outDir":"lib"}} +{ + "compilerOptions": { + "rootDir": "./", + "outDir": "lib" + } +} //// [/src/solution/tsconfig.json] -{"extends":"./tsconfig.base.json","compilerOptions":{"composite":true},"include":["./src/**/*.ts"]} +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "include": [ + "./src/**/*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js index caf86d42962..e60b61ed836 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js @@ -20,7 +20,15 @@ declare const console: { log(msg: any): void; }; export declare type Nominal = MyNominal; //// [/src/solution/src/common/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"include":["./nominal.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "include": [ + "./nominal.ts" + ] +} //// [/src/solution/src/common/types.d.ts] declare type MyNominal = T & { @@ -32,7 +40,20 @@ import { Nominal } from '../common/nominal'; export type MyNominal = Nominal; //// [/src/solution/src/subProject/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../common"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../common" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/subProject2/index.ts] import { MyNominal } from '../subProject/index'; @@ -44,16 +65,57 @@ export function getVar(): keyof typeof variable { } //// [/src/solution/src/subProject2/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../subProject"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../subProject" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"./subProject"},{"path":"./subProject2"}],"include":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./subProject" + }, + { + "path": "./subProject2" + } + ], + "include": [] +} //// [/src/solution/tsconfig.base.json] -{"compilerOptions":{"rootDir":"./","outDir":"lib"}} +{ + "compilerOptions": { + "rootDir": "./", + "outDir": "lib" + } +} //// [/src/solution/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"./src"}],"include":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./src" + } + ], + "include": [] +} diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js index e214b528fe6..64f0c94fe3b 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js @@ -24,7 +24,15 @@ export interface IThings { } //// [/src/packages/pkg1/tsconfig.json] -{"extends":"../../tsconfig","compilerOptions":{"outDir":"lib"},"include":["src"]} +{ + "extends": "../../tsconfig", + "compilerOptions": { + "outDir": "lib" + }, + "include": [ + "src" + ] +} //// [/src/packages/pkg2/src/index.ts] import { IThings } from '@fluentui/pkg1'; @@ -34,10 +42,33 @@ export function fn4() { } //// [/src/packages/pkg2/tsconfig.json] -{"extends":"../../tsconfig","compilerOptions":{"outDir":"lib"},"include":["src"],"references":[{"path":"../pkg1"}]} +{ + "extends": "../../tsconfig", + "compilerOptions": { + "outDir": "lib" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../pkg1" + } + ] +} //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":".","paths":{"@fluentui/*":["packages/*/src"]}}} +{ + "compilerOptions": { + "composite": true, + "baseUrl": ".", + "paths": { + "@fluentui/*": [ + "packages/*/src" + ] + } + } +} diff --git a/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js b/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js index 0f641d5f386..40d707aca4f 100644 --- a/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js +++ b/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,206 +15,203 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + + +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/src/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/src/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} - -//// [/src/core/utilities.ts] +//// [/user/username/projects/demo/core/utilities.ts] import * as A from '../animals'; +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} -export function makeRandomName() { - return "Bob!?! "; + +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } - - -//// [/src/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} - -//// [/src/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] -} - -//// [/src/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} - -//// [/src/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} Output:: -/lib/tsc --b /src/tsconfig.json --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/animals/tsconfig.json - * src/zoo/tsconfig.json - * src/tsconfig.json +/a/lib/tsc --b --verbose +[12:00:25 AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/lib/core/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:27 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... -src/animals/index.ts:1:20 - error TS6059: File '/src/animals/animal.ts' is not under 'rootDir' '/src/core'. 'rootDir' is expected to contain all source files. +animals/index.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/animal.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. 1 import Animal from './animal';    ~~~~~~~~~~ -src/animals/index.ts:1:20 - error TS6307: File '/src/animals/animal.ts' is not listed within the file list of project '/src/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. +animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. 1 import Animal from './animal';    ~~~~~~~~~~ -src/animals/index.ts:4:32 - error TS6059: File '/src/animals/dog.ts' is not under 'rootDir' '/src/core'. 'rootDir' is expected to contain all source files. +animals/index.ts:4:32 - error TS6059: File '/user/username/projects/demo/animals/dog.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. 4 import { createDog, Dog } from './dog';    ~~~~~~~ -src/animals/index.ts:4:32 - error TS6307: File '/src/animals/dog.ts' is not listed within the file list of project '/src/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. +animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. 4 import { createDog, Dog } from './dog';    ~~~~~~~ -src/core/utilities.ts:1:1 - error TS6133: 'A' is declared but its value is never read. +core/utilities.ts:1:1 - error TS6133: 'A' is declared but its value is never read. 1 import * as A from '../animals';   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/core/utilities.ts:1:20 - error TS6059: File '/src/animals/index.ts' is not under 'rootDir' '/src/core'. 'rootDir' is expected to contain all source files. +core/utilities.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/index.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. The file is in the program because: - Imported via '../animals' from file '/src/core/utilities.ts' - Imported via '.' from file '/src/animals/dog.ts' + Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' + Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' 1 import * as A from '../animals';    ~~~~~~~~~~~~ - src/animals/dog.ts:1:20 + animals/dog.ts:1:20 1 import Animal from '.';    ~~~ File is included via import here. -src/core/utilities.ts:1:20 - error TS6307: File '/src/animals/index.ts' is not listed within the file list of project '/src/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. +core/utilities.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. The file is in the program because: - Imported via '../animals' from file '/src/core/utilities.ts' - Imported via '.' from file '/src/animals/dog.ts' + Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' + Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' 1 import * as A from '../animals';    ~~~~~~~~~~~~ - src/animals/dog.ts:1:20 + animals/dog.ts:1:20 1 import Animal from '.';    ~~~ File is included via import here. -[12:00:15 AM] Project 'src/animals/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:33 AM] Project 'animals/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:16 AM] Skipping build of project '/src/animals/tsconfig.json' because its dependency '/src/core' has errors +[12:00:34 AM] Skipping build of project '/user/username/projects/demo/animals/tsconfig.json' because its dependency '/user/username/projects/demo/core' has errors -[12:00:17 AM] Project 'src/zoo/tsconfig.json' can't be built because its dependency 'src/animals' was not built +[12:00:35 AM] Project 'zoo/tsconfig.json' can't be built because its dependency 'animals' was not built -[12:00:18 AM] Skipping build of project '/src/zoo/tsconfig.json' because its dependency '/src/animals' was not built +[12:00:36 AM] Skipping build of project '/user/username/projects/demo/zoo/tsconfig.json' because its dependency '/user/username/projects/demo/animals' was not built Found 7 errors. @@ -222,14 +219,14 @@ Found 7 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -//// [/src/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} -//// [/src/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", @@ -249,7 +246,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -259,20 +256,20 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "affectsGlobalScope": true }, "../../animals/animal.ts": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/dog.ts": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", - "signature": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n" + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n" }, "../../animals/index.ts": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", - "signature": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n" + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../../core/utilities.ts": { - "version": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", - "signature": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n" + "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" } }, "root": [ @@ -321,7 +318,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", @@ -366,6 +363,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2309 + "size": 2241 } diff --git a/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js b/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js index 5a02e5def34..07dd78f905f 100644 --- a/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js +++ b/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,152 +15,149 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + + +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/src/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/src/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." }, "references": [ { "path": "../zoo" } - ] + ] } -//// [/src/core/utilities.ts] +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} -export function makeRandomName() { - return "Bob!?! "; + +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } - - -//// [/src/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} - -//// [/src/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] -} - -//// [/src/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} - -//// [/src/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} Output:: -/lib/tsc --b /src/tsconfig.json --verbose -[12:00:07 AM] Projects in this build: - * src/animals/tsconfig.json - * src/zoo/tsconfig.json - * src/core/tsconfig.json - * src/tsconfig.json +/a/lib/tsc --b --verbose +[12:00:25 AM] Projects in this build: + * animals/tsconfig.json + * zoo/tsconfig.json + * core/tsconfig.json + * tsconfig.json -error TS6202: Project references may not form a circular graph. Cycle detected: /src/tsconfig.json -/src/core/tsconfig.json -/src/zoo/tsconfig.json -/src/animals/tsconfig.json +error TS6202: Project references may not form a circular graph. Cycle detected: /user/username/projects/demo/tsconfig.json +/user/username/projects/demo/core/tsconfig.json +/user/username/projects/demo/zoo/tsconfig.json +/user/username/projects/demo/animals/tsconfig.json Found 1 error. diff --git a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js index 206fb47fd15..4aa87bffc17 100644 --- a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js +++ b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,171 +15,168 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/src/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/src/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/src/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} - -//// [/src/core/utilities.ts] - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - - - -//// [/src/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} - -//// [/src/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] -} - -//// [/src/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} - -//// [/src/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - - - - - -Output:: -/lib/tsc --b /src/tsconfig.json --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/animals/tsconfig.json - * src/zoo/tsconfig.json - * src/tsconfig.json - -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/lib/core/tsconfig.tsbuildinfo' does not exist - -[12:00:08 AM] Building project '/src/core/tsconfig.json'... - -[12:00:16 AM] Project 'src/animals/tsconfig.json' is out of date because output file 'src/lib/animals/tsconfig.tsbuildinfo' does not exist - -[12:00:17 AM] Building project '/src/animals/tsconfig.json'... - -[12:00:28 AM] Project 'src/zoo/tsconfig.json' is out of date because output file 'src/lib/zoo/tsconfig.tsbuildinfo' does not exist - -[12:00:29 AM] Building project '/src/zoo/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/lib/animals/animal.d.ts] +//// [/user/username/projects/demo/animals/animal.ts] export type Size = "small" | "medium" | "large"; export default interface Animal { size: Size; } -//// [/src/lib/animals/animal.js] +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } +} + +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} + + +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } +} + +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] +} + +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} + +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + + + + +Output:: +/a/lib/tsc --b --verbose +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json + +[12:00:25 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist + +[12:00:26 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... + +[12:00:34 AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist + +[12:00:35 AM] Building project '/user/username/projects/demo/animals/tsconfig.json'... + +[12:00:46 AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist + +[12:00:47 AM] Building project '/user/username/projects/demo/zoo/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/user/username/projects/demo/lib/animals/animal.d.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + + +//// [/user/username/projects/demo/lib/animals/animal.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/lib/animals/dog.d.ts] +//// [/user/username/projects/demo/lib/animals/dog.d.ts] import Animal from '.'; export interface Dog extends Animal { woof(): void; @@ -188,7 +185,7 @@ export interface Dog extends Animal { export declare function createDog(): Dog; -//// [/src/lib/animals/dog.js] +//// [/user/username/projects/demo/lib/animals/dog.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createDog = void 0; @@ -205,14 +202,14 @@ function createDog() { exports.createDog = createDog; -//// [/src/lib/animals/index.d.ts] +//// [/user/username/projects/demo/lib/animals/index.d.ts] import Animal from './animal'; export default Animal; import { createDog, Dog } from './dog'; export { createDog, Dog }; -//// [/src/lib/animals/index.js] +//// [/user/username/projects/demo/lib/animals/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createDog = void 0; @@ -220,14 +217,14 @@ var dog_1 = require("./dog"); Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); -//// [/src/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} -//// [/src/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/index.ts", "../core/utilities.d.ts", @@ -247,7 +244,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -257,19 +254,15 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../core/utilities.d.ts": { @@ -278,10 +271,10 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -332,7 +325,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", @@ -341,21 +334,21 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2454 + "size": 2260 } -//// [/src/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} -//// [/src/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/utilities.ts" ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -366,10 +359,10 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -395,21 +388,21 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/utilities.ts" ], "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1361 + "size": 1348 } -//// [/src/lib/core/utilities.d.ts] +//// [/user/username/projects/demo/lib/core/utilities.d.ts] export declare function makeRandomName(): string; export declare function lastElementOf(arr: T[]): T | undefined; -//// [/src/lib/core/utilities.js] +//// [/user/username/projects/demo/lib/core/utilities.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lastElementOf = exports.makeRandomName = void 0; @@ -425,14 +418,14 @@ function lastElementOf(arr) { exports.lastElementOf = lastElementOf; -//// [/src/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} -//// [/src/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../animals/animal.d.ts", "../animals/dog.d.ts", "../animals/index.d.ts", @@ -448,7 +441,7 @@ exports.lastElementOf = lastElementOf; ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -471,10 +464,10 @@ exports.lastElementOf = lastElementOf; }, "../../zoo/zoo.ts": { "original": { - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" }, - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" } }, @@ -522,7 +515,7 @@ exports.lastElementOf = lastElementOf; ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../animals/animal.d.ts", "../animals/dog.d.ts", "../animals/index.d.ts", @@ -531,15 +524,15 @@ exports.lastElementOf = lastElementOf; "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1810 + "size": 1804 } -//// [/src/lib/zoo/zoo.d.ts] +//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] import { Dog } from '../animals/index'; export declare function createZoo(): Array; -//// [/src/lib/zoo/zoo.js] +//// [/user/username/projects/demo/lib/zoo/zoo.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createZoo = void 0; diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index 45db72b8fa9..0b19e3d1fab 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -19,7 +19,7 @@ declare const console: { log(msg: any): void; }; import { B } from "./b"; export interface A { - b: B; + b: B; } @@ -27,7 +27,7 @@ export interface A { import { C } from "./c"; export interface B { - b: C; + b: C; } @@ -35,7 +35,7 @@ export interface B { import { A } from "./a"; export interface C { - a: A; + a: A; } @@ -48,35 +48,32 @@ export { C } from "./c"; //// [/src/tsconfig.json] { "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, "alwaysStrict": true, "rootDir": "src", "emitDeclarationOnly": true - } -} - + } +} Output:: /lib/tsc --b /src --verbose -[12:00:06 AM] Projects in this build: +[12:00:12 AM] Projects in this build: * src/tsconfig.json -[12:00:07 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:13 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/tsconfig.json'... +[12:00:14 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -89,7 +86,7 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/b.d.ts] import { C } from "./c"; @@ -99,7 +96,7 @@ export interface B { //# sourceMappingURL=b.d.ts.map //// [/src/lib/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/c.d.ts] import { A } from "./a"; @@ -109,7 +106,7 @@ export interface C { //# sourceMappingURL=c.d.ts.map //// [/src/lib/c.d.ts.map] -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/index.d.ts] export { A } from "./a"; @@ -121,7 +118,7 @@ export { C } from "./c"; {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -161,26 +158,26 @@ export { C } from "./c"; }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, "./src/index.ts": { @@ -258,7 +255,7 @@ export { C } from "./c"; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1713 + "size": 1720 } @@ -269,7 +266,7 @@ Input:: import { B } from "./b"; export interface A { - b: B; foo: any; + b: B; foo: any; } @@ -277,12 +274,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:22 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:24 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -296,13 +293,13 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} //// [/src/lib/b.d.ts.map] file written with same contents //// [/src/lib/c.d.ts.map] file written with same contents //// [/src/lib/index.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -342,26 +339,26 @@ export interface A { }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, "./src/index.ts": { @@ -439,6 +436,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1734 + "size": 1740 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index da7c47c9f50..50ae013c64d 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -19,7 +19,7 @@ declare const console: { log(msg: any): void; }; import { B } from "./b"; export interface A { - b: B; + b: B; } @@ -27,7 +27,7 @@ export interface A { import { C } from "./c"; export interface B { - b: C; + b: C; } @@ -35,7 +35,7 @@ export interface B { import { A } from "./a"; export interface C { - a: A; + a: A; } @@ -48,35 +48,32 @@ export { C } from "./c"; //// [/src/tsconfig.json] { "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, "alwaysStrict": true, "rootDir": "src", "emitDeclarationOnly": true - } -} - + } +} Output:: /lib/tsc --b /src --verbose -[12:00:07 AM] Projects in this build: +[12:00:13 AM] Projects in this build: * src/tsconfig.json -[12:00:08 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:14 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/tsconfig.json'... +[12:00:15 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -109,7 +106,7 @@ export { C } from "./c"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -149,26 +146,26 @@ export { C } from "./c"; }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, "./src/index.ts": { @@ -245,7 +242,7 @@ export { C } from "./c"; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1691 + "size": 1698 } @@ -256,7 +253,7 @@ Input:: import { B } from "./b"; export interface A { - b: B; foo: any; + b: B; foo: any; } @@ -264,12 +261,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:19 AM] Projects in this build: +[12:00:25 AM] Projects in this build: * src/tsconfig.json -[12:00:20 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:26 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:21 AM] Building project '/src/tsconfig.json'... +[12:00:27 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -283,7 +280,7 @@ export interface A { //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -323,26 +320,26 @@ export interface A { }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, "./src/index.ts": { @@ -419,6 +416,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1712 + "size": 1718 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 59bda00c99f..6dff5cb7367 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -19,7 +19,7 @@ declare const console: { log(msg: any): void; }; export class B { prop = "hello"; } export interface A { - b: B; + b: B; } @@ -27,7 +27,7 @@ export interface A { import { C } from "./c"; export interface B { - b: C; + b: C; } @@ -35,42 +35,39 @@ export interface B { import { A } from "./a"; export interface C { - a: A; + a: A; } //// [/src/tsconfig.json] { "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, "alwaysStrict": true, "rootDir": "src", "emitDeclarationOnly": true - } -} - + } +} Output:: /lib/tsc --b /src --verbose -[12:00:08 AM] Projects in this build: +[12:00:14 AM] Projects in this build: * src/tsconfig.json -[12:00:09 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:15 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/tsconfig.json'... +[12:00:16 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -85,7 +82,7 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/b.d.ts] import { C } from "./c"; @@ -95,7 +92,7 @@ export interface B { //# sourceMappingURL=b.d.ts.map //// [/src/lib/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/c.d.ts] import { A } from "./a"; @@ -105,10 +102,10 @@ export interface C { //# sourceMappingURL=c.d.ts.map //// [/src/lib/c.d.ts.map] -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -139,26 +136,26 @@ export interface C { }, "./src/a.ts": { "original": { - "version": "11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", + "version": "12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, - "version": "11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", + "version": "12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" } }, @@ -214,7 +211,7 @@ export interface C { "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1586 + "size": 1593 } @@ -226,7 +223,7 @@ export class B { prop = "hello"; } class C { } export interface A { - b: B; + b: B; } @@ -234,21 +231,21 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:22 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:24 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -279,26 +276,26 @@ exitCode:: ExitStatus.Success }, "./src/a.ts": { "original": { - "version": "6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", + "version": "12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, - "version": "6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", + "version": "12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" } }, @@ -354,7 +351,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1598 + "size": 1606 } @@ -366,7 +363,7 @@ export class B { prop = "hello"; } class C { } export interface A { - b: B; foo: any; + b: B; foo: any; } @@ -374,12 +371,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:30 AM] Projects in this build: +[12:00:36 AM] Projects in this build: * src/tsconfig.json -[12:00:31 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:37 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:32 AM] Building project '/src/tsconfig.json'... +[12:00:38 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -395,12 +392,12 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} //// [/src/lib/b.d.ts.map] file written with same contents //// [/src/lib/c.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -431,26 +428,26 @@ export interface A { }, "./src/a.ts": { "original": { - "version": "5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n" }, - "version": "5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n" }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" } }, @@ -506,6 +503,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1623 + "size": 1631 } diff --git a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js index 7b9f1b35681..f9f3aff9cbc 100644 --- a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js +++ b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js @@ -18,46 +18,32 @@ declare const console: { log(msg: any): void; }; //// [/src/core/index.ts] export function multiply(a: number, b: number) { return a * b; } - //// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/no-references/tsconfig.json] -{ - "references": [], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - - //// [/src/with-references/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - ], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + } + ], + "files": [], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: @@ -81,7 +67,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-8675294677-export declare function multiply(a: number, b: number): number;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"7987260467-export function multiply(a: number, b: number) { return a * b; }","signature":"-8675294677-export declare function multiply(a: number, b: number): number;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,10 +88,10 @@ exports.multiply = multiply; }, "./index.ts": { "original": { - "version": "5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "7987260467-export function multiply(a: number, b: number) { return a * b; }", "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n" }, - "version": "5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "7987260467-export function multiply(a: number, b: number) { return a * b; }", "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n" } }, @@ -130,6 +116,6 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 990 + "size": 986 } diff --git a/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js index b8020eb0d50..033e17716e2 100644 --- a/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js +++ b/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js @@ -15,57 +15,26 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/index.ts] -export function multiply(a: number, b: number) { return a * b; } - - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - - //// [/src/no-references/tsconfig.json] -{ - "references": [], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [], + "files": [], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - -//// [/src/with-references/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - ], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - - Output:: /lib/tsc --b /src/no-references -src/no-references/tsconfig.json:3:14 - error TS18002: The 'files' list in config file '/src/no-references/tsconfig.json' is empty. +src/no-references/tsconfig.json:3:12 - error TS18002: The 'files' list in config file '/src/no-references/tsconfig.json' is empty. -3 "files": [], -   ~~ +3 "files": [], +   ~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js index 8e9b53a2a7c..c5a2dc19e09 100644 --- a/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js @@ -1,10 +1,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -12,7 +21,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] @@ -33,8 +44,15 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/users/user/projects/myproject/src/index.ts"] -Program options: {"composite":true,"removeComments":true,"extendedDiagnostics":true,"configFilePath":"/users/user/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/users/user/projects/myproject/src/index.ts" +] +Program options: { + "composite": true, + "removeComments": true, + "extendedDiagnostics": true, + "configFilePath": "/users/user/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js index 8eadc213747..26cf8c4825c 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js +++ b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js @@ -28,7 +28,12 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{"outFile":"../childResult.js","module":"amd"}} +{ + "compilerOptions": { + "outFile": "../childResult.js", + "module": "amd" + } +} diff --git a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js index 7da0f50d8dd..487b2486e5d 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js +++ b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js @@ -28,7 +28,9 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} diff --git a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js index bae847993f7..00575a9cd99 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js @@ -28,7 +28,13 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../childResult.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../childResult.js", + "module": "amd" + } +} //// [/src/main/main.ts] import { child } from "child"; @@ -38,7 +44,18 @@ export function main() { //// [/src/main/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../mainResult.js","module":"amd"},"references":[{"path":"../child"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../mainResult.js", + "module": "amd" + }, + "references": [ + { + "path": "../child" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js index bdfc72dddff..49a36f9a7e7 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js +++ b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js @@ -28,7 +28,11 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/main/main.ts] import { child } from "../child/child"; @@ -38,7 +42,16 @@ export function main() { //// [/src/main/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../child"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../child" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js index e469aecf990..bd6d6a67d27 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js @@ -16,69 +16,72 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + //// [/src/bundling.ts] -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} //// [/src/global.d.ts] -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} + //// [/src/index.ts] -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); + //// [/src/lazyIndex.ts] export { default as bar } from './bar'; //// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, "isolatedModules": true - } +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } } Output:: /lib/tsc --b /src --verbose -[12:00:07 AM] Projects in this build: +[12:00:13 AM] Projects in this build: * src/tsconfig.json -[12:00:08 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist +[12:00:14 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/tsconfig.json'... +[12:00:15 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -153,7 +156,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,27 +190,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -216,10 +219,10 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -271,7 +274,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } @@ -279,26 +282,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:23 AM] Projects in this build: +[12:00:29 AM] Projects in this build: * src/tsconfig.json -[12:00:24 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:30 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:25 AM] Building project '/src/tsconfig.json'... +[12:00:31 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -322,7 +326,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -356,27 +360,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -385,10 +389,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -440,7 +444,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] }, "version": "FakeTSVersion", - "size": 2561 + "size": 2511 } @@ -448,26 +452,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:34 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * src/tsconfig.json -[12:00:35 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:41 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:36 AM] Building project '/src/tsconfig.json'... +[12:00:42 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -491,7 +496,7 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -525,27 +530,27 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -554,10 +559,10 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -609,6 +614,6 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js index 78e949a275e..3fcb5932c5b 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js @@ -16,69 +16,72 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + //// [/src/bundling.ts] -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} //// [/src/global.d.ts] -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} + //// [/src/index.ts] -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); + //// [/src/lazyIndex.ts] export { default as bar } from './bar'; //// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true - } +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true + } } Output:: /lib/tsc --b /src --verbose -[12:00:06 AM] Projects in this build: +[12:00:12 AM] Projects in this build: * src/tsconfig.json -[12:00:07 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist +[12:00:13 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/tsconfig.json'... +[12:00:14 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -153,7 +156,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,27 +190,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -216,10 +219,10 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -271,7 +274,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } @@ -279,26 +282,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:22 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:24 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -323,7 +327,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,27 +361,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -386,10 +390,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -441,7 +445,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] }, "version": "FakeTSVersion", - "size": 2561 + "size": 2511 } @@ -449,26 +453,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:34 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * src/tsconfig.json -[12:00:35 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:41 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:36 AM] Building project '/src/tsconfig.json'... +[12:00:42 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -493,7 +498,7 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -527,27 +532,27 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -556,10 +561,10 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -611,6 +616,6 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index d99f8982bf5..9f36f340137 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -16,44 +16,47 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + //// [/src/bundling.ts] -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} //// [/src/global.d.ts] -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} + //// [/src/index.ts] -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); + //// [/src/lazyIndex.ts] export { default as bar } from './bar'; @@ -62,25 +65,25 @@ import { default as bar } from './bar'; bar("hello"); //// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, "isolatedModules": true - } +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } } Output:: /lib/tsc --b /src --verbose -[12:00:08 AM] Projects in this build: +[12:00:14 AM] Projects in this build: * src/tsconfig.json -[12:00:09 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist +[12:00:15 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/tsconfig.json'... +[12:00:16 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -157,7 +160,7 @@ var bar_2 = require("./bar"); //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -191,27 +194,27 @@ var bar_2 = require("./bar"); }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -224,10 +227,10 @@ var bar_2 = require("./bar"); }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -279,7 +282,7 @@ var bar_2 = require("./bar"); ] }, "version": "FakeTSVersion", - "size": 2738 + "size": 2686 } @@ -287,26 +290,27 @@ var bar_2 = require("./bar"); Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:24 AM] Projects in this build: +[12:00:30 AM] Projects in this build: * src/tsconfig.json -[12:00:25 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:31 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:26 AM] Building project '/src/tsconfig.json'... +[12:00:32 AM] Building project '/src/tsconfig.json'... src/lazyIndex.ts:4:5 - error TS2554: Expected 0 arguments, but got 1. @@ -320,7 +324,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -354,27 +358,27 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -382,8 +386,8 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");" }, "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);" + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n" } }, "root": [ @@ -464,7 +468,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2616 + "size": 2566 } @@ -472,26 +476,27 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:31 AM] Projects in this build: +[12:00:37 AM] Projects in this build: * src/tsconfig.json -[12:00:32 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:38 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:33 AM] Building project '/src/tsconfig.json'... +[12:00:39 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -501,7 +506,7 @@ exitCode:: ExitStatus.Success //// [/src/obj/index.d.ts] file written with same contents //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -535,27 +540,27 @@ exitCode:: ExitStatus.Success }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -568,10 +573,10 @@ exitCode:: ExitStatus.Success }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -623,7 +628,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 2738 + "size": 2686 } @@ -631,26 +636,27 @@ exitCode:: ExitStatus.Success Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:42 AM] Projects in this build: +[12:00:48 AM] Projects in this build: * src/tsconfig.json -[12:00:43 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:49 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:44 AM] Building project '/src/tsconfig.json'... +[12:00:50 AM] Building project '/src/tsconfig.json'... src/lazyIndex.ts:4:5 - error TS2554: Expected 0 arguments, but got 1. @@ -664,7 +670,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -698,27 +704,27 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -726,8 +732,8 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");" }, "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);" + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n" } }, "root": [ @@ -808,7 +814,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2616 + "size": 2566 } @@ -825,12 +831,12 @@ bar(); Output:: /lib/tsc --b /src --verbose -[12:00:49 AM] Projects in this build: +[12:00:55 AM] Projects in this build: * src/tsconfig.json -[12:00:50 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:56 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:51 AM] Building project '/src/tsconfig.json'... +[12:00:57 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -864,7 +870,7 @@ var bar_2 = require("./bar"); //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -898,27 +904,27 @@ var bar_2 = require("./bar"); }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -931,10 +937,10 @@ var bar_2 = require("./bar"); }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -986,6 +992,6 @@ var bar_2 = require("./bar"); ] }, "version": "FakeTSVersion", - "size": 2690 + "size": 2640 } diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js index 0eda002fd62..73661123d46 100644 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js @@ -19,42 +19,44 @@ declare const console: { log(msg: any): void; }; interface SymbolConstructor { (description?: string | number): symbol; } -declare var Symbol: SymbolConstructor; +declare var Symbol: SymbolConstructor; + //// [/src/src/hkt.ts] export interface HKT { } //// [/src/src/main.ts] -import { HKT } from "./hkt"; +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} +const x = 10; +type A = HKT[typeof sym]; -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} -const x = 10; -type A = HKT[typeof sym]; //// [/src/tsconfig.json] -{ - "compilerOptions": { - "rootDir": "src", - "incremental": true - } +{ + "compilerOptions": { + "rootDir": "src", + "incremental": true + } } Output:: /lib/tsc --b /src/tsconfig.json --verbose -[12:00:06 AM] Projects in this build: +[12:00:11 AM] Projects in this build: * src/tsconfig.json -[12:00:07 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:12 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/tsconfig.json'... +[12:00:13 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -72,7 +74,7 @@ var x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true},"675797797-export interface HKT { }","-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];"],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }","-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n"],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,11 +103,11 @@ var x = 10; }, "./src/globals.d.ts": { "original": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", + "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, "./src/hkt.ts": { @@ -113,8 +115,8 @@ var x = 10; "signature": "675797797-export interface HKT { }" }, "./src/main.ts": { - "version": "-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];", - "signature": "-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];" + "version": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n", + "signature": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n" } }, "root": [ @@ -153,7 +155,7 @@ var x = 10; ] }, "version": "FakeTSVersion", - "size": 1208 + "size": 1200 } @@ -161,28 +163,29 @@ var x = 10; Change:: incremental-declaration-doesnt-change Input:: //// [/src/src/main.ts] -import { HKT } from "./hkt"; +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} + +type A = HKT[typeof sym]; -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} - -type A = HKT[typeof sym]; Output:: /lib/tsc --b /src/tsconfig.json --verbose -[12:00:15 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/tsconfig.json -[12:00:16 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' +[12:00:21 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' -[12:00:17 AM] Building project '/src/tsconfig.json'... +[12:00:22 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -194,7 +197,7 @@ var sym = Symbol(); //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -223,11 +226,11 @@ var sym = Symbol(); }, "./src/globals.d.ts": { "original": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", + "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, "./src/hkt.ts": { @@ -236,10 +239,10 @@ var sym = Symbol(); }, "./src/main.ts": { "original": { - "version": "-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];", + "version": "-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" }, - "version": "-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];", + "version": "-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" } }, @@ -279,7 +282,7 @@ var sym = Symbol(); ] }, "version": "FakeTSVersion", - "size": 1393 + "size": 1385 } @@ -287,28 +290,29 @@ var sym = Symbol(); Change:: incremental-declaration-doesnt-change Input:: //// [/src/src/main.ts] -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} - -type A = HKT[typeof sym];const x = 10; +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} + +type A = HKT[typeof sym]; +const x = 10; Output:: /lib/tsc --b /src/tsconfig.json --verbose -[12:00:23 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:24 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' -[12:00:25 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -321,7 +325,7 @@ var x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-20682988154-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];const x = 10;","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -350,11 +354,11 @@ var x = 10; }, "./src/globals.d.ts": { "original": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", + "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, "./src/hkt.ts": { @@ -363,10 +367,10 @@ var x = 10; }, "./src/main.ts": { "original": { - "version": "-20682988154-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];const x = 10;", + "version": "-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" }, - "version": "-20682988154-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];const x = 10;", + "version": "-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" } }, @@ -406,6 +410,6 @@ var x = 10; ] }, "version": "FakeTSVersion", - "size": 1406 + "size": 1397 } diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js index f939155b99d..c7716d2cbf2 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -112,7 +112,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -124,7 +136,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -133,7 +154,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -142,7 +172,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -352,8 +392,27 @@ project4/index.ts project4/utils.d.ts Matched by default include pattern '**/*' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -391,8 +450,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -412,8 +483,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -433,8 +516,21 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js index 5045a425382..23daa000f98 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -73,7 +73,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -85,7 +97,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -94,7 +115,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -103,7 +133,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -368,8 +408,27 @@ project4/index.ts project4/utils.d.ts Matched by default include pattern '**/*' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -407,8 +466,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -428,8 +499,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -449,8 +532,21 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.esnext.d.ts diff --git a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js index 6999ef79ee8..e3a2bc0a87b 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js @@ -32,10 +32,17 @@ interface Array { length: number; [n: number]: T; } //// [/src/projects/a/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/src/projects/b/package.json] -{"name":"b","type":"module"} +{ + "name": "b", + "type": "module" +} //// [/src/projects/b/src/index.ts] import pg from "pg"; @@ -43,13 +50,21 @@ pg.foo(); //// [/src/projects/b/tsconfig.json] -{"compilerOptions":{"strict":true,"module":"node16"}} +{ + "compilerOptions": { + "strict": true, + "module": "node16" + } +} //// [/src/projects/node_modules/@types/pg/index.d.ts] export function foo(): void; //// [/src/projects/node_modules/@types/pg/package.json] -{"name":"@types/pg","types":"index.d.ts"} +{ + "name": "@types/pg", + "types": "index.d.ts" +} diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js index 714d8d58a2c..80c73841df6 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js @@ -5,7 +5,17 @@ import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build","preserveSymlinks":true},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build", + "preserveSymlinks": true + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/const.ts] export type TheNum = 42; @@ -14,10 +24,21 @@ export type TheNum = 42; export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","baseUrl":".","preserveSymlinks":true}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "baseUrl": ".", + "preserveSymlinks": true + } +} //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -87,8 +108,18 @@ File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","preserveSymlinks":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", + "preserveSymlinks": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,8 +136,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/const.ts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","preserveSymlinks":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "preserveSymlinks": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js index 0f7944c3ec1..f1d3342a1f4 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js @@ -5,7 +5,16 @@ import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build"},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build" + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/const.ts] export type TheNum = 42; @@ -14,10 +23,20 @@ export type TheNum = 42; export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","baseUrl":"."}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "baseUrl": "." + } +} //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -88,8 +107,17 @@ File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -106,8 +134,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/const.ts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js index 8754ae4c4eb..38b754724cb 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js @@ -16,13 +16,33 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/packages/pkg1.tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"]},"files":["./pkg1_index.ts"]} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ] + }, + "files": [ + "./pkg1_index.ts" + ] +} //// [/src/packages/pkg1_index.ts] export const theNum: TheNum = "type1"; //// [/src/packages/pkg2.tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot2"]},"files":["./pkg2_index.ts"]} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot2" + ] + }, + "files": [ + "./pkg2_index.ts" + ] +} //// [/src/packages/pkg2_index.ts] export const theNum: TheNum2 = "type2"; diff --git a/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js index 3d4d6192446..daa16a0ac1e 100644 --- a/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a: number = "hello" //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -146,8 +156,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -177,8 +193,14 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js b/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js index 91c4ec829c5..f95748d03d8 100644 --- a/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js +++ b/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a: number = "hello" //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +90,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -116,8 +130,13 @@ Output:: [12:00:17 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -148,8 +167,13 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js index f6e41d3dfbc..0354b83edeb 100644 --- a/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a = "hello //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -124,8 +134,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -155,8 +171,14 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js b/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js index 8a60f1027e6..b062adf1c65 100644 --- a/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js +++ b/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a = "hello //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -77,8 +86,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -108,8 +122,13 @@ Output:: [12:00:17 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -140,8 +159,13 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js index 1de01d62aa1..f9db2c0471b 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,33 +15,34 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} -//// [/src/src/main.ts] + +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = 10; -//// [/src/src/other.ts] -console.log("hi"); -export { } +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -50,36 +51,45 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -90,7 +100,7 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -100,16 +110,16 @@ Shape signatures in builder refreshed for:: "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -140,7 +150,7 @@ Shape signatures in builder refreshed for:: ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", [ "../src/main.ts", @@ -173,7 +183,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1168 + "size": 1176 } @@ -183,8 +193,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -193,14 +203,23 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: @@ -211,56 +230,65 @@ No shapes updated in the builder:: Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = "hello"; Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/src/src/main.ts +/user/username/projects/noEmitOnError/src/main.ts Shape signatures in builder refreshed for:: -/src/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = "hello"; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -271,7 +299,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,8 +309,8 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -293,8 +321,8 @@ console.log("hi"); "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -321,14 +349,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1042 + "size": 1050 } @@ -338,7 +366,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js index 55b98b4f232..3ad99159bf6 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,33 +15,34 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} -//// [/src/src/main.ts] + +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = 10; -//// [/src/src/other.ts] -console.log("hi"); -export { } +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -50,26 +51,34 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) @@ -79,8 +88,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -89,75 +98,91 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = "hello"; Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = "hello"; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); @@ -170,7 +195,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js index b7fc29b42aa..dc8fb6142ca 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,35 +15,37 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + +//// [/user/username/projects/noEmitOnError/src/main.ts] +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + + +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } + + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } -//// [/src/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; - -//// [/src/src/other.ts] -console.log("hi"); -export { } - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} - - Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -52,28 +54,37 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":false},{"version":"2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","signature":false},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -84,7 +95,7 @@ No shapes updated in the builder:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -95,24 +106,24 @@ No shapes updated in the builder:: }, "../shared/types/db.ts": { "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": false }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", "signature": false }, - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": false }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -139,14 +150,14 @@ No shapes updated in the builder:: }, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1099 + "size": 1104 } @@ -156,8 +167,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -166,14 +177,23 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: @@ -184,7 +204,7 @@ No shapes updated in the builder:: Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -193,36 +213,45 @@ const a = { Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (computed .d.ts) -/src/src/main.ts (computed .d.ts) -/src/src/other.ts (computed .d.ts) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/other.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = { @@ -230,20 +259,20 @@ var a = { }; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -254,7 +283,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -264,11 +293,7 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -281,10 +306,10 @@ console.log("hi"); }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -312,14 +337,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1185 + "size": 1110 } @@ -329,7 +354,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js index 419cf2cc68b..fda81b339e6 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,35 +15,37 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + +//// [/user/username/projects/noEmitOnError/src/main.ts] +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + + +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } + + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } -//// [/src/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; - -//// [/src/src/other.ts] -console.log("hi"); -export { } - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} - - Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -52,14 +54,22 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: @@ -73,8 +83,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -83,14 +93,22 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: @@ -101,7 +119,7 @@ No shapes updated in the builder:: Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -110,36 +128,44 @@ const a = { Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = { @@ -147,7 +173,7 @@ var a = { }; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); @@ -160,7 +186,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js index 0b1ce82488c..9e6721287c0 100644 --- a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js @@ -15,120 +15,122 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: @@ -171,7 +173,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -248,8 +250,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -276,6 +278,6 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } diff --git a/tests/baselines/reference/tsbuild/outFile/clean-projects.js b/tests/baselines/reference/tsbuild/outFile/clean-projects.js index 46d482ea24e..3c946f31fc5 100644 --- a/tests/baselines/reference/tsbuild/outFile/clean-projects.js +++ b/tests/baselines/reference/tsbuild/outFile/clean-projects.js @@ -50,7 +50,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -127,8 +127,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -155,7 +155,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -185,7 +185,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -256,9 +256,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -287,95 +287,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -428,7 +425,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -596,7 +593,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -619,38 +616,43 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: diff --git a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js index d1008cc852f..ea2cfbd8f85 100644 --- a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -126,8 +126,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -154,7 +154,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -184,7 +184,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -255,9 +255,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -286,95 +286,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -427,7 +424,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -595,7 +592,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -618,38 +615,43 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: diff --git a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js index 3c0975a83c9..e0531ddcaa5 100644 --- a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js +++ b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, "module": "none", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, "module": "none", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, "module": "none", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, "module": "none", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, "module": "none", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first" }, - { "path": "../second" }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, "module": "none", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + + }, + { + "path": "../second", + + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/tsconfig.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/tsconfig.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/second/tsconfig.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/second/tsconfig.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/second/tsconfig.json'... +[12:00:45 AM] Building project '/src/second/tsconfig.json'... -[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/tsconfig.tsbuildinfo' does not exist +[12:00:57 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/tsconfig.tsbuildinfo' does not exist -[12:00:46 AM] Building project '/src/third/tsconfig.json'... +[12:00:58 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -205,7 +207,7 @@ function f() { {"version":3,"file":"first_part3.js","sourceRoot":"","sources":["first_part3.ts"],"names":[],"mappings":"AAAA,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},{"version":"4973778178-console.log(f());\r\n","signature":"5381-","affectsGlobalScope":true},{"version":"6202806249-function f() {\r\n return \"JS does hoists\";\r\n}","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},{"version":"6007494133-console.log(f());\n","signature":"5381-","affectsGlobalScope":true},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts"},"version":"FakeTSVersion"} //// [/src/first/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -228,31 +230,31 @@ function f() { }, "./first_part1.ts": { "original": { - "version": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "signature": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", "affectsGlobalScope": true }, - "version": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "signature": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", "affectsGlobalScope": true }, "./first_part2.ts": { "original": { - "version": "4973778178-console.log(f());\r\n", + "version": "6007494133-console.log(f());\n", "signature": "5381-", "affectsGlobalScope": true }, - "version": "4973778178-console.log(f());\r\n", + "version": "6007494133-console.log(f());\n", "signature": "5381-", "affectsGlobalScope": true }, "./first_part3.ts": { "original": { - "version": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}", + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", "signature": "-6420944280-declare function f(): string;\n", "affectsGlobalScope": true }, - "version": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}", + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", "signature": "-6420944280-declare function f(): string;\n", "affectsGlobalScope": true } @@ -289,7 +291,7 @@ function f() { "latestChangedDtsFile": "./first_part3.d.ts" }, "version": "FakeTSVersion", - "size": 1507 + "size": 1481 } //// [/src/second/second_part1.d.ts] @@ -339,7 +341,7 @@ var C = (function () { {"version":3,"file":"second_part2.js","sourceRoot":"","sources":["second_part2.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/second/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts"},"version":"FakeTSVersion"} //// [/src/second/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -361,21 +363,21 @@ var C = (function () { }, "./second_part1.ts": { "original": { - "version": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", "signature": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", "affectsGlobalScope": true }, - "version": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", "signature": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", "affectsGlobalScope": true }, "./second_part2.ts": { "original": { - "version": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n", + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", "signature": "-4226833059-declare class C {\n doSomething(): void;\n}\n", "affectsGlobalScope": true }, - "version": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n", + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", "signature": "-4226833059-declare class C {\n doSomething(): void;\n}\n", "affectsGlobalScope": true } @@ -409,7 +411,7 @@ var C = (function () { "latestChangedDtsFile": "./second_part2.d.ts" }, "version": "FakeTSVersion", - "size": 1387 + "size": 1355 } //// [/src/third/third_part1.d.ts] @@ -428,7 +430,7 @@ c.doSomething(); {"version":3,"file":"third_part1.js","sourceRoot":"","sources":["third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true},{"version":"10470273651-var c = new C();\r\nc.doSomething();\r\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true},{"version":"7305100057-var c = new C();\nc.doSomething();\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts"},"version":"FakeTSVersion"} //// [/src/third/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -494,11 +496,11 @@ c.doSomething(); }, "./third_part1.ts": { "original": { - "version": "10470273651-var c = new C();\r\nc.doSomething();\r\n", + "version": "7305100057-var c = new C();\nc.doSomething();\n", "signature": "1894672131-declare var c: C;\n", "affectsGlobalScope": true }, - "version": "10470273651-var c = new C();\r\nc.doSomething();\r\n", + "version": "7305100057-var c = new C();\nc.doSomething();\n", "signature": "1894672131-declare var c: C;\n", "affectsGlobalScope": true } @@ -532,6 +534,6 @@ c.doSomething(); "latestChangedDtsFile": "./third_part1.d.ts" }, "version": "FakeTSVersion", - "size": 1670 + "size": 1665 } diff --git a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js index 5107cca9fa1..bb8e1651e2d 100644 --- a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js +++ b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --i --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -189,7 +191,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -266,8 +268,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -294,7 +296,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -324,7 +326,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -395,9 +397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -426,7 +428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -481,7 +483,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -649,7 +651,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -669,7 +671,7 @@ declare var c: C; } }, "version": "FakeTSVersion", - "size": 4095 + "size": 4090 } @@ -677,37 +679,37 @@ declare var c: C; Change:: Make non incremental build with change in file that doesnt affect dts Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:43 AM] Projects in this build: +[12:00:55 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:44 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:56 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:45 AM] Building project '/src/first/tsconfig.json'... +[12:00:57 AM] Building project '/src/first/tsconfig.json'... -[12:00:53 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:54 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:55 AM] Building project '/src/third/tsconfig.json'... +[12:01:07 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -727,7 +729,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -799,9 +801,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -830,7 +832,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -870,41 +872,41 @@ c.doSomething(); Change:: Make incremental build with change in file that doesnt affect dts Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s);console.log(s); Output:: /lib/tsc --b /src/third --verbose --incremental -[12:01:01 AM] Projects in this build: +[12:01:13 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:14 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:03 AM] Building project '/src/first/tsconfig.json'... +[12:01:15 AM] Building project '/src/first/tsconfig.json'... -[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:23 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:24 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:25 AM] Updating output of project '/src/third/tsconfig.json'... -[12:01:14 AM] Cannot update output of project '/src/third/tsconfig.json' because there was error reading file 'src/third/thirdjs/output/third-output.js' +[12:01:26 AM] Cannot update output of project '/src/third/tsconfig.json' because there was error reading file 'src/third/thirdjs/output/third-output.js' -[12:01:15 AM] Building project '/src/third/tsconfig.json'... +[12:01:27 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -925,7 +927,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"text"}],"mapHash":"-13910258475-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9414459294-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14181918815-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"text"}],"mapHash":"-13910258475-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9414459294-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22658061710-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -998,9 +1000,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-14181918815-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22658061710-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1029,7 +1031,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2781 + "size": 2755 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -1066,7 +1068,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"56762149066-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-43541948390-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"56762149066-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-43541948390-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1236,7 +1238,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1256,6 +1258,6 @@ declare var c: C; } }, "version": "FakeTSVersion", - "size": 4211 + "size": 4206 } diff --git a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js index 0ec9e3391a6..e29c4a729b0 100644 --- a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -126,8 +126,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -154,7 +154,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -184,7 +184,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -255,9 +255,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -286,95 +286,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -427,7 +424,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -595,7 +592,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -618,58 +615,63 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:41 AM] Projects in this build: +[12:00:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:42 AM] Project 'src/first/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:43 AM] Building project '/src/first/tsconfig.json'... +[12:00:55 AM] Building project '/src/first/tsconfig.json'... -[12:00:52 AM] Project 'src/second/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:01:04 AM] Project 'src/second/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:53 AM] Building project '/src/second/tsconfig.json'... +[12:01:05 AM] Building project '/src/second/tsconfig.json'... -[12:01:02 AM] Project 'src/third/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:01:03 AM] Building project '/src/third/tsconfig.json'... +[12:01:15 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -679,7 +681,7 @@ exitCode:: ExitStatus.Success //// [/src/2/second-output.js] file written with same contents //// [/src/2/second-output.js.map] file written with same contents //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] @@ -721,8 +723,8 @@ exitCode:: ExitStatus.Success ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -749,7 +751,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2743 + "size": 2711 } //// [/src/first/bin/first-output.d.ts] file written with same contents @@ -757,7 +759,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] @@ -801,9 +803,9 @@ exitCode:: ExitStatus.Success ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -832,7 +834,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2642 + "size": 2616 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -840,7 +842,7 @@ exitCode:: ExitStatus.Success //// [/src/third/thirdjs/output/third-output.js] file written with same contents //// [/src/third/thirdjs/output/third-output.js.map] file written with same contents //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] @@ -936,7 +938,7 @@ exitCode:: ExitStatus.Success "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -959,6 +961,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 4472 + "size": 4467 } diff --git a/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js b/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js index 8e98d033bcc..8b631673bc6 100644 --- a/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js +++ b/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -189,7 +191,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -266,8 +268,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -294,7 +296,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -324,7 +326,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -395,9 +397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -426,7 +428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js index 72747e37669..638d9a12b0e 100644 --- a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js +++ b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js @@ -50,7 +50,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -127,8 +127,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -155,7 +155,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -253,9 +253,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -284,95 +284,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -425,7 +422,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -593,7 +590,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -616,56 +613,61 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:42 AM] Projects in this build: +[12:00:54 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:43 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:44 AM] Building project '/src/first/tsconfig.json'... +[12:00:56 AM] Building project '/src/first/tsconfig.json'... -[12:00:53 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:54 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:00:55 AM] Building project '/src/third/tsconfig.json'... +[12:01:07 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -675,7 +677,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js index 2f63524563b..aea792acb3d 100644 --- a/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ b/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:07 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/first/tsconfig.json'... +[12:00:20 AM] Building project '/src/first/tsconfig.json'... -[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:41 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/third/tsconfig.json'... +[12:00:42 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -189,7 +191,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -266,8 +268,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -294,7 +296,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -324,7 +326,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -395,9 +397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -426,7 +428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -481,7 +483,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -649,7 +651,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -672,7 +674,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } @@ -684,20 +686,20 @@ Input:: Output:: /lib/tsc --b /src/third --verbose -[12:00:43 AM] Projects in this build: +[12:00:55 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:44 AM] Project 'src/first/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files +[12:00:56 AM] Project 'src/first/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files -[12:00:45 AM] Updating output timestamps of project '/src/first/tsconfig.json'... +[12:00:57 AM] Updating output timestamps of project '/src/first/tsconfig.json'... -[12:00:48 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:50 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js index a81eb8274ee..528ddc0248f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js @@ -16,160 +16,162 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:07 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/first/tsconfig.json'... +[12:00:20 AM] Building project '/src/first/tsconfig.json'... -[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:41 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/third/tsconfig.json'... +[12:00:42 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -213,8 +215,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -223,8 +225,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -237,12 +239,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -265,7 +267,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -274,9 +276,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -320,19 +322,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -356,7 +358,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -373,7 +375,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -395,7 +397,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -407,8 +409,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -427,19 +429,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -469,10 +471,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -499,7 +501,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -521,7 +523,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -530,7 +532,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -545,10 +547,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -558,7 +560,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -635,8 +637,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -663,7 +665,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -708,7 +710,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -723,7 +725,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -734,8 +736,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -753,8 +755,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -768,7 +770,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -783,7 +785,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -800,8 +802,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -840,10 +842,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -867,12 +869,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -944,7 +946,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -958,7 +960,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -967,7 +969,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1038,9 +1040,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1069,7 +1071,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1122,7 +1124,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1137,7 +1139,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1148,8 +1150,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1167,8 +1169,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1182,7 +1184,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1197,7 +1199,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1213,8 +1215,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1242,8 +1244,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1252,8 +1254,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1266,12 +1268,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1294,7 +1296,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1303,9 +1305,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1383,10 +1385,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1410,12 +1412,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1487,7 +1489,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1501,7 +1503,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1517,19 +1519,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1553,7 +1555,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1570,7 +1572,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1592,7 +1594,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1604,8 +1606,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1624,19 +1626,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1666,10 +1668,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1696,7 +1698,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1718,7 +1720,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1727,7 +1729,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1742,10 +1744,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1790,7 +1792,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1807,7 +1809,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1975,7 +1977,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1998,7 +2000,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } @@ -2006,58 +2008,58 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:48 AM] Projects in this build: +[12:01:00 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:49 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:01 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:50 AM] Building project '/src/first/tsconfig.json'... +[12:01:02 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:01 AM] Building project '/src/third/tsconfig.json'... +[12:01:13 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2102,7 +2104,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2117,7 +2119,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2128,8 +2130,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2147,8 +2149,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2162,7 +2164,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2177,7 +2179,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2194,8 +2196,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2234,10 +2236,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2261,12 +2263,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2338,7 +2340,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2352,7 +2354,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2361,7 +2363,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2432,9 +2434,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2463,7 +2465,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2630 + "size": 2605 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2516,7 +2518,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2531,7 +2533,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2542,8 +2544,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2561,8 +2563,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2576,7 +2578,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2591,7 +2593,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2607,8 +2609,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -2636,8 +2638,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -2646,8 +2648,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2660,12 +2662,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -2688,7 +2690,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -2697,9 +2699,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -2777,10 +2779,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2804,12 +2806,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2881,7 +2883,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2895,7 +2897,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2911,19 +2913,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -2947,7 +2949,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2964,7 +2966,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2986,7 +2988,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -2998,8 +3000,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3018,19 +3020,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3060,10 +3062,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -3090,7 +3092,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3112,7 +3114,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -3121,7 +3123,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -3136,10 +3138,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -3184,7 +3186,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3201,7 +3203,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3369,7 +3371,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3392,7 +3394,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4464 + "size": 4459 } @@ -3400,61 +3402,61 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -3490,10 +3492,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3516,12 +3518,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3549,7 +3551,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3621,7 +3623,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3635,7 +3637,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3644,7 +3646,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3716,9 +3718,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3747,7 +3749,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.js] @@ -3798,10 +3800,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3824,12 +3826,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3857,7 +3859,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3929,7 +3931,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3943,7 +3945,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3959,19 +3961,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -3995,7 +3997,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4012,7 +4014,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4034,7 +4036,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -4046,8 +4048,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4066,19 +4068,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -4108,10 +4110,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -4138,7 +4140,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4160,7 +4162,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -4169,7 +4171,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -4184,10 +4186,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -4232,7 +4234,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4249,7 +4251,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4418,7 +4420,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4441,6 +4443,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4520 + "size": 4515 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js index a532b86825e..d6bb728da7a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js @@ -16,138 +16,140 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - - - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + + + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -193,8 +195,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -203,8 +205,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -217,12 +219,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -245,7 +247,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -254,9 +256,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -300,19 +302,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -336,7 +338,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -353,7 +355,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -375,7 +377,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -387,8 +389,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -407,19 +409,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -449,10 +451,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -479,7 +481,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -501,7 +503,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -510,7 +512,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -525,10 +527,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -538,7 +540,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -615,8 +617,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -643,7 +645,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -688,7 +690,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -703,7 +705,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -714,8 +716,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -733,8 +735,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -748,7 +750,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -763,7 +765,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -780,8 +782,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -820,10 +822,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -847,12 +849,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -924,7 +926,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -938,7 +940,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -947,7 +949,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1018,9 +1020,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1049,7 +1051,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js index c6ff205a76a..80ffeb8ae05 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js @@ -16,166 +16,168 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function forsecondsecond_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); function forthirdthird_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -220,8 +222,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -230,8 +232,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -244,12 +246,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -258,7 +260,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -289,7 +291,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -298,9 +300,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -369,19 +371,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) @@ -405,7 +407,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -422,7 +424,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -444,7 +446,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) @@ -456,8 +458,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -476,19 +478,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) @@ -503,7 +505,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -619,10 +621,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) @@ -649,7 +651,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -671,7 +673,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) @@ -680,7 +682,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) @@ -695,10 +697,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) @@ -708,7 +710,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -813,8 +815,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -841,7 +843,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3862 + "size": 3830 } //// [/src/first/bin/first-output.d.ts] @@ -887,7 +889,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -902,7 +904,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -913,8 +915,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -932,8 +934,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -947,7 +949,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -962,7 +964,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -971,9 +973,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -998,8 +1000,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1063,10 +1065,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1090,12 +1092,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1118,7 +1120,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1268,7 +1270,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1282,7 +1284,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -1291,7 +1293,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1390,9 +1392,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1421,7 +1423,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3751 + "size": 3726 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1477,7 +1479,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1492,7 +1494,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1503,8 +1505,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1522,8 +1524,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1537,7 +1539,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1552,7 +1554,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1561,9 +1563,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1587,8 +1589,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1616,8 +1618,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -1626,8 +1628,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1640,12 +1642,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -1654,7 +1656,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -1685,7 +1687,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -1694,9 +1696,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -1730,8 +1732,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -1823,10 +1825,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1850,12 +1852,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1878,7 +1880,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2028,7 +2030,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2042,7 +2044,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -2058,19 +2060,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) @@ -2094,7 +2096,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2111,7 +2113,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2133,7 +2135,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) @@ -2145,8 +2147,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2165,19 +2167,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) @@ -2192,7 +2194,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -2308,10 +2310,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) @@ -2338,7 +2340,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2360,7 +2362,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) @@ -2369,7 +2371,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) @@ -2384,10 +2386,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) @@ -2432,7 +2434,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2451,7 +2453,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -2550,7 +2552,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":709,"kind":"text"}]},{"pos":709,"end":1095,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":709,"end":1095,"kind":"text"}]},{"pos":1095,"end":1243,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"13581617434-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"3074920351-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":412,"kind":"text"}],"mapHash":"54171448521-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-25063643521-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-23528448763-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":709,"kind":"text"}]},{"pos":709,"end":1095,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":709,"end":1095,"kind":"text"}]},{"pos":1095,"end":1243,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"13581617434-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"3074920351-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":412,"kind":"text"}],"mapHash":"54171448521-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-25063643521-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-23528448763-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2754,7 +2756,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -2777,7 +2779,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6504 + "size": 6501 } @@ -2785,17 +2787,17 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } @@ -2804,41 +2806,41 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:04 AM] Building project '/src/third/tsconfig.json'... +[12:01:16 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2884,7 +2886,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2899,7 +2901,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2910,8 +2912,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2929,8 +2931,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2944,7 +2946,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2959,7 +2961,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2968,9 +2970,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -2995,8 +2997,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -3060,10 +3062,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3087,12 +3089,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3115,7 +3117,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -3265,7 +3267,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3279,7 +3281,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -3288,7 +3290,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13521552725-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-16804917073-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","2612047891-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13521552725-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-16804917073-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20332566396-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3387,9 +3389,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "2612047891-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20332566396-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3418,7 +3420,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3747 + "size": 3723 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3474,7 +3476,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3489,7 +3491,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3500,8 +3502,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3519,8 +3521,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3534,7 +3536,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3549,7 +3551,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3558,9 +3560,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -3584,8 +3586,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -3613,8 +3615,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -3623,8 +3625,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3637,12 +3639,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -3651,7 +3653,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -3682,7 +3684,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -3691,9 +3693,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -3727,8 +3729,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -3820,10 +3822,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3847,12 +3849,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3875,7 +3877,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4025,7 +4027,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4039,7 +4041,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -4055,19 +4057,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) @@ -4091,7 +4093,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4108,7 +4110,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4130,7 +4132,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) @@ -4142,8 +4144,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4162,19 +4164,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) @@ -4189,7 +4191,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -4305,10 +4307,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) @@ -4335,7 +4337,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4357,7 +4359,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) @@ -4366,7 +4368,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) @@ -4381,10 +4383,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) @@ -4429,7 +4431,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4448,7 +4450,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -4547,7 +4549,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":708,"kind":"text"}]},{"pos":708,"end":1094,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":708,"end":1094,"kind":"text"}]},{"pos":1094,"end":1242,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"40950852308-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-11659135473-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":708,"kind":"text"}]},{"pos":708,"end":1094,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":708,"end":1094,"kind":"text"}]},{"pos":1094,"end":1242,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"40950852308-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-11659135473-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4751,7 +4753,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -4774,7 +4776,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6502 + "size": 6499 } @@ -4782,17 +4784,17 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -4801,44 +4803,44 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:01:18 AM] Projects in this build: +[12:01:30 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:31 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:20 AM] Building project '/src/first/tsconfig.json'... +[12:01:32 AM] Building project '/src/first/tsconfig.json'... -[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:40 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -4899,10 +4901,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4926,12 +4928,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4954,7 +4956,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5131,7 +5133,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5145,7 +5147,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -5154,7 +5156,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28759009220-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9075183781-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4727019029-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28759009220-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9075183781-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-23927699866-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5254,9 +5256,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "4727019029-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-23927699866-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5285,7 +5287,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3819 + "size": 3795 } //// [/src/third/thirdjs/output/third-output.js] @@ -5367,10 +5369,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5394,12 +5396,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5422,7 +5424,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5599,7 +5601,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5613,7 +5615,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -5629,19 +5631,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) @@ -5665,7 +5667,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5682,7 +5684,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5704,7 +5706,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) @@ -5716,8 +5718,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5736,19 +5738,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) @@ -5763,7 +5765,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -5879,10 +5881,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) @@ -5909,7 +5911,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5931,7 +5933,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) @@ -5940,7 +5942,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) @@ -5955,10 +5957,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) @@ -6003,7 +6005,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -6022,7 +6024,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -6121,7 +6123,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":724,"kind":"text"}]},{"pos":724,"end":1110,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":724,"end":1110,"kind":"text"}]},{"pos":1110,"end":1258,"kind":"text"}],"mapHash":"-62137762555-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-33137738309-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":724,"kind":"text"}]},{"pos":724,"end":1110,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":724,"end":1110,"kind":"text"}]},{"pos":1110,"end":1258,"kind":"text"}],"mapHash":"-62137762555-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-33137738309-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6326,7 +6328,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -6349,7 +6351,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6561 + "size": 6558 } @@ -6357,61 +6359,61 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:41 AM] Projects in this build: +[12:01:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:43 AM] Building project '/src/first/tsconfig.json'... +[12:01:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:05 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -6445,7 +6447,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6460,7 +6462,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -6471,8 +6473,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -6490,8 +6492,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6505,7 +6507,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6520,7 +6522,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6529,9 +6531,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -6554,8 +6556,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -6596,10 +6598,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6623,12 +6625,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6652,7 +6654,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -6745,7 +6747,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6759,7 +6761,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -6768,7 +6770,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"text"}],"mapHash":"-18585329978-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"32129124571-var s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34106245240-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2616863878-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"text"}],"mapHash":"-18585329978-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"32129124571-var s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34106245240-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21004847189-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6842,9 +6844,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2616863878-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21004847189-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -6873,7 +6875,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2935 + "size": 2910 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -6907,7 +6909,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6922,7 +6924,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -6933,8 +6935,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -6952,8 +6954,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6967,7 +6969,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6982,7 +6984,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6991,9 +6993,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -7015,8 +7017,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -7044,8 +7046,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -7054,8 +7056,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -7068,12 +7070,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -7082,7 +7084,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -7113,7 +7115,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -7122,9 +7124,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -7158,8 +7160,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -7250,10 +7252,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -7277,12 +7279,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -7306,7 +7308,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -7399,7 +7401,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -7413,7 +7415,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) @@ -7429,19 +7431,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) @@ -7465,7 +7467,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -7482,7 +7484,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -7504,7 +7506,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) @@ -7516,8 +7518,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -7536,19 +7538,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) @@ -7563,7 +7565,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -7679,10 +7681,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) @@ -7709,7 +7711,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7731,7 +7733,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) @@ -7740,7 +7742,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) @@ -7755,10 +7757,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) @@ -7803,7 +7805,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -7822,7 +7824,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -7921,7 +7923,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":649,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":649,"kind":"text"}]},{"pos":649,"end":1035,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":649,"end":1035,"kind":"text"}]},{"pos":1035,"end":1183,"kind":"text"}],"mapHash":"-23181551528-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-21852742349-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"-7466973756-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":649,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":649,"kind":"text"}]},{"pos":649,"end":1035,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":649,"end":1035,"kind":"text"}]},{"pos":1035,"end":1183,"kind":"text"}],"mapHash":"-23181551528-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-21852742349-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"-7466973756-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8124,7 +8126,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -8147,6 +8149,6 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6352 + "size": 6349 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js index 15a3b17d3de..541d19453d4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js @@ -16,142 +16,144 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function forsecondsecond_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -198,8 +200,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -208,8 +210,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -222,12 +224,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -236,7 +238,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -267,7 +269,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -276,9 +278,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -347,19 +349,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) @@ -383,7 +385,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -400,7 +402,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -422,7 +424,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) @@ -434,8 +436,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -454,19 +456,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) @@ -481,7 +483,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -597,10 +599,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) @@ -627,7 +629,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -649,7 +651,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) @@ -658,7 +660,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) @@ -673,10 +675,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) @@ -686,7 +688,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -791,8 +793,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -819,7 +821,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3862 + "size": 3830 } //// [/src/first/bin/first-output.d.ts] @@ -865,7 +867,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -880,7 +882,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -891,8 +893,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -910,8 +912,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -925,7 +927,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -940,7 +942,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -949,9 +951,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -974,8 +976,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1015,10 +1017,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1042,12 +1044,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1071,7 +1073,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1137,7 +1139,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1151,7 +1153,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1160,7 +1162,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":143,"kind":"text"}],"mapHash":"-25671855582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"35664745151-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-4194720312-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":143,"kind":"text"}],"mapHash":"-25671855582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"35664745151-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20224132711-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1233,9 +1235,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-4194720312-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20224132711-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1264,7 +1266,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2866 + "size": 2841 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1319,7 +1321,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1334,7 +1336,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1345,8 +1347,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1364,8 +1366,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1379,7 +1381,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1394,7 +1396,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1403,9 +1405,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1427,8 +1429,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1456,8 +1458,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -1466,8 +1468,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1480,12 +1482,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -1494,7 +1496,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -1525,7 +1527,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -1534,9 +1536,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -1640,10 +1642,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1667,12 +1669,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1696,7 +1698,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1762,7 +1764,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1776,7 +1778,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) @@ -1792,19 +1794,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) @@ -1828,7 +1830,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1845,7 +1847,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1867,7 +1869,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) @@ -1879,8 +1881,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1899,19 +1901,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) @@ -1926,7 +1928,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -2042,10 +2044,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(31, 5) Source(5, 1) + SourceIndex(4) @@ -2072,7 +2074,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2094,7 +2096,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4) @@ -2103,7 +2105,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) @@ -2118,10 +2120,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4) @@ -2166,7 +2168,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2183,7 +2185,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":634,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":634,"kind":"text"}]},{"pos":634,"end":1020,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":634,"end":1020,"kind":"text"}]},{"pos":1020,"end":1054,"kind":"text"}],"mapHash":"-21009818477-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18683061932-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":634,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":634,"kind":"text"}]},{"pos":634,"end":1020,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":634,"end":1020,"kind":"text"}]},{"pos":1020,"end":1054,"kind":"text"}],"mapHash":"-21009818477-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18683061932-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2376,7 +2378,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2399,7 +2401,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5764 + "size": 5759 } @@ -2407,37 +2409,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:50 AM] Projects in this build: +[12:01:02 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:51 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:03 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:52 AM] Building project '/src/first/tsconfig.json'... +[12:01:04 AM] Building project '/src/first/tsconfig.json'... -[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:12 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:13 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:14 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2476,10 +2478,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2503,12 +2505,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2532,7 +2534,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2625,7 +2627,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2639,7 +2641,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2648,7 +2650,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2722,9 +2724,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2753,7 +2755,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2937 + "size": 2913 } //// [/src/third/thirdjs/output/third-output.js] @@ -2830,10 +2832,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2857,12 +2859,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2886,7 +2888,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2979,7 +2981,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2993,7 +2995,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) @@ -3009,19 +3011,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) @@ -3045,7 +3047,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3062,7 +3064,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3084,7 +3086,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) @@ -3096,8 +3098,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3116,19 +3118,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) @@ -3143,7 +3145,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -3259,10 +3261,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) @@ -3289,7 +3291,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3311,7 +3313,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) @@ -3320,7 +3322,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) @@ -3335,10 +3337,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) @@ -3383,7 +3385,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3400,7 +3402,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":650,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":650,"kind":"text"}]},{"pos":650,"end":1036,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":650,"end":1036,"kind":"text"}]},{"pos":1036,"end":1070,"kind":"text"}],"mapHash":"36423822013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"4701679104-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":650,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":650,"kind":"text"}]},{"pos":650,"end":1036,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":650,"end":1036,"kind":"text"}]},{"pos":1036,"end":1070,"kind":"text"}],"mapHash":"36423822013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"4701679104-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3594,7 +3596,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3617,7 +3619,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5818 + "size": 5813 } @@ -3625,17 +3627,17 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -3644,20 +3646,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:01:13 AM] Projects in this build: +[12:01:25 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:14 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:26 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:15 AM] Building project '/src/first/tsconfig.json'... +[12:01:27 AM] Building project '/src/first/tsconfig.json'... -[12:01:23 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:35 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:24 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:36 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:25 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:37 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3693,7 +3695,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3708,7 +3710,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3719,8 +3721,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3738,8 +3740,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3753,7 +3755,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3768,7 +3770,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3777,9 +3779,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -3804,8 +3806,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -3870,10 +3872,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3897,12 +3899,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3925,7 +3927,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4102,7 +4104,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4116,7 +4118,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -4125,7 +4127,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4225,9 +4227,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -4256,7 +4258,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3824 + "size": 3799 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -4290,7 +4292,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4305,7 +4307,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -4316,8 +4318,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -4335,8 +4337,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -4350,7 +4352,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4365,7 +4367,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -4374,9 +4376,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -4400,8 +4402,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -4429,8 +4431,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -4439,8 +4441,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -4453,12 +4455,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -4467,7 +4469,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -4498,7 +4500,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -4507,9 +4509,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -4616,10 +4618,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4643,12 +4645,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4671,7 +4673,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4848,7 +4850,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4862,7 +4864,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -4878,19 +4880,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) @@ -4914,7 +4916,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4931,7 +4933,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4953,7 +4955,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) @@ -4965,8 +4967,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4985,19 +4987,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) @@ -5012,7 +5014,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -5128,10 +5130,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) @@ -5158,7 +5160,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5180,7 +5182,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) @@ -5189,7 +5191,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) @@ -5204,10 +5206,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) @@ -5252,7 +5254,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5269,7 +5271,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":725,"kind":"text"}]},{"pos":725,"end":1111,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":725,"end":1111,"kind":"text"}]},{"pos":1111,"end":1145,"kind":"text"}],"mapHash":"13211411498-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-24206507384-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"51589947999-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":725,"kind":"text"}]},{"pos":725,"end":1111,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":725,"end":1111,"kind":"text"}]},{"pos":1111,"end":1145,"kind":"text"}],"mapHash":"13211411498-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-24206507384-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"51589947999-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5465,7 +5467,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5488,6 +5490,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6030 + "size": 6025 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js b/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js index d205ccb8476..366a4850a28 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js @@ -16,132 +16,134 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:07 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/first/tsconfig.json'... +[12:00:20 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -151,9 +153,9 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -161,9 +163,9 @@ src/second/second_part1.ts Matched by default include pattern '**/*' src/second/second_part2.ts Matched by default include pattern '**/*' -[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:41 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/third/tsconfig.json'... +[12:00:42 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -217,8 +219,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -227,8 +229,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -241,12 +243,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -269,7 +271,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -278,9 +280,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -324,19 +326,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -360,7 +362,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -377,7 +379,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -399,7 +401,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -411,8 +413,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -431,19 +433,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -473,10 +475,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -503,7 +505,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -525,7 +527,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -534,7 +536,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -549,10 +551,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -562,7 +564,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -639,8 +641,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -667,7 +669,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -712,7 +714,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -727,7 +729,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -738,8 +740,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -757,8 +759,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -772,7 +774,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -787,7 +789,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -804,8 +806,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -844,10 +846,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -871,12 +873,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -948,7 +950,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -962,7 +964,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -971,7 +973,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1042,9 +1044,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1073,7 +1075,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1126,7 +1128,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1141,7 +1143,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1152,8 +1154,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1171,8 +1173,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1186,7 +1188,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1201,7 +1203,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1217,8 +1219,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1246,8 +1248,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1256,8 +1258,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1270,12 +1272,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1298,7 +1300,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1307,9 +1309,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1387,10 +1389,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1414,12 +1416,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1491,7 +1493,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1505,7 +1507,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1521,19 +1523,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1557,7 +1559,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1574,7 +1576,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1596,7 +1598,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1608,8 +1610,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1628,19 +1630,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1670,10 +1672,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1700,7 +1702,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1722,7 +1724,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1731,7 +1733,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1746,10 +1748,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1794,7 +1796,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1811,7 +1813,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1979,7 +1981,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2002,7 +2004,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } @@ -2010,31 +2012,31 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:00:48 AM] Projects in this build: +[12:01:00 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:49 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:01 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:50 AM] Building project '/src/first/tsconfig.json'... +[12:01:02 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -2044,11 +2046,11 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:01 AM] Building project '/src/third/tsconfig.json'... +[12:01:13 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -2103,7 +2105,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2118,7 +2120,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2129,8 +2131,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2148,8 +2150,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2163,7 +2165,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2178,7 +2180,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2195,8 +2197,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2235,10 +2237,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2262,12 +2264,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2339,7 +2341,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2353,7 +2355,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2362,7 +2364,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2433,9 +2435,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2464,7 +2466,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2630 + "size": 2605 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2517,7 +2519,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2532,7 +2534,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2543,8 +2545,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2562,8 +2564,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2577,7 +2579,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2592,7 +2594,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2608,8 +2610,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -2637,8 +2639,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -2647,8 +2649,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2661,12 +2663,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -2689,7 +2691,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -2698,9 +2700,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -2778,10 +2780,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2805,12 +2807,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2882,7 +2884,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2896,7 +2898,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2912,19 +2914,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -2948,7 +2950,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2965,7 +2967,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2987,7 +2989,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -2999,8 +3001,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3019,19 +3021,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3061,10 +3063,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -3091,7 +3093,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3113,7 +3115,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -3122,7 +3124,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -3137,10 +3139,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -3185,7 +3187,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3202,7 +3204,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3370,7 +3372,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3393,7 +3395,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4464 + "size": 4459 } @@ -3401,31 +3403,31 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -3435,11 +3437,11 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3477,10 +3479,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3503,12 +3505,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3536,7 +3538,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3608,7 +3610,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3622,7 +3624,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3631,7 +3633,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3703,9 +3705,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3734,7 +3736,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.js] @@ -3785,10 +3787,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3811,12 +3813,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3844,7 +3846,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3916,7 +3918,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3930,7 +3932,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3946,19 +3948,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -3982,7 +3984,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3999,7 +4001,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4021,7 +4023,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -4033,8 +4035,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4053,19 +4055,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -4095,10 +4097,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -4125,7 +4127,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4147,7 +4149,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -4156,7 +4158,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -4171,10 +4173,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -4219,7 +4221,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4236,7 +4238,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4405,7 +4407,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4428,6 +4430,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4520 + "size": 4515 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js index 4c0ada9a1c3..e77e296a7a4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js @@ -16,106 +16,103 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; +function f() { + return "JS does hoists"; } + function firstfirst_part3Spread(...b: number[]) { } const firstfirst_part3_ar = [20, 30]; firstfirst_part3Spread(10, ...firstfirst_part3_ar); //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function forsecondsecond_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} function secondsecond_part2Spread(...b: number[]) { } const secondsecond_part2_ar = [20, 30]; secondsecond_part2Spread(10, ...secondsecond_part2_ar); //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); function forthirdthird_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } @@ -124,50 +121,55 @@ const thirdthird_part1_ar = [20, 30]; thirdthird_part1Spread(10, ...thirdthird_part1_ar); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:15 AM] Projects in this build: +[12:00:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:16 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:17 AM] Building project '/src/first/tsconfig.json'... +[12:00:29 AM] Building project '/src/first/tsconfig.json'... -[12:00:27 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:39 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/second/tsconfig.json'... +[12:00:40 AM] Building project '/src/second/tsconfig.json'... -[12:00:38 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:50 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:39 AM] Building project '/src/third/tsconfig.json'... +[12:00:51 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -216,8 +218,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -226,8 +228,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -240,12 +242,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -254,7 +256,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -285,7 +287,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -294,9 +296,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -310,7 +312,7 @@ sourceFile:../second/second_part2.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -475,19 +477,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(37, 5) Source(5, 11) + SourceIndex(0) @@ -511,7 +513,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -528,7 +530,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -550,7 +552,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(41, 5) Source(8, 5) + SourceIndex(0) @@ -562,8 +564,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -582,19 +584,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(43, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(43, 2) Source(11, 2) + SourceIndex(0) @@ -609,7 +611,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -725,10 +727,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(49, 5) Source(5, 1) + SourceIndex(1) @@ -755,7 +757,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -777,7 +779,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(52, 5) Source(4, 5) + SourceIndex(1) @@ -786,7 +788,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(53, 5) Source(5, 1) + SourceIndex(1) @@ -801,10 +803,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(54, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) @@ -815,7 +817,7 @@ sourceFile:../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -932,7 +934,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":2030,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30083835302-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE\"}","hash":"15985439346-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":257,"kind":"text"}],"mapHash":"-6793954603-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC\"}","hash":"-12368550231-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-17653520187-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":2030,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30083835302-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE\"}","hash":"15985439346-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":257,"kind":"text"}],"mapHash":"-6793954603-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC\"}","hash":"-12368550231-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-27196066044-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1090,8 +1092,8 @@ declare const secondsecond_part2_ar: number[]; ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../second/second_part2.ts": "-17653520187-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);" + "../second/second_part1.ts": "-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../second/second_part2.ts": "-27196066044-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);" }, "root": [ [ @@ -1119,7 +1121,7 @@ declare const secondsecond_part2_ar: number[]; "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 5933 + "size": 5901 } //// [/src/first/bin/first-output.d.ts] @@ -1137,7 +1139,7 @@ declare const firstfirst_part3_ar: number[]; //# sourceMappingURL=first-output.d.ts.map //// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/first/bin/first-output.d.ts.map.baseline.txt] =================================================================== @@ -1167,7 +1169,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1182,7 +1184,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1193,8 +1195,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1212,8 +1214,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1227,7 +1229,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1242,7 +1244,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1251,9 +1253,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1278,8 +1280,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1297,6 +1299,7 @@ sourceFile:../first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -1306,15 +1309,15 @@ sourceFile:../first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(2) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(2) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(2) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(2) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(2) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(2) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(2) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(2) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -1330,12 +1333,12 @@ sourceFile:../first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(2) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(2) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(2) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.d.ts.map @@ -1396,7 +1399,7 @@ firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3 //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -1452,10 +1455,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1479,12 +1482,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1507,7 +1510,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1657,7 +1660,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1671,7 +1674,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(45, 1) Source(3, 1) + SourceIndex(2) @@ -1682,12 +1685,13 @@ sourceFile:../first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(46, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(46, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(46, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(46, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(46, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(46, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -1695,8 +1699,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(47, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(47, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(47, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(47, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1711,20 +1715,20 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(48, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(48, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(48, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(48, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(48, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(48, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(48, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(48, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(48, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(48, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(49, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(49, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -1733,8 +1737,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(51, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(51, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(51, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(51, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -1759,16 +1763,16 @@ sourceFile:../first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(52, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(52, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(52, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(52, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(52, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(52, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(52, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(52, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(52, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(52, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(52, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(52, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(52, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(52, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(52, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(52, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(52, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(52, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(52, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(52, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -1786,18 +1790,18 @@ sourceFile:../first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(53, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(53, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(53, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(53, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(53, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(53, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(53, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(53, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(53, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(53, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(53, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(53, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(53, 95) Source(7, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-35433619521-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-7416090205-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-16946718015-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-7416090205-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1919,7 +1923,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-7416090205-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map", - "mapHash": "-35433619521-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-16946718015-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -1937,7 +1941,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -1949,9 +1953,9 @@ declare const firstfirst_part3_ar: number[]; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" + "../first_part1.ts": "-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" }, "root": [ [ @@ -1981,7 +1985,7 @@ declare const firstfirst_part3_ar: number[]; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5791 + "size": 5768 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2013,7 +2017,7 @@ declare const thirdthird_part1_ar: number[]; //# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -2043,7 +2047,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2058,7 +2062,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2069,8 +2073,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2088,8 +2092,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2103,7 +2107,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2118,7 +2122,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2127,9 +2131,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -2154,8 +2158,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -2173,6 +2177,7 @@ sourceFile:../../../first/first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -2182,15 +2187,15 @@ sourceFile:../../../first/first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(1) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(1) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(1) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(1) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(1) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(1) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(1) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(1) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -2206,12 +2211,12 @@ sourceFile:../../../first/first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(1) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(1) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(1) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -2234,8 +2239,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) --- @@ -2244,8 +2249,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2258,12 +2263,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) --- @@ -2272,7 +2277,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -2303,7 +2308,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -2312,9 +2317,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -2328,7 +2333,7 @@ sourceFile:../../../second/second_part2.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -2401,8 +2406,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ 5 > ^^^^^^^^^^^^^-> -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -2563,7 +2568,7 @@ thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1 //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -2619,10 +2624,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2646,12 +2651,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2674,7 +2679,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2824,7 +2829,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2838,7 +2843,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(45, 1) Source(3, 1) + SourceIndex(2) @@ -2849,12 +2854,13 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(46, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(46, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(46, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(46, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(46, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(46, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -2862,8 +2868,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(47, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(47, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(47, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(47, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2878,20 +2884,20 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(48, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(48, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(48, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(48, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(48, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(48, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(48, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(48, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(48, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(48, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(49, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(49, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -2900,8 +2906,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(51, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(51, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(51, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(51, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -2926,16 +2932,16 @@ sourceFile:../../../first/first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(52, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(52, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(52, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(52, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(52, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(52, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(52, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(52, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(52, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(52, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(52, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(52, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(52, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(52, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(52, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(52, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(52, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(52, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(52, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(52, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -2953,13 +2959,13 @@ sourceFile:../../../first/first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(53, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(53, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(53, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(53, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(53, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(53, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(53, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(53, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(53, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(53, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(53, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(53, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(53, 95) Source(7, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2971,19 +2977,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(54, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(54, 5) Source(5, 11) + SourceIndex(3) @@ -3007,7 +3013,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3024,7 +3030,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3046,7 +3052,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(58, 5) Source(8, 5) + SourceIndex(3) @@ -3058,8 +3064,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3078,19 +3084,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(60, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(60, 2) Source(11, 2) + SourceIndex(3) @@ -3105,7 +3111,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -3221,10 +3227,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(66, 5) Source(5, 1) + SourceIndex(4) @@ -3251,7 +3257,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3273,7 +3279,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(69, 5) Source(4, 5) + SourceIndex(4) @@ -3282,7 +3288,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(70, 5) Source(5, 1) + SourceIndex(4) @@ -3297,10 +3303,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(71, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(71, 2) Source(5, 2) + SourceIndex(4) @@ -3311,7 +3317,7 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -3463,7 +3469,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3482,7 +3488,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -3698,7 +3704,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1854,"kind":"text"}]},{"pos":1854,"end":2522,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1854,"end":2522,"kind":"text"}]},{"pos":2522,"end":2944,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-62895833357-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-32745783681-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1854,"kind":"text"}]},{"pos":1854,"end":2522,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1854,"end":2522,"kind":"text"}]},{"pos":2522,"end":2944,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-72824444169-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-32745783681-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3917,7 +3923,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-32745783681-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map", - "mapHash": "-62895833357-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-72824444169-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -3961,7 +3967,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map", - "mapHash": "25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -3975,7 +3981,7 @@ declare const thirdthird_part1_ar: number[]; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n", "../../../2/second-output.d.ts": "-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n", - "../../third_part1.ts": "-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" + "../../third_part1.ts": "-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" }, "root": [ [ @@ -3999,7 +4005,7 @@ declare const thirdthird_part1_ar: number[]; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10312 + "size": 10308 } @@ -4007,17 +4013,17 @@ declare const thirdthird_part1_ar: number[]; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -4026,20 +4032,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:57 AM] Projects in this build: +[12:01:09 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:10 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:59 AM] Building project '/src/first/tsconfig.json'... +[12:01:11 AM] Building project '/src/first/tsconfig.json'... -[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:19 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:20 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:09 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:21 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -4104,7 +4110,7 @@ firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3 //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -4160,10 +4166,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4187,12 +4193,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4215,7 +4221,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4392,7 +4398,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4406,7 +4412,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) @@ -4417,12 +4423,13 @@ sourceFile:../first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(47, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(47, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -4430,8 +4437,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(48, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -4446,20 +4453,20 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(49, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(49, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(49, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(49, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(49, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(49, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(50, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(50, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -4468,8 +4475,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(52, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(52, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -4494,16 +4501,16 @@ sourceFile:../first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(53, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(53, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(53, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(53, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(53, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(53, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(53, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(53, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(53, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -4521,18 +4528,18 @@ sourceFile:../first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(54, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(54, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(54, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(54, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(54, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(54, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(54, 95) Source(7, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30182735568-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-26516546737-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-20285768654-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-26516546737-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4655,7 +4662,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-26516546737-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map", - "mapHash": "-30182735568-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-20285768654-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -4673,7 +4680,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -4685,9 +4692,9 @@ declare const firstfirst_part3_ar: number[]; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" + "../first_part1.ts": "-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" }, "root": [ [ @@ -4717,7 +4724,7 @@ declare const firstfirst_part3_ar: number[]; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5865 + "size": 5842 } //// [/src/third/thirdjs/output/third-output.js] @@ -4817,7 +4824,7 @@ thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1 //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -4873,10 +4880,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4900,12 +4907,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4928,7 +4935,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5105,7 +5112,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5119,7 +5126,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) @@ -5130,12 +5137,13 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(47, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(47, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -5143,8 +5151,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(48, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -5159,20 +5167,20 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(49, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(49, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(49, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(49, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(49, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(49, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(50, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(50, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -5181,8 +5189,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(52, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(52, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -5207,16 +5215,16 @@ sourceFile:../../../first/first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(53, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(53, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(53, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(53, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(53, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(53, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(53, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(53, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(53, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -5234,13 +5242,13 @@ sourceFile:../../../first/first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(54, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(54, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(54, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(54, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(54, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(54, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(54, 95) Source(7, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -5252,19 +5260,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(55, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(55, 5) Source(5, 11) + SourceIndex(3) @@ -5288,7 +5296,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5305,7 +5313,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5327,7 +5335,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(59, 5) Source(8, 5) + SourceIndex(3) @@ -5339,8 +5347,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5359,19 +5367,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(61, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(61, 2) Source(11, 2) + SourceIndex(3) @@ -5386,7 +5394,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -5502,10 +5510,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(67, 5) Source(5, 1) + SourceIndex(4) @@ -5532,7 +5540,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5554,7 +5562,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(70, 5) Source(4, 5) + SourceIndex(4) @@ -5563,7 +5571,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(71, 5) Source(5, 1) + SourceIndex(4) @@ -5578,10 +5586,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(72, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(72, 2) Source(5, 2) + SourceIndex(4) @@ -5592,7 +5600,7 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -5744,7 +5752,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5763,7 +5771,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -5979,7 +5987,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1870,"kind":"text"}]},{"pos":1870,"end":2538,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1870,"end":2538,"kind":"text"}]},{"pos":2538,"end":2960,"kind":"text"}],"mapHash":"5963265220-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-65318968533-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1870,"kind":"text"}]},{"pos":1870,"end":2538,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1870,"end":2538,"kind":"text"}]},{"pos":2538,"end":2960,"kind":"text"}],"mapHash":"17509490888-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-65318968533-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6199,7 +6207,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-65318968533-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map", - "mapHash": "5963265220-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "17509490888-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -6243,7 +6251,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map", - "mapHash": "25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -6257,7 +6265,7 @@ declare const thirdthird_part1_ar: number[]; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n", "../../../2/second-output.d.ts": "-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n", - "../../third_part1.ts": "-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" + "../../third_part1.ts": "-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" }, "root": [ [ @@ -6281,7 +6289,7 @@ declare const thirdthird_part1_ar: number[]; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10368 + "size": 10365 } @@ -6289,43 +6297,43 @@ declare const thirdthird_part1_ar: number[]; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:20 AM] Projects in this build: +[12:01:32 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:21 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:33 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:22 AM] Building project '/src/first/tsconfig.json'... +[12:01:34 AM] Building project '/src/first/tsconfig.json'... -[12:01:30 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:42 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:31 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:43 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:32 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:44 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/first/bin/first-output.d.ts.map.baseline.txt] =================================================================== @@ -6355,7 +6363,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6370,7 +6378,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -6381,8 +6389,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -6400,8 +6408,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6415,7 +6423,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6430,7 +6438,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6439,9 +6447,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -6464,8 +6472,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -6483,6 +6491,7 @@ sourceFile:../first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -6492,15 +6501,15 @@ sourceFile:../first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(2) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(2) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(2) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(2) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(2) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(2) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(2) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(2) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -6516,12 +6525,12 @@ sourceFile:../first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(2) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(2) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(2) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.d.ts.map @@ -6570,7 +6579,7 @@ firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3 //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -6615,10 +6624,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6642,12 +6651,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6671,7 +6680,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -6764,7 +6773,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6778,7 +6787,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(33, 1) Source(3, 1) + SourceIndex(2) @@ -6789,12 +6798,13 @@ sourceFile:../first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(34, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(34, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(34, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(34, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(34, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(34, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -6802,8 +6812,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(35, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(35, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(35, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(35, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -6818,20 +6828,20 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(36, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(36, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(36, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(36, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(36, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(36, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(36, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(36, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(36, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(36, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(36, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(36, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(37, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(37, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(37, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(37, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -6840,8 +6850,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(39, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(39, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(39, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(39, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -6866,16 +6876,16 @@ sourceFile:../first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(40, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(40, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(40, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(40, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(40, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(40, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(40, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(40, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(40, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(40, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(40, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(40, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(40, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(40, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(40, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(40, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(40, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(40, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(40, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(40, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -6893,18 +6903,18 @@ sourceFile:../first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(41, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(41, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(41, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(41, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(41, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(41, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(41, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(41, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(41, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(41, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(41, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(41, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(41, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(41, 95) Source(7, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1304,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-26203276582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"71257392207-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"8802529616-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1304,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-7716375076-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"71257392207-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"21786479890-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7006,7 +7016,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "71257392207-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map", - "mapHash": "-26203276582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-7716375076-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:read", @@ -7023,7 +7033,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "8802529616-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "21786479890-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -7035,9 +7045,9 @@ declare const firstfirst_part3_ar: number[]; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" + "../first_part1.ts": "-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" }, "root": [ [ @@ -7067,11 +7077,11 @@ declare const firstfirst_part3_ar: number[]; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 4999 + "size": 4977 } //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -7101,7 +7111,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -7116,7 +7126,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -7127,8 +7137,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -7146,8 +7156,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -7161,7 +7171,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -7176,7 +7186,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -7185,9 +7195,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -7210,8 +7220,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -7229,6 +7239,7 @@ sourceFile:../../../first/first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -7238,15 +7249,15 @@ sourceFile:../../../first/first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(1) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(1) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(1) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(1) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(1) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(1) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(1) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(1) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -7262,12 +7273,12 @@ sourceFile:../../../first/first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(1) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(1) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(1) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -7290,8 +7301,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) --- @@ -7300,8 +7311,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -7314,12 +7325,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) --- @@ -7328,7 +7339,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -7359,7 +7370,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -7368,9 +7379,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -7384,7 +7395,7 @@ sourceFile:../../../second/second_part2.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -7457,8 +7468,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ 5 > ^^^^^^^^^^^^^-> -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -7618,7 +7629,7 @@ thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1 //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -7674,10 +7685,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -7701,12 +7712,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -7730,7 +7741,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -7823,7 +7834,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -7837,7 +7848,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(44, 1) Source(3, 1) + SourceIndex(2) @@ -7848,12 +7859,13 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(45, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(45, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(45, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(45, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(45, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(45, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -7861,8 +7873,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(46, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(46, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(46, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(46, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -7877,20 +7889,20 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(47, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(47, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(47, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(47, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(47, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(47, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(47, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(47, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(47, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(47, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(47, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(47, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(48, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(48, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -7899,8 +7911,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(50, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(50, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(50, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(50, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -7925,16 +7937,16 @@ sourceFile:../../../first/first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(51, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(51, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(51, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(51, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(51, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(51, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(51, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(51, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(51, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(51, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(51, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(51, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(51, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(51, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(51, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(51, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(51, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(51, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(51, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(51, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -7952,13 +7964,13 @@ sourceFile:../../../first/first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(52, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(52, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(52, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(52, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(52, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(52, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(52, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(52, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(52, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(52, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(52, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(52, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(52, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(52, 95) Source(7, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -7970,19 +7982,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(53, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(53, 5) Source(5, 11) + SourceIndex(3) @@ -8006,7 +8018,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8023,7 +8035,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -8045,7 +8057,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(57, 5) Source(8, 5) + SourceIndex(3) @@ -8057,8 +8069,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -8077,19 +8089,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(59, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(59, 2) Source(11, 2) + SourceIndex(3) @@ -8104,7 +8116,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -8220,10 +8232,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(65, 5) Source(5, 1) + SourceIndex(4) @@ -8250,7 +8262,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -8272,7 +8284,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(68, 5) Source(4, 5) + SourceIndex(4) @@ -8281,7 +8293,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(69, 5) Source(5, 1) + SourceIndex(4) @@ -8296,10 +8308,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(70, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(70, 2) Source(5, 2) + SourceIndex(4) @@ -8310,7 +8322,7 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -8462,7 +8474,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -8481,7 +8493,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -8697,7 +8709,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1795,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1795,"kind":"text"}]},{"pos":1795,"end":2463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1795,"end":2463,"kind":"text"}]},{"pos":2463,"end":2885,"kind":"text"}],"mapHash":"26169118295-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-2171038301-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"18621572486-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1795,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1795,"kind":"text"}]},{"pos":1795,"end":2463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1795,"end":2463,"kind":"text"}]},{"pos":2463,"end":2885,"kind":"text"}],"mapHash":"-5234328997-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-2171038301-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"-23413824694-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8915,7 +8927,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-2171038301-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map", - "mapHash": "26169118295-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-5234328997-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -8959,7 +8971,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map", - "mapHash": "18621572486-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "-23413824694-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -8973,7 +8985,7 @@ declare const thirdthird_part1_ar: number[]; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n", "../../../2/second-output.d.ts": "-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n", - "../../third_part1.ts": "-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" + "../../third_part1.ts": "-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" }, "root": [ [ @@ -8997,6 +9009,6 @@ declare const thirdthird_part1_ar: number[]; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10159 + "size": 10156 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js index fdffc8b0127..531a20a0d4e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js @@ -16,148 +16,150 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function secondsecond_part1Spread(...b: number[]) { } const secondsecond_part1_ar = [20, 30]; secondsecond_part1Spread(10, ...secondsecond_part1_ar); //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); function forthirdthird_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -215,8 +217,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -229,12 +231,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -248,7 +250,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -309,7 +311,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) @@ -318,9 +320,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) --- @@ -422,19 +424,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(26, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(26, 5) Source(5, 11) + SourceIndex(0) @@ -458,7 +460,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -475,7 +477,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -497,7 +499,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(30, 5) Source(8, 5) + SourceIndex(0) @@ -509,8 +511,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -529,19 +531,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(32, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(32, 2) Source(11, 2) + SourceIndex(0) @@ -555,7 +557,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -689,10 +691,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(43, 5) Source(5, 1) + SourceIndex(1) @@ -719,7 +721,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -741,7 +743,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(46, 5) Source(4, 5) + SourceIndex(1) @@ -750,7 +752,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(47, 5) Source(5, 1) + SourceIndex(1) @@ -765,10 +767,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(48, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(48, 2) Source(5, 2) + SourceIndex(1) @@ -778,7 +780,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1423,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-34534977022-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"63850821105-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":205,"kind":"text"}],"mapHash":"14094696036-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-39676616629-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-24334061923-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1423,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-34534977022-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"63850821105-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":205,"kind":"text"}],"mapHash":"14094696036-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-39676616629-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17632739282-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -912,8 +914,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-24334061923-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-17632739282-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -941,7 +943,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 4831 + "size": 4799 } //// [/src/first/bin/first-output.d.ts] @@ -987,7 +989,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1002,7 +1004,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1013,8 +1015,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1032,8 +1034,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1047,7 +1049,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1062,7 +1064,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1071,9 +1073,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1098,8 +1100,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1163,10 +1165,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1190,12 +1192,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1218,7 +1220,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1368,7 +1370,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1382,7 +1384,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -1391,7 +1393,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1490,9 +1492,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1521,7 +1523,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3751 + "size": 3726 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1578,7 +1580,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1593,7 +1595,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1604,8 +1606,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1623,8 +1625,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1638,7 +1640,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1653,7 +1655,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1662,9 +1664,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1688,8 +1690,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1717,8 +1719,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -1727,8 +1729,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1741,12 +1743,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -1760,7 +1762,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -1821,7 +1823,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) @@ -1830,9 +1832,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) --- @@ -1866,8 +1868,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -2014,10 +2016,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2041,12 +2043,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2069,7 +2071,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2219,7 +2221,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2233,7 +2235,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(45, 1) Source(3, 1) + SourceIndex(2) @@ -2249,19 +2251,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(46, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(46, 5) Source(5, 11) + SourceIndex(3) @@ -2285,7 +2287,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2302,7 +2304,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2324,7 +2326,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(50, 5) Source(8, 5) + SourceIndex(3) @@ -2336,8 +2338,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2356,19 +2358,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(52, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(52, 2) Source(11, 2) + SourceIndex(3) @@ -2382,7 +2384,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -2516,10 +2518,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(63, 5) Source(5, 1) + SourceIndex(4) @@ -2546,7 +2548,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2568,7 +2570,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(66, 5) Source(4, 5) + SourceIndex(4) @@ -2577,7 +2579,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(67, 5) Source(5, 1) + SourceIndex(4) @@ -2592,10 +2594,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(68, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(68, 2) Source(5, 2) + SourceIndex(4) @@ -2640,7 +2642,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2659,7 +2661,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -2758,7 +2760,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1580,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1580,"kind":"text"}]},{"pos":1580,"end":2132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1580,"end":2132,"kind":"text"}]},{"pos":2132,"end":2280,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13780861725-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"14655148662-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1580,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1580,"kind":"text"}]},{"pos":1580,"end":2132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1580,"end":2132,"kind":"text"}]},{"pos":2132,"end":2280,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13780861725-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"14655148662-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3009,7 +3011,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -3032,7 +3034,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8009 + "size": 8006 } @@ -3040,17 +3042,17 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -3059,20 +3061,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:01:04 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:05 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:01:06 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:04 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:16 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3135,10 +3137,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3162,12 +3164,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3190,7 +3192,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -3367,7 +3369,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3381,7 +3383,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -3390,7 +3392,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3490,9 +3492,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3521,7 +3523,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3824 + "size": 3799 } //// [/src/third/thirdjs/output/third-output.js] @@ -3658,10 +3660,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3685,12 +3687,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3713,7 +3715,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -3890,7 +3892,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3904,7 +3906,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) @@ -3920,19 +3922,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(47, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(47, 5) Source(5, 11) + SourceIndex(3) @@ -3956,7 +3958,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3973,7 +3975,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3995,7 +3997,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(51, 5) Source(8, 5) + SourceIndex(3) @@ -4007,8 +4009,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4027,19 +4029,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(53, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(53, 2) Source(11, 2) + SourceIndex(3) @@ -4053,7 +4055,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -4187,10 +4189,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) @@ -4217,7 +4219,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4239,7 +4241,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(67, 5) Source(4, 5) + SourceIndex(4) @@ -4248,7 +4250,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(68, 5) Source(5, 1) + SourceIndex(4) @@ -4263,10 +4265,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(69, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(69, 2) Source(5, 2) + SourceIndex(4) @@ -4311,7 +4313,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4330,7 +4332,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -4429,7 +4431,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1596,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1596,"kind":"text"}]},{"pos":1596,"end":2148,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1596,"end":2148,"kind":"text"}]},{"pos":2148,"end":2296,"kind":"text"}],"mapHash":"36408281972-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-22595833054-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1596,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1596,"kind":"text"}]},{"pos":1596,"end":2148,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1596,"end":2148,"kind":"text"}]},{"pos":2148,"end":2296,"kind":"text"}],"mapHash":"36408281972-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-22595833054-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4681,7 +4683,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -4704,7 +4706,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8067 + "size": 8064 } @@ -4712,37 +4714,37 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -4778,7 +4780,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4793,7 +4795,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -4804,8 +4806,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -4823,8 +4825,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -4838,7 +4840,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4853,7 +4855,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -4862,9 +4864,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -4887,8 +4889,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -4929,10 +4931,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4956,12 +4958,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4985,7 +4987,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5078,7 +5080,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5092,7 +5094,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -5101,7 +5103,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5175,9 +5177,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5206,7 +5208,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2937 + "size": 2913 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5240,7 +5242,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5255,7 +5257,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -5266,8 +5268,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5285,8 +5287,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5300,7 +5302,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5315,7 +5317,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -5324,9 +5326,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -5348,8 +5350,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -5377,8 +5379,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -5387,8 +5389,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -5401,12 +5403,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -5420,7 +5422,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -5481,7 +5483,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) @@ -5490,9 +5492,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) --- @@ -5526,8 +5528,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -5673,10 +5675,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5700,12 +5702,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5729,7 +5731,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5822,7 +5824,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5836,7 +5838,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(44, 1) Source(3, 1) + SourceIndex(2) @@ -5852,19 +5854,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(45, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(45, 5) Source(5, 11) + SourceIndex(3) @@ -5888,7 +5890,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5905,7 +5907,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5927,7 +5929,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(49, 5) Source(8, 5) + SourceIndex(3) @@ -5939,8 +5941,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5959,19 +5961,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(51, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(51, 2) Source(11, 2) + SourceIndex(3) @@ -5985,7 +5987,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -6119,10 +6121,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) @@ -6149,7 +6151,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -6171,7 +6173,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(65, 5) Source(4, 5) + SourceIndex(4) @@ -6180,7 +6182,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(66, 5) Source(5, 1) + SourceIndex(4) @@ -6195,10 +6197,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(67, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(67, 2) Source(5, 2) + SourceIndex(4) @@ -6243,7 +6245,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -6262,7 +6264,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -6361,7 +6363,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1521,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1521,"kind":"text"}]},{"pos":1521,"end":2073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1521,"end":2073,"kind":"text"}]},{"pos":2073,"end":2221,"kind":"text"}],"mapHash":"10267526983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-25475842662-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"11916833729-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1521,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1521,"kind":"text"}]},{"pos":1521,"end":2073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1521,"end":2073,"kind":"text"}]},{"pos":2073,"end":2221,"kind":"text"}],"mapHash":"10267526983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-25475842662-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"11916833729-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6611,7 +6613,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -6634,6 +6636,6 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 7858 + "size": 7855 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js index cbc07c59f1c..c1850519a57 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js @@ -17,164 +17,166 @@ declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] "myPrologue" -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] "myPrologue2"; -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] "myPrologue3"; "myPrologue"; -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/second/tsconfig.json'... +[12:00:39 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:50 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -219,8 +221,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) --- @@ -229,8 +231,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -243,12 +245,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) --- @@ -272,7 +274,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) @@ -281,9 +283,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) --- @@ -363,19 +365,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(4, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(4, 5) Source(6, 11) + SourceIndex(0) @@ -399,7 +401,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -416,7 +418,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -438,7 +440,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) @@ -450,8 +452,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -470,19 +472,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(10, 2) Source(12, 2) + SourceIndex(0) @@ -513,10 +515,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(13, 5) Source(6, 1) + SourceIndex(1) @@ -543,7 +545,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -565,7 +567,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(5, 5) + SourceIndex(1) @@ -574,7 +576,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) @@ -589,10 +591,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) @@ -602,7 +604,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":313,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"-3048025768-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-13584872562-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":313,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"-3048025768-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-13584872562-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -749,8 +751,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -777,7 +779,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3374 + "size": 3340 } //// [/src/first/bin/first-output.d.ts] @@ -823,7 +825,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -838,7 +840,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -849,8 +851,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -868,8 +870,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -883,7 +885,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -898,7 +900,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -915,8 +917,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -971,10 +973,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -998,12 +1000,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1075,7 +1077,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1089,7 +1091,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -1098,7 +1100,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":132,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-16462635350-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3610712971-\"use strict\";\n\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","31392936222-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":132,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-16462635350-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3610712971-\"use strict\";\n\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","31264093903-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1215,9 +1217,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "31392936222-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "31264093903-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1246,7 +1248,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3036 + "size": 3010 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1300,7 +1302,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1315,7 +1317,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -1326,8 +1328,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1345,8 +1347,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1360,7 +1362,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1375,7 +1377,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -1391,8 +1393,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1421,8 +1423,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -1431,8 +1433,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1445,12 +1447,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -1474,7 +1476,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -1483,9 +1485,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -1618,10 +1620,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1645,12 +1647,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1722,7 +1724,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1736,7 +1738,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) @@ -1753,19 +1755,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) @@ -1789,7 +1791,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1806,7 +1808,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1828,7 +1830,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) @@ -1840,8 +1842,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1860,19 +1862,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) @@ -1903,10 +1905,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) @@ -1933,7 +1935,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1955,7 +1957,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) @@ -1964,7 +1966,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) @@ -1979,10 +1981,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) @@ -2029,7 +2031,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2046,7 +2048,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":162,"kind":"text"}]},{"pos":162,"end":432,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":432,"kind":"text"}]},{"pos":432,"end":466,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"28083733311-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-29491078422-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"37827717207-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":162,"kind":"text"}]},{"pos":162,"end":432,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":432,"kind":"text"}]},{"pos":432,"end":466,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"28083733311-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-29491078422-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"37827717207-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2287,7 +2289,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2310,7 +2312,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5161 + "size": 5158 } @@ -2319,58 +2321,58 @@ Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:01:08 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:09 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:01:10 AM] Building project '/src/first/tsconfig.json'... -[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:19 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:20 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:09 AM] Building project '/src/third/tsconfig.json'... +[12:01:21 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2416,7 +2418,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2431,7 +2433,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -2442,8 +2444,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2461,8 +2463,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2476,7 +2478,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2491,7 +2493,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -2508,8 +2510,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2564,10 +2566,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2591,12 +2593,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2668,7 +2670,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2682,7 +2684,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2691,7 +2693,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":131,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-4897215004-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-6284347259-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","36491275086-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":131,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-4897215004-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-6284347259-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","24417735039-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2808,9 +2810,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "36491275086-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "24417735039-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2839,7 +2841,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3030 + "size": 3004 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2893,7 +2895,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2908,7 +2910,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -2919,8 +2921,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2938,8 +2940,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2953,7 +2955,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2968,7 +2970,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -2984,8 +2986,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -3014,8 +3016,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -3024,8 +3026,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3038,12 +3040,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -3067,7 +3069,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -3076,9 +3078,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -3211,10 +3213,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3238,12 +3240,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3315,7 +3317,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3329,7 +3331,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) @@ -3346,19 +3348,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) @@ -3382,7 +3384,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3399,7 +3401,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3421,7 +3423,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) @@ -3433,8 +3435,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3453,19 +3455,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) @@ -3496,10 +3498,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) @@ -3526,7 +3528,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3548,7 +3550,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) @@ -3557,7 +3559,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) @@ -3572,10 +3574,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) @@ -3622,7 +3624,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3639,7 +3641,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":161,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":161,"kind":"text"}]},{"pos":161,"end":431,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":161,"end":431,"kind":"text"}]},{"pos":431,"end":465,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"-70914791687-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"23408454490-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":161,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":161,"kind":"text"}]},{"pos":161,"end":431,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":161,"end":431,"kind":"text"}]},{"pos":431,"end":465,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"-70914791687-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"23408454490-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3880,7 +3882,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3903,7 +3905,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5160 + "size": 5157 } @@ -3912,61 +3914,61 @@ Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:23 AM] Projects in this build: +[12:01:35 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:24 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:36 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:25 AM] Building project '/src/first/tsconfig.json'... +[12:01:37 AM] Building project '/src/first/tsconfig.json'... -[12:01:33 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:45 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:34 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:46 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:35 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:47 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -4018,10 +4020,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4044,12 +4046,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4077,7 +4079,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4149,7 +4151,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4163,7 +4165,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -4172,7 +4174,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4290,9 +4292,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -4321,7 +4323,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3103 + "size": 3077 } //// [/src/third/thirdjs/output/third-output.js] @@ -4425,10 +4427,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4451,12 +4453,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4484,7 +4486,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4556,7 +4558,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4570,7 +4572,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) @@ -4587,19 +4589,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) @@ -4623,7 +4625,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4640,7 +4642,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4662,7 +4664,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) @@ -4674,8 +4676,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4694,19 +4696,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) @@ -4737,10 +4739,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) @@ -4767,7 +4769,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4789,7 +4791,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) @@ -4798,7 +4800,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) @@ -4813,10 +4815,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) @@ -4863,7 +4865,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4880,7 +4882,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":177,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":177,"kind":"text"}]},{"pos":177,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":177,"end":447,"kind":"text"}]},{"pos":447,"end":481,"kind":"text"}],"mapHash":"39252034733-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-19228682234-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":177,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":177,"kind":"text"}]},{"pos":177,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":177,"end":447,"kind":"text"}]},{"pos":447,"end":481,"kind":"text"}],"mapHash":"39252034733-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-19228682234-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5122,7 +5124,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5145,7 +5147,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5217 + "size": 5214 } @@ -5155,61 +5157,61 @@ Input:: //// [/src/first/first_PART1.ts] "myPrologue5" "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:46 AM] Projects in this build: +[12:01:58 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:47 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:59 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:48 AM] Building project '/src/first/tsconfig.json'... +[12:02:00 AM] Building project '/src/first/tsconfig.json'... -[12:01:56 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:08 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:57 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:09 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:58 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:10 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -5245,7 +5247,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5260,7 +5262,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) --- @@ -5271,8 +5273,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5290,8 +5292,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5305,7 +5307,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5320,7 +5322,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) --- @@ -5337,8 +5339,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -5407,10 +5409,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5433,12 +5435,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5466,7 +5468,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5538,7 +5540,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5552,7 +5554,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(2) @@ -5561,7 +5563,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":162,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]},"mapHash":"291662276-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10744772990-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"22465488777-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","35213579206-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":162,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]},"mapHash":"291662276-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10744772990-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"22465488777-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6976674921-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5697,9 +5699,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "35213579206-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-6976674921-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5728,7 +5730,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3301 + "size": 3275 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5764,7 +5766,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5779,7 +5781,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) --- @@ -5790,8 +5792,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5809,8 +5811,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5824,7 +5826,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5839,7 +5841,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) --- @@ -5855,8 +5857,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -5885,8 +5887,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -5895,8 +5897,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -5909,12 +5911,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -5938,7 +5940,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -5947,9 +5949,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -6097,10 +6099,10 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 1->"myPrologue5" >"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6123,12 +6125,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6156,7 +6158,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6228,7 +6230,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6242,7 +6244,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(12, 1) Source(3, 1) + SourceIndex(4) @@ -6259,19 +6261,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(13, 5) Source(6, 11) + SourceIndex(5) @@ -6295,7 +6297,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6312,7 +6314,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6334,7 +6336,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(17, 5) Source(9, 5) + SourceIndex(5) @@ -6346,8 +6348,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6366,19 +6368,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(19, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(19, 2) Source(12, 2) + SourceIndex(5) @@ -6409,10 +6411,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(22, 5) Source(6, 1) + SourceIndex(1) @@ -6439,7 +6441,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -6461,7 +6463,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(25, 5) Source(5, 5) + SourceIndex(1) @@ -6470,7 +6472,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(26, 5) Source(6, 1) + SourceIndex(1) @@ -6485,10 +6487,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(27, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(27, 2) Source(6, 2) + SourceIndex(1) @@ -6535,7 +6537,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -6552,7 +6554,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":72,"kind":"prologue","data":"myPrologue3"},{"pos":73,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":73,"end":192,"kind":"text"}]},{"pos":192,"end":462,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":192,"end":462,"kind":"text"}]},{"pos":462,"end":496,"kind":"text"}],"mapHash":"-27088974530-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26902052119-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"-10856751979-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":72,"kind":"prologue","data":"myPrologue3"},{"pos":73,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":73,"end":192,"kind":"text"}]},{"pos":192,"end":462,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":192,"end":462,"kind":"text"}]},{"pos":462,"end":496,"kind":"text"}],"mapHash":"-27088974530-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26902052119-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"-10856751979-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6803,7 +6805,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -6826,6 +6828,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5311 + "size": 5308 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js index 6f805e60409..f2c1eb3bbe8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js @@ -16,142 +16,144 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] "myPrologue" -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] "myPrologue2"; -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -198,8 +200,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) --- @@ -208,8 +210,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -222,12 +224,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) --- @@ -251,7 +253,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) @@ -260,9 +262,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) --- @@ -340,19 +342,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(3, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(3, 5) Source(6, 11) + SourceIndex(0) @@ -376,7 +378,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -393,7 +395,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -415,7 +417,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) @@ -427,8 +429,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -447,19 +449,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(9, 2) Source(12, 2) + SourceIndex(0) @@ -490,10 +492,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(12, 5) Source(6, 1) + SourceIndex(1) @@ -520,7 +522,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -542,7 +544,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(5, 5) + SourceIndex(1) @@ -551,7 +553,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) @@ -566,10 +568,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(17, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(17, 2) Source(6, 2) + SourceIndex(1) @@ -579,7 +581,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue2"},{"pos":29,"end":299,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"12655227837-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"14567504159-\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue2"},{"pos":29,"end":299,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"12655227837-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"14567504159-\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -708,8 +710,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -736,7 +738,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3225 + "size": 3191 } //// [/src/first/bin/first-output.d.ts] @@ -781,7 +783,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -796,7 +798,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -807,8 +809,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -826,8 +828,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -841,7 +843,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -856,7 +858,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -873,8 +875,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -915,10 +917,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -942,12 +944,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1019,7 +1021,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1033,7 +1035,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1042,7 +1044,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1141,9 +1143,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1172,7 +1174,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2845 + "size": 2819 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1225,7 +1227,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1240,7 +1242,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1251,8 +1253,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1270,8 +1272,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1285,7 +1287,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1300,7 +1302,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1316,8 +1318,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1346,8 +1348,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -1356,8 +1358,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1370,12 +1372,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -1399,7 +1401,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -1408,9 +1410,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -1524,10 +1526,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1->interface TheFirst { - > none: any; - >} - > +1->interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1551,12 +1553,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1628,7 +1630,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1642,7 +1644,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(4) @@ -1659,19 +1661,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(10, 5) Source(6, 11) + SourceIndex(0) @@ -1695,7 +1697,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1712,7 +1714,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1734,7 +1736,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(9, 5) + SourceIndex(0) @@ -1746,8 +1748,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1766,19 +1768,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(16, 2) Source(12, 2) + SourceIndex(0) @@ -1809,10 +1811,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(6, 1) + SourceIndex(1) @@ -1839,7 +1841,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1861,7 +1863,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(5, 5) + SourceIndex(1) @@ -1870,7 +1872,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(6, 1) + SourceIndex(1) @@ -1885,10 +1887,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(24, 2) Source(6, 2) + SourceIndex(1) @@ -1933,7 +1935,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1950,7 +1952,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40081010550-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22343800517-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40081010550-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22343800517-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2164,7 +2166,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2187,7 +2189,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4855 + "size": 4850 } @@ -2195,37 +2197,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:01:04 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:05 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:01:06 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:04 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:16 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2265,10 +2267,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2291,12 +2293,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2324,7 +2326,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2396,7 +2398,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2410,7 +2412,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2419,7 +2421,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-4938209840-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-24904581979-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-4938209840-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-24904581979-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2519,9 +2521,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2550,7 +2552,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2918 + "size": 2892 } //// [/src/third/thirdjs/output/third-output.js] @@ -2637,10 +2639,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1->interface TheFirst { - > none: any; - >} - > +1->interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2663,12 +2665,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2696,7 +2698,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2768,7 +2770,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2782,7 +2784,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) @@ -2799,19 +2801,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(11, 5) Source(6, 11) + SourceIndex(0) @@ -2835,7 +2837,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2852,7 +2854,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2874,7 +2876,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(9, 5) + SourceIndex(0) @@ -2886,8 +2888,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2906,19 +2908,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(17, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(17, 2) Source(12, 2) + SourceIndex(0) @@ -2949,10 +2951,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) @@ -2979,7 +2981,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3001,7 +3003,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) @@ -3010,7 +3012,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) @@ -3025,10 +3027,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) @@ -3073,7 +3075,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3090,7 +3092,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":163,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":163,"kind":"text"}]},{"pos":163,"end":433,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":163,"end":433,"kind":"text"}]},{"pos":433,"end":467,"kind":"text"}],"mapHash":"-40026203606-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18074355737-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":163,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":163,"kind":"text"}]},{"pos":163,"end":433,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":163,"end":433,"kind":"text"}]},{"pos":433,"end":467,"kind":"text"}],"mapHash":"-40026203606-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18074355737-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3305,7 +3307,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3328,7 +3330,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4913 + "size": 4908 } @@ -3337,37 +3339,37 @@ Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue5" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3404,7 +3406,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3419,7 +3421,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3430,8 +3432,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3449,8 +3451,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3464,7 +3466,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3479,7 +3481,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3496,8 +3498,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3553,10 +3555,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3579,12 +3581,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3612,7 +3614,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3684,7 +3686,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3698,7 +3700,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -3707,7 +3709,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":149,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]},"mapHash":"-25421726346-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"2086701142-\"use strict\";\n\"myPrologue5\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2496167435-\"myPrologue5\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":149,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]},"mapHash":"-25421726346-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"2086701142-\"use strict\";\n\"myPrologue5\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","13639857830-\"myPrologue5\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3825,9 +3827,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2496167435-\"myPrologue5\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "13639857830-\"myPrologue5\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3856,7 +3858,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3112 + "size": 3086 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -3891,7 +3893,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3906,7 +3908,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3917,8 +3919,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3936,8 +3938,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3951,7 +3953,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3966,7 +3968,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3982,8 +3984,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -4012,8 +4014,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -4022,8 +4024,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -4036,12 +4038,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -4065,7 +4067,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -4074,9 +4076,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -4208,10 +4210,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue5" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4234,12 +4236,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4267,7 +4269,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4339,7 +4341,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4353,7 +4355,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) @@ -4370,19 +4372,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(12, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(12, 5) Source(6, 11) + SourceIndex(1) @@ -4406,7 +4408,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4423,7 +4425,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4445,7 +4447,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(9, 5) + SourceIndex(1) @@ -4457,8 +4459,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4477,19 +4479,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(12, 1) + SourceIndex(1) 2 >Emitted(18, 2) Source(12, 2) + SourceIndex(1) @@ -4520,10 +4522,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(21, 5) Source(6, 1) + SourceIndex(2) @@ -4550,7 +4552,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4572,7 +4574,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(5, 5) + SourceIndex(2) @@ -4581,7 +4583,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) @@ -4596,10 +4598,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) 2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) @@ -4644,7 +4646,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4661,7 +4663,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":178,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":178,"kind":"text"}]},{"pos":178,"end":448,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":178,"end":448,"kind":"text"}]},{"pos":448,"end":482,"kind":"text"}],"mapHash":"38125604309-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-2554240200-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"30721496667-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":178,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":178,"kind":"text"}]},{"pos":178,"end":448,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":178,"end":448,"kind":"text"}]},{"pos":448,"end":482,"kind":"text"}],"mapHash":"38125604309-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-2554240200-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"30721496667-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4885,7 +4887,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4908,6 +4910,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5006 + "size": 5001 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js index c6462440acf..b25f501a513 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js @@ -17,163 +17,165 @@ declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] #!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] #!someshebang first first_part2 -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] #!someshebang second second_part1 -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] #!someshebang third third_part1 -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -220,8 +222,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -230,8 +232,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -244,12 +246,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) --- @@ -272,7 +274,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -281,9 +283,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -330,19 +332,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) @@ -366,7 +368,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -383,7 +385,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -405,7 +407,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) @@ -417,8 +419,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -437,19 +439,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) @@ -479,10 +481,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -509,7 +511,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -531,7 +533,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -555,10 +557,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -568,7 +570,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -645,8 +647,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -673,7 +675,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2880 + "size": 2847 } //// [/src/first/bin/first-output.d.ts] @@ -721,7 +723,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -736,7 +738,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -747,8 +749,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -766,8 +768,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -781,7 +783,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -796,7 +798,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -813,8 +815,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -856,10 +858,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -883,12 +885,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -961,7 +963,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -975,7 +977,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -984,7 +986,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"text"}],"mapHash":"-13636454783-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-8075006789-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"text"}],"mapHash":"-2225185530-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"6940406639-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-1632348754-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"text"}],"mapHash":"-13636454783-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-8075006789-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"text"}],"mapHash":"-2225185530-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"6940406639-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","22873150815-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1055,9 +1057,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-1632348754-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "22873150815-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1086,7 +1088,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2776 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1142,7 +1144,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1157,7 +1159,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -1168,8 +1170,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1187,8 +1189,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1202,7 +1204,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1217,7 +1219,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -1233,8 +1235,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1263,8 +1265,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- @@ -1273,8 +1275,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1287,12 +1289,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- @@ -1315,7 +1317,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -1324,9 +1326,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -1408,10 +1410,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1435,12 +1437,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1513,7 +1515,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1527,7 +1529,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1544,19 +1546,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) @@ -1580,7 +1582,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1597,7 +1599,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1619,7 +1621,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) @@ -1631,8 +1633,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1651,19 +1653,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) @@ -1693,10 +1695,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1723,7 +1725,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1745,7 +1747,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1754,7 +1756,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1769,10 +1771,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1818,7 +1820,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1835,7 +1837,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"79536022840-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-15072961933-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":181,"kind":"text"}]},{"pos":181,"end":274,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":181,"end":274,"kind":"text"}]},{"pos":274,"end":292,"kind":"text"}],"mapHash":"-28105379596-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"7399363590-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"11722443212-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"79536022840-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-15072961933-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":181,"kind":"text"}]},{"pos":181,"end":274,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":181,"end":274,"kind":"text"}]},{"pos":274,"end":292,"kind":"text"}],"mapHash":"-28105379596-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"7399363590-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"11722443212-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2003,7 +2005,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2026,7 +2028,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4671 + "size": 4667 } @@ -2035,58 +2037,58 @@ Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] #!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:01:04 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:05 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:01:06 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:15 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:16 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:05 AM] Building project '/src/third/tsconfig.json'... +[12:01:17 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2134,7 +2136,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2149,7 +2151,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -2160,8 +2162,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2179,8 +2181,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2194,7 +2196,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2209,7 +2211,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -2226,8 +2228,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -2269,10 +2271,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2296,12 +2298,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2374,7 +2376,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2388,7 +2390,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2397,7 +2399,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"text"}],"mapHash":"19403802043-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-5508575221-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","9069952478-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"text"}],"mapHash":"19403802043-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-5508575221-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","5551939087-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2468,9 +2470,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "9069952478-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "5551939087-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2499,7 +2501,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2796 + "size": 2771 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2555,7 +2557,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2570,7 +2572,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -2581,8 +2583,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2600,8 +2602,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2615,7 +2617,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2630,7 +2632,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -2646,8 +2648,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -2676,8 +2678,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- @@ -2686,8 +2688,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2700,12 +2702,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- @@ -2728,7 +2730,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -2737,9 +2739,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -2821,10 +2823,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2848,12 +2850,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2926,7 +2928,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2940,7 +2942,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2957,19 +2959,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) @@ -2993,7 +2995,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3010,7 +3012,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3032,7 +3034,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) @@ -3044,8 +3046,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3064,19 +3066,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) @@ -3106,10 +3108,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -3136,7 +3138,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3158,7 +3160,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -3167,7 +3169,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -3182,10 +3184,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -3231,7 +3233,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3248,7 +3250,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":135,"kind":"text"}]},{"pos":135,"end":405,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":135,"end":405,"kind":"text"}]},{"pos":405,"end":439,"kind":"text"}],"mapHash":"44962007282-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-10384220733-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":135,"kind":"text"}]},{"pos":135,"end":405,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":135,"end":405,"kind":"text"}]},{"pos":405,"end":439,"kind":"text"}],"mapHash":"44962007282-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-10384220733-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3416,7 +3418,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3439,7 +3441,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4671 + "size": 4667 } @@ -3448,61 +3450,61 @@ Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] #!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:19 AM] Projects in this build: +[12:01:31 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:20 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:32 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:21 AM] Building project '/src/first/tsconfig.json'... +[12:01:33 AM] Building project '/src/first/tsconfig.json'... -[12:01:29 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:41 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:30 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:42 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:31 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:43 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -3541,10 +3543,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3567,12 +3569,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3600,7 +3602,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3673,7 +3675,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3687,7 +3689,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -3696,7 +3698,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"text"}],"mapHash":"-2608504977-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4325336759-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6925175936-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"text"}],"mapHash":"-2608504977-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4325336759-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","8582950033-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3768,9 +3770,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "6925175936-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "8582950033-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3799,7 +3801,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2867 + "size": 2842 } //// [/src/third/thirdjs/output/third-output.js] @@ -3853,10 +3855,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3879,12 +3881,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3912,7 +3914,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3985,7 +3987,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3999,7 +4001,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4016,19 +4018,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) @@ -4052,7 +4054,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4069,7 +4071,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4091,7 +4093,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) @@ -4103,8 +4105,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4123,19 +4125,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) @@ -4165,10 +4167,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -4195,7 +4197,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4217,7 +4219,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -4226,7 +4228,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -4241,10 +4243,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -4290,7 +4292,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4307,7 +4309,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":151,"kind":"text"}]},{"pos":151,"end":421,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":421,"kind":"text"}]},{"pos":421,"end":455,"kind":"text"}],"mapHash":"30932229030-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6344932463-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":151,"kind":"text"}]},{"pos":151,"end":421,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":421,"kind":"text"}]},{"pos":421,"end":455,"kind":"text"}],"mapHash":"30932229030-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6344932463-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4476,7 +4478,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4499,6 +4501,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4726 + "size": 4722 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js index 2835997bf13..57d2741b2a9 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js @@ -16,141 +16,143 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] #!someshebang second second_part1 -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -199,8 +201,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -209,8 +211,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -223,12 +225,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) --- @@ -251,7 +253,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -260,9 +262,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -309,19 +311,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) @@ -345,7 +347,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -362,7 +364,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -384,7 +386,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) @@ -396,8 +398,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -416,19 +418,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) @@ -458,10 +460,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -488,7 +490,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -510,7 +512,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -519,7 +521,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -534,10 +536,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -547,7 +549,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -624,8 +626,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -652,7 +654,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2880 + "size": 2847 } //// [/src/first/bin/first-output.d.ts] @@ -697,7 +699,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -712,7 +714,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -723,8 +725,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -742,8 +744,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -757,7 +759,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -772,7 +774,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -789,8 +791,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -829,10 +831,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -856,12 +858,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -933,7 +935,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -947,7 +949,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -956,7 +958,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1027,9 +1029,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1058,7 +1060,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1113,7 +1115,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1128,7 +1130,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -1139,8 +1141,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1158,8 +1160,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1173,7 +1175,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1188,7 +1190,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -1204,8 +1206,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1234,8 +1236,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- @@ -1244,8 +1246,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1258,12 +1260,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- @@ -1286,7 +1288,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -1295,9 +1297,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -1377,10 +1379,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1404,12 +1406,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1481,7 +1483,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1495,7 +1497,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1512,19 +1514,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) @@ -1548,7 +1550,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1565,7 +1567,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1587,7 +1589,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) @@ -1599,8 +1601,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1619,19 +1621,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) @@ -1661,10 +1663,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1691,7 +1693,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1713,7 +1715,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1722,7 +1724,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1737,10 +1739,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1785,7 +1787,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1802,7 +1804,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":138,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":138,"kind":"text"}]},{"pos":138,"end":408,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":138,"end":408,"kind":"text"}]},{"pos":408,"end":442,"kind":"text"}],"mapHash":"17881551829-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6431547867-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":138,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":138,"kind":"text"}]},{"pos":138,"end":408,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":138,"end":408,"kind":"text"}]},{"pos":408,"end":442,"kind":"text"}],"mapHash":"17881551829-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6431547867-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1970,7 +1972,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1993,7 +1995,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4613 + "size": 4608 } @@ -2001,37 +2003,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:49 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:51 AM] Building project '/src/first/tsconfig.json'... +[12:01:03 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2069,10 +2071,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2095,12 +2097,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2128,7 +2130,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2200,7 +2202,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2214,7 +2216,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2223,7 +2225,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2295,9 +2297,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2326,7 +2328,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2379,10 +2381,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2405,12 +2407,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2438,7 +2440,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2510,7 +2512,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2524,7 +2526,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2541,19 +2543,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) @@ -2577,7 +2579,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2594,7 +2596,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2616,7 +2618,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) @@ -2628,8 +2630,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2648,19 +2650,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) @@ -2690,10 +2692,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -2720,7 +2722,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2742,7 +2744,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2751,7 +2753,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2766,10 +2768,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2814,7 +2816,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2831,7 +2833,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":154,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":154,"kind":"text"}]},{"pos":154,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":154,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"428292745-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25217109881-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":154,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":154,"kind":"text"}]},{"pos":154,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":154,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"428292745-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25217109881-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3000,7 +3002,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3023,6 +3025,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4670 + "size": 4665 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js index ca554f761bc..ed6614d1c02 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js @@ -16,160 +16,162 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -213,8 +215,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -223,8 +225,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -237,12 +239,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -265,7 +267,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -274,9 +276,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -322,19 +324,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) @@ -358,7 +360,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -375,7 +377,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -397,7 +399,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) @@ -409,8 +411,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -429,19 +431,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) @@ -471,10 +473,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -501,7 +503,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -523,7 +525,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -532,7 +534,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -547,10 +549,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -560,7 +562,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -665,8 +667,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -693,7 +695,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2948 + "size": 2916 } //// [/src/first/bin/first-output.d.ts] @@ -738,7 +740,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -753,7 +755,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -764,8 +766,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -783,8 +785,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -798,7 +800,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -813,7 +815,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -830,8 +832,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -872,10 +874,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -899,12 +901,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -976,7 +978,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -990,7 +992,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -999,7 +1001,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1098,9 +1100,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1129,7 +1131,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2845 + "size": 2819 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1182,7 +1184,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1197,7 +1199,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1208,8 +1210,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1227,8 +1229,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1242,7 +1244,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1257,7 +1259,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1273,8 +1275,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1302,8 +1304,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1312,8 +1314,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1326,12 +1328,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1354,7 +1356,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1363,9 +1365,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1445,10 +1447,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1472,12 +1474,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1549,7 +1551,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1563,7 +1565,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1579,19 +1581,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -1615,7 +1617,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1632,7 +1634,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1654,7 +1656,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -1666,8 +1668,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1686,19 +1688,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -1728,10 +1730,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1758,7 +1760,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1780,7 +1782,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1789,7 +1791,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1804,10 +1806,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1852,7 +1854,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1869,7 +1871,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2065,7 +2067,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2088,7 +2090,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4676 + "size": 4671 } @@ -2096,58 +2098,58 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:04 AM] Building project '/src/third/tsconfig.json'... +[12:01:16 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2192,7 +2194,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2207,7 +2209,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2218,8 +2220,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2237,8 +2239,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2252,7 +2254,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2267,7 +2269,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2284,8 +2286,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2326,10 +2328,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2353,12 +2355,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2430,7 +2432,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2444,7 +2446,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2453,7 +2455,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-11652069546-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7062323831-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-11652069546-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7062323831-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2552,9 +2554,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2583,7 +2585,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2840 + "size": 2815 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2636,7 +2638,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2651,7 +2653,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2662,8 +2664,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2681,8 +2683,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2696,7 +2698,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2711,7 +2713,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2727,8 +2729,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -2756,8 +2758,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -2766,8 +2768,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2780,12 +2782,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -2808,7 +2810,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -2817,9 +2819,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -2899,10 +2901,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2926,12 +2928,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3003,7 +3005,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3017,7 +3019,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3033,19 +3035,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -3069,7 +3071,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3086,7 +3088,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3108,7 +3110,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -3120,8 +3122,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3140,19 +3142,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -3182,10 +3184,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -3212,7 +3214,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3234,7 +3236,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -3243,7 +3245,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -3258,10 +3260,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -3306,7 +3308,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3323,7 +3325,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":117,"kind":"text"}]},{"pos":117,"end":387,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":117,"end":387,"kind":"text"}]},{"pos":387,"end":421,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40638595723-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"7657914177-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":117,"kind":"text"}]},{"pos":117,"end":387,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":117,"end":387,"kind":"text"}]},{"pos":387,"end":421,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40638595723-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"7657914177-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3519,7 +3521,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3542,7 +3544,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4673 + "size": 4668 } @@ -3550,61 +3552,61 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:18 AM] Projects in this build: +[12:01:30 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:31 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:20 AM] Building project '/src/first/tsconfig.json'... +[12:01:32 AM] Building project '/src/first/tsconfig.json'... -[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:40 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -3642,10 +3644,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3668,12 +3670,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3701,7 +3703,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3773,7 +3775,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3787,7 +3789,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -3796,7 +3798,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"12349749002-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10466209739-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"12349749002-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10466209739-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3896,9 +3898,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3927,7 +3929,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2911 + "size": 2887 } //// [/src/third/thirdjs/output/third-output.js] @@ -3980,10 +3982,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4006,12 +4008,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4039,7 +4041,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4111,7 +4113,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4125,7 +4127,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4141,19 +4143,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) @@ -4177,7 +4179,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4194,7 +4196,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4216,7 +4218,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) @@ -4228,8 +4230,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4248,19 +4250,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) @@ -4290,10 +4292,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -4320,7 +4322,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4342,7 +4344,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -4351,7 +4353,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -4366,10 +4368,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -4414,7 +4416,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4431,7 +4433,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":133,"kind":"text"}]},{"pos":133,"end":403,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":133,"end":403,"kind":"text"}]},{"pos":403,"end":437,"kind":"text"}],"mapHash":"17637681983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"39543134701-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":133,"kind":"text"}]},{"pos":133,"end":403,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":133,"end":403,"kind":"text"}]},{"pos":403,"end":437,"kind":"text"}],"mapHash":"17637681983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"39543134701-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4628,7 +4630,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4651,7 +4653,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4731 + "size": 4726 } @@ -4660,61 +4662,61 @@ Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:41 AM] Projects in this build: +[12:01:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:43 AM] Building project '/src/first/tsconfig.json'... +[12:01:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:05 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -4749,7 +4751,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4764,7 +4766,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -4775,8 +4777,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -4794,8 +4796,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -4809,7 +4811,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4824,7 +4826,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -4841,8 +4843,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -4898,10 +4900,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4924,12 +4926,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4957,7 +4959,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5029,7 +5031,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5043,7 +5045,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -5052,7 +5054,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5170,9 +5172,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5201,7 +5203,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3103 + "size": 3077 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5236,7 +5238,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5251,7 +5253,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -5262,8 +5264,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5281,8 +5283,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5296,7 +5298,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5311,7 +5313,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -5327,8 +5329,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -5356,8 +5358,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -5366,8 +5368,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -5380,12 +5382,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -5408,7 +5410,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -5417,9 +5419,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -5514,10 +5516,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5540,12 +5542,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5573,7 +5575,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5645,7 +5647,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5659,7 +5661,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -5675,19 +5677,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(10, 5) Source(5, 11) + SourceIndex(3) @@ -5711,7 +5713,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5728,7 +5730,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5750,7 +5752,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(8, 5) + SourceIndex(3) @@ -5762,8 +5764,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5782,19 +5784,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(16, 2) Source(11, 2) + SourceIndex(3) @@ -5824,10 +5826,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) @@ -5854,7 +5856,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5876,7 +5878,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) @@ -5885,7 +5887,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) @@ -5900,10 +5902,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) @@ -5948,7 +5950,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5965,7 +5967,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"mapHash":"47400624973-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33502743319-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"26964323861-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"mapHash":"47400624973-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33502743319-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"26964323861-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6171,7 +6173,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -6194,6 +6196,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4823 + "size": 4818 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js index 97ab8ec678d..18b69c529b6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -195,8 +197,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -219,12 +221,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -247,7 +249,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -256,9 +258,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -304,19 +306,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) @@ -340,7 +342,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -357,7 +359,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -379,7 +381,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) @@ -391,8 +393,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -411,19 +413,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) @@ -453,10 +455,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -483,7 +485,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -505,7 +507,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -514,7 +516,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -529,10 +531,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -542,7 +544,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -647,8 +649,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -675,7 +677,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2948 + "size": 2916 } //// [/src/first/bin/first-output.d.ts] @@ -720,7 +722,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -735,7 +737,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -746,8 +748,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -765,8 +767,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -780,7 +782,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -795,7 +797,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -812,8 +814,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -852,10 +854,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -879,12 +881,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -956,7 +958,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -970,7 +972,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -979,7 +981,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1050,9 +1052,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1081,7 +1083,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1134,7 +1136,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1149,7 +1151,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1160,8 +1162,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1179,8 +1181,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1194,7 +1196,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1209,7 +1211,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1225,8 +1227,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1254,8 +1256,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1264,8 +1266,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1278,12 +1280,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1306,7 +1308,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1315,9 +1317,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1397,10 +1399,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1424,12 +1426,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1501,7 +1503,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1515,7 +1517,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1531,19 +1533,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -1567,7 +1569,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1584,7 +1586,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1606,7 +1608,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -1618,8 +1620,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1638,19 +1640,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -1680,10 +1682,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1710,7 +1712,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1732,7 +1734,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1741,7 +1743,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1756,10 +1758,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1804,7 +1806,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1821,7 +1823,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1998,7 +2000,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2021,7 +2023,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4542 + "size": 4537 } @@ -2029,37 +2031,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:49 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:51 AM] Building project '/src/first/tsconfig.json'... +[12:01:03 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2097,10 +2099,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2123,12 +2125,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2156,7 +2158,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2228,7 +2230,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2242,7 +2244,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2251,7 +2253,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2323,9 +2325,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2354,7 +2356,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2407,10 +2409,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2433,12 +2435,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2466,7 +2468,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2538,7 +2540,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2552,7 +2554,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2568,19 +2570,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) @@ -2604,7 +2606,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2621,7 +2623,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2643,7 +2645,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) @@ -2655,8 +2657,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2675,19 +2677,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) @@ -2717,10 +2719,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -2747,7 +2749,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2769,7 +2771,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2778,7 +2780,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2793,10 +2795,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2841,7 +2843,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2858,7 +2860,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":134,"kind":"text"}]},{"pos":134,"end":404,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":134,"end":404,"kind":"text"}]},{"pos":404,"end":438,"kind":"text"}],"mapHash":"40579483013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"9182045789-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":134,"kind":"text"}]},{"pos":134,"end":404,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":134,"end":404,"kind":"text"}]},{"pos":404,"end":438,"kind":"text"}],"mapHash":"40579483013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"9182045789-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3036,7 +3038,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3059,7 +3061,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4598 + "size": 4593 } @@ -3068,37 +3070,37 @@ Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:12 AM] Projects in this build: +[12:01:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:13 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:25 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:14 AM] Building project '/src/first/tsconfig.json'... +[12:01:26 AM] Building project '/src/first/tsconfig.json'... -[12:01:22 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:34 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:23 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:35 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:24 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:36 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3135,7 +3137,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3150,7 +3152,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3161,8 +3163,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3180,8 +3182,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3195,7 +3197,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3210,7 +3212,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3227,8 +3229,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3282,10 +3284,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3308,12 +3310,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3341,7 +3343,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3413,7 +3415,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3427,7 +3429,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -3436,7 +3438,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-32438518845-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15974240242-\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","32790583232-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-32438518845-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15974240242-\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","26693021009-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3536,9 +3538,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "32790583232-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "26693021009-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3567,7 +3569,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2960 + "size": 2934 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -3602,7 +3604,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3617,7 +3619,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3628,8 +3630,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3647,8 +3649,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3662,7 +3664,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3677,7 +3679,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3693,8 +3695,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -3722,8 +3724,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -3732,8 +3734,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3746,12 +3748,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -3774,7 +3776,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -3783,9 +3785,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -3879,10 +3881,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 > - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3905,12 +3907,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3938,7 +3940,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4010,7 +4012,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4024,7 +4026,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -4040,19 +4042,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(10, 5) Source(5, 11) + SourceIndex(3) @@ -4076,7 +4078,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4093,7 +4095,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4115,7 +4117,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(8, 5) + SourceIndex(3) @@ -4127,8 +4129,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4147,19 +4149,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(16, 2) Source(11, 2) + SourceIndex(3) @@ -4189,10 +4191,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) @@ -4219,7 +4221,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4241,7 +4243,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) @@ -4250,7 +4252,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) @@ -4265,10 +4267,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) @@ -4313,7 +4315,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4330,7 +4332,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":27,"kind":"prologue","data":"use strict"},{"pos":28,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":148,"kind":"text"}]},{"pos":148,"end":418,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":148,"end":418,"kind":"text"}]},{"pos":418,"end":452,"kind":"text"}],"mapHash":"26598307091-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"489186201-\"myPrologue\";\n\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"28971397851-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":27,"kind":"prologue","data":"use strict"},{"pos":28,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":148,"kind":"text"}]},{"pos":148,"end":418,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":148,"end":418,"kind":"text"}]},{"pos":418,"end":452,"kind":"text"}],"mapHash":"26598307091-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"489186201-\"myPrologue\";\n\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"28971397851-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4517,7 +4519,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4540,6 +4542,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4686 + "size": 4681 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js index 1d60de0152f..687ce804cbb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -43,141 +43,143 @@ namespace ts { export interface SourceFile { someProp: string; } -}interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +}interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -223,8 +225,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -233,8 +235,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -247,12 +249,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -275,7 +277,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -284,9 +286,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -330,19 +332,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -366,7 +368,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -383,7 +385,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -405,7 +407,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -417,8 +419,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -437,19 +439,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -479,10 +481,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -509,7 +511,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -531,7 +533,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -555,10 +557,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -568,7 +570,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -645,8 +647,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -673,7 +675,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -1009,7 +1011,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1024,7 +1026,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(17, 2) Source(30, 2) + SourceIndex(0) --- @@ -1035,8 +1037,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1054,8 +1056,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1069,7 +1071,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1084,7 +1086,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(21, 2) Source(36, 2) + SourceIndex(0) --- @@ -1101,8 +1103,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(22, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(22, 18) Source(1, 10) + SourceIndex(2) @@ -1168,10 +1170,10 @@ sourceFile:../first_PART1.ts > export interface SourceFile { > someProp: string; > } - >}interface TheFirst { - > none: any; - >} - > + >}interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1195,12 +1197,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1272,7 +1274,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1286,7 +1288,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1295,7 +1297,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-27619420124-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":23,"kind":"text"},{"pos":23,"end":354,"kind":"internal"},{"pos":355,"end":565,"kind":"text"}],"mapHash":"62640600936-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET\"}","hash":"-30794078285-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-91898050992-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-27619420124-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":23,"kind":"text"},{"pos":23,"end":354,"kind":"internal"},{"pos":355,"end":565,"kind":"text"}],"mapHash":"62640600936-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET\"}","hash":"-30794078285-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-85636319423-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1395,9 +1397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-91898050992-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-85636319423-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1426,7 +1428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 4880 + "size": 4854 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1566,7 +1568,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1581,7 +1583,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(30, 2) + SourceIndex(0) --- @@ -1592,8 +1594,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1611,8 +1613,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1626,7 +1628,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1641,7 +1643,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(12, 2) Source(36, 2) + SourceIndex(0) --- @@ -1657,8 +1659,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(13, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(13, 18) Source(1, 10) + SourceIndex(1) @@ -1686,8 +1688,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(15, 2) Source(3, 2) + SourceIndex(2) --- @@ -1696,8 +1698,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1710,12 +1712,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(17, 2) Source(11, 2) + SourceIndex(2) --- @@ -1738,7 +1740,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) @@ -1747,9 +1749,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- @@ -1854,10 +1856,10 @@ sourceFile:../../../first/first_PART1.ts > export interface SourceFile { > someProp: string; > } - >}interface TheFirst { - > none: any; - >} - > + >}interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1881,12 +1883,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1958,7 +1960,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1972,7 +1974,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1988,19 +1990,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -2024,7 +2026,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2041,7 +2043,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2063,7 +2065,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -2075,8 +2077,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2095,19 +2097,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -2137,10 +2139,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -2167,7 +2169,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2189,7 +2191,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -2198,7 +2200,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -2213,10 +2215,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -2261,7 +2263,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2278,7 +2280,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"29106911449-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":233,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":233,"kind":"text"}]},{"pos":233,"end":326,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":233,"end":326,"kind":"text"}]},{"pos":326,"end":344,"kind":"text"}],"mapHash":"21930574719-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-8017838658-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"6047894916-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"29106911449-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":233,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":233,"kind":"text"}]},{"pos":233,"end":326,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":233,"end":326,"kind":"text"}]},{"pos":326,"end":344,"kind":"text"}],"mapHash":"21930574719-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-8017838658-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"6047894916-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2451,7 +2453,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2475,6 +2477,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5172 + "size": 5167 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 599cd6a52e1..7a7877a2788 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,83 +99,83 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:11 AM] Projects in this build: +[12:00:23 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:12 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:13 AM] Building project '/src/first/tsconfig.json'... +[12:00:25 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:35 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:36 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:46 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:47 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -277,7 +276,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -292,7 +291,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -303,8 +302,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -322,8 +321,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -337,7 +336,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -352,7 +351,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -368,8 +367,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -397,8 +396,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -407,8 +406,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -421,12 +420,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -434,7 +433,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -1038,7 +1037,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1047,9 +1046,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1187,10 +1186,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1214,12 +1213,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1291,7 +1290,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1305,7 +1304,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1321,19 +1320,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1357,7 +1356,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1374,7 +1373,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1396,7 +1395,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1408,8 +1407,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1428,19 +1427,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1453,7 +1452,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2655,10 +2654,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2685,7 +2684,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2707,7 +2706,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2716,7 +2715,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2731,10 +2730,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2744,7 +2743,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-4451840947-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-4451840947-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3059,8 +3058,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3087,7 +3086,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12642 + "size": 12611 } //// [/src/first/bin/first-output.d.ts] @@ -3132,7 +3131,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3147,7 +3146,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3158,8 +3157,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3177,8 +3176,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3192,7 +3191,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3207,7 +3206,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3224,8 +3223,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3264,10 +3263,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3291,12 +3290,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3368,7 +3367,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3382,7 +3381,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3391,7 +3390,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3469,9 +3468,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3500,7 +3499,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2689 + "size": 2662 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3544,10 +3543,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3565,8 +3564,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3580,7 +3579,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3595,7 +3594,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3611,8 +3610,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3640,8 +3639,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3650,8 +3649,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3664,12 +3663,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3677,7 +3676,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3747,7 +3746,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3756,9 +3755,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3923,10 +3922,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3950,12 +3949,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4027,7 +4026,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4041,7 +4040,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4057,19 +4056,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4093,7 +4092,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4110,7 +4109,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4132,7 +4131,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4144,8 +4143,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4164,19 +4163,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4189,7 +4188,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5391,10 +5390,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5421,7 +5420,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5443,7 +5442,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5452,7 +5451,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5467,10 +5466,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5515,7 +5514,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5532,7 +5531,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5750,7 +5749,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5774,7 +5773,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9617 + "size": 9612 } @@ -5782,39 +5781,39 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:53 AM] Projects in this build: +[12:01:05 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:06 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:55 AM] Building project '/src/first/tsconfig.json'... +[12:01:07 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:15 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:04 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:16 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:11 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:23 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:12 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:24 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5952,10 +5951,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5978,12 +5977,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6011,7 +6010,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6083,7 +6082,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6097,7 +6096,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6113,19 +6112,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6149,7 +6148,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6166,7 +6165,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6188,7 +6187,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6200,8 +6199,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6220,19 +6219,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6245,7 +6244,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7447,10 +7446,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7477,7 +7476,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7499,7 +7498,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7508,7 +7507,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7523,10 +7522,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7536,7 +7535,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7852,8 +7851,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -7880,7 +7879,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12697 + "size": 12666 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -7916,10 +7915,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -7942,12 +7941,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -7975,7 +7974,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8047,7 +8046,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8061,7 +8060,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8070,7 +8069,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8149,9 +8148,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8180,7 +8179,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2762 + "size": 2733 } //// [/src/third/thirdjs/output/third-output.js] @@ -8318,10 +8317,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8344,12 +8343,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8377,7 +8376,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8449,7 +8448,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8463,7 +8462,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8479,19 +8478,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8515,7 +8514,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8532,7 +8531,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -8554,7 +8553,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -8566,8 +8565,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -8586,19 +8585,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -8611,7 +8610,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -9813,10 +9812,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -9843,7 +9842,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -9865,7 +9864,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -9874,7 +9873,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -9889,10 +9888,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -9937,7 +9936,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -9954,7 +9953,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10173,7 +10172,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10197,7 +10196,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9675 + "size": 9670 } @@ -10205,39 +10204,39 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:24 AM] Projects in this build: +[12:01:36 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:25 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:37 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:26 AM] Building project '/src/first/tsconfig.json'... +[12:01:38 AM] Building project '/src/first/tsconfig.json'... -[12:01:34 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:46 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:35 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:47 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:53 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:54 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -10273,7 +10272,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10288,7 +10287,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -10299,8 +10298,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -10318,8 +10317,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -10333,7 +10332,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10348,7 +10347,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -10364,8 +10363,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -10393,8 +10392,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -10403,8 +10402,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -10417,12 +10416,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -10430,7 +10429,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -11034,7 +11033,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -11043,16 +11042,16 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"65800017434-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"65800017434-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11361,8 +11360,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -11389,7 +11388,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12658 + "size": 12627 } //// [/src/first/bin/first-output.d.ts.map] @@ -11423,7 +11422,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11438,7 +11437,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11449,8 +11448,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11468,8 +11467,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11483,7 +11482,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11498,7 +11497,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11515,8 +11514,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -11545,10 +11544,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -11571,12 +11570,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -11604,7 +11603,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -11676,7 +11675,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -11690,7 +11689,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -11699,7 +11698,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11771,9 +11770,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -11802,7 +11801,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -11859,7 +11858,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11874,7 +11873,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11885,8 +11884,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11904,8 +11903,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11919,7 +11918,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11934,7 +11933,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11950,8 +11949,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -11979,8 +11978,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -11989,8 +11988,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -12003,12 +12002,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -12016,7 +12015,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -12086,7 +12085,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -12095,9 +12094,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -12129,7 +12128,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12351,7 +12350,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -12375,6 +12374,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9799 + "size": 9794 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js index b52514d9d9e..ff1e6433577 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,82 +99,85 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -268,8 +270,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -278,8 +280,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -292,12 +294,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -305,7 +307,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -909,7 +911,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -918,9 +920,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1051,19 +1053,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1087,7 +1089,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1104,7 +1106,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1126,7 +1128,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1138,8 +1140,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1158,19 +1160,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1183,7 +1185,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2385,10 +2387,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2415,7 +2417,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2437,7 +2439,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2446,7 +2448,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2461,10 +2463,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2474,7 +2476,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"6253281662-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"119062312689-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"6253281662-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"119062312689-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2730,8 +2732,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2758,7 +2760,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11263 + "size": 11232 } //// [/src/first/bin/first-output.d.ts] @@ -2803,7 +2805,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2818,7 +2820,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2829,8 +2831,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2848,8 +2850,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2863,7 +2865,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2878,7 +2880,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2895,8 +2897,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2935,10 +2937,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2962,12 +2964,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3039,7 +3041,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3053,7 +3055,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3062,7 +3064,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3140,9 +3142,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3171,7 +3173,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2689 + "size": 2662 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3215,10 +3217,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3236,8 +3238,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3251,7 +3253,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3266,7 +3268,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3282,8 +3284,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3311,8 +3313,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3321,8 +3323,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3335,12 +3337,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3348,7 +3350,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3418,7 +3420,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3427,9 +3429,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3594,10 +3596,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3621,12 +3623,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3698,7 +3700,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3712,7 +3714,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3728,19 +3730,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -3764,7 +3766,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3781,7 +3783,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3803,7 +3805,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -3815,8 +3817,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3835,19 +3837,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3860,7 +3862,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5062,10 +5064,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5092,7 +5094,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5114,7 +5116,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5123,7 +5125,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5138,10 +5140,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5186,7 +5188,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5203,7 +5205,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5459,7 +5461,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5483,7 +5485,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9932 + "size": 9927 } @@ -5491,37 +5493,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:01 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:13 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:02 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:03 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5559,10 +5561,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5585,12 +5587,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5618,7 +5620,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5690,7 +5692,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5704,7 +5706,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -5713,7 +5715,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5792,9 +5794,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5823,7 +5825,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2762 + "size": 2733 } //// [/src/third/thirdjs/output/third-output.js] @@ -5961,10 +5963,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5987,12 +5989,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6020,7 +6022,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6092,7 +6094,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6106,7 +6108,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6122,19 +6124,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6158,7 +6160,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6175,7 +6177,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6197,7 +6199,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6209,8 +6211,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6229,19 +6231,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6254,7 +6256,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7456,10 +7458,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7486,7 +7488,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7508,7 +7510,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7517,7 +7519,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7532,10 +7534,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7580,7 +7582,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -7597,7 +7599,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7854,7 +7856,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -7878,7 +7880,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9990 + "size": 9985 } @@ -7886,37 +7888,37 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:14 AM] Projects in this build: +[12:01:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:15 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:27 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:16 AM] Building project '/src/first/tsconfig.json'... +[12:01:28 AM] Building project '/src/first/tsconfig.json'... -[12:01:24 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:36 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:25 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:37 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:26 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:38 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -7952,7 +7954,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -7967,7 +7969,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -7978,8 +7980,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -7997,8 +7999,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8012,7 +8014,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8027,7 +8029,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8044,8 +8046,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -8074,10 +8076,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8100,12 +8102,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8133,7 +8135,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8205,7 +8207,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8219,7 +8221,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8228,7 +8230,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8300,9 +8302,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8331,7 +8333,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -8388,7 +8390,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8403,7 +8405,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8414,8 +8416,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8433,8 +8435,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8448,7 +8450,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8463,7 +8465,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8479,8 +8481,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -8508,8 +8510,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -8518,8 +8520,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -8532,12 +8534,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -8545,7 +8547,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -8615,7 +8617,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -8624,9 +8626,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -8658,7 +8660,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8918,7 +8920,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8942,6 +8944,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10114 + "size": 10109 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 0eb11deb9b9..8fdf242f35a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,83 +99,83 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/second/tsconfig.json'... +[12:00:39 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:50 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -283,7 +282,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -298,7 +297,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -309,8 +308,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -328,8 +327,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -343,7 +342,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -358,7 +357,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -374,8 +373,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -403,8 +402,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -413,8 +412,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -427,12 +426,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -441,7 +440,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^^^^^^^^^^^^-> -1-> +1-> > > 2 >class @@ -1174,7 +1173,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1183,9 +1182,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1323,10 +1322,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1350,12 +1349,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1427,7 +1426,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1441,7 +1440,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1457,19 +1456,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1493,7 +1492,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1510,7 +1509,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1532,7 +1531,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1544,8 +1543,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1564,19 +1563,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1589,7 +1588,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2894,10 +2893,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2924,7 +2923,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2946,7 +2945,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2955,7 +2954,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2970,10 +2969,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2983,7 +2982,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"text"}],"mapHash":"73103866863-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"81210091323-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"text"}],"mapHash":"73103866863-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"81210091323-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3298,8 +3297,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3326,7 +3325,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 14099 + "size": 14068 } //// [/src/first/bin/first-output.d.ts] @@ -3377,7 +3376,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3392,7 +3391,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3403,8 +3402,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3422,8 +3421,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3437,7 +3436,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3452,7 +3451,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3469,8 +3468,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3509,10 +3508,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3536,12 +3535,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3613,7 +3612,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3627,7 +3626,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3636,7 +3635,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3714,9 +3713,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3745,7 +3744,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2728 + "size": 2701 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3789,10 +3788,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3810,8 +3809,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3825,7 +3824,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3840,7 +3839,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3856,8 +3855,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3885,8 +3884,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3895,8 +3894,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3909,12 +3908,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3922,7 +3921,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3992,7 +3991,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -4001,9 +4000,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -4168,10 +4167,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4195,12 +4194,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4272,7 +4271,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4286,7 +4285,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4302,19 +4301,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4338,7 +4337,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4355,7 +4354,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4377,7 +4376,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4389,8 +4388,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4409,19 +4408,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4434,7 +4433,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5739,10 +5738,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5769,7 +5768,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5791,7 +5790,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5800,7 +5799,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5815,10 +5814,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5863,7 +5862,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5880,7 +5879,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6098,7 +6097,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -6122,7 +6121,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10510 + "size": 10505 } @@ -6130,39 +6129,39 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:01:08 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:09 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:01:10 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:18 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:07 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:19 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -6300,10 +6299,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6326,12 +6325,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6359,7 +6358,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6431,7 +6430,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6445,7 +6444,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6461,19 +6460,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6497,7 +6496,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6514,7 +6513,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6536,7 +6535,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6548,8 +6547,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6568,19 +6567,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6593,7 +6592,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7898,10 +7897,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7928,7 +7927,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7950,7 +7949,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7959,7 +7958,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7974,10 +7973,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7987,7 +7986,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"text"}],"mapHash":"-92108137693-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"65642999015-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"text"}],"mapHash":"-92108137693-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"65642999015-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8303,8 +8302,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -8331,7 +8330,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 14157 + "size": 14126 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -8367,10 +8366,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8393,12 +8392,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8426,7 +8425,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8498,7 +8497,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8512,7 +8511,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8521,7 +8520,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8600,9 +8599,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8631,7 +8630,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2772 } //// [/src/third/thirdjs/output/third-output.js] @@ -8769,10 +8768,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8795,12 +8794,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8828,7 +8827,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8900,7 +8899,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8914,7 +8913,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8930,19 +8929,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8966,7 +8965,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8983,7 +8982,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -9005,7 +9004,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -9017,8 +9016,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -9037,19 +9036,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -9062,7 +9061,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -10367,10 +10366,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -10397,7 +10396,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -10419,7 +10418,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -10428,7 +10427,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -10443,10 +10442,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -10491,7 +10490,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -10508,7 +10507,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10727,7 +10726,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10751,6 +10750,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10566 + "size": 10561 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js index e0b75601371..36ee45f5128 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,82 +99,85 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:12 AM] Projects in this build: +[12:00:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:13 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/first/tsconfig.json'... +[12:00:26 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:36 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:37 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:47 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:48 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -268,8 +270,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -278,8 +280,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -292,12 +294,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -306,7 +308,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^^^^^^^^^^^^-> -1-> +1-> > > 2 >class @@ -1039,7 +1041,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -1048,9 +1050,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1181,19 +1183,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1217,7 +1219,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1234,7 +1236,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1256,7 +1258,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1268,8 +1270,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1288,19 +1290,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1313,7 +1315,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2618,10 +2620,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2648,7 +2650,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2670,7 +2672,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2679,7 +2681,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2694,10 +2696,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2707,7 +2709,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3333,"kind":"text"}],"mapHash":"72728491936-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"219880979041-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":248,"kind":"internal"},{"pos":249,"end":279,"kind":"text"},{"pos":279,"end":773,"kind":"internal"},{"pos":774,"end":776,"kind":"text"},{"pos":776,"end":1283,"kind":"internal"},{"pos":1284,"end":1329,"kind":"text"}],"mapHash":"-10387050907-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-38748554374-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3333,"kind":"text"}],"mapHash":"72728491936-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"219880979041-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":248,"kind":"internal"},{"pos":249,"end":279,"kind":"text"},{"pos":279,"end":773,"kind":"internal"},{"pos":774,"end":776,"kind":"text"},{"pos":776,"end":1283,"kind":"internal"},{"pos":1284,"end":1329,"kind":"text"}],"mapHash":"-10387050907-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-38748554374-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2963,8 +2965,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2991,7 +2993,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12670 + "size": 12639 } //// [/src/first/bin/first-output.d.ts] @@ -3042,7 +3044,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3057,7 +3059,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3068,8 +3070,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3087,8 +3089,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3102,7 +3104,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3117,7 +3119,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3134,8 +3136,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3174,10 +3176,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3201,12 +3203,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3278,7 +3280,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3292,7 +3294,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3301,7 +3303,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3379,9 +3381,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3410,7 +3412,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2728 + "size": 2701 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3454,10 +3456,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3475,8 +3477,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3490,7 +3492,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3505,7 +3507,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3521,8 +3523,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3550,8 +3552,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3560,8 +3562,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3574,12 +3576,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3587,7 +3589,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3657,7 +3659,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3666,9 +3668,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3833,10 +3835,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3860,12 +3862,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3937,7 +3939,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3951,7 +3953,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3967,19 +3969,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4003,7 +4005,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4020,7 +4022,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4042,7 +4044,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4054,8 +4056,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4074,19 +4076,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4099,7 +4101,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5404,10 +5406,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5434,7 +5436,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5456,7 +5458,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5465,7 +5467,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5480,10 +5482,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5528,7 +5530,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5545,7 +5547,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5801,7 +5803,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5825,7 +5827,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10824 + "size": 10819 } @@ -5833,37 +5835,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:07 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:01:08 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:16 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:17 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:18 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5901,10 +5903,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5927,12 +5929,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5960,7 +5962,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6032,7 +6034,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6046,7 +6048,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6055,7 +6057,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6134,9 +6136,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -6165,7 +6167,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2772 } //// [/src/third/thirdjs/output/third-output.js] @@ -6303,10 +6305,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6329,12 +6331,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6362,7 +6364,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6434,7 +6436,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6448,7 +6450,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6464,19 +6466,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6500,7 +6502,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6517,7 +6519,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6539,7 +6541,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6551,8 +6553,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6571,19 +6573,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6596,7 +6598,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7901,10 +7903,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7931,7 +7933,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7953,7 +7955,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7962,7 +7964,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7977,10 +7979,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -8025,7 +8027,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -8042,7 +8044,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8299,7 +8301,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8323,6 +8325,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10880 + "size": 10875 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js index 94387c99106..be2c29a3268 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js @@ -38,141 +38,143 @@ enum TokenFlags { /* @internal */ NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator } -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -218,8 +220,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -228,8 +230,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -242,12 +244,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -270,7 +272,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -279,9 +281,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -325,19 +327,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -361,7 +363,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -378,7 +380,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -400,7 +402,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -412,8 +414,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -432,19 +434,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -474,10 +476,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -504,7 +506,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -526,7 +528,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -535,7 +537,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -550,10 +552,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -563,7 +565,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -640,8 +642,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -668,7 +670,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -917,7 +919,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -932,7 +934,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(18, 2) Source(25, 2) + SourceIndex(0) --- @@ -943,8 +945,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -962,8 +964,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -977,7 +979,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -992,7 +994,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(22, 2) Source(31, 2) + SourceIndex(0) --- @@ -1009,8 +1011,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(23, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(23, 18) Source(1, 10) + SourceIndex(2) @@ -1326,10 +1328,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 > - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1353,12 +1355,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1430,7 +1432,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1444,7 +1446,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) @@ -1453,7 +1455,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"text"}],"mapHash":"-31206929079-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"44196247116-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":40,"kind":"text"},{"pos":40,"end":151,"kind":"internal"},{"pos":152,"end":265,"kind":"text"},{"pos":265,"end":358,"kind":"internal"},{"pos":359,"end":510,"kind":"text"}],"mapHash":"12756767772-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET\"}","hash":"9708454722-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-78369044808-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"text"}],"mapHash":"-31206929079-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"44196247116-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":40,"kind":"text"},{"pos":40,"end":151,"kind":"internal"},{"pos":152,"end":265,"kind":"text"},{"pos":265,"end":358,"kind":"internal"},{"pos":359,"end":510,"kind":"text"}],"mapHash":"12756767772-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET\"}","hash":"9708454722-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-71688230743-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1585,9 +1587,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-78369044808-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-71688230743-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1616,7 +1618,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5809 + "size": 5783 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1785,7 +1787,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1800,7 +1802,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(11, 2) Source(25, 2) + SourceIndex(0) --- @@ -1811,8 +1813,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1830,8 +1832,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1845,7 +1847,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1860,7 +1862,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(15, 2) Source(31, 2) + SourceIndex(0) --- @@ -1876,8 +1878,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(16, 18) Source(1, 10) + SourceIndex(1) @@ -1905,8 +1907,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) --- @@ -1915,8 +1917,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1929,12 +1931,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(20, 2) Source(11, 2) + SourceIndex(2) --- @@ -1957,7 +1959,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(22, 5) Source(2, 5) + SourceIndex(3) @@ -1966,9 +1968,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(23, 2) Source(5, 2) + SourceIndex(3) --- @@ -2323,10 +2325,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 > - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2350,12 +2352,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2427,7 +2429,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2441,7 +2443,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) @@ -2457,19 +2459,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(23, 5) Source(5, 11) + SourceIndex(3) @@ -2493,7 +2495,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2510,7 +2512,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2532,7 +2534,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(27, 5) Source(8, 5) + SourceIndex(3) @@ -2544,8 +2546,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2564,19 +2566,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(29, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(29, 2) Source(11, 2) + SourceIndex(3) @@ -2606,10 +2608,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) @@ -2636,7 +2638,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2658,7 +2660,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) @@ -2667,7 +2669,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) @@ -2682,10 +2684,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) @@ -2730,7 +2732,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2747,7 +2749,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":1109,"kind":"text"}]},{"pos":1109,"end":1379,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1109,"end":1379,"kind":"text"}]},{"pos":1379,"end":1413,"kind":"text"}],"mapHash":"82804019774-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"81736370692-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":304,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":304,"kind":"text"}]},{"pos":304,"end":397,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":304,"end":397,"kind":"text"}]},{"pos":397,"end":415,"kind":"text"}],"mapHash":"22013376427-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"3834368531-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"2647420825-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":1109,"kind":"text"}]},{"pos":1109,"end":1379,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1109,"end":1379,"kind":"text"}]},{"pos":1379,"end":1413,"kind":"text"}],"mapHash":"82804019774-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"81736370692-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":304,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":304,"kind":"text"}]},{"pos":304,"end":397,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":304,"end":397,"kind":"text"}]},{"pos":397,"end":415,"kind":"text"}],"mapHash":"22013376427-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"3834368531-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"2647420825-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2939,7 +2941,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2963,6 +2965,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6682 + "size": 6677 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js index e87f01b7ebd..e3c2fb5b5c0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,103 +99,103 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:11 AM] Projects in this build: +[12:00:23 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:12 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:13 AM] Building project '/src/first/tsconfig.json'... +[12:00:25 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:35 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:36 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:46 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:47 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/2/second-output.js": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -295,7 +294,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -310,7 +309,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -321,8 +320,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -340,8 +339,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -355,7 +354,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -370,7 +369,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -386,8 +385,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -415,8 +414,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -425,8 +424,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -439,12 +438,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -452,7 +451,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -1056,7 +1055,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1065,9 +1064,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1205,10 +1204,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1232,12 +1231,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1309,7 +1308,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1323,7 +1322,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1339,19 +1338,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1375,7 +1374,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1392,7 +1391,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1414,7 +1413,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1426,8 +1425,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1446,19 +1445,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1471,7 +1470,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2673,10 +2672,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2703,7 +2702,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2725,7 +2724,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2734,7 +2733,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2749,10 +2748,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2762,7 +2761,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-31829622207-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-31829622207-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3077,8 +3076,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3105,7 +3104,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12623 + "size": 12591 } //// [/src/first/bin/first-output.d.ts] @@ -3150,7 +3149,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3165,7 +3164,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3176,8 +3175,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3195,8 +3194,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3210,7 +3209,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3225,7 +3224,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3242,8 +3241,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3282,10 +3281,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3309,12 +3308,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3386,7 +3385,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3400,7 +3399,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3409,7 +3408,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3487,9 +3486,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3518,7 +3517,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2687 + "size": 2660 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3562,10 +3561,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3583,8 +3582,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3598,7 +3597,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3613,7 +3612,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3629,8 +3628,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3658,8 +3657,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3668,8 +3667,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3682,12 +3681,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3695,7 +3694,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3765,7 +3764,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3774,9 +3773,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3941,10 +3940,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3968,12 +3967,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4045,7 +4044,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4059,7 +4058,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4075,19 +4074,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4111,7 +4110,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4128,7 +4127,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4150,7 +4149,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4162,8 +4161,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4182,19 +4181,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4207,7 +4206,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5409,10 +5408,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5439,7 +5438,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5461,7 +5460,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5470,7 +5469,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5485,10 +5484,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5533,7 +5532,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5550,7 +5549,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5768,7 +5767,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5792,7 +5791,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9617 + "size": 9612 } @@ -5800,62 +5799,62 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:53 AM] Projects in this build: +[12:01:05 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:06 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:55 AM] Building project '/src/first/tsconfig.json'... +[12:01:07 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is out of date because output 'src/2/second-output.tsbuildinfo' is older than input 'src/first' +[12:01:16 AM] Project 'src/second/tsconfig.json' is out of date because output 'src/2/second-output.tsbuildinfo' is older than input 'src/first' -[12:01:05 AM] Building project '/src/second/tsconfig.json'... +[12:01:17 AM] Building project '/src/second/tsconfig.json'... -[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/second' +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/second' -[12:01:15 AM] Building project '/src/third/tsconfig.json'... +[12:01:27 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/2/second-output.js": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -5954,7 +5953,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5969,7 +5968,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -5980,8 +5979,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5999,8 +5998,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6014,7 +6013,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6029,7 +6028,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6045,8 +6044,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -6074,8 +6073,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -6084,8 +6083,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -6098,12 +6097,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -6111,7 +6110,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -6715,7 +6714,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -6724,9 +6723,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -6864,10 +6863,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6891,12 +6890,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6968,7 +6967,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6982,7 +6981,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -6998,19 +6997,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -7034,7 +7033,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -7051,7 +7050,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -7073,7 +7072,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -7085,8 +7084,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -7105,19 +7104,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -7130,7 +7129,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -8332,10 +8331,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -8362,7 +8361,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -8384,7 +8383,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -8393,7 +8392,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -8408,10 +8407,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -8421,7 +8420,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"text"}],"mapHash":"44741038523-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"17880960601-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"text"}],"mapHash":"44741038523-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"17880960601-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8736,8 +8735,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -8764,7 +8763,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12617 + "size": 12585 } //// [/src/first/bin/first-output.d.ts] @@ -8809,7 +8808,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8824,7 +8823,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8835,8 +8834,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8854,8 +8853,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8869,7 +8868,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8884,7 +8883,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8901,8 +8900,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -8941,10 +8940,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8968,12 +8967,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -9045,7 +9044,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -9059,7 +9058,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -9068,7 +9067,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -9146,9 +9145,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -9177,7 +9176,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2684 + "size": 2658 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -9221,10 +9220,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -9242,8 +9241,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -9257,7 +9256,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -9272,7 +9271,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -9288,8 +9287,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -9317,8 +9316,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -9327,8 +9326,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -9341,12 +9340,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -9354,7 +9353,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -9424,7 +9423,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -9433,9 +9432,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -9600,10 +9599,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -9627,12 +9626,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -9704,7 +9703,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -9718,7 +9717,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -9734,19 +9733,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -9770,7 +9769,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -9787,7 +9786,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -9809,7 +9808,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -9821,8 +9820,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -9841,19 +9840,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -9866,7 +9865,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -11068,10 +11067,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -11098,7 +11097,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -11120,7 +11119,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -11129,7 +11128,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -11144,10 +11143,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -11192,7 +11191,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -11209,7 +11208,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11427,7 +11426,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -11451,7 +11450,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9609 + "size": 9604 } @@ -11459,63 +11458,63 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:31 AM] Projects in this build: +[12:01:43 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:32 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:44 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:33 AM] Building project '/src/first/tsconfig.json'... +[12:01:45 AM] Building project '/src/first/tsconfig.json'... -[12:01:41 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:53 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:42 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:54 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:49 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:02:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:50 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:02 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 } //// [/src/2/second-output.js] @@ -11651,10 +11650,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -11677,12 +11676,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -11710,7 +11709,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -11782,7 +11781,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -11796,7 +11795,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -11812,19 +11811,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -11848,7 +11847,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -11865,7 +11864,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -11887,7 +11886,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -11899,8 +11898,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -11919,19 +11918,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -11944,7 +11943,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -13146,10 +13145,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -13176,7 +13175,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -13198,7 +13197,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -13207,7 +13206,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -13222,10 +13221,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -13235,7 +13234,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -13551,8 +13550,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -13579,7 +13578,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12675 + "size": 12643 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -13615,10 +13614,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -13641,12 +13640,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -13674,7 +13673,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -13746,7 +13745,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -13760,7 +13759,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -13769,7 +13768,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -13848,9 +13847,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -13879,7 +13878,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2755 + "size": 2730 } //// [/src/third/thirdjs/output/third-output.js] @@ -14017,10 +14016,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -14043,12 +14042,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -14076,7 +14075,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -14148,7 +14147,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -14162,7 +14161,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -14178,19 +14177,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -14214,7 +14213,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -14231,7 +14230,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -14253,7 +14252,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -14265,8 +14264,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -14285,19 +14284,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -14310,7 +14309,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -15512,10 +15511,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -15542,7 +15541,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -15564,7 +15563,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -15573,7 +15572,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -15588,10 +15587,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -15636,7 +15635,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -15653,7 +15652,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -15872,7 +15871,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -15896,7 +15895,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9669 + "size": 9664 } @@ -15904,63 +15903,63 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:02:02 AM] Projects in this build: +[12:02:14 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:02:03 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:02:15 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:02:04 AM] Building project '/src/first/tsconfig.json'... +[12:02:16 AM] Building project '/src/first/tsconfig.json'... -[12:02:12 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:24 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:02:13 AM] Updating output of project '/src/second/tsconfig.json'... +[12:02:25 AM] Updating output of project '/src/second/tsconfig.json'... -[12:02:19 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:02:31 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:02:20 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:32 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts.map] @@ -15994,7 +15993,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -16009,7 +16008,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -16020,8 +16019,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -16039,8 +16038,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -16054,7 +16053,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -16069,7 +16068,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -16085,8 +16084,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -16114,8 +16113,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -16124,8 +16123,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -16138,12 +16137,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -16151,7 +16150,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -16755,7 +16754,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -16764,16 +16763,16 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"-16943993016-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"-16943993016-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -17082,8 +17081,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -17110,7 +17109,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12637 + "size": 12605 } //// [/src/first/bin/first-output.d.ts.map] @@ -17144,7 +17143,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17159,7 +17158,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -17170,8 +17169,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -17189,8 +17188,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -17204,7 +17203,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17219,7 +17218,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -17236,8 +17235,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -17266,10 +17265,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -17292,12 +17291,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -17325,7 +17324,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -17397,7 +17396,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -17411,7 +17410,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -17420,7 +17419,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -17492,9 +17491,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -17523,7 +17522,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -17580,7 +17579,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17595,7 +17594,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -17606,8 +17605,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -17625,8 +17624,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -17640,7 +17639,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17655,7 +17654,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -17671,8 +17670,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -17700,8 +17699,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -17710,8 +17709,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -17724,12 +17723,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -17737,7 +17736,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -17807,7 +17806,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -17816,9 +17815,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -17850,7 +17849,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -18072,7 +18071,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -18096,6 +18095,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9797 + "size": 9792 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js index 57cac12014f..709fe87214f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js @@ -19,79 +19,109 @@ declare const console: { log(msg: any): void; }; /* @internal */ const A = 1; //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"sourceMap":true,"outFile":"./bin/first-output.js"},"files":["/src/first/first_PART1.ts"]} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "outFile": "./bin/first-output.js" + }, + "files": [ + "/src/first/first_PART1.ts" + ] +} //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] const B = 2; //// [/src/third/tsconfig.json] -{"compilerOptions":{"ignoreDeprecations":"5.0","composite":true,"declaration":true,"declarationMap":false,"stripInternal":true,"sourceMap":true,"outFile":"./thirdjs/output/third-output.js"},"references":[{"path":"../first","prepend":true}],"files":["/src/third/third_part1.ts"]} +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "declarationMap": false, + "stripInternal": true, + "sourceMap": true, + "outFile": "./thirdjs/output/third-output.js" + }, + "references": [ + { + "path": "../first", + "prepend": true + } + ], + "files": [ + "/src/third/third_part1.ts" + ] +} Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/third/tsconfig.json'... +[12:00:35 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index acc224cd92a..dc796b6cebe 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,83 +99,83 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/second/tsconfig.json'... +[12:00:39 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:50 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -277,7 +276,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -292,7 +291,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -303,8 +302,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -322,8 +321,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -337,7 +336,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -352,7 +351,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -368,8 +367,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -397,8 +396,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -407,8 +406,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -421,12 +420,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -434,7 +433,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -1038,7 +1037,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1047,9 +1046,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1187,10 +1186,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1214,12 +1213,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1291,7 +1290,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1305,7 +1304,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1321,19 +1320,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1357,7 +1356,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1374,7 +1373,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1396,7 +1395,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1408,8 +1407,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1428,19 +1427,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1453,7 +1452,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2758,10 +2757,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2788,7 +2787,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2810,7 +2809,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2819,7 +2818,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2834,10 +2833,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2847,7 +2846,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"text"}],"mapHash":"49450898210-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-14315723033-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"text"}],"mapHash":"49450898210-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-14315723033-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3162,8 +3161,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3190,7 +3189,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13167 + "size": 13135 } //// [/src/first/bin/first-output.d.ts] @@ -3235,7 +3234,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3250,7 +3249,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3261,8 +3260,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3280,8 +3279,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3295,7 +3294,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3310,7 +3309,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3327,8 +3326,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3367,10 +3366,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3394,12 +3393,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3471,7 +3470,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3485,7 +3484,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3494,7 +3493,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3572,9 +3571,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3603,7 +3602,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2688 + "size": 2661 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3647,10 +3646,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3668,8 +3667,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3683,7 +3682,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3698,7 +3697,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3714,8 +3713,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3743,8 +3742,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3753,8 +3752,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3767,12 +3766,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3780,7 +3779,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3850,7 +3849,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3859,9 +3858,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -4026,10 +4025,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4053,12 +4052,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4130,7 +4129,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4144,7 +4143,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4160,19 +4159,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4196,7 +4195,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4213,7 +4212,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4235,7 +4234,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4247,8 +4246,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4267,19 +4266,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4292,7 +4291,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5597,10 +5596,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5627,7 +5626,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5649,7 +5648,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5658,7 +5657,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5673,10 +5672,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5721,7 +5720,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5738,7 +5737,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5956,7 +5955,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5980,7 +5979,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10163 + "size": 10158 } @@ -5988,39 +5987,39 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:01:08 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:09 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:01:10 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:18 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:07 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:19 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -6158,10 +6157,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6184,12 +6183,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6217,7 +6216,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6289,7 +6288,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6303,7 +6302,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6319,19 +6318,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6355,7 +6354,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6372,7 +6371,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6394,7 +6393,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6406,8 +6405,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6426,19 +6425,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6451,7 +6450,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7756,10 +7755,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7786,7 +7785,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7808,7 +7807,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7817,7 +7816,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7832,10 +7831,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7845,7 +7844,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8161,8 +8160,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -8189,7 +8188,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13222 + "size": 13190 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -8225,10 +8224,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8251,12 +8250,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8284,7 +8283,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8356,7 +8355,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8370,7 +8369,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8379,7 +8378,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8458,9 +8457,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8489,7 +8488,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2761 + "size": 2734 } //// [/src/third/thirdjs/output/third-output.js] @@ -8627,10 +8626,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8653,12 +8652,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8686,7 +8685,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8758,7 +8757,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8772,7 +8771,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8788,19 +8787,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8824,7 +8823,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8841,7 +8840,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -8863,7 +8862,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -8875,8 +8874,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -8895,19 +8894,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -8920,7 +8919,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -10225,10 +10224,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -10255,7 +10254,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -10277,7 +10276,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -10286,7 +10285,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -10301,10 +10300,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -10349,7 +10348,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -10366,7 +10365,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10585,7 +10584,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10609,7 +10608,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10218 + "size": 10213 } @@ -10617,39 +10616,39 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:27 AM] Projects in this build: +[12:01:39 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:40 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:29 AM] Building project '/src/first/tsconfig.json'... +[12:01:41 AM] Building project '/src/first/tsconfig.json'... -[12:01:37 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:49 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:38 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:50 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:44 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:56 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:45 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:57 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -10685,7 +10684,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10700,7 +10699,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -10711,8 +10710,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -10730,8 +10729,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -10745,7 +10744,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10760,7 +10759,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -10776,8 +10775,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -10805,8 +10804,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -10815,8 +10814,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -10829,12 +10828,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -10842,7 +10841,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -11446,7 +11445,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -11455,16 +11454,16 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"55383497486-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"55383497486-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11773,8 +11772,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -11801,7 +11800,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13183 + "size": 13151 } //// [/src/first/bin/first-output.d.ts.map] @@ -11835,7 +11834,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11850,7 +11849,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11861,8 +11860,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11880,8 +11879,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11895,7 +11894,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11910,7 +11909,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11927,8 +11926,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -11957,10 +11956,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -11983,12 +11982,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -12016,7 +12015,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -12088,7 +12087,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -12102,7 +12101,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -12111,7 +12110,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12183,9 +12182,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -12214,7 +12213,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2709 + "size": 2683 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -12271,7 +12270,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -12286,7 +12285,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -12297,8 +12296,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -12316,8 +12315,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -12331,7 +12330,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -12346,7 +12345,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -12362,8 +12361,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -12391,8 +12390,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -12401,8 +12400,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -12415,12 +12414,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -12428,7 +12427,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -12498,7 +12497,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -12507,9 +12506,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -12541,7 +12540,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12763,7 +12762,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -12787,6 +12786,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10342 + "size": 10337 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js index 7a37ee925af..40a96667a4b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,82 +99,85 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:12 AM] Projects in this build: +[12:00:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:13 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/first/tsconfig.json'... +[12:00:26 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:36 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:37 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:47 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:48 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -268,8 +270,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -278,8 +280,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -292,12 +294,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -305,7 +307,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -909,7 +911,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -918,9 +920,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1051,19 +1053,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1087,7 +1089,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1104,7 +1106,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1126,7 +1128,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1138,8 +1140,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1158,19 +1160,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1183,7 +1185,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2488,10 +2490,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2518,7 +2520,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2540,7 +2542,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2549,7 +2551,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2564,10 +2566,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2577,7 +2579,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3315,"kind":"text"}],"mapHash":"-2464084269-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-11392275315-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3315,"kind":"text"}],"mapHash":"-2464084269-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-11392275315-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2833,8 +2835,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2861,7 +2863,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11789 + "size": 11757 } //// [/src/first/bin/first-output.d.ts] @@ -2906,7 +2908,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2921,7 +2923,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2932,8 +2934,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2951,8 +2953,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2966,7 +2968,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2981,7 +2983,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2998,8 +3000,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3038,10 +3040,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3065,12 +3067,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3142,7 +3144,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3156,7 +3158,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3165,7 +3167,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3243,9 +3245,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3274,7 +3276,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2688 + "size": 2661 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3318,10 +3320,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3339,8 +3341,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3354,7 +3356,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3369,7 +3371,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3385,8 +3387,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3414,8 +3416,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3424,8 +3426,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3438,12 +3440,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3451,7 +3453,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3521,7 +3523,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3530,9 +3532,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3697,10 +3699,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3724,12 +3726,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3801,7 +3803,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3815,7 +3817,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3831,19 +3833,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -3867,7 +3869,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3884,7 +3886,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3906,7 +3908,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -3918,8 +3920,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3938,19 +3940,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3963,7 +3965,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5268,10 +5270,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5298,7 +5300,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5320,7 +5322,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5329,7 +5331,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5344,10 +5346,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5392,7 +5394,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5409,7 +5411,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5665,7 +5667,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5689,7 +5691,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10478 + "size": 10473 } @@ -5697,37 +5699,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:07 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:01:08 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:16 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:17 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:18 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5765,10 +5767,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5791,12 +5793,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5824,7 +5826,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5896,7 +5898,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5910,7 +5912,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -5919,7 +5921,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5998,9 +6000,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -6029,7 +6031,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2761 + "size": 2734 } //// [/src/third/thirdjs/output/third-output.js] @@ -6167,10 +6169,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6193,12 +6195,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6226,7 +6228,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6298,7 +6300,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6312,7 +6314,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6328,19 +6330,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6364,7 +6366,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6381,7 +6383,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6403,7 +6405,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6415,8 +6417,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6435,19 +6437,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6460,7 +6462,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7765,10 +7767,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7795,7 +7797,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7817,7 +7819,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7826,7 +7828,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7841,10 +7843,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7889,7 +7891,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -7906,7 +7908,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8163,7 +8165,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8187,7 +8189,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10533 + "size": 10528 } @@ -8195,37 +8197,37 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:17 AM] Projects in this build: +[12:01:29 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:18 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:30 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:19 AM] Building project '/src/first/tsconfig.json'... +[12:01:31 AM] Building project '/src/first/tsconfig.json'... -[12:01:27 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:39 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:28 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:40 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:29 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:41 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -8261,7 +8263,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8276,7 +8278,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8287,8 +8289,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8306,8 +8308,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8321,7 +8323,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8336,7 +8338,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8353,8 +8355,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -8383,10 +8385,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8409,12 +8411,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8442,7 +8444,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8514,7 +8516,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8528,7 +8530,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8537,7 +8539,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8609,9 +8611,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8640,7 +8642,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2709 + "size": 2683 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -8697,7 +8699,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8712,7 +8714,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8723,8 +8725,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8742,8 +8744,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8757,7 +8759,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8772,7 +8774,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8788,8 +8790,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -8817,8 +8819,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -8827,8 +8829,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -8841,12 +8843,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -8854,7 +8856,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -8924,7 +8926,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -8933,9 +8935,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -8967,7 +8969,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -9227,7 +9229,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -9251,6 +9253,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10657 + "size": 10652 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js index 379c0147232..4ea1ea22742 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,102 +99,105 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -286,8 +288,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -296,8 +298,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -310,12 +312,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -323,7 +325,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -927,7 +929,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -936,9 +938,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1069,19 +1071,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1105,7 +1107,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1122,7 +1124,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1144,7 +1146,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1156,8 +1158,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1176,19 +1178,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1201,7 +1203,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2403,10 +2405,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2433,7 +2435,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2455,7 +2457,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2464,7 +2466,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2479,10 +2481,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2492,7 +2494,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"47594977138-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"47594977138-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2748,8 +2750,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2776,7 +2778,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11244 + "size": 11212 } //// [/src/first/bin/first-output.d.ts] @@ -2821,7 +2823,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2836,7 +2838,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2847,8 +2849,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2866,8 +2868,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2881,7 +2883,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2896,7 +2898,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2913,8 +2915,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2953,10 +2955,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2980,12 +2982,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3057,7 +3059,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3071,7 +3073,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3080,7 +3082,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3158,9 +3160,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3189,7 +3191,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2687 + "size": 2660 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3233,10 +3235,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3254,8 +3256,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3269,7 +3271,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3284,7 +3286,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3300,8 +3302,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3329,8 +3331,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3339,8 +3341,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3353,12 +3355,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3366,7 +3368,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3436,7 +3438,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3445,9 +3447,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3612,10 +3614,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3639,12 +3641,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3716,7 +3718,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3730,7 +3732,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3746,19 +3748,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -3782,7 +3784,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3799,7 +3801,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3821,7 +3823,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -3833,8 +3835,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3853,19 +3855,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3878,7 +3880,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5080,10 +5082,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5110,7 +5112,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5132,7 +5134,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5141,7 +5143,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5156,10 +5158,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5204,7 +5206,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5221,7 +5223,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5477,7 +5479,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5501,7 +5503,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9932 + "size": 9927 } @@ -5509,58 +5511,58 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:04 AM] Building project '/src/third/tsconfig.json'... +[12:01:16 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -5605,7 +5607,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5620,7 +5622,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -5631,8 +5633,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5650,8 +5652,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5665,7 +5667,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5680,7 +5682,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -5697,8 +5699,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -5737,10 +5739,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5764,12 +5766,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5841,7 +5843,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5855,7 +5857,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -5864,7 +5866,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5942,9 +5944,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5973,7 +5975,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2684 + "size": 2658 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -6017,10 +6019,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -6038,8 +6040,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6053,7 +6055,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6068,7 +6070,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -6084,8 +6086,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -6113,8 +6115,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -6123,8 +6125,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -6137,12 +6139,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -6150,7 +6152,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -6220,7 +6222,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -6229,9 +6231,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -6396,10 +6398,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6423,12 +6425,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6500,7 +6502,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6514,7 +6516,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -6530,19 +6532,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -6566,7 +6568,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6583,7 +6585,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6605,7 +6607,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -6617,8 +6619,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6637,19 +6639,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -6662,7 +6664,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -7864,10 +7866,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -7894,7 +7896,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7916,7 +7918,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -7925,7 +7927,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -7940,10 +7942,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -7988,7 +7990,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -8005,7 +8007,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8261,7 +8263,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8285,7 +8287,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9924 + "size": 9919 } @@ -8293,61 +8295,61 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:18 AM] Projects in this build: +[12:01:30 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:31 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:20 AM] Building project '/src/first/tsconfig.json'... +[12:01:32 AM] Building project '/src/first/tsconfig.json'... -[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:40 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -8383,10 +8385,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8409,12 +8411,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8442,7 +8444,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8514,7 +8516,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8528,7 +8530,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8537,7 +8539,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8616,9 +8618,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8647,7 +8649,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2755 + "size": 2730 } //// [/src/third/thirdjs/output/third-output.js] @@ -8785,10 +8787,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8811,12 +8813,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8844,7 +8846,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8916,7 +8918,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8930,7 +8932,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8946,19 +8948,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8982,7 +8984,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8999,7 +9001,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -9021,7 +9023,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -9033,8 +9035,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -9053,19 +9055,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -9078,7 +9080,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -10280,10 +10282,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -10310,7 +10312,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -10332,7 +10334,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -10341,7 +10343,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -10356,10 +10358,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -10404,7 +10406,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -10421,7 +10423,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10678,7 +10680,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10702,7 +10704,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9984 + "size": 9979 } @@ -10710,61 +10712,61 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:41 AM] Projects in this build: +[12:01:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:43 AM] Building project '/src/first/tsconfig.json'... +[12:01:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:05 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -10798,7 +10800,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10813,7 +10815,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -10824,8 +10826,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -10843,8 +10845,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -10858,7 +10860,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10873,7 +10875,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -10890,8 +10892,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -10920,10 +10922,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -10946,12 +10948,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -10979,7 +10981,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -11051,7 +11053,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -11065,7 +11067,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -11074,7 +11076,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11146,9 +11148,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -11177,7 +11179,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -11234,7 +11236,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11249,7 +11251,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11260,8 +11262,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11279,8 +11281,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11294,7 +11296,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11309,7 +11311,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11325,8 +11327,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -11354,8 +11356,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -11364,8 +11366,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -11378,12 +11380,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -11391,7 +11393,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -11461,7 +11463,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -11470,9 +11472,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -11504,7 +11506,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11764,7 +11766,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -11788,6 +11790,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10112 + "size": 10107 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js index df9c2aa7f6d..23ea696b01a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js @@ -16,178 +16,180 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] /// const first_part2Const = new firstfirst_part2(); -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tripleRef.d.ts] declare class firstfirst_part2 { } //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] /// const second_part1Const = new secondsecond_part1(); -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tripleRef.d.ts] declare class secondsecond_part1 { } //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] /// const third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tripleRef.d.ts] declare class thirdthird_part1 { } //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:12 AM] Projects in this build: +[12:00:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:13 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/first/tsconfig.json'... +[12:00:26 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:36 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:37 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:47 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:48 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/tripleRef.d.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/third/tripleRef.d.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -256,8 +258,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) --- @@ -266,8 +268,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -280,12 +282,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) --- @@ -308,7 +310,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) @@ -317,9 +319,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) --- @@ -392,19 +394,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) @@ -428,7 +430,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -445,7 +447,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -467,7 +469,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) @@ -479,8 +481,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -499,19 +501,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) @@ -541,10 +543,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -571,7 +573,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -593,7 +595,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -602,7 +604,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -617,10 +619,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -630,7 +632,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-742713438-declare class secondsecond_part1 { }","-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-742713438-declare class secondsecond_part1 { }","-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -720,8 +722,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", - "../second/second_part1.ts": "-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -751,7 +753,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3330 + "size": 3300 } //// [/src/first/bin/first-output.d.ts] @@ -799,7 +801,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -814,7 +816,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -825,8 +827,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -844,8 +846,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -859,7 +861,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -874,7 +876,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -916,8 +918,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) @@ -957,10 +959,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -984,12 +986,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1089,7 +1091,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1103,7 +1105,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1112,7 +1114,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"text"}],"mapHash":"-46474879684-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"6451620159-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":242,"kind":"text"}],"mapHash":"28011477375-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-31213872065-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-2651673797-declare class firstfirst_part2 { }","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"text"}],"mapHash":"-46474879684-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"6451620159-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":242,"kind":"text"}],"mapHash":"28011477375-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-31213872065-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-2651673797-declare class firstfirst_part2 { }","2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1195,10 +1197,10 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "../tripleref.d.ts": "-2651673797-declare class firstfirst_part2 { }", - "../first_part2.ts": "1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part2.ts": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1228,7 +1230,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3186 + "size": 3160 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1290,7 +1292,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1305,7 +1307,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) --- @@ -1316,8 +1318,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1335,8 +1337,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1350,7 +1352,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1365,7 +1367,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- @@ -1407,8 +1409,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) @@ -1458,8 +1460,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1468,8 +1470,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1482,12 +1484,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) --- @@ -1510,7 +1512,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) @@ -1519,9 +1521,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) --- @@ -1624,10 +1626,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1651,12 +1653,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1756,7 +1758,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1770,7 +1772,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1814,19 +1816,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) @@ -1850,7 +1852,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1867,7 +1869,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1889,7 +1891,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) @@ -1901,8 +1903,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1921,19 +1923,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) @@ -1963,10 +1965,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -1993,7 +1995,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2015,7 +2017,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2024,7 +2026,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2039,10 +2041,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2115,7 +2117,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2132,7 +2134,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":151,"kind":"text"}]},{"pos":151,"end":471,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":471,"kind":"text"}]},{"pos":471,"end":552,"kind":"text"}],"mapHash":"44476692060-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26848080718-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":356,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":356,"kind":"text"}]},{"pos":356,"end":502,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":356,"end":502,"kind":"text"}]},{"pos":502,"end":570,"kind":"text"}],"mapHash":"-21355679145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-14850014846-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2651673797-declare class firstfirst_part2 { }","-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-20224508856-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":151,"kind":"text"}]},{"pos":151,"end":471,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":471,"kind":"text"}]},{"pos":471,"end":552,"kind":"text"}],"mapHash":"44476692060-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26848080718-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":356,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":356,"kind":"text"}]},{"pos":356,"end":502,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":356,"end":502,"kind":"text"}]},{"pos":502,"end":570,"kind":"text"}],"mapHash":"-21355679145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-14850014846-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2651673797-declare class firstfirst_part2 { }","-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-20224508856-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2339,7 +2341,7 @@ declare var c: C; "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", "../../tripleref.d.ts": "2278097536-declare class thirdthird_part1 { }", - "../../third_part1.ts": "-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2362,7 +2364,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6303 + "size": 6299 } @@ -2370,61 +2372,61 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:07 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:01:08 AM] Building project '/src/first/tsconfig.json'... -[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:17 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:18 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:07 AM] Building project '/src/third/tsconfig.json'... +[12:01:19 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/second/tripleRef.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/third/tripleRef.d.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2472,7 +2474,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2487,7 +2489,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -2498,8 +2500,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2517,8 +2519,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2532,7 +2534,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2547,7 +2549,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -2589,8 +2591,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) @@ -2630,10 +2632,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2657,12 +2659,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2762,7 +2764,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2776,7 +2778,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2785,7 +2787,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}],"mapHash":"-19929709898-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"3513364655-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-2651673797-declare class firstfirst_part2 { }","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}],"mapHash":"-19929709898-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"3513364655-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-2651673797-declare class firstfirst_part2 { }","2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2868,10 +2870,10 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "../tripleref.d.ts": "-2651673797-declare class firstfirst_part2 { }", - "../first_part2.ts": "1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part2.ts": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2901,7 +2903,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3179 + "size": 3154 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2963,7 +2965,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2978,7 +2980,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) --- @@ -2989,8 +2991,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3008,8 +3010,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3023,7 +3025,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3038,7 +3040,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- @@ -3080,8 +3082,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) @@ -3131,8 +3133,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -3141,8 +3143,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3155,12 +3157,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) --- @@ -3183,7 +3185,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) @@ -3192,9 +3194,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) --- @@ -3297,10 +3299,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3324,12 +3326,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3429,7 +3431,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3443,7 +3445,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3487,19 +3489,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) @@ -3523,7 +3525,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3540,7 +3542,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3562,7 +3564,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) @@ -3574,8 +3576,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3594,19 +3596,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) @@ -3636,10 +3638,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -3666,7 +3668,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3688,7 +3690,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -3697,7 +3699,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -3712,10 +3714,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -3788,7 +3790,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3805,7 +3807,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":150,"kind":"text"}]},{"pos":150,"end":470,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":150,"end":470,"kind":"text"}]},{"pos":470,"end":551,"kind":"text"}],"mapHash":"-20483685162-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12954329634-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":150,"kind":"text"}]},{"pos":150,"end":470,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":150,"end":470,"kind":"text"}]},{"pos":470,"end":551,"kind":"text"}],"mapHash":"-20483685162-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12954329634-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4012,7 +4014,7 @@ declare var c: C; "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", "../../tripleref.d.ts": "2278097536-declare class thirdthird_part1 { }", - "../../third_part1.ts": "-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4035,7 +4037,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6297 + "size": 6293 } @@ -4043,62 +4045,62 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:21 AM] Projects in this build: +[12:01:33 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:22 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:34 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:23 AM] Building project '/src/first/tsconfig.json'... +[12:01:35 AM] Building project '/src/first/tsconfig.json'... -[12:01:31 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:43 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:32 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:44 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:33 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:45 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -4135,10 +4137,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4161,12 +4163,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4194,7 +4196,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >console 3 > . @@ -4294,7 +4296,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4308,7 +4310,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4317,7 +4319,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"text"}],"mapHash":"-10985091094-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"433907675-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","-2651673797-declare class firstfirst_part2 { }","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"text"}],"mapHash":"-10985091094-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"433907675-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","-2651673797-declare class firstfirst_part2 { }","2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4401,10 +4403,10 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", "../tripleref.d.ts": "-2651673797-declare class firstfirst_part2 { }", - "../first_part2.ts": "1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part2.ts": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -4434,7 +4436,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3249 + "size": 3225 } //// [/src/third/thirdjs/output/third-output.js] @@ -4488,10 +4490,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4514,12 +4516,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4547,7 +4549,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >console 3 > . @@ -4647,7 +4649,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4661,7 +4663,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4705,19 +4707,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(10, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(10, 5) Source(7, 11) + SourceIndex(3) @@ -4741,7 +4743,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4758,7 +4760,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4780,7 +4782,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(10, 5) + SourceIndex(3) @@ -4792,8 +4794,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4812,19 +4814,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(16, 2) Source(13, 2) + SourceIndex(3) @@ -4854,10 +4856,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) @@ -4884,7 +4886,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4906,7 +4908,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) @@ -4915,7 +4917,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) @@ -4930,10 +4932,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) @@ -5006,7 +5008,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5023,7 +5025,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":166,"kind":"text"}]},{"pos":166,"end":486,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":166,"end":486,"kind":"text"}]},{"pos":486,"end":567,"kind":"text"}],"mapHash":"-35476945910-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-13036579122-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":166,"kind":"text"}]},{"pos":166,"end":486,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":166,"end":486,"kind":"text"}]},{"pos":486,"end":567,"kind":"text"}],"mapHash":"-35476945910-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-13036579122-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5231,7 +5233,7 @@ declare var c: C; "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", "../../tripleref.d.ts": "2278097536-declare class thirdthird_part1 { }", - "../../third_part1.ts": "-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5254,6 +5256,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6355 + "size": 6351 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js index d4e5614de83..6f1ea6caf8a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js @@ -16,145 +16,147 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] /// const second_part1Const = new secondsecond_part1(); -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tripleRef.d.ts] declare class secondsecond_part1 { } //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -225,8 +227,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) --- @@ -235,8 +237,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -249,12 +251,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) --- @@ -277,7 +279,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) @@ -286,9 +288,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) --- @@ -361,19 +363,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) @@ -397,7 +399,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -414,7 +416,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -436,7 +438,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) @@ -448,8 +450,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -468,19 +470,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) @@ -510,10 +512,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -562,7 +564,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -571,7 +573,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -586,10 +588,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -599,7 +601,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-742713438-declare class secondsecond_part1 { }","-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-742713438-declare class secondsecond_part1 { }","-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -689,8 +691,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", - "../second/second_part1.ts": "-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -720,7 +722,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3330 + "size": 3300 } //// [/src/first/bin/first-output.d.ts] @@ -765,7 +767,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -780,7 +782,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -791,8 +793,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -810,8 +812,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -825,7 +827,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -840,7 +842,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -857,8 +859,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -897,10 +899,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -924,12 +926,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1001,7 +1003,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1015,7 +1017,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1024,7 +1026,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1095,9 +1097,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1126,7 +1128,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1182,7 +1184,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1197,7 +1199,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -1208,8 +1210,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1227,8 +1229,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1242,7 +1244,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1257,7 +1259,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -1274,8 +1276,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1325,8 +1327,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(12, 2) Source(5, 2) + SourceIndex(2) --- @@ -1335,8 +1337,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1349,12 +1351,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(14, 2) Source(13, 2) + SourceIndex(2) --- @@ -1377,7 +1379,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -1386,9 +1388,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -1467,10 +1469,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1494,12 +1496,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1571,7 +1573,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1585,7 +1587,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1629,19 +1631,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(8, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(7, 11) + SourceIndex(3) @@ -1665,7 +1667,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1682,7 +1684,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1704,7 +1706,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(10, 5) + SourceIndex(3) @@ -1716,8 +1718,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1736,19 +1738,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(13, 2) + SourceIndex(3) @@ -1778,10 +1780,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1808,7 +1810,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1830,7 +1832,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1839,7 +1841,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1854,10 +1856,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1902,7 +1904,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1919,7 +1921,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"-13380196693-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25341534095-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"-13380196693-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25341534095-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2100,7 +2102,7 @@ declare var c: C; "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2123,7 +2125,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5099 + "size": 5094 } @@ -2131,37 +2133,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:50 AM] Projects in this build: +[12:01:02 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:51 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:03 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:52 AM] Building project '/src/first/tsconfig.json'... +[12:01:04 AM] Building project '/src/first/tsconfig.json'... -[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:12 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:13 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:14 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2199,10 +2201,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2225,12 +2227,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2258,7 +2260,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2330,7 +2332,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2344,7 +2346,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2353,7 +2355,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2425,9 +2427,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2456,7 +2458,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2508,10 +2510,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2534,12 +2536,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2567,7 +2569,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2639,7 +2641,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2653,7 +2655,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2697,19 +2699,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) @@ -2733,7 +2735,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2750,7 +2752,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2772,7 +2774,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) @@ -2784,8 +2786,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2804,19 +2806,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) @@ -2846,10 +2848,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -2876,7 +2878,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2898,7 +2900,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2907,7 +2909,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2922,10 +2924,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2970,7 +2972,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2987,7 +2989,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":440,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":440,"kind":"text"}]},{"pos":440,"end":474,"kind":"text"}],"mapHash":"29274327775-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"8728936477-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":440,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":440,"kind":"text"}]},{"pos":440,"end":474,"kind":"text"}],"mapHash":"29274327775-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"8728936477-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3169,7 +3171,7 @@ declare var c: C; "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3192,6 +3194,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5153 + "size": 5148 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js index 4b0e46c9889..7155c7d4c59 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "incremental": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "incremental": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -195,8 +197,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -219,12 +221,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -247,7 +249,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -256,9 +258,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -302,19 +304,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -338,7 +340,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -355,7 +357,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -377,7 +379,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -389,8 +391,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -409,19 +411,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -451,10 +453,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -481,7 +483,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -503,7 +505,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -512,7 +514,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -527,10 +529,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -617,8 +619,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -645,7 +647,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -690,7 +692,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -705,7 +707,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -716,8 +718,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -735,8 +737,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -750,7 +752,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -765,7 +767,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -782,8 +784,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -822,10 +824,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -849,12 +851,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -926,7 +928,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -940,7 +942,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -949,7 +951,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1020,9 +1022,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1051,7 +1053,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1104,7 +1106,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1119,7 +1121,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1130,8 +1132,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1149,8 +1151,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1164,7 +1166,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1179,7 +1181,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1195,8 +1197,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1224,8 +1226,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1234,8 +1236,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1248,12 +1250,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1276,7 +1278,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1285,9 +1287,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1365,10 +1367,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1392,12 +1394,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1469,7 +1471,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1483,7 +1485,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1499,19 +1501,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1535,7 +1537,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1552,7 +1554,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1574,7 +1576,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1586,8 +1588,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1606,19 +1608,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1648,10 +1650,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1678,7 +1680,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1700,7 +1702,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1709,7 +1711,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1724,10 +1726,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1772,7 +1774,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1789,7 +1791,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1957,7 +1959,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1977,6 +1979,6 @@ declare var c: C; } }, "version": "FakeTSVersion", - "size": 4095 + "size": 4090 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js index 03189ba498a..fdfe1a2678d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -195,8 +197,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -219,12 +221,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -247,7 +249,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -256,9 +258,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -302,19 +304,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -338,7 +340,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -355,7 +357,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -377,7 +379,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -389,8 +391,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -409,19 +411,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -451,10 +453,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -481,7 +483,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -503,7 +505,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -512,7 +514,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -527,10 +529,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -617,8 +619,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -645,7 +647,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -690,7 +692,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -705,7 +707,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -716,8 +718,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -735,8 +737,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -750,7 +752,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -765,7 +767,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -782,8 +784,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -822,10 +824,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -849,12 +851,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -926,7 +928,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -940,7 +942,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -949,7 +951,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1020,9 +1022,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1051,7 +1053,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1104,7 +1106,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1119,7 +1121,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1130,8 +1132,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1149,8 +1151,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1164,7 +1166,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1179,7 +1181,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1195,8 +1197,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1224,8 +1226,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1234,8 +1236,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1248,12 +1250,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1276,7 +1278,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1285,9 +1287,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1365,10 +1367,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1392,12 +1394,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1469,7 +1471,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1483,7 +1485,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1499,19 +1501,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1535,7 +1537,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1552,7 +1554,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1574,7 +1576,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1586,8 +1588,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1606,19 +1608,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1648,10 +1650,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1678,7 +1680,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1700,7 +1702,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1709,7 +1711,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1724,10 +1726,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1772,7 +1774,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1793,37 +1795,37 @@ sourceFile:../../third_part1.ts Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:45 AM] Projects in this build: +[12:00:57 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:46 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:47 AM] Building project '/src/first/tsconfig.json'... +[12:00:59 AM] Building project '/src/first/tsconfig.json'... -[12:00:55 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:56 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:57 AM] Building project '/src/third/tsconfig.json'... +[12:01:09 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1861,10 +1863,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1887,12 +1889,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1920,7 +1922,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -1992,7 +1994,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2006,7 +2008,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2015,7 +2017,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2087,9 +2089,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2118,7 +2120,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -2172,10 +2174,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2198,12 +2200,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2231,7 +2233,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2303,7 +2305,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2317,7 +2319,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2333,19 +2335,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -2369,7 +2371,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2386,7 +2388,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2408,7 +2410,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -2420,8 +2422,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2440,19 +2442,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -2482,10 +2484,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -2512,7 +2514,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2534,7 +2536,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -2543,7 +2545,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -2558,10 +2560,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -2606,7 +2608,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js index 46365a1ac07..f35d5e8b465 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js @@ -16,141 +16,143 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", "composite": true, - "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -196,8 +198,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -206,8 +208,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -220,12 +222,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -248,7 +250,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -257,9 +259,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -303,19 +305,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -339,7 +341,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -356,7 +358,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -378,7 +380,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -390,8 +392,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -410,19 +412,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -452,10 +454,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -482,7 +484,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -504,7 +506,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -513,7 +515,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -528,10 +530,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -541,7 +543,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -618,8 +620,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -646,7 +648,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -691,7 +693,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -706,7 +708,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -717,8 +719,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -736,8 +738,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -751,7 +753,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -766,7 +768,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -783,8 +785,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -823,10 +825,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -850,12 +852,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -927,7 +929,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -941,7 +943,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -950,7 +952,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1021,9 +1023,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1052,7 +1054,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1105,7 +1107,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1120,7 +1122,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1131,8 +1133,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1150,8 +1152,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1165,7 +1167,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1180,7 +1182,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1196,8 +1198,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1225,8 +1227,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1235,8 +1237,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1249,12 +1251,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1277,7 +1279,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1286,9 +1288,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1366,10 +1368,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1393,12 +1395,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1470,7 +1472,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1484,7 +1486,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1500,19 +1502,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1536,7 +1538,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1553,7 +1555,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1575,7 +1577,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1587,8 +1589,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1607,19 +1609,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1649,10 +1651,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1679,7 +1681,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1701,7 +1703,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1710,7 +1712,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1725,10 +1727,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1773,7 +1775,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1790,7 +1792,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1,"tsBuildInfoFile":"./third.tsbuildinfo"},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1,"tsBuildInfoFile":"./third.tsbuildinfo"},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third.tsbuildinfo.baseline.txt] ====================================================================== @@ -1958,7 +1960,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1982,6 +1984,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4505 + "size": 4500 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js index d3d36cacbea..e2b0521b36b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js @@ -16,138 +16,140 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -193,8 +195,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -203,8 +205,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -217,12 +219,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -245,7 +247,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -254,9 +256,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -300,19 +302,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -336,7 +338,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -353,7 +355,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -375,7 +377,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -387,8 +389,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -407,19 +409,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -449,10 +451,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -479,7 +481,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -501,7 +503,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -510,7 +512,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -525,10 +527,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -538,7 +540,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -615,8 +617,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -643,7 +645,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -688,7 +690,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -703,7 +705,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -714,8 +716,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -733,8 +735,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -748,7 +750,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -763,7 +765,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -780,8 +782,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -820,10 +822,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -847,12 +849,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -924,7 +926,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -938,7 +940,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -947,7 +949,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1018,9 +1020,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1049,7 +1051,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1101,7 +1103,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1116,7 +1118,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1127,8 +1129,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1146,8 +1148,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1161,7 +1163,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1176,7 +1178,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1192,8 +1194,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1221,8 +1223,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1231,8 +1233,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1245,12 +1247,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1273,7 +1275,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1282,9 +1284,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1335,10 +1337,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1362,12 +1364,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1439,7 +1441,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1453,7 +1455,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1469,19 +1471,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1505,7 +1507,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1522,7 +1524,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1544,7 +1546,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1556,8 +1558,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1576,19 +1578,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1618,10 +1620,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1648,7 +1650,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1670,7 +1672,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1679,7 +1681,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1694,10 +1696,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1887,37 +1889,37 @@ declare class C { Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:49 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:51 AM] Building project '/src/first/tsconfig.json'... +[12:01:03 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1955,10 +1957,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1981,12 +1983,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2014,7 +2016,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2086,7 +2088,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2100,7 +2102,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2109,7 +2111,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2181,9 +2183,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2212,7 +2214,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2261,10 +2263,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2287,12 +2289,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2320,7 +2322,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2392,7 +2394,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2406,7 +2408,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2422,19 +2424,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -2458,7 +2460,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2475,7 +2477,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2497,7 +2499,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -2509,8 +2511,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2529,19 +2531,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -2571,10 +2573,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -2601,7 +2603,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2623,7 +2625,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -2632,7 +2634,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -2647,10 +2649,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js index 248f1737ce5..67f74ccf04d 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","composite":true}} +{ + "compilerOptions": { + "outDir": "dist", + "composite": true + } +} diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js index ca9532c2e22..35f5d206412 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist"}} +{ + "compilerOptions": { + "outDir": "dist" + } +} diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js index ee2c88d99f7..8bb04bcb3e1 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js @@ -19,7 +19,13 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src","composite":true}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "composite": true + } +} //// [/src/types/type.ts] export type t = string; diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js index 84c19e7d34b..d1f6f432d1e 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src"}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + } +} //// [/src/types/type.ts] export type t = string; diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js index 8ce30996bbd..57f1dc17cf2 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src"}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + } +} diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js index e3cf06b0169..c570855892f 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js @@ -16,42 +16,45 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.json] -{ - "extends": "../../tsconfig.base.json", - "references": [ - { "path": "../other" } - ] +{ + "extends": "../../tsconfig.base.json", + "references": [ + { + "path": "../other" + } + ] } //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.json] -{ - "extends": "../../tsconfig.base.json" +{ + "extends": "../../tsconfig.base.json" } //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "./src/", + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } @@ -84,7 +87,7 @@ exports.b = 0; //// [/src/dist/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -111,18 +114,18 @@ exports.b = 0; }, "../../src/main/b.ts": { "original": { - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, "../../src/main/a.ts": { "original": { - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" }, - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" } }, @@ -157,7 +160,7 @@ exports.b = 0; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1091 + "size": 1089 } //// [/src/dist/other/other.d.ts] @@ -172,7 +175,7 @@ exports.Other = 0; //// [/src/dist/other/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/other/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -193,10 +196,10 @@ exports.Other = 0; }, "../../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -222,6 +225,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 950 + "size": 948 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js index 0831e9324fb..4818c4cc4ab 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js @@ -16,64 +16,71 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.json] -{ - "extends": "../../tsconfig.base.json", - "references": [ - { "path": "../other" } - ] +{ + "extends": "../../tsconfig.base.json", + "references": [ + { + "path": "../other" + } + ] } //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.json] -{ - "extends": "../../tsconfig.base.json" +{ + "extends": "../../tsconfig.base.json" } //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } Output:: /lib/tsc --b /src/src/main --verbose -[12:00:07 AM] Projects in this build: +[12:00:16 AM] Projects in this build: * src/src/other/tsconfig.json * src/src/main/tsconfig.json -[12:00:08 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist +[12:00:17 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/src/other/tsconfig.json'... +[12:00:18 AM] Building project '/src/src/other/tsconfig.json'... -[12:00:16 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. +[12:00:25 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. -[12:00:17 AM] Building project '/src/src/main/tsconfig.json'... +[12:00:26 AM] Building project '/src/src/main/tsconfig.json'... src/src/main/tsconfig.json:4:5 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' -4 { "path": "../other" } -   ~~~~~~~~~~~~~~~~~~~~~~ +4 { +   ~ +5 "path": "../other" +  ~~~~~~~~~~~~~~~~~~~~~~~~ +6 } +  ~~~~~ Found 1 error. @@ -93,7 +100,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -114,10 +121,10 @@ exports.Other = 0; }, "../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -142,6 +149,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 922 + "size": 920 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js index 94b95e7dc7c..d3e7a8cc918 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js @@ -16,57 +16,77 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"},"references":[{"path":"../other"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + }, + "references": [ + { + "path": "../other" + } + ] +} //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + } +} //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "./src/", + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } Output:: /lib/tsc --b /src/src/main --verbose -[12:00:08 AM] Projects in this build: +[12:00:17 AM] Projects in this build: * src/src/other/tsconfig.json * src/src/main/tsconfig.json -[12:00:09 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/src/other/tsconfig.json'... +[12:00:19 AM] Building project '/src/src/other/tsconfig.json'... -[12:00:17 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. +[12:00:26 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. -[12:00:18 AM] Building project '/src/src/main/tsconfig.json'... +[12:00:27 AM] Building project '/src/src/main/tsconfig.json'... -src/src/main/tsconfig.json:1:76 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' +src/src/main/tsconfig.json:7:5 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' -1 {"compilerOptions":{"composite":true,"outDir":"../../dist/"},"references":[{"path":"../other"}]} -   ~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../other" +  ~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. @@ -86,7 +106,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,10 +127,10 @@ exports.Other = 0; }, "../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -133,6 +153,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 876 + "size": 874 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js index c4687d08f77..7c1734fc793 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js @@ -16,52 +16,68 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.main.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"},"references":[{"path":"../other/tsconfig.other.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + }, + "references": [ + { + "path": "../other/tsconfig.other.json" + } + ] +} //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.other.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + } +} //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "./src/", + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } Output:: /lib/tsc --b /src/src/main/tsconfig.main.json --verbose -[12:00:10 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/src/other/tsconfig.other.json * src/src/main/tsconfig.main.json -[12:00:11 AM] Project 'src/src/other/tsconfig.other.json' is out of date because output file 'src/dist/tsconfig.other.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/src/other/tsconfig.other.json' is out of date because output file 'src/dist/tsconfig.other.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/src/other/tsconfig.other.json'... +[12:00:21 AM] Building project '/src/src/other/tsconfig.other.json'... -[12:00:19 AM] Project 'src/src/main/tsconfig.main.json' is out of date because output file 'src/dist/tsconfig.main.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/src/main/tsconfig.main.json' is out of date because output file 'src/dist/tsconfig.main.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/src/main/tsconfig.main.json'... +[12:00:29 AM] Building project '/src/src/main/tsconfig.main.json'... exitCode:: ExitStatus.Success @@ -100,7 +116,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.main.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.main.tsbuildinfo.readable.baseline.txt] { @@ -127,18 +143,18 @@ exports.Other = 0; }, "../src/main/b.ts": { "original": { - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, "../src/main/a.ts": { "original": { - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" }, - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" } }, @@ -170,11 +186,11 @@ exports.Other = 0; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1014 + "size": 1012 } //// [/src/dist/tsconfig.other.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.other.tsbuildinfo.readable.baseline.txt] { @@ -195,10 +211,10 @@ exports.Other = 0; }, "../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -221,6 +237,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 876 + "size": 874 } diff --git a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js index 780420f72fa..41611dc19da 100644 --- a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js +++ b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js @@ -22,10 +22,24 @@ export enum e { } export function f2() { } // trailing //// [/src/shared/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/src/webpack/index.ts] export function f2() { } @@ -35,7 +49,16 @@ export enum e2 { } export function f22() { } // trailing //// [/src/webpack/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../shared/tsconfig.json"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} @@ -55,8 +78,13 @@ Output:: [12:00:22 AM] Building project '/src/webpack/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/shared/index.ts"] -Program options: {"composite":true,"configFilePath":"/src/shared/tsconfig.json"} +Program root files: [ + "/src/shared/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/shared/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -70,8 +98,13 @@ Shape signatures in builder refreshed for:: /lib/lib.d.ts (used version) /src/shared/index.ts (used version) -Program root files: ["/src/webpack/index.ts"] -Program options: {"composite":true,"configFilePath":"/src/webpack/tsconfig.json"} +Program root files: [ + "/src/webpack/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/webpack/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js index 64f6b164c26..ebe6d8ab6a3 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js index 34859f3f5ec..d1e74c16725 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } @@ -90,7 +90,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -116,8 +116,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -160,6 +160,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1122 + "size": 1123 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js index 203f18cfb6c..40078a0a727 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js @@ -22,51 +22,51 @@ console.log(foo); //// [/src/main/tsconfig.json] { - "extends": "../tsconfig.json", - "include": [ - "./**/*.ts" - ], - "references": [ - { - "path": "../strings/tsconfig.json" - } - ] + "extends": "../tsconfig.json", + "include": [ + "./**/*.ts" + ], + "references": [ + { + "path": "../strings/tsconfig.json" + } + ] } //// [/src/strings/foo.json] { - "foo": "bar baz" + "foo": "bar baz" } //// [/src/strings/tsconfig.json] { - "extends": "../tsconfig.json", - "include": [ - "foo.json" - ], - "references": [] + "extends": "../tsconfig.json", + "include": [ + "foo.json" + ], + "references": [] } //// [/src/tsconfig.json] { - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "rootDir": "./", - "composite": true, - "resolveJsonModule": true, - "strict": true, - "esModuleInterop": true - }, - "references": [ - { - "path": "./strings/tsconfig.json" + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "rootDir": "./", + "composite": true, + "resolveJsonModule": true, + "strict": true, + "esModuleInterop": true }, - { - "path": "./main/tsconfig.json" - } - ], - "files": [] + "references": [ + { + "path": "./strings/tsconfig.json" + }, + { + "path": "./main/tsconfig.json" + } + ], + "files": [] } @@ -111,7 +111,7 @@ console.log(foo_json_1.foo); //// [/src/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5425277207-{\n \"foo\": \"bar baz\"\n}",{"version":"-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-6280880055-{\n \"foo\": \"bar baz\"\n}",{"version":"-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -137,8 +137,8 @@ console.log(foo_json_1.foo); "affectsGlobalScope": true }, "../strings/foo.json": { - "version": "-5425277207-{\n \"foo\": \"bar baz\"\n}", - "signature": "-5425277207-{\n \"foo\": \"bar baz\"\n}" + "version": "-6280880055-{\n \"foo\": \"bar baz\"\n}", + "signature": "-6280880055-{\n \"foo\": \"bar baz\"\n}" }, "./index.ts": { "original": { @@ -177,11 +177,11 @@ console.log(foo_json_1.foo); "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1030 + "size": 1031 } //// [/src/strings/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./foo.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5425277207-{\n \"foo\": \"bar baz\"\n}"],"root":[2],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./foo.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-6280880055-{\n \"foo\": \"bar baz\"\n}"],"root":[2],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/strings/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -201,8 +201,8 @@ console.log(foo_json_1.foo); "affectsGlobalScope": true }, "./foo.json": { - "version": "-5425277207-{\n \"foo\": \"bar baz\"\n}", - "signature": "-5425277207-{\n \"foo\": \"bar baz\"\n}" + "version": "-6280880055-{\n \"foo\": \"bar baz\"\n}", + "signature": "-6280880055-{\n \"foo\": \"bar baz\"\n}" } }, "root": [ @@ -227,7 +227,7 @@ console.log(foo_json_1.foo); ] }, "version": "FakeTSVersion", - "size": 814 + "size": 815 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js index e698ee8fbe2..f414117ac9f 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,21 +27,21 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/hello.json" - ], - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/hello.json" + ], + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js index fd7898bd1d3..12d2be187d9 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,22 +27,22 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/hello.json" - ], - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/hello.json" + ], + "include": [ + "src/**/*" + ] } @@ -92,7 +92,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,8 +118,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -162,6 +162,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1122 + "size": 1123 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js index 141fdd0a23e..11024873616 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/index.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js index 54837b6d576..9c45855f4c3 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/index.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } @@ -90,7 +90,7 @@ exports.default = index_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -116,8 +116,8 @@ exports.default = index_json_1.default.hello; "affectsGlobalScope": true }, "../src/index.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -160,6 +160,6 @@ exports.default = index_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1123 + "size": 1124 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js index 309cf5a7e6f..52bbbb9f24e 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js index 92dc7d0ebdd..c02705c73c7 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } @@ -90,7 +90,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -116,8 +116,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -160,6 +160,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1122 + "size": 1123 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js index c095c98cd2d..ec6f1208701 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js index 9e0d244c4bc..3a62386d72b 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "rootDir": "src" - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "rootDir": "src" + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js index 84471735a90..d56af724d3d 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "rootDir": "src" - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "rootDir": "src" + }, + "include": [ + "src/**/*" + ] } @@ -82,7 +82,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./dist/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./dist/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -108,8 +108,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "./hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "./src/index.ts": { "original": { @@ -149,6 +149,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./dist/index.d.ts" }, "version": "FakeTSVersion", - "size": 1136 + "size": 1137 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js index 7d6cef6f56c..51e4c91fada 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js @@ -2,7 +2,7 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/hello.json] { - "hello": "world" + "hello": "world" } //// [/lib/lib.d.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js index 951aaca3be9..45ecde39328 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js @@ -2,7 +2,7 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/hello.json] { - "hello": "world" + "hello": "world" } //// [/lib/lib.d.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } @@ -81,7 +81,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,8 +107,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../../hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -147,6 +147,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1124 + "size": 1125 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js index 2508e3a4411..1f06e58f574 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,17 +27,17 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js index 7a4b6eb25e4..64149bb8524 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } @@ -80,7 +80,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,8 +106,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "./src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "./src/index.ts": { "original": { @@ -145,6 +145,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1101 + "size": 1102 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js index adedac4ecd1..cd9f6ecf0ad 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } @@ -72,7 +72,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}","-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n"],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}","-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n"],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[3]},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,8 +98,8 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", @@ -150,6 +150,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 1040 + "size": 1041 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js index 514c4e98685..bcbf17acf26 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js index 56f5710b96c..999d5e70fd7 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,21 +27,21 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } @@ -95,7 +95,7 @@ exports.default = hello_json_1.default.hello; {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAgC;AAChC,kBAAe,oBAAK,CAAC,KAAK,CAAA"} //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -121,8 +121,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -166,7 +166,7 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1139 + "size": 1140 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js index a483868dcc2..38be4f67bbc 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js index db28d784ee0..f457e09ff94 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } @@ -82,7 +82,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -108,8 +108,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "./src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "./src/index.ts": { "original": { @@ -151,7 +151,7 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1103 + "size": 1104 } diff --git a/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js b/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js index 9187f6ec221..68e417f6b37 100644 --- a/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js +++ b/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js @@ -52,7 +52,17 @@ export const random = "hello"; export const random = "hello"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["file*.ts","nonconsecutive*.ts","asArray*.ts","anotherNonConsecutive.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "file*.ts", + "nonconsecutive*.ts", + "asArray*.ts", + "anotherNonConsecutive.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js index f23344c653b..8aa2b16ebb5 100644 --- a/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js @@ -27,7 +27,14 @@ export const y = "world"; export const random = "world"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["file*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "file*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js index 0bb551467ba..f2ad83d3866 100644 --- a/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js @@ -28,7 +28,14 @@ export const y = "world"; export const y = "world"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js index f1c8511fb3f..adf865e0995 100644 --- a/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js @@ -22,7 +22,14 @@ export const x = "hello"; export const y = "world"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js index 03edee9a789..6461b247c62 100644 --- a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js +++ b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,130 +15,116 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --force +/a/lib/tsc --b tests --force exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -149,20 +135,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -173,27 +159,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -219,7 +205,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -227,16 +213,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -249,17 +235,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -274,7 +260,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -293,10 +279,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -324,7 +310,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -332,15 +318,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -352,14 +338,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -376,7 +362,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -399,10 +385,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -436,7 +422,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -445,7 +431,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } @@ -455,24 +441,24 @@ Input:: Output:: -/lib/tsc --b /src/tests --force +/a/lib/tsc --b tests --force exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] file written with same contents -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/anotherModule.js] file written with same contents -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/logic/index.d.ts] file written with same contents -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.js] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js index fdab2843fa1..8de489d0a43 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js +++ b/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,103 +14,89 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --build /src/logic2/tsconfig.json +/a/lib/tsc --build logic2/tsconfig.json exitCode:: ExitStatus.InvalidProject_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js index c23f728c6db..fc817710900 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,142 +14,128 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --build /src/logic2/tsconfig.json -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json +/a/lib/tsc --build logic2/tsconfig.json +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -160,20 +146,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -184,27 +170,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -230,7 +216,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -238,16 +224,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -260,17 +246,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -285,7 +271,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -304,10 +290,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -335,7 +321,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -343,6 +329,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js index 252801aebf1..8ce0ee33844 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js @@ -1,80 +1,6 @@ Input:: Output:: -//// [/user/username/projects/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/user/username/projects/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/core/some_decl.d.ts] -declare const dts: any; - - -//// [/user/username/projects/core/anotherModule.ts] -export const World = "hello"; - - -//// [/user/username/projects/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/user/username/projects/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - //// [/a/lib/lib.d.ts] /// interface Boolean {} @@ -88,25 +14,107 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } +} -Project Result:: {"project":"/user/username/projects/core/tsconfig.json","result":0} +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + + +Project Result:: { + "project": "/user/username/projects/sample1/core/tsconfig.json", + "result": 0 +} Output:: -//// [/user/username/projects/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/user/username/projects/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -117,29 +125,29 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/user/username/projects/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -150,27 +158,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -196,7 +204,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -204,17 +212,20 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1405 + "size": 1394 } -Project Result:: {"project":"/user/username/projects/logic/tsconfig.json","result":0} +Project Result:: { + "project": "/user/username/projects/sample1/logic/tsconfig.json", + "result": 0 +} Output:: -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -227,20 +238,20 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -255,7 +266,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -274,10 +285,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -305,7 +316,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -313,14 +324,17 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1440 + "size": 1431 } -Project Result:: {"project":"/user/username/projects/tests/tsconfig.json","result":0} +Project Result:: { + "project": "/user/username/projects/sample1/tests/tsconfig.json", + "result": 0 +} Output:: -//// [/user/username/projects/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -332,19 +346,19 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/user/username/projects/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -361,7 +375,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -384,10 +398,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -421,7 +435,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -430,7 +444,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1585 + "size": 1573 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js index 692c34f8651..6c48bbda69c 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,118 +15,115 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"sourceMap":true,"declarationDir":"out/decls"},"references":[{"path":"../core"}]} - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "declarationDir": "out/decls" + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -export function run() { - console.log(logic.getSecondsInDay()); + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests +/a/lib/tsc --b tests exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -137,20 +134,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,27 +158,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -207,7 +204,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -215,10 +212,10 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -231,23 +228,23 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/out/decls/index.d.ts] +//// [/user/username/projects/sample1/logic/out/decls/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./out/decls/index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./out/decls/index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -262,7 +259,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,10 +278,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -312,7 +309,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -320,15 +317,15 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./out/decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1526 + "size": 1525 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -340,14 +337,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/out/decls/index.d.ts", @@ -364,7 +361,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -387,10 +384,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -424,7 +421,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/out/decls/index.d.ts", @@ -433,6 +430,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1667 + "size": 1663 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js index b1b46f9d16e..96b4578700c 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,118 +15,115 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"sourceMap":true,"outDir":"outDir"},"references":[{"path":"../core"}]} - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "outDir": "outDir" + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -export function run() { - console.log(logic.getSecondsInDay()); + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests +/a/lib/tsc --b tests exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -137,20 +134,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,27 +158,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -207,7 +204,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -215,16 +212,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/outDir/index.d.ts] +//// [/user/username/projects/sample1/logic/outDir/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/outDir/index.js] +//// [/user/username/projects/sample1/logic/outDir/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -237,17 +234,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/outDir/index.js.map] +//// [/user/username/projects/sample1/logic/outDir/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/index.d.ts", "../../core/anothermodule.d.ts", "../index.ts" @@ -262,7 +259,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,10 +278,10 @@ exports.m = mod; }, "../index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -312,7 +309,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/anothermodule.d.ts", "../../core/index.d.ts", "../index.ts" @@ -320,15 +317,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1509 + "size": 1508 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -340,14 +337,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/outdir/index.d.ts", @@ -364,7 +361,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -387,10 +384,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -424,7 +421,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/outdir/index.d.ts", @@ -433,6 +430,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1664 + "size": 1660 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js index 4c9cb99f337..63073d2ab2c 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,137 +15,123 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/core --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/anotherModule.js' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; diff --git a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js index df145d93c3c..643ebad67f1 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,130 +14,116 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --build /src/logic/tsconfig.json +/a/lib/tsc --build logic/tsconfig.json exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -148,20 +134,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -172,27 +158,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -218,7 +204,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -226,16 +212,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -248,17 +234,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -273,7 +259,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -292,10 +278,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -323,7 +309,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -331,6 +317,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } diff --git a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js index 3125fcae76b..de845ec7743 100644 --- a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js +++ b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,42 +424,23 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:43 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:28 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:44 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:29 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:45 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success @@ -463,49 +449,49 @@ exitCode:: ExitStatus.Success Change:: Only builds the leaf node project Input:: -//// [/src/tests/index.ts] +//// [/user/username/projects/sample1/tests/index.ts] const m = 10; Output:: -/lib/tsc --b /src/tests --verbose -[12:00:31 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:47 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:32 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:48 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:33 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:49 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:34 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/index.ts' +[12:00:50 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/index.ts' -[12:00:35 AM] Building project '/src/tests/tsconfig.json'... +[12:00:51 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] declare const m = 10; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] var m = 10; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -539,53 +525,53 @@ var m = 10; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 896 + "size": 907 } Change:: Detects type-only changes in upstream projects Input:: -//// [/src/core/index.ts] -export const someString: string = "WELCOME PLANET"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "WELCOME PLANET"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:42 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:58 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:43 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:59 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:44 AM] Building project '/src/core/tsconfig.json'... +[12:01:00 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:50 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:06 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:51 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:07 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:54 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:10 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:55 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:11 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAyB,CAAC;AACnD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -596,20 +582,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -620,27 +606,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -666,7 +652,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -674,16 +660,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1479 + "size": 1477 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: rebuilds when tsconfig changes Input:: -//// [/lib/lib.es2020.full.d.ts] +//// [/a/lib/lib.es2020.full.d.ts] /// interface Boolean {} interface Function {} @@ -698,57 +684,63 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, "target": "es2020", - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, "target": "es2020", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:01:00 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:16 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:01 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:17 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:02 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:18 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:03 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' +[12:01:19 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' -[12:01:04 AM] Building project '/src/tests/tsconfig.json'... +[12:01:20 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] const m = 10; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.es2020.full.d.ts", + "../../../../../a/lib/lib.es2020.full.d.ts", "./index.ts" ], "fileInfos": { - "../../lib/lib.es2020.full.d.ts": { + "../../../../../a/lib/lib.es2020.full.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -783,12 +775,12 @@ const m = 10; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.es2020.full.d.ts", + "../../../../../a/lib/lib.es2020.full.d.ts", "./index.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 919 + "size": 930 } diff --git a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js index e6c90a30f05..ec897ec69b1 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js +++ b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,40 +51,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -96,27 +94,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -142,7 +140,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -150,16 +148,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -172,41 +170,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -221,7 +220,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -240,10 +239,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -271,7 +270,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -279,15 +278,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -299,40 +298,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,32 +423,13 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/logic2 --clean +/a/lib/tsc --b logic2 --clean exitCode:: ExitStatus.InvalidProject_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js index b667a0dbe56..5f477fd0456 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,40 +51,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -96,27 +94,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -142,7 +140,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -150,16 +148,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -172,41 +170,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -221,7 +220,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -240,10 +239,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -271,7 +270,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -279,15 +278,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -299,40 +298,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,32 +423,13 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/logic --clean +/a/lib/tsc --b logic --clean exitCode:: ExitStatus.InvalidProject_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js index 0cfcde24865..ec5944b41a6 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,124 +15,110 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.muitply(); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.muitply(); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:35 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -src/logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/src/core/index")'. +logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. 3 return c.muitply();    ~~~~~~~ -[12:00:24 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors +[12:00:40 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' has errors -[12:00:25 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors +[12:00:41 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/logic' has errors Found 1 error. @@ -140,30 +126,30 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -174,20 +160,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -198,27 +184,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -244,7 +230,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -252,17 +238,17 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-6409874073-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.muitply();\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":87,"length":7,"code":2339,"category":1,"messageText":"Property 'muitply' does not exist on type 'typeof import(\"/src/core/index\")'."}]]],"affectedFilesPendingEmit":[4],"emitSignatures":[4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n"],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":85,"length":7,"code":2339,"category":1,"messageText":"Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'."}]]],"affectedFilesPendingEmit":[4],"emitSignatures":[4]},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -274,7 +260,7 @@ exports.multiply = multiply; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -292,8 +278,8 @@ exports.multiply = multiply; "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { - "version": "-6409874073-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.muitply();\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6409874073-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.muitply();\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + "version": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", + "signature": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" } }, "root": [ @@ -321,7 +307,7 @@ exports.multiply = multiply; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", [ @@ -329,11 +315,11 @@ exports.multiply = multiply; [ { "file": "./index.ts", - "start": 87, + "start": 85, "length": 7, "code": 2339, "category": 1, - "messageText": "Property 'muitply' does not exist on type 'typeof import(\"/src/core/index\")'." + "messageText": "Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'." } ] ] @@ -349,7 +335,7 @@ exports.multiply = multiply; ] }, "version": "FakeTSVersion", - "size": 1509 + "size": 1536 } @@ -359,26 +345,26 @@ Input:: Output:: -/lib/tsc --b /src/tests --verbose -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:43 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:28 AM] Project 'src/logic/tsconfig.json' is out of date because buildinfo file 'src/logic/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:44 AM] Project 'logic/tsconfig.json' is out of date because buildinfo file 'logic/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:29 AM] Building project '/src/logic/tsconfig.json'... +[12:00:45 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -src/logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/src/core/index")'. +logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. 3 return c.muitply();    ~~~~~~~ -[12:00:30 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors +[12:00:46 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' has errors -[12:00:31 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors +[12:00:47 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/logic' has errors Found 1 error. diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js index ca9c7c40b88..d9d2c36e34d 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,36 +51,35 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] {"version":"FakeTSVersion"} -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -94,42 +92,43 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/logic/tsconfig.tsbuildinfo] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] {"version":"FakeTSVersion"} -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -141,68 +140,55 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] {"version":"FakeTSVersion"} -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:23 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:39 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:24 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:40 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:25 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:41 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:26 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:42 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js index 433d32c590c..c88ea5a2c25 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,108 +15,94 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --dry -[12:00:06 AM] A non-dry build would build project '/src/core/tsconfig.json' +/a/lib/tsc --b tests --dry +[12:00:22 AM] A non-dry build would build project '/user/username/projects/sample1/core/tsconfig.json' -[12:00:07 AM] A non-dry build would build project '/src/logic/tsconfig.json' +[12:00:23 AM] A non-dry build would build project '/user/username/projects/sample1/logic/tsconfig.json' -[12:00:08 AM] A non-dry build would build project '/src/tests/tsconfig.json' +[12:00:24 AM] A non-dry build would build project '/user/username/projects/sample1/tests/tsconfig.json' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/explainFiles.js b/tests/baselines/reference/tsbuild/sample1/explainFiles.js index e11b524bd7d..382887156c5 100644 --- a/tests/baselines/reference/tsbuild/sample1/explainFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/explainFiles.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,179 +15,165 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/anotherModule.ts +core/anotherModule.ts Matched by default include pattern '**/*' -src/core/index.ts +core/index.ts Matched by default include pattern '**/*' -src/core/some_decl.d.ts +core/some_decl.d.ts Matched by default include pattern '**/*' -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.ts +core/index.d.ts + Imported via '../core/index' from file 'logic/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.ts Matched by default include pattern '**/*' -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.d.ts' - Imported via '../core/anotherModule' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.d.ts - Imported via '../logic/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/logic/index.ts' -src/tests/index.ts +core/index.d.ts + Imported via '../core/index' from file 'tests/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.d.ts' + Imported via '../core/anotherModule' from file 'tests/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.d.ts + Imported via '../logic/index' from file 'tests/index.ts' + File is output of project reference source 'logic/index.ts' +tests/index.ts Part of 'files' list in tsconfig.json exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -198,20 +184,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -222,27 +208,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -268,7 +254,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -276,16 +262,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -298,17 +284,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -323,7 +309,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -342,10 +328,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -373,7 +359,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -381,15 +367,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -401,14 +387,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -425,7 +411,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -448,10 +434,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -485,7 +471,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -494,77 +480,77 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:00:34 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:00:50 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:35 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:51 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:36 AM] Building project '/src/core/tsconfig.json'... +[12:00:52 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/anotherModule.ts +core/anotherModule.ts Matched by default include pattern '**/*' -src/core/index.ts +core/index.ts Matched by default include pattern '**/*' -src/core/some_decl.d.ts +core/some_decl.d.ts Matched by default include pattern '**/*' -[12:00:43 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:00:59 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:44 AM] Building project '/src/logic/tsconfig.json'... +[12:01:00 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.ts +core/index.d.ts + Imported via '../core/index' from file 'logic/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.ts Matched by default include pattern '**/*' -[12:00:50 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:01:06 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:51 AM] Building project '/src/tests/tsconfig.json'... +[12:01:07 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.d.ts' - Imported via '../core/anotherModule' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.d.ts - Imported via '../logic/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/logic/index.ts' -src/tests/index.ts +core/index.d.ts + Imported via '../core/index' from file 'tests/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.d.ts' + Imported via '../core/anotherModule' from file 'tests/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.d.ts + Imported via '../logic/index' from file 'tests/index.ts' + File is output of project reference source 'logic/index.ts' +tests/index.ts Part of 'files' list in tsconfig.json exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -572,10 +558,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -592,20 +578,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -616,27 +602,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -662,7 +648,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -670,19 +656,19 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -697,7 +683,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -716,10 +702,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -747,7 +733,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -755,18 +741,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -783,7 +769,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -806,10 +792,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -843,7 +829,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -852,17 +838,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -870,37 +856,37 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:00:57 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:01:13 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:58 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:01:14 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:59 AM] Building project '/src/core/tsconfig.json'... +[12:01:15 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/anotherModule.ts +core/anotherModule.ts Matched by default include pattern '**/*' -src/core/index.ts +core/index.ts Matched by default include pattern '**/*' -src/core/some_decl.d.ts +core/some_decl.d.ts Matched by default include pattern '**/*' -[12:01:05 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:21 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:06 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:22 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:09 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:25 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:10 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:26 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -922,20 +908,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -946,27 +932,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -992,7 +978,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -1000,11 +986,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -1012,17 +998,17 @@ Input:: Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:01:13 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:01:29 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:14 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:30 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:15 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:31 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:16 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:01:32 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js index f533a28026a..28a924969a0 100644 --- a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js +++ b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,37 +424,18 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --dry -[12:00:26 AM] Project '/src/core/tsconfig.json' is up to date +/a/lib/tsc --b tests --dry +[12:00:42 AM] Project '/user/username/projects/sample1/core/tsconfig.json' is up to date -[12:00:27 AM] Project '/src/logic/tsconfig.json' is up to date +[12:00:43 AM] Project '/user/username/projects/sample1/logic/tsconfig.json' is up to date -[12:00:28 AM] Project '/src/tests/tsconfig.json' is up to date +[12:00:44 AM] Project '/user/username/projects/sample1/tests/tsconfig.json' is up to date exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js index e65986f9f53..a3ed2405df3 100644 --- a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js +++ b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js @@ -1,80 +1,6 @@ Build of project Output:: -//// [/user/username/projects/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/user/username/projects/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/core/some_decl.d.ts] -declare const dts: any; - - -//// [/user/username/projects/core/anotherModule.ts] -export const World = "hello"; - - -//// [/user/username/projects/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/user/username/projects/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - //// [/a/lib/lib.d.ts] /// interface Boolean {} @@ -88,21 +14,100 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } -//// [/user/username/projects/core/anotherModule.js] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/user/username/projects/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -113,29 +118,29 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/user/username/projects/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -146,27 +151,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -192,7 +197,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -200,13 +205,13 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1405 + "size": 1394 } -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -219,20 +224,20 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -247,7 +252,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -266,10 +271,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -297,7 +302,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -305,10 +310,10 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1440 + "size": 1431 } -//// [/user/username/projects/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -320,19 +325,19 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/user/username/projects/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,7 +423,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1585 + "size": 1573 } @@ -426,19 +431,19 @@ Project should still be upto date: UpToDate non Dts change to logic:: After rebuilding logicConfig Output:: -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {} -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,SAAS,GAAG,KAAI,CAAC"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -452,14 +457,14 @@ exports.m = mod; function foo() { } //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -474,7 +479,7 @@ function foo() { } ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -493,10 +498,10 @@ function foo() { } }, "./index.ts": { "original": { - "version": "-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}", + "version": "-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}", + "version": "-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -524,7 +529,7 @@ function foo() { } ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -532,31 +537,31 @@ function foo() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1457 + "size": 1448 } non Dts change to logic:: After building next project Output:: -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Dts change to Logic:: After rebuilding logicConfig Output:: -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {}export class cNew {} -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,SAAS,GAAG,KAAI,CAAC;AAAA;IAAA;IAAmB,CAAC;IAAD,WAAC;AAAD,CAAC,AAApB,IAAoB;AAAP,oBAAI"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cNew = exports.m = exports.getSecondsInDay = void 0; @@ -576,7 +581,7 @@ var cNew = /** @class */ (function () { exports.cNew = cNew; //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; @@ -584,14 +589,14 @@ export declare class cNew { } -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -606,7 +611,7 @@ export declare class cNew { ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -625,10 +630,10 @@ export declare class cNew { }, "./index.ts": { "original": { - "version": "-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}", + "version": "-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}", "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n" }, - "version": "-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}", + "version": "-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}", "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n" } }, @@ -656,7 +661,7 @@ export declare class cNew { ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -664,22 +669,22 @@ export declare class cNew { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1510 + "size": 1501 } Dts change to Logic:: After building next project Output:: -//// [/user/username/projects/tests/index.js] file written with same contents -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -696,7 +701,7 @@ Output:: ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "affectsGlobalScope": true @@ -719,10 +724,10 @@ Output:: }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -756,7 +761,7 @@ Output:: ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -765,6 +770,6 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1606 } diff --git a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js index b68f64249d3..9641ce257ff 100644 --- a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,144 +15,130 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --listEmittedFiles -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/anotherModule.d.ts.map -TSFILE: /src/core/anotherModule.d.ts -TSFILE: /src/core/index.js -TSFILE: /src/core/index.d.ts.map -TSFILE: /src/core/index.d.ts -TSFILE: /src/core/tsconfig.tsbuildinfo -TSFILE: /src/logic/index.js.map -TSFILE: /src/logic/index.js -TSFILE: /src/logic/index.d.ts -TSFILE: /src/logic/tsconfig.tsbuildinfo -TSFILE: /src/tests/index.js -TSFILE: /src/tests/index.d.ts -TSFILE: /src/tests/tsconfig.tsbuildinfo +/a/lib/tsc --b tests --listEmittedFiles +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts.map +TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/index.d.ts +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/logic/index.js.map +TSFILE: /user/username/projects/sample1/logic/index.js +TSFILE: /user/username/projects/sample1/logic/index.d.ts +TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/tests/index.js +TSFILE: /user/username/projects/sample1/tests/index.d.ts +TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -163,20 +149,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -187,27 +173,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -233,7 +219,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -241,16 +227,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -263,17 +249,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -288,7 +274,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -307,10 +293,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -338,7 +324,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -346,15 +332,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -366,14 +352,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -390,7 +376,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -413,10 +399,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -450,7 +436,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -459,37 +445,37 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --listEmittedFiles -TSFILE: /src/core/index.js -TSFILE: /src/core/index.d.ts.map -TSFILE: /src/core/index.d.ts -TSFILE: /src/core/tsconfig.tsbuildinfo -TSFILE: /src/logic/index.js.map -TSFILE: /src/logic/index.js -TSFILE: /src/logic/tsconfig.tsbuildinfo -TSFILE: /src/tests/index.js -TSFILE: /src/tests/tsconfig.tsbuildinfo +/a/lib/tsc --b tests --listEmittedFiles +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/index.d.ts +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/logic/index.js.map +TSFILE: /user/username/projects/sample1/logic/index.js +TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/tests/index.js +TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -497,10 +483,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -517,20 +503,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -541,27 +527,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -587,7 +573,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -595,19 +581,19 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -622,7 +608,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -641,10 +627,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -672,7 +658,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -680,18 +666,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -708,7 +694,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -731,10 +717,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -768,7 +754,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -777,17 +763,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -795,15 +781,15 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --listEmittedFiles -TSFILE: /src/core/index.js -TSFILE: /src/core/index.d.ts.map -TSFILE: /src/core/tsconfig.tsbuildinfo +/a/lib/tsc --b tests --listEmittedFiles +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -825,20 +811,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -849,27 +835,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -895,7 +881,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -903,11 +889,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -915,7 +901,7 @@ Input:: Output:: -/lib/tsc --b /src/tests --listEmittedFiles +/a/lib/tsc --b tests --listEmittedFiles exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/listFiles.js b/tests/baselines/reference/tsbuild/sample1/listFiles.js index a2a5ac8e029..32d9c18b2a5 100644 --- a/tests/baselines/reference/tsbuild/sample1/listFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listFiles.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,143 +15,129 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --listFiles -/lib/lib.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.d.ts -/src/tests/index.ts +/a/lib/tsc --b tests --listFiles +/a/lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.d.ts +/user/username/projects/sample1/tests/index.ts exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -162,20 +148,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -186,27 +172,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -232,7 +218,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -240,16 +226,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -262,17 +248,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -287,7 +273,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -306,10 +292,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -337,7 +323,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -345,15 +331,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -365,14 +351,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -389,7 +375,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -412,10 +398,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -449,7 +435,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -458,41 +444,41 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --listFiles -/lib/lib.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.d.ts -/src/tests/index.ts +/a/lib/tsc --b tests --listFiles +/a/lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.d.ts +/user/username/projects/sample1/tests/index.ts exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -500,10 +486,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -520,20 +506,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -544,27 +530,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -590,7 +576,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -598,19 +584,19 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -625,7 +611,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -644,10 +630,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -675,7 +661,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -683,18 +669,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -711,7 +697,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -734,10 +720,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -771,7 +757,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -780,17 +766,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -798,16 +784,16 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --listFiles -/lib/lib.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts +/a/lib/tsc --b tests --listFiles +/a/lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -829,20 +815,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -853,27 +839,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -899,7 +885,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -907,11 +893,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -919,7 +905,7 @@ Input:: Output:: -/lib/tsc --b /src/tests --listFiles +/a/lib/tsc --b tests --listFiles exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js index b693203fb36..88d19c550fc 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,40 +51,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -96,27 +94,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -142,7 +140,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -150,16 +148,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -172,41 +170,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -221,7 +220,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -240,10 +239,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -271,7 +270,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -279,15 +278,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -299,40 +298,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,72 +423,53 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:43 AM] Project 'core/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:28 AM] Building project '/src/core/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:38 AM] Project 'src/logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:54 AM] Project 'logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:39 AM] Building project '/src/logic/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:46 AM] Project 'src/tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:01:02 AM] Project 'tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:47 AM] Building project '/src/tests/tsconfig.json'... +[12:01:03 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] file written with same contents -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/anotherModule.js] file written with same contents -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +//// [/user/username/projects/sample1/core/anotherModule.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.js] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -494,27 +480,27 @@ exitCode:: ExitStatus.Success }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -540,7 +526,7 @@ exitCode:: ExitStatus.Success "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -548,20 +534,20 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1484 + "size": 1481 } -//// [/src/logic/index.d.ts] file written with same contents -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -576,7 +562,7 @@ exitCode:: ExitStatus.Success ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -595,10 +581,10 @@ exitCode:: ExitStatus.Success }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -626,7 +612,7 @@ exitCode:: ExitStatus.Success ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -634,19 +620,19 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1519 + "size": 1518 } -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -663,7 +649,7 @@ exitCode:: ExitStatus.Success ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -686,10 +672,10 @@ exitCode:: ExitStatus.Success }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -723,7 +709,7 @@ exitCode:: ExitStatus.Success ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -732,6 +718,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1664 + "size": 1660 } diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js index 72131575519..add090c23fc 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,66 +424,47 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose --force -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose --force +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt +[12:00:43 AM] Project 'core/tsconfig.json' is being forcibly rebuilt -[12:00:28 AM] Building project '/src/core/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:38 AM] Project 'src/logic/tsconfig.json' is being forcibly rebuilt +[12:00:54 AM] Project 'logic/tsconfig.json' is being forcibly rebuilt -[12:00:39 AM] Building project '/src/logic/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:46 AM] Project 'src/tests/tsconfig.json' is being forcibly rebuilt +[12:01:02 AM] Project 'tests/tsconfig.json' is being forcibly rebuilt -[12:00:47 AM] Building project '/src/tests/tsconfig.json'... +[12:01:03 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] file written with same contents -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/anotherModule.js] file written with same contents -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/logic/index.d.ts] file written with same contents -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.js] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js index 104f3b7f8b2..f0cfff440e2 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,122 +15,112 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.base.json] -{"compilerOptions":{"target":"es3"}} - -//// [/src/tests/tsconfig.json] -{ - "extends": "./tsconfig.base.json", "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.base.json] +{ + "compilerOptions": { + "target": "es3" + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "extends": "./tsconfig.base.json", "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:08 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:09 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:25 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/core/tsconfig.json'... +[12:00:26 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:20 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:36 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/logic/tsconfig.json'... +[12:00:37 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:28 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:44 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/tests/tsconfig.json'... +[12:00:45 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. @@ -140,30 +130,30 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -174,20 +164,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -198,27 +188,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -244,7 +234,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -252,16 +242,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -274,17 +264,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -299,7 +289,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -318,10 +308,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -349,7 +339,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -357,17 +347,17 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","signature":false},{"version":"-9234818176-export declare const World = \"hello\";\n","signature":false},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","signature":false},{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":false}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[],"changeFileSet":[1,3,2,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","signature":false},{"version":"-9234818176-export declare const World = \"hello\";\n","signature":false},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","signature":false},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":false}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[],"changeFileSet":[1,3,2,4,5]},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -384,7 +374,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -416,10 +406,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": false }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" } }, "root": [ @@ -446,7 +436,7 @@ exports.m = mod; }, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -454,42 +444,44 @@ exports.m = mod; ] }, "version": "FakeTSVersion", - "size": 1622 + "size": 1618 } Change:: incremental-declaration-changes Input:: -//// [/src/tests/tsconfig.base.json] -{"compilerOptions":{}} +//// [/user/username/projects/sample1/tests/tsconfig.base.json] +{ + "compilerOptions": {} +} Output:: -/lib/tsc --b /src/tests --verbose -[12:00:34 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:50 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:35 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:51 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:36 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:52 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:37 AM] Project 'src/tests/tsconfig.json' is out of date because buildinfo file 'src/tests/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:53 AM] Project 'tests/tsconfig.json' is out of date because buildinfo file 'tests/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:38 AM] Building project '/src/tests/tsconfig.json'... +[12:00:54 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -501,14 +493,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -525,7 +517,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -548,10 +540,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -585,7 +577,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -594,6 +586,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } diff --git a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js index 114e7a9f0af..5b98e0d671c 100644 --- a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js +++ b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,49 +424,30 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --clean +/a/lib/tsc --b tests --clean exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] unlink -//// [/src/core/anotherModule.d.ts.map] unlink -//// [/src/core/anotherModule.js] unlink -//// [/src/core/index.d.ts] unlink -//// [/src/core/index.d.ts.map] unlink -//// [/src/core/index.js] unlink -//// [/src/core/tsconfig.tsbuildinfo] unlink -//// [/src/logic/index.d.ts] unlink -//// [/src/logic/index.js] unlink -//// [/src/logic/index.js.map] unlink -//// [/src/logic/tsconfig.tsbuildinfo] unlink -//// [/src/tests/index.d.ts] unlink -//// [/src/tests/index.js] unlink -//// [/src/tests/tsconfig.tsbuildinfo] unlink +//// [/user/username/projects/sample1/core/anotherModule.d.ts] unlink +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] unlink +//// [/user/username/projects/sample1/core/anotherModule.js] unlink +//// [/user/username/projects/sample1/core/index.d.ts] unlink +//// [/user/username/projects/sample1/core/index.d.ts.map] unlink +//// [/user/username/projects/sample1/core/index.js] unlink +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] unlink +//// [/user/username/projects/sample1/logic/index.d.ts] unlink +//// [/user/username/projects/sample1/logic/index.js] unlink +//// [/user/username/projects/sample1/logic/index.js.map] unlink +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] unlink +//// [/user/username/projects/sample1/tests/index.d.ts] unlink +//// [/user/username/projects/sample1/tests/index.js] unlink +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] unlink Change:: no-change-run @@ -469,7 +455,7 @@ Input:: Output:: -/lib/tsc --b /src/tests --clean +/a/lib/tsc --b tests --clean exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js index e0619e1b6e9..e7bfd0f39b6 100644 --- a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js +++ b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,117 +15,113 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "anotherModule.ts", + "index.ts", + "some_decl.d.ts" + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -export function run() { - console.log(logic.getSecondsInDay()); + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --v --f -[12:00:08 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --v --f +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:09 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt +[12:00:25 AM] Project 'core/tsconfig.json' is being forcibly rebuilt -[12:00:10 AM] Building project '/src/core/tsconfig.json'... +[12:00:26 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -error TS6053: File '/src/core/anotherModule.ts' not found. +error TS6053: File '/user/username/projects/sample1/core/anotherModule.ts' not found. The file is in the program because: Part of 'files' list in tsconfig.json - src/core/tsconfig.json:1:48 - 1 {"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} -    ~~~~~~~~~~~~~~~~~~ + core/tsconfig.json:6:5 + 6 "anotherModule.ts", +    ~~~~~~~~~~~~~~~~~~ File is matched by 'files' list specified here. -[12:00:14 AM] Project 'src/logic/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:30 AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:15 AM] Skipping build of project '/src/logic/tsconfig.json' because its dependency '/src/core' has errors +[12:00:31 AM] Skipping build of project '/user/username/projects/sample1/logic/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors -[12:00:16 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:32 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:17 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/core' has errors +[12:00:33 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors Found 1 error. @@ -133,19 +129,19 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":false},{"version":"-9253692965-declare const dts: any;\r\n","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -156,18 +152,18 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": false }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "signature": false, "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -187,12 +183,12 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "referencedMap": {}, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1059 + "size": 1060 } diff --git a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js index 9e08dd73f03..fcb3fbcbdf2 100644 --- a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js +++ b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,117 +15,113 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "anotherModule.ts", + "index.ts", + "some_decl.d.ts" + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -export function run() { - console.log(logic.getSecondsInDay()); + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --v -[12:00:08 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --v +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:09 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:25 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/core/tsconfig.json'... +[12:00:26 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -error TS6053: File '/src/core/anotherModule.ts' not found. +error TS6053: File '/user/username/projects/sample1/core/anotherModule.ts' not found. The file is in the program because: Part of 'files' list in tsconfig.json - src/core/tsconfig.json:1:48 - 1 {"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} -    ~~~~~~~~~~~~~~~~~~ + core/tsconfig.json:6:5 + 6 "anotherModule.ts", +    ~~~~~~~~~~~~~~~~~~ File is matched by 'files' list specified here. -[12:00:14 AM] Project 'src/logic/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:30 AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:15 AM] Skipping build of project '/src/logic/tsconfig.json' because its dependency '/src/core' has errors +[12:00:31 AM] Skipping build of project '/user/username/projects/sample1/logic/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors -[12:00:16 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:32 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:17 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/core' has errors +[12:00:33 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors Found 1 error. @@ -133,19 +129,19 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":false},{"version":"-9253692965-declare const dts: any;\r\n","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -156,18 +152,18 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": false }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "signature": false, "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -187,12 +183,12 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "referencedMap": {}, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1059 + "size": 1060 } diff --git a/tests/baselines/reference/tsbuild/sample1/sample.js b/tests/baselines/reference/tsbuild/sample1/sample.js index 8200126e848..5cad9a80f77 100644 --- a/tests/baselines/reference/tsbuild/sample1/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/sample.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,143 +15,129 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/index.d.ts": 1 } -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anothermodule.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/anothermodule.d.ts.map.baseline.txt] =================================================================== JsFile: anotherModule.d.ts mapUrl: anotherModule.d.ts.map @@ -159,7 +145,7 @@ sourceRoot: sources: anotherModule.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/anotherModule.d.ts +emittedFile:/user/username/projects/sample1/core/anotherModule.d.ts sourceFile:anotherModule.ts ------------------------------------------------------------------- >>>export declare const World = "hello"; @@ -185,23 +171,23 @@ sourceFile:anotherModule.ts --- >>>//# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] =================================================================== JsFile: index.d.ts mapUrl: index.d.ts.map @@ -209,7 +195,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts +emittedFile:/user/username/projects/sample1/core/index.d.ts sourceFile:index.ts ------------------------------------------------------------------- >>>export declare const someString: string; @@ -250,7 +236,7 @@ sourceFile:index.ts 11> ^^^^^^ 12> ^^^^^^^^^^ 13> ^-> -1-> +1-> > 2 >export function 3 > leftPad @@ -289,7 +275,7 @@ sourceFile:index.ts 10> ^^ 11> ^^^^^^ 12> ^^^^^^^^^^ -1-> +1-> > 2 >export function 3 > multiply @@ -317,7 +303,7 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.d.ts.map -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -328,20 +314,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -352,27 +338,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -398,7 +384,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -406,16 +392,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -428,10 +414,10 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.js.map.baseline.txt] +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] =================================================================== JsFile: index.js mapUrl: index.js.map @@ -439,7 +425,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/logic/index.js +emittedFile:/user/username/projects/sample1/logic/index.js sourceFile:index.ts ------------------------------------------------------------------- >>>"use strict"; @@ -458,7 +444,7 @@ sourceFile:index.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^-> -1 > +1 > > 2 >export function 3 > getSecondsInDay @@ -478,7 +464,7 @@ sourceFile:index.ts 9 > ^^ 10> ^ 11> ^ -1->() { +1->() { > 2 > return 3 > c @@ -506,7 +492,7 @@ sourceFile:index.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) @@ -517,8 +503,8 @@ sourceFile:index.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^-> 1-> -2 >export function getSecondsInDay() { - > return c.multiply(10, 15); +2 >export function getSecondsInDay() { + > return c.multiply(10, 15); >} 1->Emitted(8, 1) Source(2, 1) + SourceIndex(0) 2 >Emitted(8, 43) Source(4, 2) + SourceIndex(0) @@ -526,7 +512,7 @@ sourceFile:index.ts >>>var mod = require("../core/anotherModule"); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > 2 >import * as mod from '../core/anotherModule'; 1->Emitted(9, 1) Source(5, 1) + SourceIndex(0) @@ -540,7 +526,7 @@ sourceFile:index.ts 5 > ^^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^-> -1 > +1 > >export const 2 > 3 > m @@ -556,14 +542,14 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.js.map -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -578,7 +564,7 @@ sourceFile:index.ts ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -597,10 +583,10 @@ sourceFile:index.ts }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -628,7 +614,7 @@ sourceFile:index.ts ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -636,15 +622,15 @@ sourceFile:index.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -656,14 +642,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -680,7 +666,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -703,10 +689,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -740,7 +726,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -749,60 +735,60 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:37 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:53 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:38 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:54 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:39 AM] Building project '/src/core/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:46 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:01:02 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:47 AM] Building project '/src/logic/tsconfig.json'... +[12:01:03 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:53 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:01:09 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:54 AM] Building project '/src/tests/tsconfig.json'... +[12:01:10 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/index.ts": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/index.d.ts": 1 } -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -810,10 +796,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] =================================================================== JsFile: index.d.ts mapUrl: index.d.ts.map @@ -821,7 +807,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts +emittedFile:/user/username/projects/sample1/core/index.d.ts sourceFile:index.ts ------------------------------------------------------------------- >>>export declare const someString: string; @@ -862,7 +848,7 @@ sourceFile:index.ts 11> ^^^^^^ 12> ^^^^^^^^^^ 13> ^-> -1-> +1-> > 2 >export function 3 > leftPad @@ -901,7 +887,7 @@ sourceFile:index.ts 10> ^^ 11> ^^^^^^ 12> ^^^^^^^^^^ -1-> +1-> > 2 >export function 3 > multiply @@ -931,7 +917,7 @@ sourceFile:index.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ -1 > +1 > > > 2 >export class @@ -948,7 +934,7 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.d.ts.map -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -965,20 +951,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -989,27 +975,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -1035,7 +1021,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -1043,20 +1029,20 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/index.js.map.baseline.txt] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -1071,7 +1057,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1090,10 +1076,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1121,7 +1107,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -1129,18 +1115,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -1157,7 +1143,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1180,10 +1166,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1217,7 +1203,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -1226,17 +1212,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -1244,40 +1230,40 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --verbose -[12:01:02 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:18 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:03 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:01:19 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:01:04 AM] Building project '/src/core/tsconfig.json'... +[12:01:20 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:10 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:26 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:11 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:27 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:14 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:30 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:15 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:31 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/index.ts": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/tests/tsconfig.tsbuildinfo": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1 } -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.d.ts.map.baseline.txt] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -1299,20 +1285,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1323,27 +1309,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -1369,7 +1355,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -1377,11 +1363,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -1389,99 +1375,100 @@ Input:: Output:: -/lib/tsc --b /src/tests --verbose -[12:01:19 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:35 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:20 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:36 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:21 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:37 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:22 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:01:38 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/tests/tsconfig.tsbuildinfo": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1 } Change:: when logic config changes declaration dir Input:: -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationDir": "decls", - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls", + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - Output:: -/lib/tsc --b /src/tests --verbose -[12:01:24 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:40 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:25 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:41 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:26 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/logic/tsconfig.json' +[12:01:42 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/tsconfig.json' -[12:01:27 AM] Building project '/src/logic/tsconfig.json'... +[12:01:43 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:35 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/logic' +[12:01:51 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'logic' -[12:01:36 AM] Building project '/src/tests/tsconfig.json'... +[12:01:52 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/logic/decls/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/decls/index.d.ts": 1 } -//// [/src/logic/decls/index.d.ts] +//// [/user/username/projects/sample1/logic/decls/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/index.js.map.baseline.txt] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -1496,7 +1483,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1515,10 +1502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1547,7 +1534,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -1555,18 +1542,18 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1582 + "size": 1581 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/decls/index.d.ts", @@ -1583,7 +1570,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1606,10 +1593,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1643,7 +1630,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/decls/index.d.ts", @@ -1652,7 +1639,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1700 + "size": 1696 } @@ -1662,25 +1649,25 @@ Input:: Output:: -/lib/tsc --b /src/tests --verbose -[12:01:42 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:58 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:43 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:59 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:44 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:02:00 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:45 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:02:01 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/tests/tsconfig.tsbuildinfo": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js index b7bf9289d85..12174a04c32 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,119 +15,105 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, - "skipDefaultLibCheck": true + "compilerOptions": { + "incremental": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" } + ] } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - Output:: -/lib/tsc --b /src/core --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -138,20 +124,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,20 +147,20 @@ exports.multiply = multiply; "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -197,66 +183,66 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1091 + "size": 1088 } Change:: incremental-declaration-changes Input:: -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, "declaration": true, - "skipDefaultLibCheck": true - } + "compilerOptions": { + "incremental": true, "declaration": true, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/core --verbose -[12:00:16 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:32 AM] Projects in this build: + * core/tsconfig.json -[12:00:17 AM] Project 'src/core/tsconfig.json' is out of date because buildinfo file 'src/core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions +[12:00:33 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions -[12:00:18 AM] Building project '/src/core/tsconfig.json'... +[12:00:34 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -267,27 +253,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -311,13 +297,13 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1400 + "size": 1397 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js b/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js index 43da1519f68..6b5e88a3760 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,147 +15,133 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -166,20 +152,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -190,27 +176,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -236,7 +222,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -244,16 +230,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -266,17 +252,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -291,7 +277,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -310,10 +296,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -341,7 +327,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -349,15 +335,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -369,14 +355,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -393,7 +379,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -416,10 +402,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -453,7 +439,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -462,71 +448,71 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: Disable declarationMap Input:: -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": false, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": false, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:34 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:50 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:35 AM] Project 'src/core/tsconfig.json' is out of date because buildinfo file 'src/core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions +[12:00:51 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions -[12:00:36 AM] Building project '/src/core/tsconfig.json'... +[12:00:52 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:44 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:00 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:45 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:01 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:48 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:04 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:49 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:05 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -537,27 +523,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -583,7 +569,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -591,75 +577,75 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1475 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: Enable declarationMap Input:: -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:53 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:09 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:54 AM] Project 'src/core/tsconfig.json' is out of date because buildinfo file 'src/core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions +[12:01:10 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions -[12:00:55 AM] Building project '/src/core/tsconfig.json'... +[12:01:11 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:05 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:21 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:06 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:22 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:09 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:25 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:10 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:26 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -670,27 +656,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -716,7 +702,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -724,8 +710,8 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js index 25de6a48068..87ac7cd32b6 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,148 +15,134 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": false + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -export function run() { - console.log(logic.getSecondsInDay()); + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": false + } } - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:35 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:27 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:43 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/tests/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -167,20 +153,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -191,27 +177,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -237,7 +223,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -245,16 +231,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -267,17 +253,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -292,7 +278,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -311,10 +297,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -342,7 +328,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -350,15 +336,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -370,14 +356,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -394,7 +380,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -417,10 +403,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -455,7 +441,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -464,50 +450,56 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1681 + "size": 1677 } Change:: incremental-declaration-changes Input:: -//// [/src/tests/tsconfig.json] +//// [/user/username/projects/sample1/tests/tsconfig.json] { - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": true + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:35 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:51 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:36 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:52 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:37 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:53 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:38 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' +[12:00:54 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' -[12:00:39 AM] Building project '/src/tests/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -542,14 +534,14 @@ var mod = __importStar(require("../core/anotherModule")); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -566,7 +558,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -589,10 +581,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -627,7 +619,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -636,6 +628,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1680 + "size": 1676 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js index ffba3f1d3d3..00d862b3252 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,147 +15,133 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -166,20 +152,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -190,27 +176,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -236,7 +222,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -244,16 +230,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -266,17 +252,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -291,7 +277,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -310,10 +296,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -341,7 +327,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -349,15 +335,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -369,14 +355,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -393,7 +379,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -416,10 +402,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -453,7 +439,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -462,38 +448,38 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: upstream project changes without changing file text Input:: -//// [/src/core/index.ts] file changed its modified time +//// [/user/username/projects/sample1/core/index.ts] file changed its modified time Output:: -/lib/tsc --b /src/tests --verbose -[12:00:35 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:51 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:36 AM] Project 'src/core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files +[12:00:52 AM] Project 'core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files -[12:00:37 AM] Updating output timestamps of project '/src/core/tsconfig.json'... +[12:00:53 AM] Updating output timestamps of project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:40 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:56 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:41 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:00:57 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:44 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:00 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:45 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:01 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js index 25892d334dc..f7526630116 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,144 +15,130 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "tsBuildInfoFile": "ownFile.tsbuildinfo", - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "ownFile.tsbuildinfo", + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/ownFile.tsbuildinfo' does not exist +[12:00:35 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/ownFile.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:27 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:43 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/tests/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/index.d.ts": 1 } -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anothermodule.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/anothermodule.d.ts.map.baseline.txt] =================================================================== JsFile: anotherModule.d.ts mapUrl: anotherModule.d.ts.map @@ -160,7 +146,7 @@ sourceRoot: sources: anotherModule.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/anotherModule.d.ts +emittedFile:/user/username/projects/sample1/core/anotherModule.d.ts sourceFile:anotherModule.ts ------------------------------------------------------------------- >>>export declare const World = "hello"; @@ -186,23 +172,23 @@ sourceFile:anotherModule.ts --- >>>//# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] =================================================================== JsFile: index.d.ts mapUrl: index.d.ts.map @@ -210,7 +196,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts +emittedFile:/user/username/projects/sample1/core/index.d.ts sourceFile:index.ts ------------------------------------------------------------------- >>>export declare const someString: string; @@ -251,7 +237,7 @@ sourceFile:index.ts 11> ^^^^^^ 12> ^^^^^^^^^^ 13> ^-> -1-> +1-> > 2 >export function 3 > leftPad @@ -290,7 +276,7 @@ sourceFile:index.ts 10> ^^ 11> ^^^^^^ 12> ^^^^^^^^^^ -1-> +1-> > 2 >export function 3 > multiply @@ -318,7 +304,7 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.d.ts.map -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -329,20 +315,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -353,27 +339,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -399,7 +385,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -407,16 +393,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -429,10 +415,10 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.js.map.baseline.txt] +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] =================================================================== JsFile: index.js mapUrl: index.js.map @@ -440,7 +426,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/logic/index.js +emittedFile:/user/username/projects/sample1/logic/index.js sourceFile:index.ts ------------------------------------------------------------------- >>>"use strict"; @@ -459,7 +445,7 @@ sourceFile:index.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^-> -1 > +1 > > 2 >export function 3 > getSecondsInDay @@ -479,7 +465,7 @@ sourceFile:index.ts 9 > ^^ 10> ^ 11> ^ -1->() { +1->() { > 2 > return 3 > c @@ -507,7 +493,7 @@ sourceFile:index.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) @@ -518,8 +504,8 @@ sourceFile:index.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^-> 1-> -2 >export function getSecondsInDay() { - > return c.multiply(10, 15); +2 >export function getSecondsInDay() { + > return c.multiply(10, 15); >} 1->Emitted(8, 1) Source(2, 1) + SourceIndex(0) 2 >Emitted(8, 43) Source(4, 2) + SourceIndex(0) @@ -527,7 +513,7 @@ sourceFile:index.ts >>>var mod = require("../core/anotherModule"); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > 2 >import * as mod from '../core/anotherModule'; 1->Emitted(9, 1) Source(5, 1) + SourceIndex(0) @@ -541,7 +527,7 @@ sourceFile:index.ts 5 > ^^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^-> -1 > +1 > >export const 2 > 3 > m @@ -557,14 +543,14 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.js.map -//// [/src/logic/ownFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/ownFile.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -579,7 +565,7 @@ sourceFile:index.ts ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -598,10 +584,10 @@ sourceFile:index.ts }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -630,7 +616,7 @@ sourceFile:index.ts ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -638,15 +624,15 @@ sourceFile:index.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1554 + "size": 1553 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -658,14 +644,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -682,7 +668,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -705,10 +691,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -742,7 +728,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -751,6 +737,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js index f02b179669a..aac876f3c62 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,119 +15,105 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, - "module": "commonjs" + "compilerOptions": { + "incremental": true, + "module": "commonjs" + } +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" } + ] } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - Output:: -/lib/tsc --b /src/core --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -138,20 +124,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,20 +147,20 @@ exports.multiply = multiply; "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -197,43 +183,43 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1075 + "size": 1072 } Change:: incremental-declaration-changes Input:: -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, - "module": "amd" - } + "compilerOptions": { + "incremental": true, + "module": "amd" + } } Output:: -/lib/tsc --b /src/core --verbose -[12:00:16 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:32 AM] Projects in this build: + * core/tsconfig.json -[12:00:17 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/tsconfig.json' +[12:00:33 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' -[12:00:18 AM] Building project '/src/core/tsconfig.json'... +[12:00:34 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -242,7 +228,7 @@ define(["require", "exports"], function (require, exports) { }); -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -255,20 +241,20 @@ define(["require", "exports"], function (require, exports) { }); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":2},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":2},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -278,20 +264,20 @@ define(["require", "exports"], function (require, exports) { "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -314,13 +300,13 @@ define(["require", "exports"], function (require, exports) { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1075 + "size": 1072 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js index 6c052d0c8d2..f29aca1dbe9 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js @@ -1,10 +1,10 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// /// -//// [/lib/lib.esnext.d.ts] +//// [/a/lib/lib.esnext.d.ts] /// interface Boolean {} interface Function {} @@ -19,150 +19,136 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/lib/lib.esnext.full.d.ts] +//// [/a/lib/lib.esnext.full.d.ts] /// /// -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "esnext", + "compilerOptions": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": "esnext" + } +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" } + ] } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - Output:: -/lib/tsc --b /src/core --verbose -[12:00:10 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:26 AM] Projects in this build: + * core/tsconfig.json -[12:00:11 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:27 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/core/tsconfig.json'... +[12:00:28 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/index.js -TSFILE: /src/core/tsconfig.tsbuildinfo -/lib/lib.esnext.d.ts -/lib/lib.esnext.full.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +/a/lib/lib.esnext.d.ts +/a/lib/lib.esnext.full.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] export const World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] export const someString = "HELLO WORLD"; export function leftPad(s, n) { return s + n; } export function multiply(a, b) { return a * b; } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.esnext.full.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8926001564-/// \n/// ","-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":99},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.esnext.d.ts","../../../../../a/lib/lib.esnext.full.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8926001564-/// \n/// ","-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":99},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.esnext.d.ts", - "../../lib/lib.esnext.full.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.esnext.full.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.esnext.d.ts": { + "../../../../../a/lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -171,25 +157,25 @@ export function multiply(a, b) { return a * b; } "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "../../lib/lib.esnext.full.d.ts": { + "../../../../../a/lib/lib.esnext.full.d.ts": { "version": "8926001564-/// \n/// ", "signature": "8926001564-/// \n/// " }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -212,61 +198,61 @@ export function multiply(a, b) { return a * b; } "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.esnext.d.ts", - "../../lib/lib.esnext.full.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.esnext.full.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1206 + "size": 1214 } Change:: incremental-declaration-changes Input:: -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "es5", - } + "compilerOptions": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": "es5" + } } Output:: -/lib/tsc --b /src/core --verbose -[12:00:19 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:35 AM] Projects in this build: + * core/tsconfig.json -[12:00:20 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/tsconfig.json' +[12:00:36 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' -[12:00:21 AM] Building project '/src/core/tsconfig.json'... +[12:00:37 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/index.js -TSFILE: /src/core/tsconfig.tsbuildinfo -/lib/lib.d.ts -/lib/lib.esnext.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +/a/lib/lib.d.ts +/a/lib/lib.esnext.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -277,25 +263,25 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../lib/lib.esnext.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":["8926001564-/// \n/// ",{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../../../../../a/lib/lib.esnext.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":["8926001564-/// \n/// ",{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", - "../../lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "version": "8926001564-/// \n/// ", "signature": "8926001564-/// \n/// " }, - "../../lib/lib.esnext.d.ts": { + "../../../../../a/lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -305,20 +291,20 @@ exports.multiply = multiply; "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -341,14 +327,14 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../../lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1193 + "size": 1201 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js index 2795012b376..7fd69a51adf 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,68 +15,95 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/a.ts] -export class A {} +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} -//// [/src/b.ts] +//// [/user/username/projects/transitiveReferences/b.ts] import {A} from 'a'; export const b = new A(); -//// [/src/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; - -//// [/src/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/src/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} -//// [/src/tsconfig.b.json] -{"compilerOptions":{"composite":true,"moduleResolution":"classic"},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} - -//// [/src/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] } +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "classic" + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Output:: -/lib/tsc --b /src/tsconfig.c.json --listFiles -/lib/lib.d.ts -/src/a.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.d.ts -/src/refs/a.d.ts -/src/c.ts +/a/lib/tsc --b tsconfig.c.json --listFiles +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.d.ts +/user/username/projects/transitiveReferences/refs/a.d.ts +/user/username/projects/transitiveReferences/c.ts exitCode:: ExitStatus.Success -//// [/src/a.d.ts] +//// [/user/username/projects/transitiveReferences/a.d.ts] export declare class A { } -//// [/src/a.js] +//// [/user/username/projects/transitiveReferences/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; @@ -88,12 +115,12 @@ var A = /** @class */ (function () { exports.A = A; -//// [/src/b.d.ts] +//// [/user/username/projects/transitiveReferences/b.d.ts] import { A } from 'a'; export declare const b: A; -//// [/src/b.js] +//// [/user/username/projects/transitiveReferences/b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.b = void 0; @@ -101,7 +128,7 @@ var a_1 = require("a"); exports.b = new a_1.A(); -//// [/src/c.js] +//// [/user/username/projects/transitiveReferences/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var b_1 = require("./b"); @@ -110,18 +137,18 @@ b_1.b; a_1.X; -//// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -132,10 +159,10 @@ a_1.X; }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -151,23 +178,23 @@ a_1.X; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 829 + "size": 838 } -//// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], @@ -177,7 +204,7 @@ a_1.X; ] ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -219,13 +246,13 @@ a_1.X; ] }, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 965 + "size": 976 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js index eacfc154179..609b442af96 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,80 +15,101 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/a.ts] -export class A {} +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} -//// [/src/b.ts] -import {A} from '@ref/a'; -export const b = new A(); +//// [/user/username/projects/transitiveReferences/b.ts] +import {A} from '@ref/a'; +export const b = new A(); -//// [/src/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; - -//// [/src/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/src/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} -//// [/src/tsconfig.b.json] -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] } - -//// [/src/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] } +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Output:: -/lib/tsc --b /src/tsconfig.c.json --listFiles -/lib/lib.d.ts -/src/a.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.d.ts -/src/refs/a.d.ts -/src/c.ts +/a/lib/tsc --b tsconfig.c.json --listFiles +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.d.ts +/user/username/projects/transitiveReferences/refs/a.d.ts +/user/username/projects/transitiveReferences/c.ts exitCode:: ExitStatus.Success -//// [/src/a.d.ts] +//// [/user/username/projects/transitiveReferences/a.d.ts] export declare class A { } -//// [/src/a.js] +//// [/user/username/projects/transitiveReferences/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; @@ -100,12 +121,12 @@ var A = /** @class */ (function () { exports.A = A; -//// [/src/b.d.ts] +//// [/user/username/projects/transitiveReferences/b.d.ts] import { A } from '@ref/a'; export declare const b: A; -//// [/src/b.js] +//// [/user/username/projects/transitiveReferences/b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.b = void 0; @@ -113,7 +134,7 @@ var a_1 = require("@ref/a"); exports.b = new a_1.A(); -//// [/src/c.js] +//// [/user/username/projects/transitiveReferences/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var b_1 = require("./b"); @@ -122,18 +143,18 @@ b_1.b; a_1.X; -//// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -144,10 +165,10 @@ a_1.X; }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -163,23 +184,23 @@ a_1.X; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 829 + "size": 838 } -//// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], @@ -189,7 +210,7 @@ a_1.X; ] ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -204,10 +225,10 @@ a_1.X; }, "./b.ts": { "original": { - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" }, - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" } }, @@ -231,13 +252,13 @@ a_1.X; ] }, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 982 + "size": 988 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js index c5ed9622914..a0d8ca0adf0 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,70 +15,97 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/a.ts] -export class A {} +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} -//// [/src/b.ts] +//// [/user/username/projects/transitiveReferences/b.ts] import {A} from 'a'; export const b = new A(); -//// [/src/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; - -//// [/src/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/src/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} -//// [/src/tsconfig.b.json] -{"compilerOptions":{"composite":true,"moduleResolution":"node"},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} - -//// [/src/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] } +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "node" + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Output:: -/lib/tsc --b /src/tsconfig.c.json --listFiles -/lib/lib.d.ts -/src/a.ts -src/b.ts:1:17 - error TS2307: Cannot find module 'a' or its corresponding type declarations. +/a/lib/tsc --b tsconfig.c.json --listFiles +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.ts +b.ts:1:17 - error TS2307: Cannot find module 'a' or its corresponding type declarations. 1 import {A} from 'a';    ~~~ -/lib/lib.d.ts -/src/b.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/b.ts Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/a.d.ts] +//// [/user/username/projects/transitiveReferences/a.d.ts] export declare class A { } -//// [/src/a.js] +//// [/user/username/projects/transitiveReferences/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; @@ -90,18 +117,18 @@ var A = /** @class */ (function () { exports.A = A; -//// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -112,10 +139,10 @@ exports.A = A; }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -131,27 +158,27 @@ exports.A = A; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 829 + "size": 838 } -//// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-17186364832-import {A} from 'a';\nexport const b = new A();"],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./b.ts","start":16,"length":3,"messageText":"Cannot find module 'a' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"emitSignatures":[2]},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-17186364832-import {A} from 'a';\nexport const b = new A();"],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./b.ts","start":16,"length":3,"messageText":"Cannot find module 'a' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"emitSignatures":[2]},"version":"FakeTSVersion"} -//// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./b.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -177,7 +204,7 @@ exports.A = A; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", [ "./b.ts", [ @@ -203,6 +230,6 @@ exports.A = A; ] }, "version": "FakeTSVersion", - "size": 954 + "size": 965 } diff --git a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js index 2033ad375a3..d63bc50c891 100644 --- a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js @@ -45,8 +45,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -161,8 +168,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -199,8 +214,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -297,8 +320,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -316,7 +347,16 @@ Change:: builds after fixing config file errors Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "files": [ + "a.ts", + "b.ts" + ] +} Before running Timeout callback:: count: 1 @@ -330,8 +370,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js index cace1026781..6ddb4a75710 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js @@ -1,131 +1,128 @@ currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + + +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } //// [/user/username/projects/demo/core/utilities.ts] import * as A from '../animals'; - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} - -//// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/user/username/projects/demo/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } //// [/user/username/projects/demo/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} - -//// [/user/username/projects/demo/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } //// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } +} + +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } //// [/a/lib/lib.d.ts] @@ -147,17 +144,17 @@ declare const console: { log(msg: any): void; }; /a/lib/tsc.js -b -w -verbose Output:: >> Screen clear -[12:00:46 AM] Starting compilation in watch mode... +[12:00:45 AM] Starting compilation in watch mode... -[12:00:47 AM] Projects in this build: +[12:00:46 AM] Projects in this build: * core/tsconfig.json * animals/tsconfig.json * zoo/tsconfig.json * tsconfig.json -[12:00:48 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist +[12:00:47 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist -[12:00:49 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... +[12:00:48 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... animals/index.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/animal.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. @@ -210,20 +207,36 @@ Output::    ~~~ File is included via import here. -[12:01:00 AM] Project 'animals/tsconfig.json' can't be built because its dependency 'core' has errors +[12:00:59 AM] Project 'animals/tsconfig.json' can't be built because its dependency 'core' has errors -[12:01:01 AM] Skipping build of project '/user/username/projects/demo/animals/tsconfig.json' because its dependency '/user/username/projects/demo/core' has errors +[12:01:00 AM] Skipping build of project '/user/username/projects/demo/animals/tsconfig.json' because its dependency '/user/username/projects/demo/core' has errors -[12:01:02 AM] Project 'zoo/tsconfig.json' can't be built because its dependency 'animals' was not built +[12:01:01 AM] Project 'zoo/tsconfig.json' can't be built because its dependency 'animals' was not built -[12:01:03 AM] Skipping build of project '/user/username/projects/demo/zoo/tsconfig.json' because its dependency '/user/username/projects/demo/animals' was not built +[12:01:02 AM] Skipping build of project '/user/username/projects/demo/zoo/tsconfig.json' because its dependency '/user/username/projects/demo/animals' was not built -[12:01:04 AM] Found 7 errors. Watching for file changes. +[12:01:03 AM] Found 7 errors. Watching for file changes. -Program root files: ["/user/username/projects/demo/core/utilities.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/core","rootDir":"/user/username/projects/demo/core","watch":true,"configFilePath":"/user/username/projects/demo/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/core/utilities.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/core", + "rootDir": "/user/username/projects/demo/core", + "watch": true, + "configFilePath": "/user/username/projects/demo/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -283,7 +296,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -319,20 +332,20 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../../animals/animal.ts": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/dog.ts": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", - "signature": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n" + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n" }, "../../animals/index.ts": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", - "signature": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n" + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../../core/utilities.ts": { - "version": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", - "signature": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n" + "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" } }, "root": [ @@ -426,7 +439,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2320 + "size": 2241 } @@ -436,16 +449,14 @@ Input:: //// [/user/username/projects/demo/core/utilities.ts] import * as A from '../animals'; - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} @@ -454,11 +465,11 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:08 AM] File change detected. Starting incremental compilation... +[12:01:06 AM] File change detected. Starting incremental compilation... -[12:01:09 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'lib/core/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:01:07 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'lib/core/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:01:10 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... +[12:01:08 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... animals/index.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/animal.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. @@ -511,12 +522,28 @@ Output::    ~~~ File is included via import here. -[12:01:18 AM] Found 7 errors. Watching for file changes. +[12:01:16 AM] Found 7 errors. Watching for file changes. -Program root files: ["/user/username/projects/demo/core/utilities.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/core","rootDir":"/user/username/projects/demo/core","watch":true,"configFilePath":"/user/username/projects/demo/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/core/utilities.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/core", + "rootDir": "/user/username/projects/demo/core", + "watch": true, + "configFilePath": "/user/username/projects/demo/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -538,7 +565,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"-10926881769-\nimport * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,3],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":1,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"},{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,3],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":1,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -574,31 +601,31 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../../animals/animal.ts": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../../core/utilities.ts": { "original": { - "version": "-10926881769-\nimport * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "-10926881769-\nimport * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -689,6 +716,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2824 + "size": 2745 } diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js index dd4811c4341..23b5373f534 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js @@ -1,135 +1,132 @@ currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + + +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} + + //// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." }, "references": [ { "path": "../zoo" } - ] -} - -//// [/user/username/projects/demo/core/utilities.ts] - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - - - -//// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/user/username/projects/demo/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] + ] } //// [/user/username/projects/demo/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} - -//// [/user/username/projects/demo/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } //// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } +} + +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } //// [/a/lib/lib.d.ts] @@ -205,12 +202,12 @@ Change:: Fix error Input:: //// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } @@ -241,8 +238,24 @@ Output:: -Program root files: ["/user/username/projects/demo/core/utilities.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/core","rootDir":"/user/username/projects/demo/core","watch":true,"configFilePath":"/user/username/projects/demo/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/core/utilities.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/core", + "rootDir": "/user/username/projects/demo/core", + "watch": true, + "configFilePath": "/user/username/projects/demo/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -256,8 +269,26 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/demo/core/utilities.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/demo/animals/animal.ts","/user/username/projects/demo/animals/dog.ts","/user/username/projects/demo/animals/index.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/animals","rootDir":"/user/username/projects/demo/animals","watch":true,"configFilePath":"/user/username/projects/demo/animals/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/animals/animal.ts", + "/user/username/projects/demo/animals/dog.ts", + "/user/username/projects/demo/animals/index.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/animals", + "rootDir": "/user/username/projects/demo/animals", + "watch": true, + "configFilePath": "/user/username/projects/demo/animals/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -275,13 +306,29 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/demo/animals/animal.ts (computed .d.ts during emit) +/user/username/projects/demo/animals/animal.ts (used version) /user/username/projects/demo/animals/index.ts (computed .d.ts during emit) /user/username/projects/demo/lib/core/utilities.d.ts (used version) /user/username/projects/demo/animals/dog.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/demo/zoo/zoo.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/zoo","rootDir":"/user/username/projects/demo/zoo","watch":true,"configFilePath":"/user/username/projects/demo/zoo/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/zoo/zoo.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/zoo", + "rootDir": "/user/username/projects/demo/zoo", + "watch": true, + "configFilePath": "/user/username/projects/demo/zoo/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -328,7 +375,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,10 +396,10 @@ export declare function lastElementOf(arr: T[]): T | undefined; }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -384,7 +431,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1372 + "size": 1348 } //// [/user/username/projects/demo/lib/animals/animal.js] @@ -441,7 +488,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -477,19 +524,15 @@ export declare function createDog(): Dog; "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../core/utilities.d.ts": { @@ -498,10 +541,10 @@ export declare function createDog(): Dog; }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -561,7 +604,7 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2465 + "size": 2260 } //// [/user/username/projects/demo/lib/zoo/zoo.js] @@ -583,7 +626,7 @@ export declare function createZoo(): Array; //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -628,10 +671,10 @@ export declare function createZoo(): Array; }, "../../zoo/zoo.ts": { "original": { - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" }, - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" } }, @@ -688,6 +731,6 @@ export declare function createZoo(): Array; "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1821 + "size": 1804 } diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js index 39e31209e38..0f7a477ef76 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -371,8 +411,29 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 unde FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -410,8 +471,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -431,8 +506,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -452,8 +541,23 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js index 32e7b7a8892..d019fc54c4d 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -387,8 +427,29 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 unde FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -426,8 +487,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -447,8 +522,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -468,8 +557,23 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.esnext.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js index 5ca6208d836..e510b2fa185 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js @@ -1,17 +1,36 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/packages/pkg1/index.ts] import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build"},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build" + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","baseUrl":"."}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "baseUrl": "." + } +} //// [/user/username/projects/myproject/packages/pkg2/const.ts] export type TheNum = 42; @@ -23,7 +42,11 @@ export type { TheNum } from './const.js'; export type TheStr = string; //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -99,8 +122,19 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts","/user/username/projects/myproject/packages/pkg2/other.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts", + "/user/username/projects/myproject/packages/pkg2/other.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -120,8 +154,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/other.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -295,7 +336,11 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/other.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/other.js" +} Before running Timeout callback:: count: 1 @@ -341,8 +386,15 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -364,7 +416,11 @@ Change:: removes those errors when a package file is changed back Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} Before running Timeout callback:: count: 1 @@ -414,8 +470,15 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js index ac054a64b49..1c26d43613b 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js @@ -1,14 +1,29 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"module"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} //// [/user/username/projects/myproject/packages/pkg1/index.ts] import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build","module":"node16"},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build", + "module": "node16" + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/const.cts] export type TheNum = 42; @@ -17,10 +32,21 @@ export type TheNum = 42; export type { TheNum } from './const.cjs'; //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","module":"node16"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "module": "node16" + } +} //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js","type":"module"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.es2022.full.d.ts] @@ -106,8 +132,18 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.cts","/user/username/projects/myproject/packages/pkg2/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.cts", + "/user/username/projects/myproject/packages/pkg2/index.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -124,8 +160,16 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/const.cts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -290,7 +334,12 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"commonjs"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "commonjs" +} Before running Timeout callback:: count: 1 @@ -354,8 +403,16 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -376,7 +433,12 @@ Change:: removes those errors when a package file is changed back Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"module"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -431,8 +493,16 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -454,7 +524,12 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"commonjs"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "commonjs" +} Before running Timeout callback:: count: 1 @@ -518,8 +593,16 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -540,7 +623,12 @@ Change:: removes those errors when a package file is changed to cjs extensions Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.cjs","type":"module"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.cjs", + "type": "module" +} //// [/user/username/projects/myproject/packages/pkg2/index.cts] export type { TheNum } from './const.cjs'; @@ -617,8 +705,18 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.cts","/user/username/projects/myproject/packages/pkg2/index.cts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.cts", + "/user/username/projects/myproject/packages/pkg2/index.cts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -631,8 +729,16 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/index.cts (computed .d.ts) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js index c3b4340d50e..059a265542a 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js @@ -7,7 +7,18 @@ import { foo } from "file"; export const foo = 10; //// [/user/username/projects/myproject/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"types":["foo","bar"]},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true, + "types": [ + "foo", + "bar" + ] + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/project2/index.ts] import { foo } from "file"; @@ -16,7 +27,18 @@ import { foo } from "file"; export const foo = 10; //// [/user/username/projects/myproject/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"types":["foo"],"moduleResolution":"classic"},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true, + "types": [ + "foo" + ], + "moduleResolution": "classic" + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/node_modules/@types/foo/index.d.ts] export const foo = 10; @@ -25,7 +47,17 @@ export const foo = 10; export const bar = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"./project1"},{"path":"./project2"}]} +{ + "files": [], + "references": [ + { + "path": "./project1" + }, + { + "path": "./project2" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -63,8 +95,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/project1/index.ts"] -Program options: {"composite":true,"types":["foo","bar"],"watch":true,"configFilePath":"/user/username/projects/myproject/project1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/project1/index.ts" +] +Program options: { + "composite": true, + "types": [ + "foo", + "bar" + ], + "watch": true, + "configFilePath": "/user/username/projects/myproject/project1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,8 +129,18 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/node_modules/@types/foo/index.d.ts (used version) /user/username/projects/myproject/node_modules/@types/bar/index.d.ts (used version) -Program root files: ["/user/username/projects/myproject/project2/index.ts"] -Program options: {"composite":true,"types":["foo"],"moduleResolution":1,"watch":true,"configFilePath":"/user/username/projects/myproject/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/project2/index.ts" +] +Program options: { + "composite": true, + "types": [ + "foo" + ], + "moduleResolution": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -319,8 +371,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/project1/index.ts"] -Program options: {"composite":true,"types":["foo","bar"],"watch":true,"configFilePath":"/user/username/projects/myproject/project1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/project1/index.ts" +] +Program options: { + "composite": true, + "types": [ + "foo", + "bar" + ], + "watch": true, + "configFilePath": "/user/username/projects/myproject/project1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js index e9c1e45eeaf..e0ca11d165e 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js @@ -22,7 +22,12 @@ declare const console: { log(msg: any): void; }; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"allowJs":true,"noEmit":true}} +{ + "compilerOptions": { + "allowJs": true, + "noEmit": true + } +} /a/lib/tsc.js -b -w -verbose --incremental @@ -41,8 +46,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -182,8 +196,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js index b08eeea7521..19ec6c5a9a8 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js @@ -22,7 +22,12 @@ declare const console: { log(msg: any): void; }; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"allowJs":true,"noEmit":true}} +{ + "compilerOptions": { + "allowJs": true, + "noEmit": true + } +} /a/lib/tsc.js -b -w -verbose @@ -41,8 +46,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +107,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +152,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js index bb7f4ac6efa..bbb3b6464dd 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js @@ -1,28 +1,30 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - //// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; -} +export interface A { + name: string; +} + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } +console.log("hi"); +export { } + //// [/a/lib/lib.d.ts] /// @@ -61,8 +63,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -91,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":false},{"version":"2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","signature":false},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -119,24 +131,24 @@ exitCode:: ExitStatus.undefined }, "../shared/types/db.ts": { "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": false }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", "signature": false }, - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": false }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -170,7 +182,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1110 + "size": 1104 } @@ -199,8 +211,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -240,8 +262,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -257,14 +289,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/noemitonerror/shared/types/db.ts (computed .d.ts) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) /user/username/projects/noemitonerror/src/main.ts (computed .d.ts) /user/username/projects/noemitonerror/src/other.ts (computed .d.ts) exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -291,11 +323,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -308,10 +336,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -346,7 +374,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1196 + "size": 1110 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -397,8 +425,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -415,7 +453,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -442,11 +480,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -459,10 +493,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -515,7 +549,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1355 + "size": 1269 } @@ -544,8 +578,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -583,8 +627,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -601,7 +655,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -628,11 +682,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -645,10 +695,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -683,7 +733,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1187 + "size": 1101 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js index 27913569a17..1c5273472ef 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js @@ -1,28 +1,30 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - //// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; -} +export interface A { + name: string; +} + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } +console.log("hi"); +export { } + //// [/a/lib/lib.d.ts] /// @@ -61,8 +63,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +127,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -157,8 +177,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -174,7 +203,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/noemitonerror/shared/types/db.ts (computed .d.ts) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) /user/username/projects/noemitonerror/src/main.ts (computed .d.ts) /user/username/projects/noemitonerror/src/other.ts (computed .d.ts) @@ -228,8 +257,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -271,8 +309,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -312,8 +359,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -360,8 +416,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js index acc1c920399..0c517989aea 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests +/a/lib/tsc.js -b -w tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,6 +554,6 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js index 3e0324a1a8e..4f5ec40ff86 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,141 +14,155 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests -verbose +/a/lib/tsc.js -b -w tests -verbose Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:00:46 AM] Projects in this build: - * sample1/core/tsconfig.json - * sample1/logic/tsconfig.json - * sample1/tests/tsconfig.json +[12:00:40 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:47 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/tsconfig.tsbuildinfo' does not exist +[12:00:41 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:48 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:42 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:06 AM] Project 'sample1/logic/tsconfig.json' is out of date because output file 'sample1/logic/tsconfig.tsbuildinfo' does not exist +[12:01:00 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:01:07 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:01 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:19 AM] Project 'sample1/tests/tsconfig.json' is out of date because output file 'sample1/tests/tsconfig.tsbuildinfo' does not exist +[12:01:13 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:01:20 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:01:14 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:01:30 AM] Found 0 errors. Watching for file changes. +[12:01:24 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -168,8 +182,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -197,6 +220,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -251,7 +276,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,7 +284,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -273,29 +299,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -309,12 +347,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -340,7 +379,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -380,10 +419,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -419,7 +458,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -440,7 +479,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -486,10 +525,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -532,7 +571,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -540,12 +579,12 @@ Change:: Make non dts change Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function someFn() { } @@ -555,22 +594,32 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... -[12:01:35 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' +[12:01:28 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' -[12:01:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:29 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:50 AM] Project 'sample1/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:43 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:51 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:01:44 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:01:53 AM] Found 0 errors. Watching for file changes. +[12:01:46 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -604,7 +653,7 @@ function someFn() { } //# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -644,10 +693,10 @@ function someFn() { } }, "./index.ts": { "original": { - "version": "937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }", + "version": "-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }", + "version": "-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -683,7 +732,7 @@ function someFn() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1464 + "size": 1455 } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time @@ -692,12 +741,12 @@ Change:: Make dts change Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; export function someFn() { } @@ -711,22 +760,32 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:57 AM] File change detected. Starting incremental compilation... +[12:01:50 AM] File change detected. Starting incremental compilation... -[12:01:58 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' +[12:01:51 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' -[12:01:59 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:52 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:02:16 AM] Project 'sample1/tests/tsconfig.json' is out of date because output 'sample1/tests/index.js' is older than input 'sample1/logic/tsconfig.json' +[12:02:09 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/index.js' is older than input 'logic/tsconfig.json' -[12:02:17 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:02:10 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:02:28 AM] Found 0 errors. Watching for file changes. +[12:02:21 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -740,8 +799,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -786,7 +854,7 @@ export declare function someFn(): void; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }","signature":"-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }","signature":"-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -826,10 +894,10 @@ export declare function someFn(): void; }, "./index.ts": { "original": { - "version": "-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }", + "version": "-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }", "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n" }, - "version": "-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }", + "version": "-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }", "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n" } }, @@ -865,12 +933,12 @@ export declare function someFn(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1514 + "size": 1502 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -916,10 +984,10 @@ export declare function someFn(): void; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -962,6 +1030,6 @@ export declare function someFn(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1629 + "size": 1614 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js index 0a35b7d29b7..cbc5a5ea500 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -35,8 +39,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,8 +206,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -235,8 +253,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js index f14b57255b5..7539568179b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -35,8 +39,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,8 +206,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js index 165f283b17e..5357990871b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -40,8 +44,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -96,8 +107,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js index 6f02ffe7009..b0e73e19f54 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -40,8 +44,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +105,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js index c6edeff33bf..cb4ba6ae4dc 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests +/a/lib/tsc.js -b -w tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -523,12 +562,12 @@ Change:: change logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; let y: string = 10; @@ -538,19 +577,29 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:35 AM] Found 1 error. Watching for file changes. +[12:01:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -567,7 +616,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -607,10 +656,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -646,7 +695,7 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 184, + "start": 178, "length": 1, "code": 2322, "category": 1, @@ -664,7 +713,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1635 + "size": 1623 } @@ -672,9 +721,9 @@ Change:: change core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } let x: string = 10; @@ -684,29 +733,41 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:39 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... -sample1/core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. +core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. 5 let x: string = 10;    ~ -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:47 AM] Found 2 errors. Watching for file changes. +[12:01:39 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -717,7 +778,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -725,7 +786,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -739,29 +801,41 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -780,14 +854,15 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 186, + "start": 183, "length": 1, "code": 2322, "category": 1, "messageText": "Type 'number' is not assignable to type 'string'." } ] - ] + ], + "./some_decl.d.ts" ], "affectedFilesPendingEmit": [ [ @@ -798,6 +873,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1497 + "size": 1586 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js index 49741378f06..a1b021207d4 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,123 +14,139 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests --preserveWatchOutput +/a/lib/tsc.js -b -w tests --preserveWatchOutput Output:: -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -150,8 +166,18 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -179,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -233,7 +261,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -241,7 +269,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -255,29 +284,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -291,12 +332,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -322,7 +364,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -362,10 +404,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -401,7 +443,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -422,7 +464,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -468,10 +510,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -514,7 +556,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -522,12 +564,12 @@ Change:: change logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; let y: string = 10; @@ -536,19 +578,30 @@ Before running Timeout callback:: count: 1 1: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:35 AM] Found 1 error. Watching for file changes. +[12:01:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -565,7 +618,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -605,10 +658,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -644,7 +697,7 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 184, + "start": 178, "length": 1, "code": 2322, "category": 1, @@ -662,7 +715,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1635 + "size": 1623 } @@ -670,9 +723,9 @@ Change:: change core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } let x: string = 10; @@ -681,29 +734,42 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:39 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... -sample1/core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. +core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. 5 let x: string = 10;    ~ -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:47 AM] Found 2 errors. Watching for file changes. +[12:01:39 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -714,7 +780,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -722,7 +788,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -736,29 +803,41 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -777,14 +856,15 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 186, + "start": 183, "length": 1, "code": 2322, "category": 1, "messageText": "Type 'number' is not assignable to type 'string'." } ] - ] + ], + "./some_decl.d.ts" ], "affectedFilesPendingEmit": [ [ @@ -795,6 +875,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1497 + "size": 1586 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js index e64847ff5a2..28945f4c70e 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js @@ -14,58 +14,136 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"outDir"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir" + } +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + /a/lib/tsc.js -b -w sample1/core -verbose Output:: >> Screen clear -[12:00:27 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:00:28 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * sample1/core/tsconfig.json -[12:00:29 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/outDir/tsconfig.tsbuildinfo' does not exist +[12:00:41 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/outDir/tsconfig.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:42 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:47 AM] Found 0 errors. Watching for file changes. +[12:00:59 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/sample1/core/outDir","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/sample1/core/outDir", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) FsWatches:: /user/username/projects/sample1/core/anothermodule.ts: *new* {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} @@ -104,7 +182,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -112,7 +190,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": { @@ -126,29 +205,41 @@ export declare function multiply(a: number, b: number): number; }, "../anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "../index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "../some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "../anothermodule.ts" - ], - [ - 3, - "../index.ts" + [ + 2, + 4 + ], + [ + "../anothermodule.ts", + "../index.ts", + "../some_decl.d.ts" + ] ] ], "options": { @@ -160,12 +251,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1346 } @@ -192,24 +284,35 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:00:50 AM] File change detected. Starting incremental compilation... +[12:01:02 AM] File change detected. Starting incremental compilation... -[12:00:51 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/outDir/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' +[12:01:03 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/outDir/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' -[12:00:52 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:01:04 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:04 AM] Found 0 errors. Watching for file changes. +[12:01:16 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/file3.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/sample1/core/outDir","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/file3.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/sample1/core/outDir", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/file3.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/file3.ts @@ -224,6 +327,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} @@ -234,7 +339,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -243,7 +348,8 @@ exitCode:: ExitStatus.undefined "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", "../file3.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": { @@ -257,10 +363,10 @@ exitCode:: ExitStatus.undefined }, "../anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "../file3.ts": { @@ -273,23 +379,33 @@ exitCode:: ExitStatus.undefined }, "../index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "../some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "../anothermodule.ts", "../file3.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ] ] ], @@ -303,12 +419,13 @@ exitCode:: ExitStatus.undefined "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", "../file3.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1379 + "size": 1467 } //// [/user/username/projects/sample1/core/outDir/file3.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js index 96be899153c..4bdc8a4c448 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,65 +14,140 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/core -verbose +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + + +/a/lib/tsc.js -b -w core -verbose Output:: >> Screen clear -[12:00:27 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:00:28 AM] Projects in this build: - * sample1/core/tsconfig.json +[12:00:40 AM] Projects in this build: + * core/tsconfig.json -[12:00:29 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/tsconfig.tsbuildinfo' does not exist +[12:00:41 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:42 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:48 AM] Found 0 errors. Watching for file changes. +[12:01:00 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) FsWatches:: /user/username/projects/sample1/core/anothermodule.ts: *new* {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} @@ -117,7 +192,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -125,7 +200,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -139,29 +215,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -175,12 +263,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } @@ -207,24 +296,37 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:01:03 AM] File change detected. Starting incremental compilation... -[12:00:52 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' +[12:01:04 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/file3.ts' -[12:00:53 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:01:05 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:07 AM] Found 0 errors. Watching for file changes. +[12:01:19 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/file3.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/file3.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/file3.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/file3.ts @@ -239,6 +341,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} @@ -249,7 +353,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,7 +362,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./file3.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -272,10 +377,10 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./file3.ts": { @@ -288,23 +393,33 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./file3.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ] ] ], @@ -320,12 +435,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./file3.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1427 + "size": 1514 } //// [/user/username/projects/sample1/core/file3.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js index 8f22231258f..ff697c60eef 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/src/project/main.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/main.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js index 3b4c73808d7..de813f37878 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js --b --w Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:14 AM] Found 0 errors. Watching for file changes. +[12:01:08 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -156,6 +170,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -206,7 +222,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -214,7 +230,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -228,29 +245,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -264,12 +293,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -295,7 +325,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -335,10 +365,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -374,6 +404,6 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js index 8297a7ab7d0..387d8c6ecbd 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,89 +14,111 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests +/a/lib/tsc.js -b -w tests Output:: >> Screen clear -[12:00:37 AM] Starting compilation in watch mode... +[12:00:40 AM] Starting compilation in watch mode... error TS5083: Cannot read file '/user/username/projects/sample1/logic/tsconfig.json'. -[12:00:55 AM] Found 1 error. Watching for file changes. +[12:00:58 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) PolledWatches:: /user/username/projects/sample1/logic/tsconfig.json: *new* @@ -107,6 +129,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/tests/index.ts: *new* @@ -155,7 +179,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -163,7 +187,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -177,29 +202,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -213,12 +250,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } @@ -226,21 +264,22 @@ Change:: Write logic tsconfig and build logic Input:: //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - PolledWatches *deleted*:: /user/username/projects/sample1/logic/tsconfig.json: {"pollingInterval":2000} @@ -250,6 +289,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/tsconfig.json: *new* @@ -271,12 +312,22 @@ Output:: sysLog:: /user/username/projects/sample1/logic/tsconfig.json:: Changing watcher to PresentFileSystemEntryWatcher >> Screen clear -[12:00:58 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -301,6 +352,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/index.ts: *new* @@ -343,7 +396,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -383,10 +436,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -422,7 +475,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } @@ -434,12 +487,21 @@ Before running Timeout callback:: count: 1 3: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:19 AM] Found 0 errors. Watching for file changes. +[12:01:22 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -482,7 +544,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -528,10 +590,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -574,6 +636,6 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js index 492034a2f85..eb19276fbb2 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js @@ -28,14 +28,24 @@ export function createSomeObject(): SomeObject } //// [/user/username/projects/sample1/Library/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/sample1/App/app.ts] import { createSomeObject } from "../Library/library"; createSomeObject().message; //// [/user/username/projects/sample1/App/tsconfig.json] -{"references":[{"path":"../Library"}]} +{ + "references": [ + { + "path": "../Library" + } + ] +} /a/lib/tsc.js -b -w App @@ -47,8 +57,14 @@ Output:: -Program root files: ["/user/username/projects/sample1/Library/library.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/sample1/Library/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/Library/library.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/Library/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -62,8 +78,13 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/library/library.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/App/app.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/sample1/App/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/App/app.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/sample1/App/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -219,8 +240,14 @@ Output:: -Program root files: ["/user/username/projects/sample1/Library/library.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/sample1/Library/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/Library/library.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/Library/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -232,8 +259,13 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/sample1/library/library.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/App/app.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/sample1/App/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/App/app.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/sample1/App/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -354,8 +386,14 @@ Output:: -Program root files: ["/user/username/projects/sample1/Library/library.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/sample1/Library/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/Library/library.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/Library/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -367,8 +405,13 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/sample1/library/library.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/App/app.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/sample1/App/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/App/app.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/sample1/App/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js index 1e64d87542a..72462e5ad30 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js @@ -14,13 +14,32 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"outFile":"index.js"}} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "outFile": "index.js" + } +} //// [/user/username/projects/sample1/core/index.ts] function foo() { return 10; } //// [/user/username/projects/sample1/logic/tsconfig.json] -{"compilerOptions":{"ignoreDeprecations":"5.0","composite":true,"declaration":true,"outFile":"index.js"},"references":[{"path":"../core","prepend":true}]} +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "outFile": "index.js" + }, + "references": [ + { + "path": "../core", + "prepend": true + } + ] +} //// [/user/username/projects/sample1/logic/index.ts] function bar() { return foo() + 1 }; @@ -35,8 +54,16 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/core/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/core/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -46,8 +73,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"ignoreDeprecations":"5.0","composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/logic/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/logic/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -299,12 +335,20 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:00:56 AM] File change detected. Starting incremental compilation... +[12:00:55 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/core/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/core/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -411,12 +455,21 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:29 AM] Found 0 errors. Watching for file changes. +[12:01:28 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"ignoreDeprecations":"5.0","composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/logic/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/logic/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -574,12 +627,20 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:33 AM] File change detected. Starting incremental compilation... +[12:01:32 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/core/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/core/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -681,7 +742,7 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:00 AM] Found 0 errors. Watching for file changes. +[12:01:59 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js index ab2a0b4a374..543829ff3fe 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -14,66 +14,86 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"references":[{"path":"../tests","circular":true}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { + "path": "../tests", + "circular": true + } + ] +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -86,26 +106,48 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +167,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -202,7 +255,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,7 +263,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -224,29 +278,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -258,12 +324,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -289,7 +356,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -329,10 +396,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -368,7 +435,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -389,7 +456,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -435,10 +502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -481,7 +548,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -502,14 +569,25 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -524,6 +602,8 @@ FsWatches:: {} /user/username/projects/sample1/core/newfile.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/index.ts: @@ -544,7 +624,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -553,7 +633,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -567,18 +648,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./newfile.ts": { @@ -588,18 +669,28 @@ exitCode:: ExitStatus.undefined }, "version": "-16320201030-export const newFileConst = 30;", "signature": "-22941483372-export declare const newFileConst = 30;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -613,12 +704,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1405 + "size": 1492 } //// [/user/username/projects/sample1/core/newfile.js] @@ -645,8 +737,18 @@ Output:: -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -658,8 +760,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -691,18 +802,29 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -713,7 +835,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -722,7 +844,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -736,18 +859,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./newfile.ts": { @@ -757,18 +880,28 @@ exitCode:: ExitStatus.undefined }, "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -782,12 +915,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1471 + "size": 1558 } //// [/user/username/projects/sample1/core/newfile.js] @@ -818,12 +952,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:50 AM] Found 0 errors. Watching for file changes. +[12:01:49 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -835,8 +979,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js index d7b8f2b6192..3b12d46839f 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js @@ -14,66 +14,86 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"references":[{"path":"../tests","circular":true}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { + "path": "../tests", + "circular": true + } + ] +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -86,26 +106,48 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +167,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -202,7 +255,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,7 +263,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -224,29 +278,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -258,12 +324,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -289,7 +356,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -329,10 +396,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -368,7 +435,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -389,7 +456,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -435,10 +502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -481,7 +548,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -489,9 +556,9 @@ Change:: Make change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } @@ -502,17 +569,27 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -548,7 +625,7 @@ export declare class someClass { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -556,7 +633,8 @@ export declare class someClass { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -570,29 +648,41 @@ export declare class someClass { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -604,12 +694,13 @@ export declare class someClass { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1321 + "size": 1410 } @@ -621,12 +712,22 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:54 AM] Found 0 errors. Watching for file changes. +[12:01:53 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -642,8 +743,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -665,7 +775,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -705,10 +815,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -744,12 +854,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1480 + "size": 1468 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -795,10 +905,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -841,7 +951,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1625 + "size": 1610 } @@ -849,9 +959,9 @@ Change:: Revert core file Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } @@ -861,17 +971,27 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:58 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -899,7 +1019,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -907,7 +1027,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -921,29 +1042,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -955,12 +1088,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } @@ -972,12 +1106,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:35 AM] Found 0 errors. Watching for file changes. +[12:02:34 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -993,8 +1137,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1016,7 +1169,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1056,10 +1209,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1095,12 +1248,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1146,10 +1299,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1192,7 +1345,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -1200,9 +1353,9 @@ Change:: Make two changes Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } export class someClass2 { } @@ -1214,17 +1367,27 @@ After running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:02:42 AM] File change detected. Starting incremental compilation... +[12:02:39 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -1268,7 +1431,7 @@ export declare class someClass2 { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1276,7 +1439,8 @@ export declare class someClass2 { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -1290,29 +1454,41 @@ export declare class someClass2 { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" }, - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -1324,12 +1500,13 @@ export declare class someClass2 { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1387 + "size": 1477 } @@ -1341,12 +1518,22 @@ Before running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:03:20 AM] Found 0 errors. Watching for file changes. +[12:03:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1362,8 +1549,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1385,7 +1581,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1425,10 +1621,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1464,12 +1660,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1518 + "size": 1506 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1515,10 +1711,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1561,6 +1757,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1663 + "size": 1648 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js index 501febf8aa0..c271db2fffb 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js @@ -14,66 +14,86 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"references":[{"path":"../tests","circular":true}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { + "path": "../tests", + "circular": true + } + ] +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -86,26 +106,48 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +167,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -202,7 +255,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,7 +263,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -224,29 +278,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -258,12 +324,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -289,7 +356,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -329,10 +396,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -368,7 +435,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -389,7 +456,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -435,10 +502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -481,7 +548,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -489,9 +556,9 @@ Change:: Make local change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } function foo() { } @@ -501,19 +568,29 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... -[12:01:30 AM] Found 0 errors. Watching for file changes. +[12:01:29 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -536,7 +613,7 @@ function foo() { } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -544,7 +621,8 @@ function foo() { } "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -558,29 +636,41 @@ function foo() { } }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -592,12 +682,13 @@ function foo() { } "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1364 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 62b4f75eb8e..b106d40b993 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js -b -w sample1/tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -532,18 +571,31 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:26 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -558,6 +610,8 @@ FsWatches:: {} /user/username/projects/sample1/core/newfile.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/index.ts: @@ -578,7 +632,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -587,7 +641,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -601,18 +656,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./newfile.ts": { @@ -622,18 +677,28 @@ exitCode:: ExitStatus.undefined }, "version": "-16320201030-export const newFileConst = 30;", "signature": "-22941483372-export declare const newFileConst = 30;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -649,12 +714,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1454 + "size": 1541 } //// [/user/username/projects/sample1/core/newfile.js] @@ -680,12 +746,22 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:42 AM] Found 0 errors. Watching for file changes. +[12:01:36 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -697,8 +773,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -730,18 +815,31 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:46 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -752,7 +850,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -761,7 +859,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -775,18 +874,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./newfile.ts": { @@ -796,18 +895,28 @@ exitCode:: ExitStatus.undefined }, "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -823,12 +932,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1520 + "size": 1607 } //// [/user/username/projects/sample1/core/newfile.js] @@ -862,12 +972,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:05 AM] Found 0 errors. Watching for file changes. +[12:01:58 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -879,8 +999,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js index e630fda3c0b..1f5b3840843 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js -b -w sample1/tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -523,9 +562,9 @@ Change:: Make change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } @@ -536,17 +575,29 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -585,7 +636,7 @@ export declare class someClass { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","signature":"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -593,7 +644,8 @@ export declare class someClass { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -607,29 +659,41 @@ export declare class someClass { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -643,12 +707,13 @@ export declare class someClass { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1459 } @@ -660,12 +725,22 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:07 AM] Found 0 errors. Watching for file changes. +[12:02:00 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -681,8 +756,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -704,7 +788,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -744,10 +828,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -783,12 +867,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1480 + "size": 1468 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -834,10 +918,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -880,7 +964,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1625 + "size": 1610 } @@ -888,9 +972,9 @@ Change:: Revert core file Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } @@ -900,17 +984,29 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:02:11 AM] File change detected. Starting incremental compilation... +[12:02:04 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -941,7 +1037,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -949,7 +1045,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -963,29 +1060,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -999,12 +1108,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } @@ -1016,12 +1126,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:51 AM] Found 0 errors. Watching for file changes. +[12:02:44 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1037,8 +1157,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1060,7 +1189,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1100,10 +1229,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1139,12 +1268,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1190,10 +1319,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1236,7 +1365,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -1244,9 +1373,9 @@ Change:: Make two changes Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } export class someClass2 { } @@ -1258,17 +1387,29 @@ After running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:02:58 AM] File change detected. Starting incremental compilation... +[12:02:49 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -1315,7 +1456,7 @@ export declare class someClass2 { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","signature":"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1323,7 +1464,8 @@ export declare class someClass2 { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -1337,29 +1479,41 @@ export declare class someClass2 { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" }, - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -1373,12 +1527,13 @@ export declare class someClass2 { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1436 + "size": 1526 } @@ -1390,12 +1545,22 @@ Before running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:03:39 AM] Found 0 errors. Watching for file changes. +[12:03:30 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1411,8 +1576,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1434,7 +1608,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1474,10 +1648,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1513,12 +1687,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1518 + "size": 1506 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1564,10 +1738,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1610,6 +1784,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1663 + "size": 1648 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js index 1b199b9821c..5c859c10c8b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js -b -w sample1/tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -523,9 +562,9 @@ Change:: Make local change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } function foo() { } @@ -535,19 +574,31 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -[12:01:43 AM] Found 0 errors. Watching for file changes. +[12:01:36 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -571,7 +622,7 @@ function foo() { } //// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -579,7 +630,8 @@ function foo() { } "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -593,29 +645,41 @@ function foo() { } }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -629,12 +693,13 @@ function foo() { } "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1325 + "size": 1413 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js index 76ecf61bb41..0e4a06e0e45 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js @@ -14,13 +14,36 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"references":[{"path":"./project1.tsconfig.json"},{"path":"./project2.tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./project1.tsconfig.json" + }, + { + "path": "./project2.tsconfig.json" + } + ], + "files": [] +} //// [/a/b/alpha.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/a/b/project1.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} //// [/a/b/commonFile1.ts] let x = 1 @@ -29,10 +52,22 @@ let x = 1 let y = 1 //// [/a/b/bravo.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/a/b/project2.tsconfig.json] -{"extends":"./bravo.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/other.ts"]} +{ + "extends": "./bravo.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/other.ts" + ] +} //// [/a/b/other.ts] let z = 0; @@ -60,8 +95,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -78,8 +121,15 @@ Shape signatures in builder refreshed for:: /a/b/commonfile1.ts (computed .d.ts during emit) /a/b/commonfile2.ts (computed .d.ts during emit) -Program root files: ["/a/b/other.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -267,7 +317,14 @@ Change:: Remove project2 from base config Input:: //// [/a/b/tsconfig.json] -{"references":[{"path":"./project1.tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./project1.tsconfig.json" + } + ], + "files": [] +} Before running Timeout callback:: count: 1 diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js index 273a541da05..cb4aba0df2e 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js @@ -4,7 +4,11 @@ Input:: const fn = (a: string, b: string) => b; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noUnusedParameters":true}} +{ + "compilerOptions": { + "noUnusedParameters": true + } +} //// [/a/lib/lib.d.ts] /// @@ -34,8 +38,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"noUnusedParameters":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "noUnusedParameters": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -66,7 +76,11 @@ Change:: Change tsconfig to set noUnusedParameters to false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noUnusedParameters":false}} +{ + "compilerOptions": { + "noUnusedParameters": false + } +} Before running Timeout callback:: count: 1 @@ -80,8 +94,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"noUnusedParameters":false,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "noUnusedParameters": false, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js index f5f8b7dc149..a75cb6565a3 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js @@ -17,7 +17,16 @@ interface Array { length: number; [n: number]: T; } {} //// [/a/b/project1.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} //// [/a/b/commonFile1.ts] let x = 1 @@ -26,10 +35,20 @@ let x = 1 let y = 1 //// [/a/b/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} //// [/a/b/project2.tsconfig.json] -{"extends":"./bravo.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/other.ts"]} +{ + "extends": "./bravo.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/other.ts" + ] +} //// [/a/b/other.ts] let z = 0; @@ -38,16 +57,40 @@ let z = 0; let k = 0; //// [/a/b/extendsConfig1.tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/a/b/extendsConfig2.tsconfig.json] -{"compilerOptions":{"strictNullChecks":false}} +{ + "compilerOptions": { + "strictNullChecks": false + } +} //// [/a/b/extendsConfig3.tsconfig.json] -{"compilerOptions":{"noImplicitAny":true}} +{ + "compilerOptions": { + "noImplicitAny": true + } +} //// [/a/b/project3.tsconfig.json] -{"extends":["./extendsConfig1.tsconfig.json","./extendsConfig2.tsconfig.json","./extendsConfig3.tsconfig.json"],"compilerOptions":{"composite":false},"files":["/a/b/other2.ts"]} +{ + "extends": [ + "./extendsConfig1.tsconfig.json", + "./extendsConfig2.tsconfig.json", + "./extendsConfig3.tsconfig.json" + ], + "compilerOptions": { + "composite": false + }, + "files": [ + "/a/b/other2.ts" + ] +} /a/lib/tsc.js -b -w -v project1.tsconfig.json project2.tsconfig.json project3.tsconfig.json @@ -76,8 +119,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +144,14 @@ Shape signatures in builder refreshed for:: /a/b/commonfile1.ts (computed .d.ts during emit) /a/b/commonfile2.ts (computed .d.ts during emit) -Program root files: ["/a/b/other.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -109,8 +165,16 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /a/b/other.ts (computed .d.ts during emit) -Program root files: ["/a/b/other2.ts"] -Program options: {"composite":false,"strictNullChecks":false,"noImplicitAny":true,"watch":true,"configFilePath":"/a/b/project3.tsconfig.json"} +Program root files: [ + "/a/b/other2.ts" +] +Program options: { + "composite": false, + "strictNullChecks": false, + "noImplicitAny": true, + "watch": true, + "configFilePath": "/a/b/project3.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -305,7 +369,11 @@ Change:: Modify alpha config Input:: //// [/a/b/alpha.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} Before running Timeout callback:: count: 1 @@ -322,8 +390,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -435,8 +511,15 @@ Output:: -Program root files: ["/a/b/other.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -513,7 +596,12 @@ Change:: change bravo config Input:: //// [/a/b/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"strict":false}} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "strict": false + } +} Before running Timeout callback:: count: 1 @@ -531,8 +619,15 @@ Output:: -Program root files: ["/a/b/other.ts"] -Program options: {"strict":false,"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "strict": false, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -608,7 +703,9 @@ Change:: project 2 extends alpha Input:: //// [/a/b/project2.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} Before running Timeout callback:: count: 1 @@ -626,8 +723,17 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts","/a/b/other.ts","/a/b/other2.ts"] -Program options: {"strict":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts", + "/a/b/other.ts", + "/a/b/other2.ts" +] +Program options: { + "strict": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -717,8 +823,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -827,8 +940,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts","/a/b/other.ts","/a/b/other2.ts"] -Program options: {"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts", + "/a/b/other.ts", + "/a/b/other2.ts" +] +Program options: { + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -863,7 +984,11 @@ Change:: Modify extendsConfigFile2 Input:: //// [/a/b/extendsConfig2.tsconfig.json] -{"compilerOptions":{"strictNullChecks":true}} +{ + "compilerOptions": { + "strictNullChecks": true + } +} Before running Timeout callback:: count: 1 @@ -883,8 +1008,16 @@ Output:: -Program root files: ["/a/b/other2.ts"] -Program options: {"composite":false,"strictNullChecks":true,"noImplicitAny":true,"watch":true,"configFilePath":"/a/b/project3.tsconfig.json"} +Program root files: [ + "/a/b/other2.ts" +] +Program options: { + "composite": false, + "strictNullChecks": true, + "noImplicitAny": true, + "watch": true, + "configFilePath": "/a/b/project3.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -904,7 +1037,18 @@ Change:: Modify project 3 Input:: //// [/a/b/project3.tsconfig.json] -{"extends":["./extendsConfig1.tsconfig.json","./extendsConfig2.tsconfig.json"],"compilerOptions":{"composite":false},"files":["/a/b/other2.ts"]} +{ + "extends": [ + "./extendsConfig1.tsconfig.json", + "./extendsConfig2.tsconfig.json" + ], + "compilerOptions": { + "composite": false + }, + "files": [ + "/a/b/other2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -924,8 +1068,15 @@ Output:: -Program root files: ["/a/b/other2.ts"] -Program options: {"composite":false,"strictNullChecks":true,"watch":true,"configFilePath":"/a/b/project3.tsconfig.json"} +Program root files: [ + "/a/b/other2.ts" +] +Program options: { + "composite": false, + "strictNullChecks": true, + "watch": true, + "configFilePath": "/a/b/project3.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js index 8dd85765c17..8aefbd7d303 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js @@ -17,142 +17,417 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg4/index.ts] export const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg5/index.ts] export const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg6/index.ts] export const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg7/index.ts] export const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg8/index.ts] export const pkg8 = 8; //// [/user/username/projects/myproject/pkg8/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg9/index.ts] export const pkg9 = 9; //// [/user/username/projects/myproject/pkg9/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg10/index.ts] export const pkg10 = 10; //// [/user/username/projects/myproject/pkg10/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg11/index.ts] export const pkg11 = 11; //// [/user/username/projects/myproject/pkg11/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg12/index.ts] export const pkg12 = 12; //// [/user/username/projects/myproject/pkg12/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg13/index.ts] export const pkg13 = 13; //// [/user/username/projects/myproject/pkg13/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg14/index.ts] export const pkg14 = 14; //// [/user/username/projects/myproject/pkg14/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg15/index.ts] export const pkg15 = 15; //// [/user/username/projects/myproject/pkg15/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg16/index.ts] export const pkg16 = 16; //// [/user/username/projects/myproject/pkg16/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg17/index.ts] export const pkg17 = 17; //// [/user/username/projects/myproject/pkg17/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg18/index.ts] export const pkg18 = 18; //// [/user/username/projects/myproject/pkg18/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg19/index.ts] export const pkg19 = 19; //// [/user/username/projects/myproject/pkg19/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg20/index.ts] export const pkg20 = 20; //// [/user/username/projects/myproject/pkg20/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg21/index.ts] export const pkg21 = 21; //// [/user/username/projects/myproject/pkg21/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg22/index.ts] export const pkg22 = 22; //// [/user/username/projects/myproject/pkg22/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"},{"path":"./pkg4"},{"path":"./pkg5"},{"path":"./pkg6"},{"path":"./pkg7"},{"path":"./pkg8"},{"path":"./pkg9"},{"path":"./pkg10"},{"path":"./pkg11"},{"path":"./pkg12"},{"path":"./pkg13"},{"path":"./pkg14"},{"path":"./pkg15"},{"path":"./pkg16"},{"path":"./pkg17"},{"path":"./pkg18"},{"path":"./pkg19"},{"path":"./pkg20"},{"path":"./pkg21"},{"path":"./pkg22"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + }, + { + "path": "./pkg4" + }, + { + "path": "./pkg5" + }, + { + "path": "./pkg6" + }, + { + "path": "./pkg7" + }, + { + "path": "./pkg8" + }, + { + "path": "./pkg9" + }, + { + "path": "./pkg10" + }, + { + "path": "./pkg11" + }, + { + "path": "./pkg12" + }, + { + "path": "./pkg13" + }, + { + "path": "./pkg14" + }, + { + "path": "./pkg15" + }, + { + "path": "./pkg16" + }, + { + "path": "./pkg17" + }, + { + "path": "./pkg18" + }, + { + "path": "./pkg19" + }, + { + "path": "./pkg20" + }, + { + "path": "./pkg21" + }, + { + "path": "./pkg22" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -282,8 +557,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -297,8 +578,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -312,8 +599,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -327,8 +620,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -342,8 +641,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg3/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -357,8 +662,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg4/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -372,8 +683,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg5/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -387,8 +704,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg6/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -402,8 +725,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg7/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -417,8 +746,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg8/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -432,8 +767,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg9/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -447,8 +788,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg10/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -462,8 +809,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg11/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -477,8 +830,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg12/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -492,8 +851,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg13/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -507,8 +872,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg14/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -522,8 +893,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg15/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg16/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg16/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg16/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg16/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -537,8 +914,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg16/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg17/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg17/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg17/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg17/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -552,8 +935,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg17/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg18/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg18/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg18/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg18/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -567,8 +956,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg18/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg19/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg19/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg19/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg19/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -582,8 +977,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg19/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg20/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg20/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg20/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg20/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -597,8 +998,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg20/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg21/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg21/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg21/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg21/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -612,8 +1019,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg21/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg22/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg22/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg22/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg22/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2287,8 +2700,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2415,8 +2834,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2536,8 +2961,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2547,8 +2978,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2558,8 +2995,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2569,8 +3012,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2580,8 +3029,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2640,8 +3095,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2651,8 +3112,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2662,8 +3129,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2673,8 +3146,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2684,8 +3163,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2744,8 +3229,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2755,8 +3246,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2766,8 +3263,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2777,8 +3280,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2788,8 +3297,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2848,8 +3363,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg16/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg16/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg16/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg16/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2859,8 +3380,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg17/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg17/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg17/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg17/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2870,8 +3397,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg18/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg18/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg18/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg18/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2881,8 +3414,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg19/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg19/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg19/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg19/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2892,8 +3431,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg20/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg20/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg20/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg20/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2935,8 +3480,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg21/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg21/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg21/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg21/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2946,8 +3497,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg22/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg22/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg22/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg22/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2994,8 +3551,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3117,8 +3680,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3128,8 +3697,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3139,8 +3714,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3150,8 +3731,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3161,8 +3748,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3221,8 +3814,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3232,8 +3831,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3243,8 +3848,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3254,8 +3865,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3265,8 +3882,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3345,8 +3968,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3473,8 +4102,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3484,8 +4119,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3495,8 +4136,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3506,8 +4153,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3517,8 +4170,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3557,8 +4216,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3683,8 +4348,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3694,8 +4365,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3705,8 +4382,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3716,8 +4399,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3727,8 +4416,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3787,8 +4482,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3798,8 +4499,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3809,8 +4516,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3820,8 +4533,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3831,8 +4550,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3891,8 +4616,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3902,8 +4633,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3913,8 +4650,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3924,8 +4667,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3935,8 +4684,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3995,8 +4750,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg16/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg16/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg16/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg16/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4006,8 +4767,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg17/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg17/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg17/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg17/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4017,8 +4784,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg18/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg18/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg18/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg18/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4028,8 +4801,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg19/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg19/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg19/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg19/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4039,8 +4818,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg20/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg20/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg20/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg20/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4082,8 +4867,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg21/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg21/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg21/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg21/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4093,8 +4884,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg22/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg22/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg22/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg22/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js index cfe97603deb..015bc22c91c 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js @@ -17,22 +17,57 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -62,8 +97,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -77,8 +118,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -92,8 +139,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -347,8 +400,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -455,8 +514,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -559,8 +624,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -570,8 +641,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js index 11215e584e6..c73fd56318c 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js @@ -17,34 +17,93 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg4/index.ts] export const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"},{"path":"./pkg4"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + }, + { + "path": "./pkg4" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -84,8 +143,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -99,8 +164,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -114,8 +185,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -129,8 +206,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -144,8 +227,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg3/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -541,8 +630,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -651,8 +746,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -767,8 +868,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -778,8 +885,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -789,8 +902,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -800,8 +919,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js index 99d6305dc9e..76aed6908bf 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js @@ -17,52 +17,147 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg4/index.ts] export const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg5/index.ts] export const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg6/index.ts] export const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg7/index.ts] export const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"},{"path":"./pkg4"},{"path":"./pkg5"},{"path":"./pkg6"},{"path":"./pkg7"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + }, + { + "path": "./pkg4" + }, + { + "path": "./pkg5" + }, + { + "path": "./pkg6" + }, + { + "path": "./pkg7" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -117,8 +212,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -132,8 +233,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -147,8 +254,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -162,8 +275,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -177,8 +296,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg3/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -192,8 +317,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg4/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -207,8 +338,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg5/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -222,8 +359,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg6/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -832,8 +975,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -945,8 +1094,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1066,8 +1221,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1077,8 +1238,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1088,8 +1255,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1099,8 +1272,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1110,8 +1289,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1153,8 +1338,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1164,8 +1355,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1212,8 +1409,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1335,8 +1538,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1346,8 +1555,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1357,8 +1572,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1368,8 +1589,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1379,8 +1606,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1439,8 +1672,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1545,8 +1784,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1556,8 +1801,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js index e3283af7d6b..c350f5c7c2a 100644 --- a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js +++ b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js @@ -14,10 +14,24 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/user/username/projects/myproject/shared/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/shared/index.ts] export function f1() { } @@ -27,7 +41,16 @@ export enum e { } export function f2() { } // trailing //// [/user/username/projects/myproject/webpack/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../shared/tsconfig.json"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} //// [/user/username/projects/myproject/webpack/index.ts] export function f2() { } @@ -56,8 +79,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/shared/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/shared/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/shared/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/shared/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -71,8 +99,13 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/shared/index.ts (used version) -Program root files: ["/user/username/projects/myproject/webpack/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/webpack/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/webpack/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/webpack/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -313,8 +346,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/shared/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/shared/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/shared/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/shared/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -326,8 +364,13 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/shared/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/myproject/webpack/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/webpack/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/webpack/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/webpack/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js index a554d80a2a2..6f41ee4bb46 100644 --- a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js +++ b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js @@ -4,9 +4,15 @@ Input:: { "files": [], "include": [], - "references": [{ "path": "./pure" }, { "path": "./main" }] -} - + "references": [ + { + "path": "./pure" + }, + { + "path": "./main" + } + ] +} //// [/user/username/projects/reexport/src/main/tsconfig.json] { @@ -14,16 +20,21 @@ Input:: "outDir": "../../out", "rootDir": "../" }, - "include": ["**/*.ts"], - "references": [{ "path": "../pure" }] -} - + "include": [ + "**/*.ts" + ], + "references": [ + { + "path": "../pure" + } + ] +} //// [/user/username/projects/reexport/src/main/index.ts] import { Session } from "../pure"; export const session: Session = { - foo: 1 + foo: 1 }; @@ -34,9 +45,10 @@ export const session: Session = { "outDir": "../../out", "rootDir": "../" }, - "include": ["**/*.ts"] -} - + "include": [ + "**/*.ts" + ] +} //// [/user/username/projects/reexport/src/pure/index.ts] export * from "./session"; @@ -44,8 +56,8 @@ export * from "./session"; //// [/user/username/projects/reexport/src/pure/session.ts] export interface Session { - foo: number; - // bar: number; + foo: number; + // bar: number; } @@ -87,8 +99,17 @@ Output:: -Program root files: ["/user/username/projects/reexport/src/pure/index.ts","/user/username/projects/reexport/src/pure/session.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/pure/tsconfig.json"} +Program root files: [ + "/user/username/projects/reexport/src/pure/index.ts", + "/user/username/projects/reexport/src/pure/session.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/reexport/out", + "rootDir": "/user/username/projects/reexport/src", + "watch": true, + "configFilePath": "/user/username/projects/reexport/src/pure/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,8 +126,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/reexport/src/pure/session.ts (computed .d.ts during emit) /user/username/projects/reexport/src/pure/index.ts (used version) -Program root files: ["/user/username/projects/reexport/src/main/index.ts"] -Program options: {"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/main/tsconfig.json"} +Program root files: [ + "/user/username/projects/reexport/src/main/index.ts" +] +Program options: { + "outDir": "/user/username/projects/reexport/out", + "rootDir": "/user/username/projects/reexport/src", + "watch": true, + "configFilePath": "/user/username/projects/reexport/src/main/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -188,7 +216,7 @@ export * from "./session"; //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -215,10 +243,10 @@ export * from "./session"; }, "../../src/pure/session.ts": { "original": { - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" }, - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" }, "../../src/pure/index.ts": { @@ -259,7 +287,7 @@ export * from "./session"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1074 + "size": 1078 } //// [/user/username/projects/reexport/out/main/index.js] @@ -277,8 +305,8 @@ Change:: Introduce error Input:: //// [/user/username/projects/reexport/src/pure/session.ts] export interface Session { - foo: number; - bar: number; + foo: number; + bar: number; } @@ -316,8 +344,17 @@ Output:: -Program root files: ["/user/username/projects/reexport/src/pure/index.ts","/user/username/projects/reexport/src/pure/session.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/pure/tsconfig.json"} +Program root files: [ + "/user/username/projects/reexport/src/pure/index.ts", + "/user/username/projects/reexport/src/pure/session.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/reexport/out", + "rootDir": "/user/username/projects/reexport/src", + "watch": true, + "configFilePath": "/user/username/projects/reexport/src/pure/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -329,11 +366,18 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/reexport/src/pure/index.ts Shape signatures in builder refreshed for:: -/user/username/projects/reexport/src/pure/session.ts (computed .d.ts) +/user/username/projects/reexport/src/pure/session.ts (used version) /user/username/projects/reexport/src/pure/index.ts (used version) -Program root files: ["/user/username/projects/reexport/src/main/index.ts"] -Program options: {"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/main/tsconfig.json"} +Program root files: [ + "/user/username/projects/reexport/src/main/index.ts" +] +Program options: { + "outDir": "/user/username/projects/reexport/out", + "rootDir": "/user/username/projects/reexport/src", + "watch": true, + "configFilePath": "/user/username/projects/reexport/src/main/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -363,7 +407,7 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"4223553457-export interface Session {\n foo: number;\n bar: number;\n}\n","signature":"309257137-export interface Session {\n foo: number;\n bar: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"309257137-export interface Session {\n foo: number;\n bar: number;\n}\n","-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -389,11 +433,7 @@ export interface Session { "affectsGlobalScope": true }, "../../src/pure/session.ts": { - "original": { - "version": "4223553457-export interface Session {\n foo: number;\n bar: number;\n}\n", - "signature": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n" - }, - "version": "4223553457-export interface Session {\n foo: number;\n bar: number;\n}\n", + "version": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n", "signature": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n" }, "../../src/pure/index.ts": { @@ -434,7 +474,7 @@ export interface Session { "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 1089 + "size": 988 } @@ -443,8 +483,8 @@ Change:: Fix error Input:: //// [/user/username/projects/reexport/src/pure/session.ts] export interface Session { - foo: number; - // bar: number; + foo: number; + // bar: number; } @@ -474,8 +514,17 @@ Output:: -Program root files: ["/user/username/projects/reexport/src/pure/index.ts","/user/username/projects/reexport/src/pure/session.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/pure/tsconfig.json"} +Program root files: [ + "/user/username/projects/reexport/src/pure/index.ts", + "/user/username/projects/reexport/src/pure/session.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/reexport/out", + "rootDir": "/user/username/projects/reexport/src", + "watch": true, + "configFilePath": "/user/username/projects/reexport/src/pure/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -490,8 +539,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/reexport/src/pure/session.ts (computed .d.ts) /user/username/projects/reexport/src/pure/index.ts (used version) -Program root files: ["/user/username/projects/reexport/src/main/index.ts"] -Program options: {"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/main/tsconfig.json"} +Program root files: [ + "/user/username/projects/reexport/src/main/index.ts" +] +Program options: { + "outDir": "/user/username/projects/reexport/out", + "rootDir": "/user/username/projects/reexport/src", + "watch": true, + "configFilePath": "/user/username/projects/reexport/src/main/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -520,7 +576,7 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -547,10 +603,10 @@ export interface Session { }, "../../src/pure/session.ts": { "original": { - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" }, - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" }, "../../src/pure/index.ts": { @@ -591,7 +647,7 @@ export interface Session { "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 1076 + "size": 1080 } //// [/user/username/projects/reexport/out/main/index.js] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js index 3ef79df1871..9331db3f386 100644 --- a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js +++ b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js @@ -20,28 +20,77 @@ export const typing = 10; export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + } + ] +} /a/lib/tsc.js --b --w @@ -76,8 +125,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +149,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/pkg0/index.ts (used version) /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -112,8 +173,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/pkg1/index.ts (used version) /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -130,8 +197,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/pkg2/index.ts (used version) /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -257,8 +330,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -271,8 +350,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -285,8 +370,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -299,8 +390,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -324,7 +421,21 @@ Change:: change pkg references Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + } + ] +} Before running Timeout callback:: count: 1 @@ -417,8 +528,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -431,8 +548,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -445,8 +568,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -469,7 +598,11 @@ Change:: change pkg references to remove all watches Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"include":[],"references":[]} +{ + "files": [], + "include": [], + "references": [] +} Before running Timeout callback:: count: 1 @@ -479,10 +612,10 @@ Output:: >> Screen clear [12:01:57 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:10 - error TS18002: The 'files' list in config file '/user/username/projects/myproject/tsconfig.json' is empty. +tsconfig.json:2:12 - error TS18002: The 'files' list in config file '/user/username/projects/myproject/tsconfig.json' is empty. -1 {"files":[],"include":[],"references":[]} -   ~~ +2 "files": [], +   ~~ [12:01:58 AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js index d91ee62a86a..32b457f5ac1 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js @@ -21,7 +21,12 @@ export class C { export class D { } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} //// [/a/lib/lib.d.ts] /// @@ -39,8 +44,17 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -255,8 +269,17 @@ Cancelled!! Operation ws cancelled:: true -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -387,8 +410,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -547,8 +579,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js index ff114a727e4..ed36ff636d3 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js @@ -21,7 +21,12 @@ export class C { export class D { } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} //// [/a/lib/lib.d.ts] /// @@ -39,8 +44,17 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -255,8 +269,17 @@ Cancelled!! Operation ws cancelled:: true -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -387,8 +410,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -547,8 +579,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/composite/converting-to-modules.js b/tests/baselines/reference/tsc/composite/converting-to-modules.js index 4fb69fc8fd4..7655ce0fc01 100644 --- a/tests/baselines/reference/tsc/composite/converting-to-modules.js +++ b/tests/baselines/reference/tsc/composite/converting-to-modules.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; const x = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true}} +{ + "compilerOptions": { + "module": "none", + "composite": true + } +} @@ -92,7 +97,12 @@ var x = 10; Change:: convert to modules Input:: //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"es2015","composite":true}} +{ + "compilerOptions": { + "module": "es2015", + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js index 39399b64b33..6657e101b3e 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js @@ -19,7 +19,12 @@ export declare class MetadataAccessor { } //// [/user/username/projects/myProject/pkg1/package.json] -{"name":"@raymondfeng/pkg1","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg1", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg2/dist/index.d.ts] export * from './types'; @@ -28,7 +33,12 @@ export * from './types'; export {MetadataAccessor} from '@raymondfeng/pkg1'; //// [/user/username/projects/myproject/pkg2/package.json] -{"name":"@raymondfeng/pkg2","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg2", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg3/src/index.ts] export * from './keys'; @@ -38,7 +48,17 @@ import {MetadataAccessor} from "@raymondfeng/pkg2"; export const ADMIN = MetadataAccessor.create('1'); //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src","target":"es5","module":"commonjs","strict":true,"esModuleInterop":true,"declaration":true}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "declaration": true + } +} //// [/user/username/projects/myProject/pkg2/node_modules/@raymondfeng/pkg1] symlink(/user/username/projects/myProject/pkg1) //// [/user/username/projects/myproject/pkg3/node_modules/@raymondfeng/pkg2] symlink(/user/username/projects/myproject/pkg2) @@ -83,8 +103,22 @@ Found 1 error in pkg3/src/keys.ts:2 -Program root files: ["/user/username/projects/myproject/pkg3/src/index.ts","/user/username/projects/myproject/pkg3/src/keys.ts"] -Program options: {"outDir":"/user/username/projects/myproject/pkg3/dist","rootDir":"/user/username/projects/myproject/pkg3/src","target":1,"module":1,"strict":true,"esModuleInterop":true,"declaration":true,"project":"/user/username/projects/myproject/pkg3","explainFiles":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/src/index.ts", + "/user/username/projects/myproject/pkg3/src/keys.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/pkg3/dist", + "rootDir": "/user/username/projects/myproject/pkg3/src", + "target": 1, + "module": 1, + "strict": true, + "esModuleInterop": true, + "declaration": true, + "project": "/user/username/projects/myproject/pkg3", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js index 8f4d46a2e2d..a840232be50 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js @@ -19,7 +19,12 @@ export declare class MetadataAccessor { } //// [/user/username/projects/myproject/pkg1/package.json] -{"name":"@raymondfeng/pkg1","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg1", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg2/dist/index.d.ts] export * from './types'; @@ -28,7 +33,12 @@ export * from './types'; export {MetadataAccessor} from '@raymondfeng/pkg1'; //// [/user/username/projects/myproject/pkg2/package.json] -{"name":"@raymondfeng/pkg2","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg2", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg3/src/index.ts] export * from './keys'; @@ -38,7 +48,17 @@ import {MetadataAccessor} from "@raymondfeng/pkg2"; export const ADMIN = MetadataAccessor.create('1'); //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src","target":"es5","module":"commonjs","strict":true,"esModuleInterop":true,"declaration":true}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "declaration": true + } +} //// [/user/username/projects/myproject/pkg2/node_modules/@raymondfeng/pkg1] symlink(/user/username/projects/myproject/pkg1) //// [/user/username/projects/myproject/pkg3/node_modules/@raymondfeng/pkg2] symlink(/user/username/projects/myproject/pkg2) @@ -83,8 +103,22 @@ Found 1 error in pkg3/src/keys.ts:2 -Program root files: ["/user/username/projects/myproject/pkg3/src/index.ts","/user/username/projects/myproject/pkg3/src/keys.ts"] -Program options: {"outDir":"/user/username/projects/myproject/pkg3/dist","rootDir":"/user/username/projects/myproject/pkg3/src","target":1,"module":1,"strict":true,"esModuleInterop":true,"declaration":true,"project":"/user/username/projects/myproject/pkg3","explainFiles":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/src/index.ts", + "/user/username/projects/myproject/pkg3/src/keys.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/pkg3/dist", + "rootDir": "/user/username/projects/myproject/pkg3/src", + "target": 1, + "module": 1, + "strict": true, + "esModuleInterop": true, + "declaration": true, + "project": "/user/username/projects/myproject/pkg3", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js index bc8ddbff6de..ee065cbefdc 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js @@ -24,7 +24,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -42,7 +45,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -54,7 +63,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -150,8 +162,18 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/action.ts","/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/action.ts", + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js index bf782256f9c..fda2311f2a2 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myProject/plugin-two/package.json] -{"name":"plugin-two","version":"0.1.3","main":"dist/commonjs/index.js"} +{ + "name": "plugin-two", + "version": "0.1.3", + "main": "dist/commonjs/index.js" +} //// [/user/username/projects/myProject/plugin-two/dist/commonjs/index.d.ts] declare const _default: { @@ -27,7 +31,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -45,7 +52,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -55,7 +68,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -159,8 +175,17 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js index ab7c6a1cca8..99d6255b5d3 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/plugin-two/package.json] -{"name":"plugin-two","version":"0.1.3","main":"dist/commonjs/index.js"} +{ + "name": "plugin-two", + "version": "0.1.3", + "main": "dist/commonjs/index.js" +} //// [/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts] declare const _default: { @@ -27,7 +31,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -45,7 +52,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -55,7 +68,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -159,8 +175,17 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js index 7a4ccaf37c6..001d60ca1c0 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js @@ -24,7 +24,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -42,7 +45,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -54,7 +63,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -150,8 +162,18 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/action.ts","/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/action.ts", + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js index fae8f95d254..477143ea4d5 100644 --- a/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js @@ -1,10 +1,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -12,7 +21,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] @@ -33,8 +44,16 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/users/user/projects/myproject/src/index.ts"] -Program options: {"composite":true,"removeComments":true,"project":"/users/user/projects/myproject/src","extendedDiagnostics":true,"configFilePath":"/users/user/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/users/user/projects/myproject/src/index.ts" +] +Program options: { + "composite": true, + "removeComments": true, + "project": "/users/user/projects/myproject/src", + "extendedDiagnostics": true, + "configFilePath": "/users/user/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js index ea3448b9545..759557cee89 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js @@ -33,7 +33,11 @@ type MessageablePerson = InstanceType>; export default MessageablePerson; //// [/src/project/tsconfig.json] -{"compilerOptions":{"declaration":true}} +{ + "compilerOptions": { + "declaration": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js index 2664a06471b..f8c5a77996f 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js @@ -33,7 +33,11 @@ type MessageablePerson = InstanceType>; export default MessageablePerson; //// [/src/project/tsconfig.json] -{"compilerOptions":{"declaration":false}} +{ + "compilerOptions": { + "declaration": false + } +} diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js index 8d033d3e02a..7d16ecf63b7 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js @@ -26,7 +26,11 @@ export default 1; export { default as ConstantNumber } from "./constants" //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/project/types.d.ts] type MagicNumber = typeof import('./reexport').ConstantNumber diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js index 6a589d8d11d..b5eb6f4f775 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js @@ -23,7 +23,11 @@ console.log(a); export default 1; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/project/types.d.ts] type MagicNumber = typeof import('./constants').default diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js index 35290646f06..5a703bbb322 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js @@ -28,15 +28,32 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "../outFile.js", + "module": "amd" + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -184,8 +201,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -305,8 +334,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -421,8 +461,20 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -585,8 +637,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -703,8 +768,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -730,8 +806,19 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -879,8 +966,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1032,8 +1132,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1056,8 +1167,20 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1206,8 +1329,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1327,8 +1462,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1443,8 +1589,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1596,8 +1755,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js b/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js index b5bbf4965fc..cdd2c8fe0e3 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js @@ -28,15 +28,28 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -191,8 +204,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -352,8 +375,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -498,8 +530,18 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -640,8 +682,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -795,8 +848,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -822,8 +884,17 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -955,8 +1026,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1090,8 +1172,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1114,8 +1205,18 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1272,8 +1373,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1436,8 +1547,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1591,8 +1711,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1726,8 +1857,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js b/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js index 8c6ce56070e..ff44dc9b5e5 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js @@ -28,15 +28,32 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -230,8 +247,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -364,8 +393,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -493,8 +533,20 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -517,8 +569,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -541,8 +604,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -662,8 +738,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -777,8 +864,20 @@ Input:: Output:: /lib/tsc --p /src/project --emitDeclarationOnly exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","emitDeclarationOnly":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "emitDeclarationOnly": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -801,8 +900,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -828,8 +938,19 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1008,8 +1129,20 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1032,8 +1165,20 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1162,8 +1307,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1292,15 +1449,34 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { Change:: declarationMap enabling Input:: //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd","declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd", + "declarationMap": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"declarationMap":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "declarationMap": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1446,8 +1622,21 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"declarationMap":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "declarationMap": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/different-options.js b/tests/baselines/reference/tsc/incremental/different-options.js index 7a7274c05ea..ec8a6948c48 100644 --- a/tests/baselines/reference/tsc/incremental/different-options.js +++ b/tests/baselines/reference/tsc/incremental/different-options.js @@ -28,15 +28,28 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -220,8 +233,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -392,8 +415,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -551,8 +583,18 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -575,8 +617,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -599,8 +650,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -756,8 +818,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -899,8 +970,18 @@ Input:: Output:: /lib/tsc --p /src/project --emitDeclarationOnly exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","emitDeclarationOnly":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "emitDeclarationOnly": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -923,8 +1004,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -950,8 +1040,17 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1087,8 +1186,18 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1111,8 +1220,18 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1271,8 +1390,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1433,15 +1562,30 @@ exports.d = b_1.b; Change:: declarationMap enabling Input:: //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"declarationMap":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "declarationMap": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1620,8 +1764,19 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"declarationMap":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "declarationMap": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js b/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js index 4d53dba494e..aef670b0c50 100644 --- a/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js +++ b/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js @@ -22,7 +22,12 @@ export const x: 30 = "hello"; export class D { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"outDir":"outDir","noEmitOnError":true}} +{ + "compilerOptions": { + "outDir": "outDir", + "noEmitOnError": true + } +} @@ -37,8 +42,17 @@ Output:: Found 1 error in src/project/file1.ts:1 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/file1.ts","/src/project/file2.ts"] -Program options: {"outDir":"/src/project/outDir","noEmitOnError":true,"project":"/src/project","incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/file1.ts", + "/src/project/file2.ts" +] +Program options: { + "outDir": "/src/project/outDir", + "noEmitOnError": true, + "project": "/src/project", + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -152,8 +166,16 @@ Output:: Found 1 error in src/project/file1.ts:1 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/file1.ts"] -Program options: {"outDir":"/src/project/outDir","noEmitOnError":true,"project":"/src/project","incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/file1.ts" +] +Program options: { + "outDir": "/src/project/outDir", + "noEmitOnError": true, + "project": "/src/project", + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/generates-typerefs-correctly.js b/tests/baselines/reference/tsc/incremental/generates-typerefs-correctly.js new file mode 100644 index 00000000000..920d2045d9e --- /dev/null +++ b/tests/baselines/reference/tsc/incremental/generates-typerefs-correctly.js @@ -0,0 +1,371 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/src/box.ts] +export interface Box { + unbox(): T +} + + +//// [/src/project/src/bug.js] +import * as B from "./box.js" +import * as W from "./wrap.js" + +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +const wrap = source => { +throw source +} + +/** + * @returns {B.Box} + */ +const box = (n = 0) => ({ unbox: () => n }) + +export const bug = wrap({ n: box(1) }); + + +//// [/src/project/src/wrap.ts] +export type Wrap = { + [K in keyof C]: { wrapped: C[K] } +} + + +//// [/src/project/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir", + "checkJs": true + }, + "include": [ + "src" + ] +} + + + +Output:: +/lib/tsc -p /src/project +exitCode:: ExitStatus.Success + + +//// [/src/project/outDir/src/box.d.ts] +export interface Box { + unbox(): T; +} + + +//// [/src/project/outDir/src/box.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +//// [/src/project/outDir/src/bug.d.ts] +export const bug: W.Wrap<{ + n: B.Box; +}>; +import * as B from "./box.js"; +import * as W from "./wrap.js"; + + +//// [/src/project/outDir/src/bug.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bug = void 0; +var B = require("./box.js"); +var W = require("./wrap.js"); +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +var wrap = function (source) { + throw source; +}; +/** + * @returns {B.Box} + */ +var box = function (n) { + if (n === void 0) { n = 0; } + return ({ unbox: function () { return n; } }); +}; +exports.bug = wrap({ n: box(1) }); + + +//// [/src/project/outDir/src/wrap.d.ts] +export type Wrap = { + [K in keyof C]: { + wrapped: C[K]; + }; +}; + + +//// [/src/project/outDir/src/wrap.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + + +//// [/src/project/outDir/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../lib/lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14267342128-export interface Box {\n unbox(): T\n}\n","signature":"-15554117365-export interface Box {\n unbox(): T;\n}\n"},{"version":"-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n","signature":"-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n"},{"version":"-27771690375-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\n","signature":"-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n"}],"root":[[2,4]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./src/bug.d.ts"},"version":"FakeTSVersion"} + +//// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../lib/lib.d.ts", + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ], + "fileNamesList": [ + [ + "../src/box.ts", + "../src/wrap.ts" + ] + ], + "fileInfos": { + "../../../lib/lib.d.ts": { + "original": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../src/box.ts": { + "original": { + "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + }, + "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + }, + "../src/wrap.ts": { + "original": { + "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + }, + "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + }, + "../src/bug.js": { + "original": { + "version": "-27771690375-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\n", + "signature": "-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + }, + "version": "-27771690375-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\n", + "signature": "-2569667161-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + } + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ] + ] + ], + "options": { + "checkJs": true, + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../src/bug.js": [ + "../src/box.ts", + "../src/wrap.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../lib/lib.d.ts", + "../src/box.ts", + "../src/bug.js", + "../src/wrap.ts" + ], + "latestChangedDtsFile": "./src/bug.d.ts" + }, + "version": "FakeTSVersion", + "size": 1698 +} + + + +Change:: modify js file +Input:: +//// [/src/project/src/bug.js] +import * as B from "./box.js" +import * as W from "./wrap.js" + +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +const wrap = source => { +throw source +} + +/** + * @returns {B.Box} + */ +const box = (n = 0) => ({ unbox: () => n }) + +export const bug = wrap({ n: box(1) }); +export const something = 1; + + + +Output:: +/lib/tsc -p /src/project +exitCode:: ExitStatus.Success + + +//// [/src/project/outDir/src/bug.d.ts] +export const bug: W.Wrap<{ + n: B.Box; +}>; +export const something: 1; +import * as B from "./box.js"; +import * as W from "./wrap.js"; + + +//// [/src/project/outDir/src/bug.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.something = exports.bug = void 0; +var B = require("./box.js"); +var W = require("./wrap.js"); +/** + * @template {object} C + * @param {C} source + * @returns {W.Wrap} + */ +var wrap = function (source) { + throw source; +}; +/** + * @returns {B.Box} + */ +var box = function (n) { + if (n === void 0) { n = 0; } + return ({ unbox: function () { return n; } }); +}; +exports.bug = wrap({ n: box(1) }); +exports.something = 1; + + +//// [/src/project/outDir/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../lib/lib.d.ts","../src/box.ts","../src/wrap.ts","../src/bug.js"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14267342128-export interface Box {\n unbox(): T\n}\n","signature":"-15554117365-export interface Box {\n unbox(): T;\n}\n"},{"version":"-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n","signature":"-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n"},{"version":"-25729561895-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\nexport const something = 1;","signature":"-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n"}],"root":[[2,4]],"options":{"checkJs":true,"composite":true,"outDir":"./"},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./src/bug.d.ts"},"version":"FakeTSVersion"} + +//// [/src/project/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../lib/lib.d.ts", + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ], + "fileNamesList": [ + [ + "../src/box.ts", + "../src/wrap.ts" + ] + ], + "fileInfos": { + "../../../lib/lib.d.ts": { + "original": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../src/box.ts": { + "original": { + "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + }, + "version": "-14267342128-export interface Box {\n unbox(): T\n}\n", + "signature": "-15554117365-export interface Box {\n unbox(): T;\n}\n" + }, + "../src/wrap.ts": { + "original": { + "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + }, + "version": "-7208318765-export type Wrap = {\n [K in keyof C]: { wrapped: C[K] }\n}\n", + "signature": "-7604652776-export type Wrap = {\n [K in keyof C]: {\n wrapped: C[K];\n };\n};\n" + }, + "../src/bug.js": { + "original": { + "version": "-25729561895-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\nexport const something = 1;", + "signature": "-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + }, + "version": "-25729561895-import * as B from \"./box.js\"\nimport * as W from \"./wrap.js\"\n\n/**\n * @template {object} C\n * @param {C} source\n * @returns {W.Wrap}\n */\nconst wrap = source => {\nthrow source\n}\n\n/**\n * @returns {B.Box}\n */\nconst box = (n = 0) => ({ unbox: () => n })\n\nexport const bug = wrap({ n: box(1) });\nexport const something = 1;", + "signature": "-7681488146-export const bug: W.Wrap<{\n n: B.Box;\n}>;\nexport const something: 1;\nimport * as B from \"./box.js\";\nimport * as W from \"./wrap.js\";\n" + } + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "../src/box.ts", + "../src/wrap.ts", + "../src/bug.js" + ] + ] + ], + "options": { + "checkJs": true, + "composite": true, + "outDir": "./" + }, + "referencedMap": { + "../src/bug.js": [ + "../src/box.ts", + "../src/wrap.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../lib/lib.d.ts", + "../src/box.ts", + "../src/bug.js", + "../src/wrap.ts" + ], + "latestChangedDtsFile": "./src/bug.d.ts" + }, + "version": "FakeTSVersion", + "size": 1753 +} + diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js index 634efe61c55..ba44dc8dace 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js index 844f9b3d869..8c29f1b20d2 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js @@ -43,7 +43,12 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js index 6ccc2345fa5..23e61daf868 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js index a5c2fe12bd9..2dd3d68cf4e 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js index aab78ac4827..7100fff7458 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js @@ -43,7 +43,12 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js index e271b29682c..9c050615188 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/serializing-error-chains.js b/tests/baselines/reference/tsc/incremental/serializing-error-chains.js index 94b503fcedb..482eed69218 100644 --- a/tests/baselines/reference/tsc/incremental/serializing-error-chains.js +++ b/tests/baselines/reference/tsc/incremental/serializing-error-chains.js @@ -32,7 +32,14 @@ declare function Component(props: { children?: number }): any; ) //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"strict":true,"jsx":"react","module":"esnext"}} +{ + "compilerOptions": { + "incremental": true, + "strict": true, + "jsx": "react", + "module": "esnext" + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js index 8ec25d1f6fc..5733a5abb5b 100644 --- a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js @@ -22,7 +22,14 @@ const x = 10; const y = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"noEmitOnError":true,"declaration":true,"composite":true,"outFile":"../outFile.js"}} +{ + "compilerOptions": { + "noEmitOnError": true, + "declaration": true, + "composite": true, + "outFile": "../outFile.js" + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js index 73b87186181..de2715a3eaf 100644 --- a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js +++ b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js @@ -22,7 +22,13 @@ const x = 10; const y = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"noEmitOnError":true,"declaration":true,"composite":true}} +{ + "compilerOptions": { + "noEmitOnError": true, + "declaration": true, + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js b/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js index 9d22528fc7b..b5942760b05 100644 --- a/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js +++ b/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js @@ -22,7 +22,12 @@ export class C { } export class D { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"outDir"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir" + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js index 7ae8171f5d3..ec5de18bf2d 100644 --- a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js +++ b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js @@ -31,7 +31,14 @@ function main() { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["src/**/*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "src/**/*.ts" + ] +} @@ -54,8 +61,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -230,8 +245,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -275,8 +298,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -428,8 +459,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -586,8 +625,17 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:3 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts", + "/src/project/src/newFile.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -766,8 +814,18 @@ function something2() { return 20; } Output:: /lib/tsc --p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/fileNotFound.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts", + "/src/project/src/newFile.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -964,8 +1022,18 @@ something();something();foo();something(); Output:: /lib/tsc --p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/fileNotFound.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts", + "/src/project/src/newFile.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js index 37e65f98373..ac61b62e46b 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js @@ -22,13 +22,31 @@ declare class class1 {} class class1 {} //// [/src/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/src/projects/project2/class2.ts] class class2 {} //// [/src/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} @@ -127,9 +145,13 @@ Output:: The file is in the program because: Output from referenced project '/src/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - src/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + src/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. @@ -253,9 +275,13 @@ Output:: The file is in the program because: Output from referenced project '/src/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - src/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + src/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. diff --git a/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js b/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js index f012dba4d1e..a8ba8fc72ab 100644 --- a/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js +++ b/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js @@ -19,15 +19,28 @@ declare const console: { log(msg: any): void; }; export class class1 {} //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"strict":true}} +{ + "compilerOptions": { + "incremental": true, + "strict": true + } +} Output:: /lib/tsc -noEmit -p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/class1.ts"] -Program options: {"incremental":true,"strict":true,"noEmit":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/class1.ts" +] +Program options: { + "incremental": true, + "strict": true, + "noEmit": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -102,8 +115,16 @@ Input:: Output:: /lib/tsc -noEmit -p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/class1.ts"] -Program options: {"incremental":true,"strict":true,"noEmit":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/class1.ts" +] +Program options: { + "incremental": true, + "strict": true, + "noEmit": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js index 5353bd36b6c..c362af073a6 100644 --- a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js +++ b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,71 +15,81 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} -//// [/src/src/main.ts] + +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = 10; -//// [/src/src/other.ts] -console.log("hi"); -export { } +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - Output:: -/lib/tsc --incremental -p src -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ -Found 1 error in src/src/main.ts:2 +Found 1 error in src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -90,7 +100,7 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -100,16 +110,16 @@ Shape signatures in builder refreshed for:: "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -140,7 +150,7 @@ Shape signatures in builder refreshed for:: ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", [ "../src/main.ts", @@ -173,7 +183,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1168 + "size": 1176 } @@ -183,24 +193,33 @@ Input:: Output:: -/lib/tsc --incremental -p src -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ -Found 1 error in src/src/main.ts:2 +Found 1 error in src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: @@ -211,56 +230,65 @@ No shapes updated in the builder:: Change:: incremental-declaration-doesnt-change Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = "hello"; Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/src/src/main.ts +/user/username/projects/noEmitOnError/src/main.ts Shape signatures in builder refreshed for:: -/src/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = "hello"; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -271,7 +299,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,8 +309,8 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -293,8 +321,8 @@ console.log("hi"); "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -321,14 +349,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1042 + "size": 1050 } @@ -338,16 +366,25 @@ Input:: Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: diff --git a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js index d8754e56f91..b4a9a9880ea 100644 --- a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js +++ b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,73 +15,84 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + +//// [/user/username/projects/noEmitOnError/src/main.ts] +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + + +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } + + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } -//// [/src/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; - -//// [/src/src/other.ts] -console.log("hi"); -export { } - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} - - Output:: -/lib/tsc --incremental -p src -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ -Found 1 error in src/src/main.ts:4 +Found 1 error in src/main.ts:4 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -92,7 +103,7 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -102,16 +113,16 @@ Shape signatures in builder refreshed for:: "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -142,7 +153,7 @@ Shape signatures in builder refreshed for:: ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -163,7 +174,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1044 + "size": 1049 } @@ -173,24 +184,33 @@ Input:: Output:: -/lib/tsc --incremental -p src -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ -Found 1 error in src/src/main.ts:4 +Found 1 error in src/main.ts:4 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: @@ -201,7 +221,7 @@ No shapes updated in the builder:: Change:: incremental-declaration-doesnt-change Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -210,30 +230,39 @@ const a = { Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/src/src/main.ts +/user/username/projects/noEmitOnError/src/main.ts Shape signatures in builder refreshed for:: -/src/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = { @@ -241,20 +270,20 @@ var a = { }; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -265,7 +294,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -275,8 +304,8 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -287,8 +316,8 @@ console.log("hi"); "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -315,14 +344,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1051 + "size": 1059 } @@ -332,16 +361,25 @@ Input:: Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js index 2b0118775bd..c2a87dc8b74 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js @@ -112,7 +112,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -124,7 +136,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -133,7 +154,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -142,7 +172,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -241,8 +281,28 @@ project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"project":"/home/src/projects/project1","explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js index f8e62ffaf0b..a04fecd8b7e 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js @@ -73,7 +73,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -85,7 +97,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -94,7 +115,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -103,7 +133,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -246,8 +286,28 @@ project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"project":"/home/src/projects/project1","explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js index 148c020fa0d..95c948bd17a 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js @@ -112,7 +112,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -124,7 +136,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -133,7 +154,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -142,7 +172,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -223,8 +263,21 @@ project1/index.ts project1/file2.ts Root file specified for compilation exitCode:: ExitStatus.Success -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config.js b/tests/baselines/reference/tsc/libraryResolution/without-config.js index ca47d51ca4c..e55f6a5d8d9 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config.js @@ -73,7 +73,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -85,7 +97,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -94,7 +115,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -103,7 +133,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -224,8 +264,21 @@ project1/index.ts project1/file2.ts Root file specified for compilation exitCode:: ExitStatus.Success -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tsc/moduleResolution/node10Result.js b/tests/baselines/reference/tsc/moduleResolution/node10Result.js index 5536e41466a..e2ab8c29ccf 100644 --- a/tests/baselines/reference/tsc/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tsc/moduleResolution/node10Result.js @@ -25,14 +25,14 @@ export declare const bar: number; //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] @@ -40,15 +40,15 @@ export declare const bar2: number; //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/bar/index.js] @@ -59,15 +59,15 @@ export const bar = 1; //// [/home/src/projects/project/node_modules/bar/package.json] { - "name": "bar", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar2/index.js] @@ -78,15 +78,15 @@ export const bar2 = 1; //// [/home/src/projects/project/node_modules/bar2/package.json] { - "name": "bar2", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar2", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo/index.d.ts] @@ -100,16 +100,16 @@ export const foo = 1; //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo2/index.d.ts] @@ -123,21 +123,32 @@ export const foo2 = 1; //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{ + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "files": [ + "index.mts" + ] +} //// [/lib/lib.d.ts] /// @@ -332,8 +343,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -635,8 +656,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -858,8 +889,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1070,8 +1111,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1269,8 +1320,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1289,15 +1350,15 @@ Change:: update package.json from @types so error is fixed Input:: //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } @@ -1440,8 +1501,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1556,17 +1627,17 @@ Change:: update package.json so error is fixed Input:: //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1681,8 +1752,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1810,14 +1891,14 @@ Change:: update package.json from @types so error is introduced Input:: //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } @@ -1970,8 +2051,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -2085,16 +2176,16 @@ Change:: update package.json so error is introduced Input:: //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -2275,8 +2366,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -2567,8 +2668,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -2790,8 +2901,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -3002,8 +3123,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -3201,8 +3332,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js index 5a3717fce3b..47b60f7e173 100644 --- a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js +++ b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js @@ -19,19 +19,33 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"amd","outFile":"theApp.js"},"references":[{"path":"../Util/Dates"}]} +{ + "compilerOptions": { + "module": "amd", + "outFile": "theApp.js" + }, + "references": [ + { + "path": "../Util/Dates" + } + ] +} Output:: /lib/tsc --p src/project -src/project/tsconfig.json:1:73 - error TS6053: File '/src/Util/Dates' not found. +src/project/tsconfig.json:7:5 - error TS6053: File '/src/Util/Dates' not found. -1 {"compilerOptions":{"module":"amd","outFile":"theApp.js"},"references":[{"path":"../Util/Dates"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../Util/Dates" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ -Found 1 error in src/project/tsconfig.json:1 +Found 1 error in src/project/tsconfig.json:7 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js b/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js index 32b84b80f97..e1d0d5e4c7c 100644 --- a/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js +++ b/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js @@ -19,25 +19,40 @@ declare const console: { log(msg: any): void; }; import { x } from "../utils"; //// [/src/project/tsconfig.json] -{"references":[{"path":"../utils"}]} +{ + "references": [ + { + "path": "../utils" + } + ] +} //// [/src/utils/index.ts] export const x = 10; //// [/src/utils/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmit":true}} +{ + "compilerOptions": { + "composite": true, + "noEmit": true + } +} Output:: /lib/tsc --p src/project -src/project/tsconfig.json:1:16 - error TS6310: Referenced project '/src/utils' may not disable emit. +src/project/tsconfig.json:3:5 - error TS6310: Referenced project '/src/utils' may not disable emit. -1 {"references":[{"path":"../utils"}]} -   ~~~~~~~~~~~~~~~~~~~ +3 { +   ~ +4 "path": "../utils" +  ~~~~~~~~~~~~~~~~~~~~~~~~ +5 } +  ~~~~~ -Found 1 error in src/project/tsconfig.json:1 +Found 1 error in src/project/tsconfig.json:3 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js b/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js index 0b11df63227..26fbc7a8679 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js @@ -20,11 +20,11 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/secondary/b.ts] @@ -32,15 +32,15 @@ import * as mod_0 from "../primary/a" //// [/secondary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../primary" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../primary" + } + ] } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js b/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js index ed4216e2644..82056a7a65e 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js @@ -20,11 +20,11 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": false, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": false, + "outDir": "bin" + }, + "references": [] } //// [/reference/b.ts] @@ -32,16 +32,16 @@ import * as mod_0 from "../primary/a" //// [/reference/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../primary" - } - ], - "files": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../primary" + } + ], + "files": [] } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js b/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js index 134a7fe569d..7750720270a 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js @@ -5,11 +5,11 @@ export const m: number = 3; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js index 7566c393eed..72e22ca5c3c 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js @@ -5,11 +5,11 @@ import * as b from '../../beta/b' //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js index cb468964b6f..b8c4a0c5ebd 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js @@ -20,16 +20,16 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../someProj", - "prepend": true - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../someProj", + "prepend": true + } + ] } //// [/someProj/b.ts] @@ -37,27 +37,27 @@ const x = 100; //// [/someProj/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } Output:: /lib/tsc --p /primary/tsconfig.json --ignoreDeprecations 5.0 -primary/tsconfig.json:7:3 - error TS6308: Cannot prepend project '/someProj' because it does not have 'outFile' set +primary/tsconfig.json:7:5 - error TS6308: Cannot prepend project '/someProj' because it does not have 'outFile' set - 7 { -   ~ - 8 "path": "../someProj", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ - 9 "prepend": true -  ~~~~~~~~~~~~~~~~~~ -10 } -  ~~~ + 7 { +   ~ + 8 "path": "../someProj", +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error in primary/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js index bcd03939e14..6b097eaac39 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js @@ -20,16 +20,16 @@ const y = x; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../someProj", - "prepend": true - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../someProj", + "prepend": true + } + ] } //// [/someProj/b.ts] @@ -37,12 +37,12 @@ const x = 100; //// [/someProj/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin", - "outFile": "foo.js" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin", + "outFile": "foo.js" + }, + "references": [] } @@ -53,27 +53,27 @@ Output:: The file is in the program because: Output from referenced project '/someProj/tsconfig.json' included because '--module' is specified as 'none' - primary/tsconfig.json:7:3 -  7 { -    ~ -  8 "path": "../someProj", -   ~~~~~~~~~~~~~~~~~~~~~~~~~ -  9 "prepend": true -   ~~~~~~~~~~~~~~~~~~ - 10 } -   ~~~ + primary/tsconfig.json:7:5 +  7 { +    ~ +  8 "path": "../someProj", +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +  9 "prepend": true +   ~~~~~~~~~~~~~~~~~~~~~ + 10 } +   ~~~~~ File is output from referenced project specified here. -primary/tsconfig.json:7:3 - error TS6309: Output file '/someProj/foo.js' from project '/someProj' does not exist +primary/tsconfig.json:7:5 - error TS6309: Output file '/someProj/foo.js' from project '/someProj' does not exist - 7 { -   ~ - 8 "path": "../someProj", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ - 9 "prepend": true -  ~~~~~~~~~~~~~~~~~~ -10 } -  ~~~ + 7 { +   ~ + 8 "path": "../someProj", +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 2 errors in the same file, starting at: primary/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js index 20dadf38567..70cc31de297 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js @@ -20,22 +20,22 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin", - "declaration": false - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin", + "declaration": false + }, + "references": [] } Output:: /lib/tsc --p /primary/tsconfig.json -primary/tsconfig.json:5:3 - error TS6304: Composite projects may not disable declaration emit. +primary/tsconfig.json:5:5 - error TS6304: Composite projects may not disable declaration emit. -5 "declaration": false -   ~~~~~~~~~~~~~ +5 "declaration": false +   ~~~~~~~~~~~~~ Found 1 error in primary/tsconfig.json:5 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js index 16630ddecc4..b98fd246208 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js @@ -23,14 +23,14 @@ export {} //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [], - "files": [ - "a.ts" - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [], + "files": [ + "a.ts" + ] } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js index 9fc852b1370..5765f3776c0 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js @@ -20,29 +20,29 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../foo" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../foo" + } + ] } Output:: /lib/tsc --p /primary/tsconfig.json -primary/tsconfig.json:7:3 - error TS6053: File '/foo' not found. +primary/tsconfig.json:7:5 - error TS6053: File '/foo' not found. -7 { -   ~ -8 "path": "../foo" -  ~~~~~~~~~~~~~~~~~~~ -9 } -  ~~~ +7 { +   ~ +8 "path": "../foo" +  ~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error in primary/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js index 8a611fb3351..7af46ca3a6b 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js @@ -20,11 +20,11 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": false, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": false, + "outDir": "bin" + }, + "references": [] } //// [/reference/b.ts] @@ -32,32 +32,32 @@ import * as mod_0 from "../primary/a" //// [/reference/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../primary" - } - ], - "files": [ - "b.ts" - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../primary" + } + ], + "files": [ + "b.ts" + ] } Output:: /lib/tsc --p /reference/tsconfig.json -reference/tsconfig.json:7:3 - error TS6306: Referenced project '/primary' must have setting "composite": true. +reference/tsconfig.json:7:5 - error TS6306: Referenced project '/primary' must have setting "composite": true. -7 { -   ~ -8 "path": "../primary" -  ~~~~~~~~~~~~~~~~~~~~~~~ -9 } -  ~~~ +7 { +   ~ +8 "path": "../primary" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error in reference/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js index ef90b8860ec..546d96a1711 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js @@ -5,11 +5,11 @@ export const m: number = 3; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] @@ -17,21 +17,21 @@ import { m } from '@alpha/a' //// [/beta/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin", - "baseUrl": "./", - "paths": { - "@alpha/*": [ - "/alpha/*" - ] - } - }, - "references": [ - { - "path": "../alpha" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin", + "baseUrl": "./", + "paths": { + "@alpha/*": [ + "/alpha/*" + ] + } + }, + "references": [ + { + "path": "../alpha" + } + ] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js index c0eb526f628..befebe77a86 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js @@ -5,11 +5,11 @@ export const m: number = 3; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] @@ -17,15 +17,15 @@ import { m } from '../alpha/a' //// [/beta/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../alpha" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../alpha" + } + ] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js b/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js index acdacea528e..fbc075e29ed 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js @@ -8,11 +8,11 @@ export { }; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] @@ -20,15 +20,15 @@ import { m } from '../alpha/a' //// [/beta/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../alpha" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../alpha" + } + ] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js index f983b6d7c91..ebc88f88c26 100644 --- a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js +++ b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js @@ -36,7 +36,14 @@ export {} export const App = () =>

; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js index 8cb942e1911..b17aa9bf220 100644 --- a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js +++ b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js @@ -36,7 +36,14 @@ export {} export const App = () =>
; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} diff --git a/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js b/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js index d40852214c4..1adb4647492 100644 --- a/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js +++ b/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js @@ -22,7 +22,11 @@ import {} from "./"; export const a = 1; //// [/src/project/copy1/node_modules/target/package.json] -{"name":"target","version":"1.0.0","main":"index.js"} +{ + "name": "target", + "version": "1.0.0", + "main": "index.js" +} //// [/src/project/copy2/node_modules/target/import.ts] import {} from "./"; @@ -31,10 +35,22 @@ import {} from "./"; export const a = 1; //// [/src/project/copy2/node_modules/target/package.json] -{"name":"target","version":"1.0.0","main":"index.js"} +{ + "name": "target", + "version": "1.0.0", + "main": "index.js" +} //// [/src/project/tsconfig.json] -{"compilerOptions":{"outDir":"out"},"include":["copy1/node_modules/target/*","copy2/node_modules/target/*"]} +{ + "compilerOptions": { + "outDir": "out" + }, + "include": [ + "copy1/node_modules/target/*", + "copy2/node_modules/target/*" + ] +} diff --git a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js index 0c3d5a226cf..7a5a4e52279 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js @@ -4,7 +4,11 @@ Input:: //// [/tsconfig.json] -{"compilerOptions":{"preserveWatchOutput":true}} +{ + "compilerOptions": { + "preserveWatchOutput": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /f.ts @@ -79,8 +89,14 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /f.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js index c22ec26bfca..9abd78c7c76 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js @@ -4,7 +4,11 @@ Input:: //// [/tsconfig.json] -{"compilerOptions":{"preserveWatchOutput":true}} +{ + "compilerOptions": { + "preserveWatchOutput": true + } +} //// [/a/lib/lib.d.ts] /// @@ -28,8 +32,16 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /f.ts @@ -78,8 +90,16 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /f.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js b/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js index 571c23df1f4..4728c08ce5f 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js @@ -30,8 +30,13 @@ CreatingProgramWith:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"diagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "diagnostics": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,8 +86,13 @@ CreatingProgramWith:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"diagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "diagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js b/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js index 7cd6b2d1bba..1232f805cb3 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js @@ -32,8 +32,13 @@ FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file -Program root files: ["/f.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -83,8 +88,13 @@ CreatingProgramWith:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js b/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js index 590711f3499..ef7ea7221d3 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js @@ -25,8 +25,13 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"preserveWatchOutput":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "preserveWatchOutput": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -69,8 +74,13 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"preserveWatchOutput":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "preserveWatchOutput": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js b/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js index 52baaf7ae6d..d0387109203 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js @@ -26,8 +26,12 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -71,8 +75,12 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js index 75a6f83f886..f9a9e1bfade 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js @@ -32,8 +32,12 @@ Output:: -Program root files: ["/user/someone/projects/myproject/file3.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/someone/projects/myproject/file3.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,8 +104,12 @@ Output:: -Program root files: ["/user/someone/projects/myproject/file3.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/someone/projects/myproject/file3.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js index 73e08619586..ff1e5e44244 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js @@ -4,7 +4,11 @@ Input:: var a = 10; //// [/home/username/project/tsconfig.json] -{"include":["app/**/*.ts"]} +{ + "include": [ + "app/**/*.ts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,13 @@ Output:: -Program root files: ["/home/username/project/app/file.ts"] -Program options: {"watch":true,"configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/app/file.ts" +] +Program options: { + "watch": true, + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +95,13 @@ Output:: -Program root files: ["/home/username/project/app/file.ts"] -Program options: {"watch":true,"configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/app/file.ts" +] +Program options: { + "watch": true, + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js index cf619486362..1c5cba2c550 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js @@ -27,8 +27,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -76,8 +80,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js index daba959cf9b..c089c3ef8c2 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js @@ -27,8 +27,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -76,8 +80,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js index 41e987efd32..c85d5bc140f 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js @@ -35,8 +35,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts","/a/b/f3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts", + "/a/b/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +124,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts","/a/b/f3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts", + "/a/b/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -168,8 +184,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts","/a/b/f3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts", + "/a/b/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js index 4d0a815805c..8f57ec909f3 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js @@ -16,7 +16,11 @@ interface GlobalFoo { age: number } export var Foo4 = 10; //// [/a/b/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} //// [/a/lib/lib.d.ts] /// @@ -41,8 +45,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"isolatedModules":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -141,8 +156,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"isolatedModules":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js index 32d49e04371..ded2b92a989 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js @@ -16,7 +16,12 @@ interface GlobalFoo { age: number } export var Foo4 = 10; //// [/a/b/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/a/b/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/a/b/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -41,8 +46,20 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"module":4,"outFile":"/a/b/out.js","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "module": 4, + "outFile": "/a/b/out.js", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -145,8 +162,20 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"module":4,"outFile":"/a/b/out.js","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "module": 4, + "outFile": "/a/b/out.js", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js index e5a6c7552c4..c9ed34aa138 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -142,8 +152,17 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js index 0fb2970c96f..1085af7d4b3 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -144,8 +154,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/file1Consumer3.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/file1Consumer3.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js index b7866df0869..2891c78f30a 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -146,8 +156,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -196,8 +216,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -246,8 +276,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -306,8 +346,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -358,8 +408,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js index a2fdbd6b7ec..dde07cc2a7f 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -141,8 +151,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -199,8 +219,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js index 141d77ae667..9659a899e81 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js @@ -16,7 +16,11 @@ interface GlobalFoo { age: number } export var Foo4 = 10; //// [/a/b/tsconfig.json] -{"files":["/a/b/file1Consumer1.ts"]} +{ + "files": [ + "/a/b/file1Consumer1.ts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -41,8 +45,14 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -106,8 +116,14 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -153,8 +169,14 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js index c6ba6ca578f..846b9aa1d94 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js @@ -40,8 +40,14 @@ Output:: -Program root files: ["/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +122,14 @@ Output:: -Program root files: ["/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -185,8 +197,15 @@ Output:: -Program root files: ["/a/b/moduleFile2.ts","/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/moduleFile2.ts", + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js index c3872f2b08a..53f4a6ecc31 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js @@ -38,8 +38,15 @@ Output:: -Program root files: ["/a/b/moduleFile1.ts","/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/moduleFile1.ts", + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +123,14 @@ Output:: -Program root files: ["/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js index 8b9f958ff34..9a32d9ca6be 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -141,8 +151,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js index 7fb05f72481..9d3b3a927ab 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js @@ -44,8 +44,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,8 +165,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -203,8 +225,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -260,8 +293,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js index f97dbdb45d6..8a0dfe38684 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js @@ -34,8 +34,15 @@ Output:: -Program root files: ["/a/b/file1.ts","/a/b/file2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts", + "/a/b/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -104,8 +111,15 @@ Output:: -Program root files: ["/a/b/file1.ts","/a/b/file2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts", + "/a/b/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js index 13fdb875070..efcb01513ef 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js @@ -7,7 +7,9 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +34,16 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/a.ts @@ -93,8 +103,16 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts @@ -136,8 +154,16 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js index 971d39fbf23..e9d628fd775 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js @@ -7,7 +7,11 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -28,18 +32,27 @@ Output:: >> Screen clear [12:00:15 AM] Starting compilation in watch mode... -a/tsconfig.json:1:21 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +a/tsconfig.json:3:5 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'outFile' instead. -1 {"compilerOptions":{"out":"/a/out.js"}} -   ~~~~~ +3 "out": "/a/out.js" +   ~~~~~ [12:00:18 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"out":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "out": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/a.ts @@ -86,18 +99,27 @@ Output:: >> Screen clear [12:00:22 AM] File change detected. Starting incremental compilation... -a/tsconfig.json:1:21 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +a/tsconfig.json:3:5 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'outFile' instead. -1 {"compilerOptions":{"out":"/a/out.js"}} -   ~~~~~ +3 "out": "/a/out.js" +   ~~~~~ [12:00:26 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"out":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "out": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts @@ -130,18 +152,27 @@ Output:: >> Screen clear [12:00:30 AM] File change detected. Starting incremental compilation... -a/tsconfig.json:1:21 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +a/tsconfig.json:3:5 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'outFile' instead. -1 {"compilerOptions":{"out":"/a/out.js"}} -   ~~~~~ +3 "out": "/a/out.js" +   ~~~~~ [12:00:34 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"out":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "out": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js index 778eba542fa..ad688f9cdea 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js @@ -7,7 +7,11 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,17 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"outFile":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "outFile": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/a.ts @@ -84,8 +97,17 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"outFile":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "outFile": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts @@ -122,8 +144,17 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"outFile":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "outFile": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js index a4bc0546003..a4135fd5ec7 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js @@ -26,7 +26,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"outFile":"../output/common.js","target":"es5"},"files":["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"]} +{ + "compilerOptions": { + "outFile": "../output/common.js", + "target": "es5" + }, + "files": [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" + ] +} /a/lib/tsc.js --w -p /a/b/project/tsconfig.json @@ -43,8 +54,19 @@ Output:: -Program root files: ["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"] -Program options: {"outFile":"/a/b/output/common.js","target":1,"watch":true,"project":"/a/b/project/tsconfig.json","configFilePath":"/a/b/project/tsconfig.json"} +Program root files: [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" +] +Program options: { + "outFile": "/a/b/output/common.js", + "target": 1, + "watch": true, + "project": "/a/b/project/tsconfig.json", + "configFilePath": "/a/b/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js index 3966eedbd19..b7a8394bbce 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js @@ -26,7 +26,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"outDir":"../output","target":"es5"},"files":["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"]} +{ + "compilerOptions": { + "outDir": "../output", + "target": "es5" + }, + "files": [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" + ] +} /a/lib/tsc.js --w -p /a/b/project/tsconfig.json @@ -43,8 +54,19 @@ Output:: -Program root files: ["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"] -Program options: {"outDir":"/a/b/output","target":1,"watch":true,"project":"/a/b/project/tsconfig.json","configFilePath":"/a/b/project/tsconfig.json"} +Program root files: [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" +] +Program options: { + "outDir": "/a/b/output", + "target": 1, + "watch": true, + "project": "/a/b/project/tsconfig.json", + "configFilePath": "/a/b/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js index 062971706bb..69e410ef9ac 100644 --- a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js +++ b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js @@ -1,7 +1,16 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/a/rootFolder/project/tsconfig.json] -{"compilerOptions":{"module":"none","allowJs":true,"outDir":"Static/scripts/"},"include":["Scripts/**/*"]} +{ + "compilerOptions": { + "module": "none", + "allowJs": true, + "outDir": "Static/scripts/" + }, + "include": [ + "Scripts/**/*" + ] +} //// [/a/rootFolder/project/Scripts/TypeScript.ts] var z = 10; @@ -32,8 +41,18 @@ Output:: -Program root files: ["/a/rootFolder/project/Scripts/Javascript.js","/a/rootFolder/project/Scripts/TypeScript.ts"] -Program options: {"module":0,"allowJs":true,"outDir":"/a/rootFolder/project/Static/scripts","watch":true,"project":"/a/rootFolder/project/tsconfig.json","configFilePath":"/a/rootFolder/project/tsconfig.json"} +Program root files: [ + "/a/rootFolder/project/Scripts/Javascript.js", + "/a/rootFolder/project/Scripts/TypeScript.ts" +] +Program options: { + "module": 0, + "allowJs": true, + "outDir": "/a/rootFolder/project/Static/scripts", + "watch": true, + "project": "/a/rootFolder/project/tsconfig.json", + "configFilePath": "/a/rootFolder/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -97,8 +116,18 @@ Output:: -Program root files: ["/a/rootFolder/project/Scripts/Javascript.js","/a/rootFolder/project/Scripts/TypeScript.ts"] -Program options: {"module":0,"allowJs":true,"outDir":"/a/rootFolder/project/Static/scripts","watch":true,"project":"/a/rootFolder/project/tsconfig.json","configFilePath":"/a/rootFolder/project/tsconfig.json"} +Program root files: [ + "/a/rootFolder/project/Scripts/Javascript.js", + "/a/rootFolder/project/Scripts/TypeScript.ts" +] +Program options: { + "module": 0, + "allowJs": true, + "outDir": "/a/rootFolder/project/Static/scripts", + "watch": true, + "project": "/a/rootFolder/project/tsconfig.json", + "configFilePath": "/a/rootFolder/project/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index e7a01398a3e..5b5d7bafd04 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -209,8 +218,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -336,8 +354,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -463,8 +490,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js index c443c49bab0..f3ff9c1add8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -122,8 +130,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -163,8 +179,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -204,8 +228,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js index 21fce9a4b81..d90f233f930 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +247,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -408,8 +426,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -575,8 +602,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js index 6f60110ec93..833d4d13f30 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -152,8 +160,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -215,8 +231,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -275,8 +299,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index becf1c637f0..a6d12d666c8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -348,8 +359,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -541,8 +563,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -725,8 +758,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js index 76ac5320e23..bfd66d907aa 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -196,8 +206,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -254,8 +274,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -303,8 +333,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js index 4b3663b983d..cec1964bd62 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -362,8 +377,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -581,8 +604,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -788,8 +819,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js index d2141d0042e..3d228d27388 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +252,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -300,8 +321,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -350,8 +378,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js index 4ea0b9d378c..8423e42d408 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -400,8 +415,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -642,8 +665,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -869,8 +900,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js index c90910e598f..19c2e61a7fb 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -261,8 +275,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -327,8 +348,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -378,8 +406,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js index a301f54b480..a9c9e451b06 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +113,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +140,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -189,7 +202,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1104 + "size": 1098 } @@ -227,8 +240,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,7 +269,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,8 +296,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -284,8 +308,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -320,7 +344,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1111 + "size": 1108 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -367,8 +391,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -385,7 +420,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -412,8 +447,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -424,8 +459,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -478,7 +513,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1270 + "size": 1267 } @@ -514,8 +549,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -532,7 +578,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -559,8 +605,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -571,8 +617,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -607,7 +653,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1102 + "size": 1099 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js index 17cbf7c76ad..029100a010b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +146,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -195,8 +217,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,8 +277,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 358457410ff..56086ad1a90 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -215,8 +225,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -344,8 +364,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -473,8 +503,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js index 51a9838542c..fbc7879a9be 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -126,8 +135,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -167,8 +185,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -208,8 +235,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index d1914768384..f4fd4c03890 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -260,8 +270,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -418,8 +438,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -576,8 +606,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js index d9d27414402..b9f94a88cd8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -164,8 +173,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -226,8 +244,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -288,8 +315,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 0acbae35d6b..552d7ef5756 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -411,8 +423,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -657,8 +681,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -903,8 +939,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index 39281cd2f36..c6d01a5fd14 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -241,8 +252,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -317,8 +339,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -393,8 +426,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js index c7f272a24aa..975fe4a1ca5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -410,8 +426,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -608,8 +633,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -806,8 +840,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js index 4547b82ae17..8cfe31c8cb1 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -264,8 +279,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -316,8 +339,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -368,8 +399,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index 3981520b925..5795cd92736 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -461,8 +477,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -679,8 +704,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -897,8 +931,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js index 8e309d66b3c..d62308973ee 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -296,8 +311,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -349,8 +372,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -402,8 +433,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js index f5ddd97ff4d..cda1c403034 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +141,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -190,7 +204,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1123 + "size": 1117 } @@ -228,8 +242,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -246,7 +272,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,11 +299,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -290,10 +312,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -330,7 +352,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1178 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -391,8 +413,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -409,7 +443,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -436,11 +470,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -453,10 +483,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -511,7 +541,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1423 + "size": 1337 } @@ -547,8 +577,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -565,7 +607,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -592,11 +634,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -609,10 +647,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -649,7 +687,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1255 + "size": 1169 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js index 2e46763e107..51e4900d96d 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +147,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -209,8 +233,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -259,8 +294,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index c046757d746..9027fed2d36 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -211,8 +219,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -349,8 +365,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -480,8 +504,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js index eda8dcd5a2a..f02ff7cdd8b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -127,8 +134,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -170,8 +184,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -218,8 +239,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js index aef3c82b4e3..150209af254 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -235,8 +243,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -397,8 +413,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -550,8 +574,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js index 0da476d57e7..1d1ed442ad4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -152,8 +159,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -210,8 +224,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -272,8 +293,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 304a8659277..13d05b5938e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -345,8 +355,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -550,8 +570,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -764,8 +794,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js index 71af769d673..6d0046f2118 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -196,8 +205,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -269,8 +287,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -322,8 +349,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js index 1af187277d8..fa8fb696328 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -359,8 +373,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -570,8 +591,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -757,8 +785,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js index 14ef9a9d4d7..3006720914a 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +251,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -295,8 +314,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -353,8 +378,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js index e3680edd94f..c1450f7e988 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -397,8 +411,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -631,8 +652,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -836,8 +864,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js index 3be9b6d4509..3b065f858b9 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -261,8 +274,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -322,8 +341,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -383,8 +408,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js index 50329dcd68e..6cd36ff47ef 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +112,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +139,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -188,7 +200,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1055 + "size": 1049 } @@ -226,8 +238,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -244,7 +266,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,8 +293,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -283,8 +305,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -318,7 +340,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1062 + "size": 1059 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -365,8 +387,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -383,7 +415,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -410,8 +442,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -422,8 +454,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -475,7 +507,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1221 + "size": 1218 } @@ -511,8 +543,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -529,7 +571,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -556,8 +598,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -568,8 +610,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -603,7 +645,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1053 + "size": 1050 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js index 9427ea78d6c..7d36b11daff 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +145,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -195,8 +215,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,8 +274,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 3ca618bad22..6067a739c80 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -219,8 +228,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -362,8 +380,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -498,8 +525,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js index 8342b4f5852..9f4135f2a8c 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +139,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -175,8 +191,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -224,8 +248,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index a69a229c217..e2ed6559adc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -264,8 +273,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -436,8 +454,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -601,8 +628,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js index b3b1fa0116f..f23e331d7b6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -169,8 +177,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -234,8 +250,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -304,8 +328,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index b7e05e73dac..345cd775b59 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -395,8 +406,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -612,8 +634,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -848,8 +881,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index 827cf2f0f10..c68da907573 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -226,8 +236,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -308,8 +328,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -375,8 +405,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js index 7e1806f20d7..e4d64a3ccb6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -414,8 +429,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -635,8 +658,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -849,8 +880,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js index dae78e1c164..ea356f45474 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -269,8 +283,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -333,8 +354,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -402,8 +430,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index 19e3541202c..a3f9ce08a9c 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -465,8 +480,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -709,8 +732,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -946,8 +977,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js index 05adba95852..fd0a659eb23 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -301,8 +315,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -369,8 +390,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -442,8 +470,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js index 1f3cb9181b9..d9c904c0ad5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +113,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +140,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -189,7 +202,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1074 + "size": 1068 } @@ -227,8 +240,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,7 +269,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,11 +296,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -289,10 +309,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -328,7 +348,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1215 + "size": 1129 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -389,8 +409,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -407,7 +438,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -434,11 +465,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -451,10 +478,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -508,7 +535,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1374 + "size": 1288 } @@ -544,8 +571,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -562,7 +600,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -589,11 +627,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -606,10 +640,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -645,7 +679,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1206 + "size": 1120 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js index 0dff01fb8c4..d57338fb0d3 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +146,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -209,8 +231,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -259,8 +291,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index bdba34066af..1cadf352705 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -211,8 +220,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -349,8 +367,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -480,8 +507,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js index a75fee9f363..a4f1c99d919 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -127,8 +135,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -170,8 +186,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -218,8 +242,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js index 9536e8fc2b0..146ee549677 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -235,8 +244,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -390,8 +408,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -538,8 +565,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js index e293ab97289..8da79d66ce4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -152,8 +160,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -208,8 +224,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -269,8 +293,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index fbb43bb2ffb..ce2278ca951 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -345,8 +356,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -533,8 +555,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -740,8 +773,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js index c619a0f6671..4d22e4ba403 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -196,8 +206,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -265,8 +285,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -319,8 +349,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js index cccabce3667..b95030f82d6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -359,8 +374,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -548,8 +571,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -730,8 +761,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js index 6e1a6e2bf44..a75e3111638 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +252,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -290,8 +311,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -347,8 +375,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js index cd42afccc08..1baff5fd750 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -397,8 +412,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -604,8 +627,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -804,8 +835,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js index 055fd1be6a8..eb33e341940 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -261,8 +275,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -316,8 +337,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -376,8 +404,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js index 0047b101109..49fd3d634cc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +113,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +140,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -188,7 +201,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1055 + "size": 1049 } @@ -226,8 +239,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -244,7 +268,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,8 +295,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -283,8 +307,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -318,7 +342,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1062 + "size": 1059 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -365,8 +389,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -383,7 +418,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -410,8 +445,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -422,8 +457,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -475,7 +510,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1221 + "size": 1218 } @@ -511,8 +546,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -529,7 +575,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -556,8 +602,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -568,8 +614,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -603,7 +649,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1053 + "size": 1050 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js index 2166ed50d0a..420e5615352 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +146,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -195,8 +217,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,8 +277,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 88cfeff2439..ca94a51124c 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -219,8 +229,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -362,8 +382,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -498,8 +528,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js index bd952f1e14a..5fb9a58a6bc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +140,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -175,8 +193,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -224,8 +251,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index c0bfc03ed59..e98d3019e5e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -264,8 +274,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -435,8 +455,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -599,8 +629,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js index 6cb70042cd4..9e5e6751de4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -169,8 +178,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -233,8 +251,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -302,8 +329,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 5a48b397595..c9a5c7efb78 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -395,8 +407,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -614,8 +638,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -852,8 +888,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index d4044867a40..c8cf3905fa9 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -226,8 +237,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -310,8 +332,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -379,8 +412,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js index af549b3c4f5..e03db06d230 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -414,8 +430,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -634,8 +659,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -847,8 +881,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js index 94244591a75..5f6c685bfe8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -269,8 +284,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -332,8 +355,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -400,8 +431,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index c62d73b5b16..8e818ef220f 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -465,8 +481,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -708,8 +733,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -944,8 +978,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js index 6e08546b9c3..435012fceab 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -301,8 +316,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -368,8 +391,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -440,8 +471,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js index 1ca7f2d8ca7..f7594bebd41 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +141,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -189,7 +203,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1074 + "size": 1068 } @@ -227,8 +241,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,7 +271,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,11 +298,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -289,10 +311,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -328,7 +350,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1215 + "size": 1129 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -389,8 +411,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -407,7 +441,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -434,11 +468,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -451,10 +481,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -508,7 +538,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1374 + "size": 1288 } @@ -544,8 +574,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -562,7 +604,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -589,11 +631,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -606,10 +644,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -645,7 +683,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1206 + "size": 1120 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js index 59f500e53c2..a037efab9f2 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } - -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +147,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -209,8 +233,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -259,8 +294,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js index 71f9401a95d..58819ee0bea 100644 --- a/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js @@ -1,10 +1,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -12,7 +21,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] @@ -55,8 +66,17 @@ FileWatcher:: Added:: WatchInfo: /users/user/projects/myconfigs/node_modules/@so FileWatcher:: Added:: WatchInfo: /users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json 2000 undefined Extended config file -Program root files: ["/users/user/projects/myproject/src/index.ts"] -Program options: {"composite":true,"removeComments":true,"watch":true,"project":"/users/user/projects/myproject/src","extendedDiagnostics":true,"configFilePath":"/users/user/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/users/user/projects/myproject/src/index.ts" +] +Program options: { + "composite": true, + "removeComments": true, + "watch": true, + "project": "/users/user/projects/myproject/src", + "extendedDiagnostics": true, + "configFilePath": "/users/user/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js index 60456324fb4..38a95b404be 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js @@ -28,13 +28,26 @@ export const Fragment: unique symbol; //// [/user/username/projects/myproject/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/user/username/projects/myproject/index.tsx] export const App = () =>
; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/Jsx-Runtime/index.d.ts","index.tsx"]} +{ + "compilerOptions": { + "jsx": "react-jsx", + "jsxImportSource": "react", + "forceConsistentCasingInFileNames": true + }, + "files": [ + "node_modules/react/Jsx-Runtime/index.d.ts", + "index.tsx" + ] +} /a/lib/tsc.js --w --p . --explainFiles @@ -47,9 +60,9 @@ Output:: Part of 'files' list in tsconfig.json Imported via "react/jsx-runtime" from file '/user/username/projects/myproject/index.tsx' with packageId 'react/jsx-runtime/index.d.ts@0.0.1' to import 'jsx' and 'jsxs' factory functions - tsconfig.json:1:115 - 1 {"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/Jsx-Runtime/index.d.ts","index.tsx"]} -    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + tsconfig.json:8:5 + 8 "node_modules/react/Jsx-Runtime/index.d.ts", +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ File is matched by 'files' list specified here. ../../../../a/lib/lib.d.ts @@ -63,8 +76,19 @@ index.tsx -Program root files: ["/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts","/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":4,"jsxImportSource":"react","forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts", + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 4, + "jsxImportSource": "react", + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js index ccea906a266..37ff96f8780 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js @@ -1,7 +1,12 @@ currentDirectory:: /Users/name/projects/lib-boilerplate useCaseSensitiveFileNames: false Input:: //// [/Users/name/projects/lib-boilerplate/package.json] -{"name":"lib-boilerplate","version":"0.0.2","type":"module","exports":"./src/index.ts"} +{ + "name": "lib-boilerplate", + "version": "0.0.2", + "type": "module", + "exports": "./src/index.ts" +} //// [/Users/name/projects/lib-boilerplate/src/index.ts] export function thing(): void {} @@ -12,7 +17,14 @@ import { thing } from 'lib-boilerplate' //// [/Users/name/projects/lib-boilerplate/tsconfig.json] -{"compilerOptions":{"module":"node16","target":"es2021","forceConsistentCasingInFileNames":true,"traceResolution":true}} +{ + "compilerOptions": { + "module": "node16", + "target": "es2021", + "forceConsistentCasingInFileNames": true, + "traceResolution": true + } +} //// [/a/lib/lib.es2021.full.d.ts] /// @@ -62,8 +74,19 @@ test/basic.spec.ts -Program root files: ["/Users/name/projects/lib-boilerplate/src/index.ts","/Users/name/projects/lib-boilerplate/test/basic.spec.ts"] -Program options: {"module":100,"target":8,"forceConsistentCasingInFileNames":true,"traceResolution":true,"watch":true,"explainFiles":true,"configFilePath":"/Users/name/projects/lib-boilerplate/tsconfig.json"} +Program root files: [ + "/Users/name/projects/lib-boilerplate/src/index.ts", + "/Users/name/projects/lib-boilerplate/test/basic.spec.ts" +] +Program options: { + "module": 100, + "target": 8, + "forceConsistentCasingInFileNames": true, + "traceResolution": true, + "watch": true, + "explainFiles": true, + "configFilePath": "/Users/name/projects/lib-boilerplate/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2021.full.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js index aaf89bd7e7f..fa6992c1a5b 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js @@ -1,7 +1,13 @@ currentDirectory:: /Users/name/projects/web useCaseSensitiveFileNames: false Input:: //// [/Users/name/projects/web/package.json] -{"name":"@this/package","type":"module","exports":{".":"./dist/index.js"}} +{ + "name": "@this/package", + "type": "module", + "exports": { + ".": "./dist/index.js" + } +} //// [/Users/name/projects/web/index.ts] import * as me from "@this/package"; @@ -10,7 +16,16 @@ export function thing(): void {} //// [/Users/name/projects/web/tsconfig.json] -{"compilerOptions":{"module":"nodenext","outDir":"./dist","declarationDir":"./types","composite":true,"forceConsistentCasingInFileNames":true,"traceResolution":true}} +{ + "compilerOptions": { + "module": "nodenext", + "outDir": "./dist", + "declarationDir": "./types", + "composite": true, + "forceConsistentCasingInFileNames": true, + "traceResolution": true + } +} //// [/a/lib/lib.esnext.full.d.ts] /// @@ -53,8 +68,20 @@ index.ts -Program root files: ["/Users/name/projects/web/index.ts"] -Program options: {"module":199,"outDir":"/Users/name/projects/web/dist","declarationDir":"/Users/name/projects/web/types","composite":true,"forceConsistentCasingInFileNames":true,"traceResolution":true,"watch":true,"explainFiles":true,"configFilePath":"/Users/name/projects/web/tsconfig.json"} +Program root files: [ + "/Users/name/projects/web/index.ts" +] +Program options: { + "module": 199, + "outDir": "/Users/name/projects/web/dist", + "declarationDir": "/Users/name/projects/web/types", + "composite": true, + "forceConsistentCasingInFileNames": true, + "traceResolution": true, + "watch": true, + "explainFiles": true, + "configFilePath": "/Users/name/projects/web/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.esnext.full.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js index f77e12df532..ad14d7fe1c6 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js @@ -28,7 +28,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [c:/project/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} c:/a/lib/tsc.js --w --p c://project --explainFiles @@ -48,8 +52,17 @@ project/b.ts -Program root files: ["c:/project/a.ts","c:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"c:/project","explainFiles":true,"configFilePath":"c:/project/tsconfig.json"} +Program root files: [ + "c:/project/a.ts", + "c:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "c:/project", + "explainFiles": true, + "configFilePath": "c:/project/tsconfig.json" +} Program structureReused: Not Program files:: c:/a/lib/lib.d.ts @@ -134,8 +147,17 @@ project/b.ts -Program root files: ["c:/project/a.ts","c:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"c:/project","explainFiles":true,"configFilePath":"c:/project/tsconfig.json"} +Program root files: [ + "c:/project/a.ts", + "c:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "c:/project", + "explainFiles": true, + "configFilePath": "c:/project/tsconfig.json" +} Program structureReused: Completely Program files:: c:/a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js index 90dc5a513e6..492c2a67404 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js @@ -28,7 +28,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [C:/project/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} C:/a/lib/tsc.js --w --p C://project --explainFiles @@ -48,8 +52,17 @@ project/b.ts -Program root files: ["C:/project/a.ts","C:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"C:/project","explainFiles":true,"configFilePath":"C:/project/tsconfig.json"} +Program root files: [ + "C:/project/a.ts", + "C:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "C:/project", + "explainFiles": true, + "configFilePath": "C:/project/tsconfig.json" +} Program structureReused: Not Program files:: C:/a/lib/lib.d.ts @@ -134,8 +147,17 @@ project/b.ts -Program root files: ["C:/project/a.ts","C:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"C:/project","explainFiles":true,"configFilePath":"C:/project/tsconfig.json"} +Program root files: [ + "C:/project/a.ts", + "C:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "C:/project", + "explainFiles": true, + "configFilePath": "C:/project/tsconfig.json" +} Program structureReused: Completely Program files:: C:/a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js index 55f54601cec..84b063bf310 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -50,8 +56,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -165,8 +182,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js index 119960efc7a..2538a1e6a75 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -51,8 +55,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,8 +168,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js index 6b389ad800f..0ea0ff839d0 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js @@ -7,7 +7,11 @@ export class logger { } import { logger } from "./logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/another.ts","/user/username/projects/myproject/logger.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/another.ts", + "/user/username/projects/myproject/logger.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -118,8 +130,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/another.ts","/user/username/projects/myproject/logger.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/another.ts", + "/user/username/projects/myproject/logger.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js index 1b66862a2da..bb19cf9c046 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -50,8 +56,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -165,8 +182,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js index a930ebce2f5..d3805cb2043 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -51,8 +55,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,8 +168,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js index a09a582546c..c44afd5afac 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -54,8 +60,19 @@ XY/a.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -175,8 +192,19 @@ XY/a.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js index e145178c77a..eda5e61bc46 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -55,8 +59,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -166,8 +180,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js index 2727bca99ed..cd68babe349 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -58,8 +64,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -181,8 +198,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js index 5d4f12711ff..19aafa21677 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -59,8 +63,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -170,8 +184,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js index 76299296a21..a197c70a47f 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -58,8 +64,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -181,8 +198,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js index b39b1366f03..d11f4300764 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -59,8 +63,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -170,8 +184,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js index 98160e1af69..61690b76c48 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js @@ -23,7 +23,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -73,8 +77,18 @@ moduleB.ts -Program root files: ["/user/username/projects/myproject/moduleA.ts","/user/username/projects/myproject/moduleB.ts","/user/username/projects/myproject/moduleC.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/moduleA.ts", + "/user/username/projects/myproject/moduleB.ts", + "/user/username/projects/myproject/moduleC.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -193,8 +207,18 @@ moduleB.ts -Program root files: ["/user/username/projects/myproject/moduleA.ts","/user/username/projects/myproject/moduleB.ts","/user/username/projects/myproject/moduleC.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/moduleA.ts", + "/user/username/projects/myproject/moduleB.ts", + "/user/username/projects/myproject/moduleC.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js index 71b5b672245..de0c93d5d2b 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js @@ -7,7 +7,11 @@ export class logger { } import { logger } from "./logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/another.ts","/user/username/projects/myproject/logger.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/another.ts", + "/user/username/projects/myproject/logger.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +128,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/Logger.ts","/user/username/projects/myproject/another.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/Logger.ts", + "/user/username/projects/myproject/another.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js index 4f912ea478d..7d51c0dca1b 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js @@ -10,10 +10,27 @@ export function foo(): void; export function foo(): void; //// [/Users/name/projects/web/node_modules/@types/yargs/package.json] -{"name":"yargs","version":"17.0.12","exports":{".":{"types":{"import":"./index.d.mts","default":"./index.d.ts"}}}} +{ + "name": "yargs", + "version": "17.0.12", + "exports": { + ".": { + "types": { + "import": "./index.d.mts", + "default": "./index.d.ts" + } + } + } +} //// [/Users/name/projects/web/tsconfig.json] -{"compilerOptions":{"moduleResolution":"nodenext","forceConsistentCasingInFileNames":true,"traceResolution":true}} +{ + "compilerOptions": { + "moduleResolution": "nodenext", + "forceConsistentCasingInFileNames": true, + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// @@ -98,8 +115,17 @@ src/bin.ts -Program root files: ["/Users/name/projects/web/src/bin.ts"] -Program options: {"moduleResolution":99,"forceConsistentCasingInFileNames":true,"traceResolution":true,"watch":true,"explainFiles":true,"configFilePath":"/Users/name/projects/web/tsconfig.json"} +Program root files: [ + "/Users/name/projects/web/src/bin.ts" +] +Program options: { + "moduleResolution": 99, + "forceConsistentCasingInFileNames": true, + "traceResolution": true, + "watch": true, + "explainFiles": true, + "configFilePath": "/Users/name/projects/web/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js index ee71eefcd1a..8b05138be2e 100644 --- a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js @@ -25,15 +25,27 @@ export {}; declare module "classnames" { interface Result { foo } } import classNames from "classnames"; classNames().foo; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","incremental":true}} +{ + "compilerOptions": { + "module": "commonjs", + "incremental": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -167,8 +179,15 @@ Found 1 error in src/index.ts:1 -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js index b90ea803421..c65fd6e3d3c 100644 --- a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js @@ -25,7 +25,12 @@ export {}; declare module "classnames" { interface Result { foo } } import classNames from "classnames"; classNames().foo; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","incremental":true}} +{ + "compilerOptions": { + "module": "commonjs", + "incremental": true + } +} /a/lib/tsc.js -w @@ -37,8 +42,16 @@ Output:: -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -226,8 +239,16 @@ Output:: -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js index 97f6540d25f..84eb0d76296 100644 --- a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js @@ -19,21 +19,34 @@ declare const console: { log(msg: any): void; }; export function __assign(...args: any[]): any; //// [/users/username/projects/project/node_modules/tslib/package.json] -{"name":"tslib","version":"0.0.1"} +{ + "name": "tslib", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const x = {...{}}; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"importHelpers":true}} +{ + "compilerOptions": { + "importHelpers": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -142,8 +155,14 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js index 77445f3a553..2429fafbdb0 100644 --- a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js @@ -19,13 +19,20 @@ declare const console: { log(msg: any): void; }; export function __assign(...args: any[]): any; //// [/users/username/projects/project/node_modules/tslib/package.json] -{"name":"tslib","version":"0.0.1"} +{ + "name": "tslib", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const x = {...{}}; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"importHelpers":true}} +{ + "compilerOptions": { + "importHelpers": true + } +} /a/lib/tsc.js -w @@ -37,8 +44,14 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -133,8 +146,14 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js index 8649e6e4add..8360ce08629 100644 --- a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js @@ -41,15 +41,35 @@ export { C } from "./c"; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"target":"es5","module":"commonjs","declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "emitDeclarationOnly": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -237,8 +257,20 @@ export interface A { Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js index db85a3c7ac4..9258c3d53a1 100644 --- a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js @@ -41,7 +41,15 @@ export { C } from "./c"; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"target":"es5","module":"commonjs","declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "emitDeclarationOnly": true + } +} /a/lib/tsc.js -w @@ -53,8 +61,21 @@ Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -295,8 +316,21 @@ Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js index a4316e0718d..10299e37b5a 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js @@ -19,7 +19,14 @@ declare const console: { log(msg: any): void; }; export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -i @@ -34,8 +41,16 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -138,14 +153,25 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js index 0a29440b6d4..01a2a124437 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js @@ -19,7 +19,14 @@ declare const console: { log(msg: any): void; }; export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -w @@ -36,8 +43,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -162,7 +178,10 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} PolledWatches *deleted*:: @@ -195,8 +214,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js index 97860cde08e..41e5616b18c 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js @@ -30,21 +30,39 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -156,8 +174,16 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js index ef185935d33..718da7bdd57 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js @@ -30,13 +30,23 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -w @@ -48,8 +58,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -211,8 +230,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js index 2399c9782f9..9498b80cf92 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js @@ -30,7 +30,10 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/node_modules/preact/jsx-runtime/index.d.ts] export namespace JSX { @@ -47,13 +50,23 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/preact/package.json] -{"name":"preact","version":"0.0.1"} +{ + "name": "preact", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -i --explainFiles @@ -66,8 +79,17 @@ index.tsx Matched by default include pattern '**/*' -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -166,7 +188,14 @@ Change:: Input:: //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"preact"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "preact" + } +} Output:: @@ -187,8 +216,17 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"preact","explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "preact", + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js index 34a99f9c2a5..d18a9e5f95b 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js @@ -30,7 +30,10 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/node_modules/preact/jsx-runtime/index.d.ts] export namespace JSX { @@ -47,13 +50,23 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/preact/package.json] -{"name":"preact","version":"0.0.1"} +{ + "name": "preact", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -w --explainFiles @@ -71,8 +84,18 @@ index.tsx -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,7 +218,14 @@ Change:: Input:: //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"preact"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "preact" + } +} PolledWatches *deleted*:: @@ -242,8 +272,18 @@ index.tsx -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"preact","watch":true,"explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "preact", + "watch": true, + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js index 76be5bddd43..57afe66eb36 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js @@ -20,7 +20,12 @@ export const x = 10; export const y: string = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -i @@ -35,8 +40,15 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -159,8 +171,15 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js index 778b15da3d6..61fc6df31ce 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js @@ -20,7 +20,12 @@ export const x = 10; export const y: string = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -w @@ -37,8 +42,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -203,8 +216,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js index 03963139a33..027f13203ad 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js @@ -20,15 +20,27 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +143,15 @@ export const z = 10; Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js index 39bb6b6e0ab..72017531087 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js @@ -20,7 +20,12 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -w @@ -32,8 +37,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -181,8 +194,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js index 586eaa758e0..3b9f51b92d9 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js @@ -20,15 +20,29 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd","outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd", + "outFile": "out.js" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"outFile":"/users/username/projects/project/out.js","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "outFile": "/users/username/projects/project/out.js", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js index b2157800d1b..2375290fe54 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js @@ -20,7 +20,13 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd","outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd", + "outFile": "out.js" + } +} /a/lib/tsc.js -w @@ -32,8 +38,17 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"outFile":"/users/username/projects/project/out.js","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "outFile": "/users/username/projects/project/out.js", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js index 5878873af4f..8e78d5ec880 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js @@ -17,7 +17,11 @@ interface Array { length: number; [n: number]: T; } const x = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} //// [/users/username/projects/project/file2.ts] const y: string = 20; @@ -35,8 +39,14 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -156,8 +166,14 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js index 84ccc8db6f8..bf9993bff76 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js @@ -17,7 +17,11 @@ interface Array { length: number; [n: number]: T; } const x = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} //// [/users/username/projects/project/file2.ts] const y: string = 20; @@ -37,8 +41,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -200,8 +211,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js index 0232cdf80c5..4a08404710c 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js @@ -20,15 +20,26 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -i -p tsconfig.json Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -128,8 +139,15 @@ const z = 10; Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js index 172105c20e5..ebca77b9964 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js @@ -20,7 +20,11 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -w -p tsconfig.json @@ -32,8 +36,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -178,8 +190,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js index 073924125dd..4f4e41ad8bd 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js @@ -20,15 +20,25 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -128,8 +138,14 @@ const z = 10; Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js index 02b19ea4b55..dbf42c49011 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js @@ -20,7 +20,11 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -w @@ -32,8 +36,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -178,8 +189,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js index 628eb021acf..86e2b338baf 100644 --- a/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/src/project/main.ts"] -Program options: {"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/main.ts" +] +Program options: { + "project": "/src/project", + "incremental": true, + "watch": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js index 4c7432831e7..eb9afdf0342 100644 --- a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js @@ -22,15 +22,25 @@ declare namespace Config { const value: string;} console.log(Config.value); //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/globals.d.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/globals.d.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -132,8 +142,13 @@ Found 1 error in index.ts:1 -Program root files: ["/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js index ec1957a285f..93bf98341ed 100644 --- a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js @@ -22,7 +22,11 @@ declare namespace Config { const value: string;} console.log(Config.value); //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -w @@ -34,8 +38,15 @@ Output:: -Program root files: ["/users/username/projects/project/globals.d.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/globals.d.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -179,8 +190,14 @@ Output:: -Program root files: ["/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js index d7e8d6a9896..71e28dc463a 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js @@ -20,15 +20,27 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "out.js" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"outFile":"/users/username/projects/project/out.js","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "outFile": "/users/username/projects/project/out.js", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js index aa6740c6859..2df3a3fe2a3 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js @@ -20,7 +20,12 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "out.js" + } +} /a/lib/tsc.js -w @@ -32,8 +37,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"outFile":"/users/username/projects/project/out.js","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "outFile": "/users/username/projects/project/out.js", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js index 64aca1a93b5..c2cfdd0e565 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -256,8 +296,30 @@ DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -586,8 +648,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -851,8 +935,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Completely Program files:: /home/src/lib/lib.dom.d.ts @@ -1071,8 +1177,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -1324,8 +1451,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -1531,7 +1679,20 @@ Change:: change program options to update module resolution Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Before running Timeout callback:: count: 1 @@ -1585,8 +1746,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1", + "/home/src/projects/project1/typeroot2" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -1646,7 +1829,19 @@ Change:: change program options to update module resolution and also update lib Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted @@ -1742,8 +1937,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -2034,8 +2250,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -2307,8 +2544,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.dom.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js index 1a97c621ca0..1e5b7287346 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -261,8 +301,30 @@ DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -579,8 +641,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -844,8 +928,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Completely Program files:: /home/src/lib/lib.es5.d.ts @@ -1064,8 +1170,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -1332,8 +1459,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -1539,7 +1687,20 @@ Change:: change program options to update module resolution Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Before running Timeout callback:: count: 1 @@ -1593,8 +1754,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1", + "/home/src/projects/project1/typeroot2" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -1654,7 +1837,19 @@ Change:: change program options to update module resolution and also update lib Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] interface DOMInterface { } @@ -1731,8 +1926,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -2011,8 +2227,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -2299,8 +2536,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js index ed29ae18199..2aa8c545bbb 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -230,8 +270,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -397,8 +452,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -517,8 +587,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /home/src/lib/lib.dom.d.ts @@ -597,8 +682,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -717,8 +817,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -861,8 +976,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.webworker.d.ts @@ -991,8 +1121,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js index 05457f49501..78fcfcd5b7d 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -231,8 +271,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -387,8 +442,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -507,8 +577,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /home/src/lib/lib.es5.d.ts @@ -587,8 +672,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -721,8 +821,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -854,8 +969,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -998,8 +1128,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js index 33407bef218..73c1e01916c 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js @@ -1,10 +1,26 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"nodenext","outDir":"./dist","declaration":true,"declarationDir":"./types"}} +{ + "compilerOptions": { + "moduleResolution": "nodenext", + "outDir": "./dist", + "declaration": true, + "declarationDir": "./types" + } +} //// [/user/username/projects/myproject/package.json] -{"name":"@this/package","type":"module","exports":{".":{"default":"./dist/index.js","types":"./types/index.d.ts"}}} +{ + "name": "@this/package", + "type": "module", + "exports": { + ".": { + "default": "./dist/index.js", + "types": "./types/index.d.ts" + } + } +} //// [/user/username/projects/myproject/index.ts] import * as me from "@this/package"; @@ -60,8 +76,19 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/index.ts","/user/username/projects/myproject/index2.ts"] -Program options: {"moduleResolution":99,"outDir":"/user/username/projects/myproject/dist","declaration":true,"declarationDir":"/user/username/projects/myproject/types","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts", + "/user/username/projects/myproject/index2.ts" +] +Program options: { + "moduleResolution": 99, + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/types", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -167,8 +194,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/index.ts","/user/username/projects/myproject/index2.ts"] -Program options: {"moduleResolution":99,"outDir":"/user/username/projects/myproject/dist","declaration":true,"declarationDir":"/user/username/projects/myproject/types","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts", + "/user/username/projects/myproject/index2.ts" +] +Program options: { + "moduleResolution": 99, + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/types", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js index d74aab3dd6d..3691896e7b9 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16"}} +{ + "compilerOptions": { + "moduleResolution": "node16" + } +} //// [/user/username/projects/myproject/index.ts] import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" }; @@ -14,7 +18,14 @@ export const x = 10; //// [/user/username/projects/myproject/node_modules/pkg/package.json] -{"name":"pkg","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg/import.d.ts] export interface ImportInterface {} @@ -23,7 +34,14 @@ export interface ImportInterface {} export interface RequireInterface {} //// [/user/username/projects/myproject/node_modules/pkg1/package.json] -{"name":"pkg1","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg1", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg1/import.d.ts] export interface ImportInterface {} @@ -137,8 +155,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -281,8 +307,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js index 3315ea948b5..83a6342fbf6 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16"}} +{ + "compilerOptions": { + "moduleResolution": "node16" + } +} //// [/user/username/projects/myproject/index.ts] import type { ImportInterface } from "pkg" with { "resolution-mode": "import" }; @@ -14,7 +18,14 @@ export const x = 10; //// [/user/username/projects/myproject/node_modules/pkg/package.json] -{"name":"pkg","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg/import.d.ts] export interface ImportInterface {} @@ -23,7 +34,14 @@ export interface ImportInterface {} export interface RequireInterface {} //// [/user/username/projects/myproject/node_modules/pkg1/package.json] -{"name":"pkg1","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg1", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg1/import.d.ts] export interface ImportInterface {} @@ -137,8 +155,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -281,8 +307,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js index 648ac07f65d..1edfb48a259 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js @@ -2,14 +2,14 @@ currentDirectory:: /home/src/projects/project useCaseSensitiveFileNames: false Input:: //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] @@ -17,15 +17,15 @@ export declare const bar: number; //// [/home/src/projects/project/node_modules/bar/package.json] { - "name": "bar", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar/index.js] @@ -36,16 +36,16 @@ export const bar = 1; //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo/index.js] @@ -59,15 +59,15 @@ export declare const foo: number; //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] @@ -75,15 +75,15 @@ export declare const bar2: number; //// [/home/src/projects/project/node_modules/bar2/package.json] { - "name": "bar2", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar2", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar2/index.js] @@ -94,17 +94,17 @@ export const bar2 = 1; //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo2/index.js] @@ -124,7 +124,18 @@ import { bar2 } from "bar2"; //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{ + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "files": [ + "index.mts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -352,8 +363,19 @@ Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -619,8 +641,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -738,8 +771,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -865,8 +909,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -973,8 +1028,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -994,15 +1060,15 @@ Change:: update package.json from @types so error is fixed Input:: //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } @@ -1074,8 +1140,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -1229,17 +1306,17 @@ Change:: update package.json so error is fixed Input:: //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1305,8 +1382,19 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modu -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -1475,14 +1563,14 @@ Change:: update package.json from @types so error is introduced Input:: //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } @@ -1597,8 +1685,19 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modu -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -1755,16 +1854,16 @@ Change:: update package.json so error is introduced Input:: //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1855,8 +1954,19 @@ FileWatcher:: Close:: WatchInfo: /home/src/projects/project/node_modules/foo2/in -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2115,8 +2225,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2234,8 +2355,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2361,8 +2493,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2469,8 +2612,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js index 0f73ffa38f4..b2baea4623e 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -1,7 +1,13 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out"}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out" + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -14,7 +20,11 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -83,8 +93,20 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2016.full.d.ts @@ -136,7 +158,10 @@ Change:: Modify package.json file to remove type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Before running Timeout callback:: count: 1 @@ -198,8 +223,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -253,7 +290,11 @@ Change:: Modify package json file to add type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -310,8 +351,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -434,8 +487,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -491,7 +556,10 @@ Change:: Modify package json file to without type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Before running Timeout callback:: count: 1 @@ -538,8 +606,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -641,8 +721,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js index 7b11a1f5d66..df34ca28a6b 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js @@ -1,7 +1,13 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out"}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out" + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -14,7 +20,10 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -90,8 +99,20 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2016.full.d.ts @@ -147,7 +168,11 @@ Change:: Modify package json file to add type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -204,8 +229,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -259,7 +296,10 @@ Change:: Modify package.json file to remove type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Before running Timeout callback:: count: 1 @@ -321,8 +361,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -429,8 +481,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -477,7 +541,11 @@ Change:: Modify package json file to add type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -535,8 +603,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -661,8 +741,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js index b8fd355498e..64795096b0e 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16"}} +{ + "compilerOptions": { + "moduleResolution": "node16" + } +} //// [/user/username/projects/myproject/index.ts] /// @@ -14,7 +18,14 @@ export const x = 10; //// [/user/username/projects/myproject/node_modules/pkg/package.json] -{"name":"pkg","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg/import.d.ts] export {}; @@ -31,7 +42,14 @@ declare global { //// [/user/username/projects/myproject/node_modules/pkg1/package.json] -{"name":"pkg1","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg1", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg1/import.d.ts] export {}; @@ -137,8 +155,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -302,8 +328,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js index 297e212fb9b..2faaa3ac283 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js @@ -1,14 +1,22 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/packages/pkg1/index.ts] import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build"}} +{ + "compilerOptions": { + "outDir": "build" + } +} //// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] export type TheNum = 42; @@ -20,7 +28,11 @@ export type { TheNum } from './const.js'; export type TheStr = string; //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -76,8 +88,16 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","project":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "project": "/user/username/projects/myproject/packages/pkg1/tsconfig.json", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -147,7 +167,11 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/other.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/other.js" +} Before running Timeout callback:: count: 1 @@ -192,8 +216,16 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","project":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "project": "/user/username/projects/myproject/packages/pkg1/tsconfig.json", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -258,7 +290,11 @@ Change:: removes those errors when a package file is changed back Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} Before running Timeout callback:: count: 1 @@ -306,8 +342,16 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","project":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "project": "/user/username/projects/myproject/packages/pkg1/tsconfig.json", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js b/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js index 6b0f7fc1f59..763bed11d08 100644 --- a/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js +++ b/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js @@ -1,7 +1,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/project/tsconfig.json] -{"compilerOptions":{"strict":true,"target":"es2020","module":"nodenext","moduleResolution":"nodenext","outDir":"../dist"}} +{ + "compilerOptions": { + "strict": true, + "target": "es2020", + "module": "nodenext", + "moduleResolution": "nodenext", + "outDir": "../dist" + } +} //// [/project/src/index.ts] import * as Thing from "thing"; @@ -12,7 +20,13 @@ Thing.fn(); declare module "thing"; //// [/project/package.json] -{"name":"some-proj","version":"1.0.0","description":"","type":"module","main":"index.js"} +{ + "name": "some-proj", + "version": "1.0.0", + "description": "", + "type": "module", + "main": "index.js" +} //// [/a/lib/lib.es2020.full.d.ts] /// @@ -37,8 +51,20 @@ Output:: -Program root files: ["/project/src/deps.d.ts","/project/src/index.ts"] -Program options: {"strict":true,"target":7,"module":199,"moduleResolution":99,"outDir":"/dist","watch":true,"project":"/project/tsconfig.json","configFilePath":"/project/tsconfig.json"} +Program root files: [ + "/project/src/deps.d.ts", + "/project/src/index.ts" +] +Program options: { + "strict": true, + "target": 7, + "module": 199, + "moduleResolution": 99, + "outDir": "/dist", + "watch": true, + "project": "/project/tsconfig.json", + "configFilePath": "/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2020.full.d.ts @@ -96,8 +122,20 @@ Output:: -Program root files: ["/project/src/deps.d.ts","/project/src/index.ts"] -Program options: {"strict":true,"target":7,"module":199,"moduleResolution":99,"outDir":"/dist","watch":true,"project":"/project/tsconfig.json","configFilePath":"/project/tsconfig.json"} +Program root files: [ + "/project/src/deps.d.ts", + "/project/src/index.ts" +] +Program options: { + "strict": true, + "target": 7, + "module": 199, + "moduleResolution": 99, + "outDir": "/dist", + "watch": true, + "project": "/project/tsconfig.json", + "configFilePath": "/project/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.es2020.full.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js b/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js index 70fe89e0b94..3098be0e3bf 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js @@ -44,8 +44,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js b/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js index e72c277b6df..c33f6848dc5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js @@ -52,8 +52,16 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"inlineSourceMap":true,"mapRoot":"./","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "inlineSourceMap": true, + "mapRoot": "./", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +131,16 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"inlineSourceMap":true,"mapRoot":"./","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "inlineSourceMap": true, + "mapRoot": "./", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js b/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js index 52b364ae132..9a3d5c0bd7e 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js @@ -39,8 +39,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js b/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js index f640273c3b6..f2073045cc2 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -90,8 +96,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -125,8 +137,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js index 2c4c31c36d6..b78c4199a30 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js @@ -20,7 +20,14 @@ import {} from './b.css' declare const style: string; //// [/tsconfig.json] -{"compilerOptions":{"allowArbitraryExtensions":true},"files":["/a.ts"]} +{ + "compilerOptions": { + "allowArbitraryExtensions": true + }, + "files": [ + "/a.ts" + ] +} /a/lib/tsc.js -w -p /tsconfig.json @@ -37,8 +44,15 @@ Output:: -Program root files: ["/a.ts"] -Program options: {"allowArbitraryExtensions":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts" +] +Program options: { + "allowArbitraryExtensions": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -77,7 +91,14 @@ Change:: Disable allowArbitraryExtensions Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowArbitraryExtensions":false},"files":["/a.ts"]} +{ + "compilerOptions": { + "allowArbitraryExtensions": false + }, + "files": [ + "/a.ts" + ] +} Before running Timeout callback:: count: 1 @@ -96,8 +117,15 @@ Output:: -Program root files: ["/a.ts"] -Program options: {"allowArbitraryExtensions":false,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts" +] +Program options: { + "allowArbitraryExtensions": false, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -129,7 +157,14 @@ Change:: Enable allowArbitraryExtensions Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowArbitraryExtensions":true},"files":["/a.ts"]} +{ + "compilerOptions": { + "allowArbitraryExtensions": true + }, + "files": [ + "/a.ts" + ] +} Before running Timeout callback:: count: 1 @@ -148,8 +183,15 @@ Output:: -Program root files: ["/a.ts"] -Program options: {"allowArbitraryExtensions":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts" +] +Program options: { + "allowArbitraryExtensions": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js index bc7b6da0bfd..d7d303d2465 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js @@ -17,7 +17,11 @@ interface Array { length: number; [n: number]: T; } label: while (1) {} //// [/tsconfig.json] -{"compilerOptions":{"allowUnusedLabels":true}} +{ + "compilerOptions": { + "allowUnusedLabels": true + } +} /a/lib/tsc.js -w -p /tsconfig.json @@ -29,8 +33,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"allowUnusedLabels":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "allowUnusedLabels": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts @@ -67,7 +79,11 @@ Change:: Disable allowUnsusedLabels Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowUnusedLabels":false}} +{ + "compilerOptions": { + "allowUnusedLabels": false + } +} Before running Timeout callback:: count: 1 @@ -86,8 +102,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"allowUnusedLabels":false,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "allowUnusedLabels": false, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /a.ts @@ -106,7 +130,11 @@ Change:: Enable allowUnsusedLabels Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowUnusedLabels":true}} +{ + "compilerOptions": { + "allowUnusedLabels": true + } +} Before running Timeout callback:: count: 1 @@ -120,8 +148,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"allowUnusedLabels":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "allowUnusedLabels": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /a.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js b/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js index 4e4232ce601..d3580a08491 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js +++ b/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,8 +87,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js b/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js index 809a6872e72..854c4b6fcee 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js +++ b/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js @@ -31,8 +31,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -88,8 +92,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js index 2d26c5fa3ab..8482d9202f5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +37,14 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -66,7 +77,13 @@ Change:: Modify config to make f2 as root too Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -80,8 +97,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js index 0b730447fa3..41c1fc99932 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,8 +87,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js index 5917b5f9332..2da6989ead0 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js @@ -17,7 +17,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/Project/tsconfig.json] -{"include":[".","./**/*.json"]} +{ + "include": [ + ".", + "./**/*.json" + ] +} /a/lib/tsc.js -w -p . @@ -29,8 +34,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/Project/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/Project","configFilePath":"/user/username/projects/myproject/Project/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/Project/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/Project", + "configFilePath": "/user/username/projects/myproject/Project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -92,8 +103,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/Project/file1.ts","/user/username/projects/myproject/Project/file2.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/Project","configFilePath":"/user/username/projects/myproject/Project/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/Project/file1.ts", + "/user/username/projects/myproject/Project/file2.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/Project", + "configFilePath": "/user/username/projects/myproject/Project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js b/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js index 2a9e7bcc8fb..aa1a60f5d98 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js @@ -17,7 +17,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"include":["app.ts"]} +{ + "include": [ + "app.ts" + ] +} /a/lib/tsc.js -w -p /A/B/tsconfig.json @@ -29,8 +33,14 @@ Output:: -Program root files: ["/A/B/app.ts"] -Program options: {"watch":true,"project":"/A/B/tsconfig.json","configFilePath":"/A/B/tsconfig.json"} +Program root files: [ + "/A/B/app.ts" +] +Program options: { + "watch": true, + "project": "/A/B/tsconfig.json", + "configFilePath": "/A/B/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js b/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js index 8675d5c2245..98b6b115cea 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js @@ -20,7 +20,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +38,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -75,7 +88,15 @@ Change:: Modify config to set outFile option Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{"outFile":"out.js"},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": { + "outFile": "out.js" + }, + "files": [ + "f1.ts", + "f2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -89,8 +110,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"outFile":"/a/b/out.js","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "outFile": "/a/b/out.js", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js index 144527edc04..657ad0d239e 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js +++ b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js @@ -30,8 +30,14 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -69,7 +75,11 @@ Change:: change `module` to 'none' Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{"module":"none"}} +{ + "compilerOptions": { + "module": "none" + } +} Before running Timeout callback:: count: 1 @@ -88,8 +98,15 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"module":0,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "module": 0, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js b/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js index f04662f5057..fc5740e6425 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js +++ b/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js @@ -38,8 +38,13 @@ a/b/f1.ts -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"explainFiles":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "explainFiles": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -120,8 +125,13 @@ a/b/f1.ts -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"explainFiles":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "explainFiles": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js b/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js index 00ed1975f06..86178f50511 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js @@ -23,7 +23,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/c/tsconfig.json] -{"compilerOptions":{},"files":["f2.ts","f3.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f2.ts", + "f3.ts" + ] +} /a/lib/tsc.js -w -p /a/c/tsconfig.json @@ -35,8 +41,15 @@ Output:: -Program root files: ["/a/c/f2.ts","/a/c/f3.ts"] -Program options: {"watch":true,"project":"/a/c/tsconfig.json","configFilePath":"/a/c/tsconfig.json"} +Program root files: [ + "/a/c/f2.ts", + "/a/c/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/c/tsconfig.json", + "configFilePath": "/a/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js b/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js index ce9d5b88489..497e4aeedfa 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js +++ b/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js index 3ef6a979366..9802988d077 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js @@ -21,7 +21,17 @@ declare class Promise {} var x: Promise; //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5" + ] + } +} /compiler/tsc.js -w -p /src/tsconfig.json @@ -38,8 +48,21 @@ Output:: -Program root files: ["/src/app.ts"] -Program options: {"module":1,"target":1,"noImplicitAny":true,"sourceMap":false,"lib":["lib.es5.d.ts"],"watch":true,"project":"/src/tsconfig.json","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/app.ts" +] +Program options: { + "module": 1, + "target": 1, + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts" + ], + "watch": true, + "project": "/src/tsconfig.json", + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /compiler/lib.es5.d.ts @@ -76,7 +99,18 @@ Change:: Change the lib in config Input:: //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5","es2015.promise"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5", + "es2015.promise" + ] + } +} Before running Timeout callback:: count: 1 @@ -90,8 +124,22 @@ Output:: -Program root files: ["/src/app.ts"] -Program options: {"module":1,"target":1,"noImplicitAny":true,"sourceMap":false,"lib":["lib.es5.d.ts","lib.es2015.promise.d.ts"],"watch":true,"project":"/src/tsconfig.json","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/app.ts" +] +Program options: { + "module": 1, + "target": 1, + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.promise.d.ts" + ], + "watch": true, + "project": "/src/tsconfig.json", + "configFilePath": "/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /compiler/lib.es5.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js index 17d7a8482d3..3e45d063413 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js +++ b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js @@ -20,7 +20,15 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["./","./**/*.json"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "./", + "./**/*.json" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -46,8 +54,16 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts"] -Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/f1.ts", + "/user/username/projects/myproject/f2.ts" +] +Program options: { + "composite": true, + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -205,8 +221,17 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"] -Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/f1.ts", + "/user/username/projects/myproject/f2.ts", + "/user/username/projects/myproject/new-file.ts" +] +Program options: { + "composite": true, + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -357,8 +382,17 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"] -Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/f1.ts", + "/user/username/projects/myproject/f2.ts", + "/user/username/projects/myproject/new-file.ts" +] +Program options: { + "composite": true, + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js b/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js index fca17044574..abd51e82f13 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js +++ b/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js @@ -41,8 +41,15 @@ Output:: -Program root files: ["/a/b/c/f1.ts","/a/b/d/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/c/f1.ts", + "/a/b/d/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js index 4b6cb3408dc..a0cef3ff12f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js @@ -42,8 +42,12 @@ Output:: -Program root files: ["/a/b/c/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/b/c/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js index 4d162df5b2d..86bf83b314b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js +++ b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/c/f3.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts", + "/a/c/f3.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +140,14 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/c/f3.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts", + "/a/c/f3.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js index dde50998cc6..544f357809d 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js +++ b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js @@ -32,8 +32,13 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +139,13 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js b/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js index 49db67d9e38..51f91c96058 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js +++ b/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js @@ -20,13 +20,25 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} //// [/a/b/first.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/a/b/second.tsconfig.json] -{"extends":"./first.tsconfig.json"} +{ + "extends": "./first.tsconfig.json" +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -38,8 +50,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,7 +100,14 @@ Change:: Change config to extend another config Input:: //// [/a/b/tsconfig.json] -{"extends":"./second.tsconfig.json","compilerOptions":{},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "extends": "./second.tsconfig.json", + "compilerOptions": {}, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -95,8 +121,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -141,7 +175,11 @@ Change:: Change first extended config Input:: //// [/a/b/first.tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} Before running Timeout callback:: count: 1 @@ -155,8 +193,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":false,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": false, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -185,7 +231,12 @@ Change:: Change second extended config Input:: //// [/a/b/second.tsconfig.json] -{"extends":"./first.tsconfig.json","compilerOptions":{"strictNullChecks":true}} +{ + "extends": "./first.tsconfig.json", + "compilerOptions": { + "strictNullChecks": true + } +} Before running Timeout callback:: count: 1 @@ -199,8 +250,17 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":false,"strictNullChecks":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": false, + "strictNullChecks": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -221,7 +281,13 @@ Change:: Change config to stop extending another config Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -235,8 +301,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js b/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js index 1f42554e85f..f56aed06e31 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js +++ b/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js @@ -20,7 +20,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +38,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,17 +100,24 @@ Output:: The file is in the program because: Part of 'files' list in tsconfig.json - a/b/tsconfig.json:1:40 - 1 {"compilerOptions":{},"files":["f1.ts","f2.ts"]} -    ~~~~~~~ + a/b/tsconfig.json:5:5 + 5 "f2.ts" +    ~~~~~~~ File is matched by 'files' list specified here. [12:00:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js index e8140c6f466..ad43c380861 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js @@ -38,8 +38,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js b/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js index 069a67434d6..7e0200df188 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js +++ b/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js @@ -38,8 +38,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,8 +113,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -151,8 +167,15 @@ a/b/commonFile1.ts -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -208,8 +231,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js b/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js index 2a1e46f665f..2e2c68352c1 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js +++ b/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js @@ -37,8 +37,12 @@ Output:: -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,8 +102,12 @@ Output:: -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js b/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js index 907d9092b92..479ffde213b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js +++ b/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js @@ -31,8 +31,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js index 0e936fe8115..26426458d8f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js +++ b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js @@ -4,7 +4,10 @@ Input:: let x = 1 //// [/a/tsconfig.json] -{"compiler":{},"files":[]} +{ + "compiler": {}, + "files": [] +} //// [/a/node_modules/@types/typings/index.d.ts] export * from "./lib" @@ -31,17 +34,21 @@ Output:: >> Screen clear [12:00:23 AM] Starting compilation in watch mode... -tsconfig.json:1:24 - error TS18002: The 'files' list in config file '/a/tsconfig.json' is empty. +tsconfig.json:3:12 - error TS18002: The 'files' list in config file '/a/tsconfig.json' is empty. -1 {"compiler":{},"files":[]} -   ~~ +3 "files": [] +   ~~ [12:00:24 AM] Found 1 error. Watching for file changes. Program root files: [] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: diff --git a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js index 497d09f41aa..2445f6eb154 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js +++ b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js @@ -35,7 +35,11 @@ Output:: Program root files: [] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: diff --git a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js index 32b00c2de5a..f5f48505406 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js +++ b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/moduleFile.ts"] -Program options: {"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/moduleFile.ts" +] +Program options: { + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +123,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/moduleFile1.ts"] -Program options: {"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/moduleFile1.ts" +] +Program options: { + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -197,8 +211,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/moduleFile.ts"] -Program options: {"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/moduleFile.ts" +] +Program options: { + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js index 3c5111a8cc9..493bc1f1e3f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js +++ b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js @@ -29,8 +29,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -101,8 +105,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -155,8 +163,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js index 84130e264a6..61bfb16d928 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js +++ b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js @@ -7,7 +7,12 @@ import { x } from "../b"; export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"rootDir":".","outDir":"lib"}} +{ + "compilerOptions": { + "rootDir": ".", + "outDir": "lib" + } +} //// [/a/lib/lib.d.ts] /// @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"rootDir":"/user/username/projects/myproject","outDir":"/user/username/projects/myproject/lib","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "rootDir": "/user/username/projects/myproject", + "outDir": "/user/username/projects/myproject/lib", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -115,8 +127,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"rootDir":"/user/username/projects/myproject","outDir":"/user/username/projects/myproject/lib","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "rootDir": "/user/username/projects/myproject", + "outDir": "/user/username/projects/myproject/lib", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js index a6b0b4bbd32..e7b09441546 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js +++ b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js @@ -8,7 +8,11 @@ import { a } from "./a"; const b: string = a; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} //// [/a/lib/lib.d.ts] /// @@ -33,8 +37,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"isolatedModules":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -111,8 +122,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"isolatedModules":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js index a1e4d15a46d..95774dc5927 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js @@ -4,7 +4,13 @@ Input:: let x = 1; //// [/a/tsconfig.json] -{"compilerOptions":{},"include":["src/**/*","notexistingfolder/*"]} +{ + "compilerOptions": {}, + "include": [ + "src/**/*", + "notexistingfolder/*" + ] +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +35,14 @@ Output:: -Program root files: ["/a/src/app.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/src/app.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js index 58dc372e432..a7aceccca8d 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js @@ -47,8 +47,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js index dbf4e814780..16e95fc7e21 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js @@ -20,7 +20,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","declaration":true,"declarationDir":"decls"}} +{ + "compilerOptions": { + "module": "amd", + "declaration": true, + "declarationDir": "decls" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +38,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +147,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js index 61dfa9b935f..44f7d1e3197 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js @@ -20,7 +20,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","outDir":"build","declaration":true,"declarationDir":"decls"}} +{ + "compilerOptions": { + "module": "amd", + "outDir": "build", + "declaration": true, + "declarationDir": "decls" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +39,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +149,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js index ef051a9c123..87558c94e5e 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","outDir":"build"}} +{ + "compilerOptions": { + "module": "amd", + "outDir": "build" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +137,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js index 369d9edc55a..3a6c59acbf6 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","outFile":"build/outFile.js"}} +{ + "compilerOptions": { + "module": "amd", + "outFile": "build/outFile.js" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"outFile":"/user/username/projects/myproject/build/outFile.js","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "outFile": "/user/username/projects/myproject/build/outFile.js", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -114,8 +128,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"outFile":"/user/username/projects/myproject/build/outFile.js","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "outFile": "/user/username/projects/myproject/build/outFile.js", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js index 952eb17ca4c..3e314ac64b9 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","declaration":true}} +{ + "compilerOptions": { + "module": "amd", + "declaration": true + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +145,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js index 8380050766b..9c77eb7b920 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js @@ -20,7 +20,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd"}} +{ + "compilerOptions": { + "module": "amd" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +135,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js index e6ee6f573ef..68bbc562ec5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js @@ -40,8 +40,15 @@ Output:: -Program root files: ["/a/b/file1.ts"] -Program options: {"moduleResolution":2,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts" +] +Program options: { + "moduleResolution": 2, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -99,8 +106,15 @@ Output:: -Program root files: ["/a/b/file1.ts"] -Program options: {"moduleResolution":1,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts" +] +Program options: { + "moduleResolution": 1, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js index ee6e408afd9..3a8b46de6b7 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js @@ -41,8 +41,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -104,8 +112,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -155,8 +171,15 @@ a/b/commonFile1.ts -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js b/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js index 0585ab946af..c61164785d5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js @@ -26,8 +26,12 @@ Output:: -Program root files: ["/a/compile"] -Program options: {"allowNonTsExtensions":true} +Program root files: [ + "/a/compile" +] +Program options: { + "allowNonTsExtensions": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js index ad8656d7ec3..864ae4bbe6b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js @@ -43,8 +43,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"module":0,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "module": 0, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js b/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js index 5ee17fc6d2b..b83e64d8f82 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js +++ b/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js @@ -31,8 +31,13 @@ Output:: -Program root files: ["/a/b/file.ts"] -Program options: {"watch":true,"noUnusedLocals":true} +Program root files: [ + "/a/b/file.ts" +] +Program options: { + "watch": true, + "noUnusedLocals": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,8 +92,13 @@ Output:: -Program root files: ["/a/b/file.ts"] -Program options: {"watch":true,"noUnusedLocals":true} +Program root files: [ + "/a/b/file.ts" +] +Program options: { + "watch": true, + "noUnusedLocals": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js b/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js index 82805a783f8..0b89b89395c 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js +++ b/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js @@ -34,8 +34,13 @@ Output:: -Program root files: ["/a/c/f2.ts","/a/d/f3.ts"] -Program options: {"allowNonTsExtensions":true} +Program root files: [ + "/a/c/f2.ts", + "/a/d/f3.ts" +] +Program options: { + "allowNonTsExtensions": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +91,12 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"allowNonTsExtensions":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "allowNonTsExtensions": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js b/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js index 8a6b449a4a5..f7d2d192565 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js +++ b/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js @@ -4,7 +4,13 @@ Input:: let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"]}} +{ + "compilerOptions": { + "types": [ + "node" + ] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any @@ -32,8 +38,17 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"types":["node"],"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "types": [ + "node" + ], + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js b/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js index 716b5ff9b3f..30e7e86fd02 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js +++ b/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js @@ -4,7 +4,14 @@ Input:: let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"],"typeRoots":[]}} +{ + "compilerOptions": { + "types": [ + "node" + ], + "typeRoots": [] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any @@ -32,17 +39,27 @@ Output:: The file is in the program because: Entry point of type library 'node' specified in compilerOptions - ../b/tsconfig.json:1:30 - 1 {"compilerOptions":{"types":["node"],"typeRoots":[]}} -    ~~~~~~ + ../b/tsconfig.json:4:7 + 4 "node" +    ~~~~~~ File is entry point of type library specified here. [12:00:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/b/app.ts"] -Program options: {"types":["node"],"typeRoots":[],"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "types": [ + "node" + ], + "typeRoots": [], + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js index bee088dfd0d..69eb6a2cd82 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js @@ -24,7 +24,12 @@ export class A { export class B {} //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error"}} +{ + "compilerOptions": { + "target": "es6", + "importsNotUsedAsValues": "error" + } +} /a/lib/tsc.js -w @@ -32,18 +37,27 @@ Output:: >> Screen clear [12:00:15 AM] Starting compilation in watch mode... -tsconfig.json:1:36 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:4:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error"}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +4 "importsNotUsedAsValues": "error" +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:20 AM] Found 1 error. Watching for file changes. -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"importsNotUsedAsValues":2,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "importsNotUsedAsValues": 2, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /b.ts @@ -144,7 +158,13 @@ Change:: Enable experimentalDecorators Input:: //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true}} +{ + "compilerOptions": { + "target": "es6", + "importsNotUsedAsValues": "error", + "experimentalDecorators": true + } +} Before running Timeout callback:: count: 1 @@ -154,18 +174,28 @@ Output:: >> Screen clear [12:00:23 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:36 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:4:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +4 "importsNotUsedAsValues": "error", +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:30 AM] Found 1 error. Watching for file changes. -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"importsNotUsedAsValues":2,"experimentalDecorators":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "importsNotUsedAsValues": 2, + "experimentalDecorators": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /b.ts @@ -201,7 +231,14 @@ Change:: Enable emitDecoratorMetadata Input:: //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true,"emitDecoratorMetadata":true}} +{ + "compilerOptions": { + "target": "es6", + "importsNotUsedAsValues": "error", + "experimentalDecorators": true, + "emitDecoratorMetadata": true + } +} Before running Timeout callback:: count: 1 @@ -211,18 +248,29 @@ Output:: >> Screen clear [12:00:33 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:36 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:4:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true,"emitDecoratorMetadata":true}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +4 "importsNotUsedAsValues": "error", +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:40 AM] Found 1 error. Watching for file changes. -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"importsNotUsedAsValues":2,"experimentalDecorators":true,"emitDecoratorMetadata":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "importsNotUsedAsValues": 2, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /b.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js index 526f86924e3..d901e9a9d0e 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js @@ -5,7 +5,11 @@ class C { get prop() { return 1; } } class D extends C { prop = 1; } //// [/tsconfig.json] -{"compilerOptions":{"target":"es6"}} +{ + "compilerOptions": { + "target": "es6" + } +} //// [/a/lib/lib.d.ts] /// @@ -35,8 +39,15 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts @@ -81,7 +92,12 @@ Change:: Enable useDefineForClassFields Input:: //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","useDefineForClassFields":true}} +{ + "compilerOptions": { + "target": "es6", + "useDefineForClassFields": true + } +} Before running Timeout callback:: count: 1 @@ -100,8 +116,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"useDefineForClassFields":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "useDefineForClassFields": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /a.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js index 1fb5c9e54fe..fea7136af9c 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js @@ -5,7 +5,9 @@ declare var React: any; const d =
; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -35,8 +37,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -93,8 +100,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":1,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js index f86138547a8..c78952b9f32 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js @@ -5,7 +5,11 @@ declare var React: any; const d =
; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"jsx":"preserve"}} +{ + "compilerOptions": { + "jsx": "preserve" + } +} //// [/a/lib/lib.d.ts] /// @@ -30,8 +34,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":1,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -88,8 +98,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":2,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 2, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js index 10088f16c07..da909147aa3 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js @@ -8,7 +8,9 @@ import {C} from './a'; export function f(p: C) { return p; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -33,8 +35,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,7 +106,11 @@ Change:: Set to "remove" Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"importsNotUsedAsValues":"remove"}} +{ + "compilerOptions": { + "importsNotUsedAsValues": "remove" + } +} Before running Timeout callback:: count: 1 @@ -112,8 +124,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"importsNotUsedAsValues":0,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "importsNotUsedAsValues": 0, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -136,7 +155,11 @@ Change:: Set to "error" Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"importsNotUsedAsValues":"error"}} +{ + "compilerOptions": { + "importsNotUsedAsValues": "error" + } +} Before running Timeout callback:: count: 1 @@ -146,18 +169,25 @@ Output:: >> Screen clear [12:00:43 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:21 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:3:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"importsNotUsedAsValues":"error"}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +3 "importsNotUsedAsValues": "error" +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:50 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"importsNotUsedAsValues":2,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "importsNotUsedAsValues": 2, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -185,7 +215,11 @@ Change:: Set to "preserve" Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"importsNotUsedAsValues":"preserve"}} +{ + "compilerOptions": { + "importsNotUsedAsValues": "preserve" + } +} Before running Timeout callback:: count: 1 @@ -195,18 +229,25 @@ Output:: >> Screen clear [12:00:54 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:21 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:3:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"importsNotUsedAsValues":"preserve"}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +3 "importsNotUsedAsValues": "preserve" +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:01:01 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"importsNotUsedAsValues":1,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "importsNotUsedAsValues": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js index 01f2db0cee4..e30780edbaa 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js @@ -24,7 +24,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"commonjs","noEmit":true,"strict":true}} +{ + "compilerOptions": { + "module": "commonjs", + "noEmit": true, + "strict": true + } +} /a/lib/tsc.js -w @@ -36,8 +42,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -103,8 +118,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -143,8 +167,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -193,8 +226,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -233,8 +275,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js index c0b33c969b2..2a1fac21aa1 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js @@ -45,8 +45,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -102,8 +106,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -154,8 +162,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js index 4f3fa276675..dea39dd00c4 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js @@ -40,8 +40,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -97,8 +102,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -143,8 +153,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js index 912cb51fb03..f1ef3d9760a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js @@ -40,8 +40,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -97,8 +102,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -143,8 +153,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js index 06b022fb2e1..b970a77d240 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js @@ -42,8 +42,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -95,8 +99,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -148,8 +156,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js index 3fffb532d0f..8945c1d085e 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js @@ -37,8 +37,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -90,8 +95,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -137,8 +147,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js index dc2a437125b..6a0ad68efff 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js @@ -37,8 +37,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -90,8 +95,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -137,8 +147,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js index 534ae57d560..f4306cea283 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js @@ -31,8 +31,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -110,8 +115,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -171,8 +182,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js index 6ba2018bb3f..31ddd92f2b5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js @@ -7,7 +7,11 @@ export class C {} import {C} from './a'; import * as A from './A'; //// [/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":false}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": false + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,16 @@ Output:: -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"forceConsistentCasingInFileNames":false,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "forceConsistentCasingInFileNames": false, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts @@ -88,7 +100,11 @@ Change:: Enable forceConsistentCasingInFileNames Input:: //// [/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} Before running Timeout callback:: count: 1 @@ -116,8 +132,16 @@ Output:: -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js index b580d7c7d59..0191b743cdb 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js @@ -13,7 +13,9 @@ declare var v: { v === 'foo'; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -43,8 +45,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,7 +94,11 @@ Change:: Enable noErrorTruncation Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noErrorTruncation":true}} +{ + "compilerOptions": { + "noErrorTruncation": true + } +} Before running Timeout callback:: count: 1 @@ -106,8 +117,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"noErrorTruncation":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "noErrorTruncation": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js index 05b22ae6adb..0fcc526261a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js @@ -5,7 +5,9 @@ declare function foo(): null | { hello: any }; foo().hello //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -30,8 +32,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -74,7 +81,11 @@ Change:: Enable strict null checks Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"strictNullChecks":true}} +{ + "compilerOptions": { + "strictNullChecks": true + } +} Before running Timeout callback:: count: 1 @@ -93,8 +104,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"strictNullChecks":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "strictNullChecks": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -113,7 +130,12 @@ Change:: Set always strict false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"strict":true,"alwaysStrict":false}} +{ + "compilerOptions": { + "strict": true, + "alwaysStrict": false + } +} Before running Timeout callback:: count: 1 @@ -132,8 +154,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"strict":true,"alwaysStrict":false,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "strict": true, + "alwaysStrict": false, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -152,7 +181,9 @@ Change:: Disable strict Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Before running Timeout callback:: count: 1 @@ -166,8 +197,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js index b184f080106..883a03a7586 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js @@ -7,7 +7,11 @@ import * as data from './data.json' { "foo": 1 } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node"}} +{ + "compilerOptions": { + "moduleResolution": "node" + } +} //// [/a/lib/lib.d.ts] /// @@ -37,8 +41,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"moduleResolution":2,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "moduleResolution": 2, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,7 +96,12 @@ Change:: Enable resolveJsonModule Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node","resolveJsonModule":true}} +{ + "compilerOptions": { + "moduleResolution": "node", + "resolveJsonModule": true + } +} Before running Timeout callback:: count: 1 @@ -100,8 +115,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"moduleResolution":2,"resolveJsonModule":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "moduleResolution": 2, + "resolveJsonModule": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js b/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js index de1bfa54d46..ce1d325c1bc 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js +++ b/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/home/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/home/username/project/tsconfig.json","configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/home/username/project/tsconfig.json", + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +92,14 @@ Output:: -Program root files: ["/home/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/home/username/project/tsconfig.json","configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/home/username/project/tsconfig.json", + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js index 4f3479953a3..bdc1a3926ab 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js @@ -7,7 +7,12 @@ Input:: import "./a.ts"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noEmit":true,"allowImportingTsExtensions":false}} +{ + "compilerOptions": { + "noEmit": true, + "allowImportingTsExtensions": false + } +} //// [/a/lib/lib.d.ts] /// @@ -51,8 +56,18 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"noEmit":true,"allowImportingTsExtensions":false,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "noEmit": true, + "allowImportingTsExtensions": false, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -96,7 +111,12 @@ Change:: Change allowImportingTsExtensions to true Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noEmit":true,"allowImportingTsExtensions":true}} +{ + "compilerOptions": { + "noEmit": true, + "allowImportingTsExtensions": true + } +} Before running Timeout callback:: count: 1 @@ -117,8 +137,18 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"noEmit":true,"allowImportingTsExtensions":true,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "noEmit": true, + "allowImportingTsExtensions": true, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js index 4de6d59a177..3d4d28f732f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js @@ -7,7 +7,11 @@ export const aNumber: number = "string" import { aNumber } from "./a.js"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"checkJs":false}} +{ + "compilerOptions": { + "checkJs": false + } +} //// [/a/lib/lib.d.ts] /// @@ -51,8 +55,16 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/b.ts"] -Program options: {"checkJs":false,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts" +] +Program options: { + "checkJs": false, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +112,11 @@ Change:: Change checkJs to true Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"checkJs":true}} +{ + "compilerOptions": { + "checkJs": true + } +} Before running Timeout callback:: count: 1 @@ -127,8 +143,17 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a.js 250 unde -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"checkJs":true,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "checkJs": true, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js index d353d0fac73..ecca8129a12 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js @@ -42,8 +42,15 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js b/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js index 3b9194e0606..8fb6c84b28f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js @@ -8,7 +8,20 @@ import * as M from "folder1/module1"; //// [/user/username/projects/myproject/client/linktofolder2] symlink(/user/username/projects/myproject/folder2) //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"baseUrl":"client","paths":{"*":["*"]}},"include":["client/**/*","folder2"]} +{ + "compilerOptions": { + "baseUrl": "client", + "paths": { + "*": [ + "*" + ] + } + }, + "include": [ + "client/**/*", + "folder2" + ] +} //// [/a/lib/lib.d.ts] /// @@ -49,8 +62,23 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/folder2 Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/folder2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/client/folder1/module1.ts","/user/username/projects/myproject/client/linktofolder2/module2.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject/client","paths":{"*":["*"]},"pathsBasePath":"/user/username/projects/myproject","watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/client/folder1/module1.ts", + "/user/username/projects/myproject/client/linktofolder2/module2.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject/client", + "paths": { + "*": [ + "*" + ] + }, + "pathsBasePath": "/user/username/projects/myproject", + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -138,8 +166,24 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/client/folder1/module1.ts","/user/username/projects/myproject/client/linktofolder2/module2.ts","/user/username/projects/myproject/client/linktofolder2/module3.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject/client","paths":{"*":["*"]},"pathsBasePath":"/user/username/projects/myproject","watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/client/folder1/module1.ts", + "/user/username/projects/myproject/client/linktofolder2/module2.ts", + "/user/username/projects/myproject/client/linktofolder2/module3.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject/client", + "paths": { + "*": [ + "*" + ] + }, + "pathsBasePath": "/user/username/projects/myproject", + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js index 79ed59be5df..e28dc226013 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js @@ -1,13 +1,31 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} @@ -61,8 +79,17 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -212,17 +239,30 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:00:46 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -328,8 +368,17 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -504,17 +553,30 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:01:12 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -689,8 +751,17 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js b/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js index fbcdccabb4c..7224167f0b4 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js @@ -54,8 +54,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,11 +104,19 @@ exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipLibCheck":true}} +{ + "compilerOptions": { + "skipLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -121,8 +135,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -138,11 +159,19 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipDefaultLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipDefaultLibCheck":true}} +{ + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -166,8 +195,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -183,11 +219,15 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{}} +Change:: Changing config to { + "compilerOptions": {} +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Before running Timeout callback:: count: 1 @@ -216,8 +256,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -232,11 +278,19 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipDefaultLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipDefaultLibCheck":true}} +{ + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -260,8 +314,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -276,11 +337,19 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipLibCheck":true}} +{ + "compilerOptions": { + "skipLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -299,8 +368,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -316,11 +392,15 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{}} +Change:: Changing config to { + "compilerOptions": {} +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Before running Timeout callback:: count: 1 @@ -349,8 +429,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js b/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js index 8376cbdbcc9..595f83d955f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js +++ b/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js @@ -35,8 +35,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js index c56fdfd47b4..c11532c24fc 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js @@ -14,77 +14,82 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/sample1/core/anotherModule.ts] -export const World = "hello"; +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } //// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/core/anotherModule.js] @@ -122,7 +127,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -145,27 +150,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -199,7 +204,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1408 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -225,7 +230,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -265,10 +270,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -304,7 +309,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -325,7 +330,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -371,10 +376,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -417,7 +422,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -463,8 +468,20 @@ tests/index.ts -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/tests","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/tests", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -536,12 +553,12 @@ Change:: local edit in logic ts, and build logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() { } //// [/user/username/projects/sample1/logic/index.js.map] @@ -562,7 +579,7 @@ function foo() { } //# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-6497638357-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -602,10 +619,10 @@ function foo() { } }, "./index.ts": { "original": { - "version": "-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }", + "version": "-6497638357-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }", + "version": "-6497638357-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -641,7 +658,7 @@ function foo() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1461 + "size": 1449 } @@ -656,12 +673,12 @@ Change:: non local edit in logic ts, and build logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() { }export function gfoo() { } //// [/user/username/projects/sample1/logic/index.js.map] @@ -691,7 +708,7 @@ export declare function gfoo(): void; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -731,10 +748,10 @@ export declare function gfoo(): void; }, "./index.ts": { "original": { - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" }, - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" } }, @@ -770,7 +787,7 @@ export declare function gfoo(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1526 + "size": 1515 } @@ -800,8 +817,20 @@ tests/index.ts -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/tests","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/tests", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -842,7 +871,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -888,10 +917,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -934,7 +963,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1628 + "size": 1613 } @@ -942,7 +971,18 @@ Change:: change in project reference config file builds correctly Input:: //// [/user/username/projects/sample1/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationDir":"decls"},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls" + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/sample1/logic/index.js] "use strict"; @@ -961,7 +1001,7 @@ exports.gfoo = gfoo; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1001,10 +1041,10 @@ exports.gfoo = gfoo; }, "./index.ts": { "original": { - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" }, - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" } }, @@ -1039,7 +1079,7 @@ exports.gfoo = gfoo; "latestChangedDtsFile": "./decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1504 } //// [/user/username/projects/sample1/logic/decls/index.d.ts] @@ -1082,8 +1122,20 @@ tests/index.ts -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/tests","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/tests", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1160,7 +1212,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1206,10 +1258,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1252,6 +1304,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1634 + "size": 1619 } diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js index 522d37b9d8a..833999d40cd 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js @@ -14,13 +14,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/a/index.ts] export class A {} @@ -36,8 +69,8 @@ b; X; //// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} //// [/user/username/projects/transitiveReferences/a/index.js] @@ -244,8 +277,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -447,8 +495,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -493,11 +556,25 @@ Change:: edit on config file Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/nrefs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} @@ -549,8 +626,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../nrefs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -641,7 +733,21 @@ Change:: Revert config file edit Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} Before running Timeout callback:: count: 1 @@ -691,8 +797,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -783,7 +904,22 @@ Change:: edit in referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -814,8 +950,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -903,7 +1054,22 @@ Change:: Revert referenced config file edit Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -933,8 +1099,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1037,10 +1218,14 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== -c/tsconfig.json:1:84 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. +c/tsconfig.json:11:5 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. -1 {"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} -   ~~~~~~~~~~~~~~~ +11 { +   ~ +12 "path": "../b" +  ~~~~~~~~~~~~~~~~~~~~ +13 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1055,8 +1240,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1139,7 +1339,22 @@ Change:: Revert deleting referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 2 @@ -1172,8 +1387,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1274,10 +1504,14 @@ Output:: Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. -b/tsconfig.json:1:96 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. +b/tsconfig.json:12:5 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. -1 {"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} -   ~~~~~~~~~~~~~~~ +12 { +   ~ +13 "path": "../a" +  ~~~~~~~~~~~~~~~~~~~~ +14 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1294,8 +1528,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1382,7 +1631,11 @@ Change:: Revert deleting transitively referenced config file Input:: //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Before running Timeout callback:: count: 2 @@ -1412,8 +1665,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js index a84e55488d4..61a80815f34 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js @@ -14,13 +14,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/a/index.ts] export class A {} @@ -36,8 +78,8 @@ b; X; //// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} //// [/user/username/projects/transitiveReferences/a/index.js] @@ -244,8 +286,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -445,8 +502,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -491,11 +563,28 @@ Change:: edit on config file Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/nrefs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} @@ -547,8 +636,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../nrefs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -637,7 +741,24 @@ Change:: Revert config file edit Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} Before running Timeout callback:: count: 1 @@ -687,8 +808,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -777,7 +913,25 @@ Change:: edit in referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -808,8 +962,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -897,7 +1066,25 @@ Change:: Revert referenced config file edit Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -927,8 +1114,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1027,10 +1229,14 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== -c/tsconfig.json:1:105 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. +c/tsconfig.json:14:5 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. -1 {"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} -   ~~~~~~~~~~~~~~~ +14 { +   ~ +15 "path": "../b" +  ~~~~~~~~~~~~~~~~~~~~ +16 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1045,8 +1251,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1123,7 +1344,25 @@ Change:: Revert deleting referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 2 @@ -1156,8 +1395,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1256,10 +1510,14 @@ Output:: Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. -b/tsconfig.json:1:117 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. +b/tsconfig.json:15:5 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. -1 {"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} -   ~~~~~~~~~~~~~~~ +15 { +   ~ +16 "path": "../a" +  ~~~~~~~~~~~~~~~~~~~~ +17 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1276,8 +1534,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1362,7 +1635,14 @@ Change:: Revert deleting transitively referenced config file Input:: //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} Before running Timeout callback:: count: 2 @@ -1392,8 +1672,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js index c9610a43c6b..ab7d04b9ffc 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js @@ -1,5 +1,77 @@ currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} + + +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} + + +//// [/user/username/projects/transitiveReferences/b.ts] +import {A} from '@ref/a'; +export const b = new A(); + + +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; + + +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} + //// [/a/lib/lib.d.ts] /// interface Boolean {} @@ -11,58 +83,9 @@ interface Number { toExponential: any; } interface Object {} interface RegExp {} interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } - -//// [/user/username/projects/transitiveReferences/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} - - -//// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] -} - - -//// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] -} - - -//// [/user/username/projects/transitiveReferences/a.ts] -export class A {} - - -//// [/user/username/projects/transitiveReferences/b.ts] -import {A} from '@ref/a'; -export const b = new A(); - - -//// [/user/username/projects/transitiveReferences/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; - -//// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} - +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; //// [/user/username/projects/transitiveReferences/a.js] "use strict"; @@ -82,7 +105,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -94,19 +117,19 @@ export declare class A { "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -128,7 +151,7 @@ export declare class A { "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 760 + "size": 838 } //// [/user/username/projects/transitiveReferences/b.js] @@ -145,7 +168,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -163,11 +186,11 @@ export declare const b: A; "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.d.ts": { @@ -176,10 +199,10 @@ export declare const b: A; }, "./b.ts": { "original": { - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" }, - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" } }, @@ -210,7 +233,7 @@ export declare const b: A; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 913 + "size": 988 } //// [/user/username/projects/transitiveReferences/c.js] @@ -264,8 +287,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -344,8 +382,8 @@ Change:: non local edit b ts, and build b Input:: //// [/user/username/projects/transitiveReferences/b.ts] -import {A} from '@ref/a'; -export const b = new A(); +import {A} from '@ref/a'; +export const b = new A(); export function gfoo() { } //// [/user/username/projects/transitiveReferences/b.js] @@ -365,7 +403,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -383,11 +421,11 @@ export declare function gfoo(): void; "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.d.ts": { @@ -396,10 +434,10 @@ export declare function gfoo(): void; }, "./b.ts": { "original": { - "version": "-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }", + "version": "-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }", "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" }, - "version": "-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }", + "version": "-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }", "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" } }, @@ -430,7 +468,7 @@ export declare function gfoo(): void; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 977 + "size": 1052 } @@ -458,8 +496,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -504,11 +557,28 @@ Change:: edit on config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{"files":["c.ts"],"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["./nrefs/*"]}},"references":[{"path":"tsconfig.b.json"}]} +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./nrefs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} //// [/user/username/projects/transitiveReferences/nrefs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} @@ -555,8 +625,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./nrefs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./nrefs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -637,7 +722,24 @@ Change:: Revert config file edit Input:: //// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{"files":["c.ts"],"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["./refs/*"]}},"references":[{"path":"tsconfig.b.json"}]} +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Before running Timeout callback:: count: 1 @@ -683,8 +785,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -765,7 +882,25 @@ Change:: edit in referenced config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["./nrefs/*"]}},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./nrefs/*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} Before running Timeout callback:: count: 1 @@ -796,8 +931,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -875,7 +1025,25 @@ Change:: Revert referenced config file edit Input:: //// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["./refs/*"]}},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} Before running Timeout callback:: count: 1 @@ -905,8 +1073,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -998,10 +1181,14 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== -tsconfig.c.json:1:100 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.b.json' not found. +tsconfig.c.json:14:5 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.b.json' not found. -1 {"files":["c.ts"],"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["./refs/*"]}},"references":[{"path":"tsconfig.b.json"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~ +14 { +   ~ +15 "path": "tsconfig.b.json" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +16 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1016,8 +1203,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1088,20 +1290,27 @@ Change:: Revert deleting referenced config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] } - Before running Timeout callback:: count: 1 7: timerToUpdateProgram After running Timeout callback:: count: 0 @@ -1131,8 +1340,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1222,10 +1446,14 @@ Output:: Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. -tsconfig.b.json:10:21 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.a.json' not found. +tsconfig.b.json:15:5 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.a.json' not found. -10 "references": [ { "path": "tsconfig.a.json" } ] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +15 { +   ~ +16 "path": "tsconfig.a.json" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +17 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1242,8 +1470,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1320,8 +1563,14 @@ Change:: Revert deleting transitively referenced config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} - +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} Before running Timeout callback:: count: 1 @@ -1350,8 +1599,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js index 164d7b2af9a..9c342e1c88f 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js @@ -14,51 +14,82 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/sample1/core/anotherModule.ts] -export const World = "hello"; +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } //// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -import * as mod from '../core/anotherModule'; -export const m = mod; + +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/core/anotherModule.js] @@ -96,7 +127,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -119,27 +150,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -173,14 +204,14 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1408 + "size": 1394 } /a/lib/tsc.js -w -p logic --traceResolution --explainFiles Output:: >> Screen clear -[12:00:50 AM] Starting compilation in watch mode... +[12:00:56 AM] Starting compilation in watch mode... ======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -202,12 +233,25 @@ core/anotherModule.d.ts File is output of project reference source 'core/anotherModule.ts' logic/index.ts Matched by default include pattern '**/*' -[12:00:59 AM] Found 0 errors. Watching for file changes. +[12:01:05 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/logic","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/logic", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -295,7 +339,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -335,10 +379,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -374,7 +418,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } @@ -382,13 +426,13 @@ Change:: change declration map in core Input:: //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": false, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": false, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/anotherModule.d.ts] @@ -402,7 +446,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":"-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -425,27 +469,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -479,7 +523,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1409 + "size": 1395 } @@ -488,7 +532,7 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:18 AM] File change detected. Starting incremental compilation... +[12:01:24 AM] File change detected. Starting incremental compilation... Reusing resolution of module '../core/index' from '/user/username/projects/sample1/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/index.ts'. Reusing resolution of module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. @@ -502,12 +546,25 @@ core/anotherModule.d.ts File is output of project reference source 'core/anotherModule.ts' logic/index.ts Matched by default include pattern '**/*' -[12:01:19 AM] Found 0 errors. Watching for file changes. +[12:01:25 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/logic","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/logic", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js index 432c5c57494..3243c4a08f4 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js @@ -1,5 +1,70 @@ currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} + + +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} + + +//// [/user/username/projects/transitiveReferences/b.ts] +import {A} from "a";export const b = new A(); + +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; + + +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "classic" + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} + //// [/a/lib/lib.d.ts] /// interface Boolean {} @@ -11,45 +76,9 @@ interface Number { toExponential: any; } interface Object {} interface RegExp {} interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } - -//// [/user/username/projects/transitiveReferences/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} - - -//// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{"compilerOptions":{"composite":true,"moduleResolution":"classic"},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} - -//// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] -} - - -//// [/user/username/projects/transitiveReferences/a.ts] -export class A {} - - -//// [/user/username/projects/transitiveReferences/b.ts] -import {A} from "a";export const b = new A(); - -//// [/user/username/projects/transitiveReferences/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; - -//// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} - +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; //// [/user/username/projects/transitiveReferences/a.js] "use strict"; @@ -69,7 +98,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -81,19 +110,19 @@ export declare class A { "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -115,7 +144,7 @@ export declare class A { "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 760 + "size": 838 } //// [/user/username/projects/transitiveReferences/b.js] @@ -132,7 +161,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -150,11 +179,11 @@ export declare const b: A; "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.d.ts": { @@ -197,7 +226,7 @@ export declare const b: A; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 898 + "size": 978 } //// [/user/username/projects/transitiveReferences/c.js] @@ -251,8 +280,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js index ef709aace29..201dcfbd186 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js @@ -39,8 +39,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -117,8 +121,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -165,8 +173,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -230,8 +242,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js index 17a14a33c93..458b0f47a08 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/test.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/test.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -84,7 +90,9 @@ Change:: npm install file and folder that start with '.' Input:: //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js index f4dd8a9afd9..702937d340f 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js @@ -32,8 +32,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/test.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/test.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -74,7 +78,9 @@ Change:: npm install file and folder that start with '.' Input:: //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js index 8ecad23c1ff..a31d592d650 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js @@ -31,8 +31,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -88,8 +92,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js index d6286a192a3..6ee98811c61 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js @@ -1,7 +1,13 @@ currentDirectory:: /users/username/projects/project useCaseSensitiveFileNames: false Input:: //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true,"outDir":"outDir"}} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true, + "outDir": "outDir" + } +} //// [/users/username/projects/project/fileWithImports.ts] import type { Import0 } from "pkg0"; @@ -153,8 +159,19 @@ DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefin Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Wild card directory -Program root files: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] -Program options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/fileWithImports.ts", + "/users/username/projects/project/fileWithTypeRefs.ts" +] +Program options: { + "composite": true, + "traceResolution": true, + "outDir": "/users/username/projects/project/outDir", + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -428,8 +445,19 @@ fileWithTypeRefs.ts -Program root files: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] -Program options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/fileWithImports.ts", + "/users/username/projects/project/fileWithTypeRefs.ts" +] +Program options: { + "composite": true, + "traceResolution": true, + "outDir": "/users/username/projects/project/outDir", + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -675,8 +703,19 @@ fileWithTypeRefs.ts -Program root files: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] -Program options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/fileWithImports.ts", + "/users/username/projects/project/fileWithTypeRefs.ts" +] +Program options: { + "composite": true, + "traceResolution": true, + "outDir": "/users/username/projects/project/outDir", + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js index b1af0604e52..bd877078816 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js @@ -84,8 +84,16 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -240,8 +248,16 @@ Directory '/node_modules' does not exist, skipping all lookups in it. -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -334,8 +350,16 @@ Directory '/node_modules' does not exist, skipping all lookups in it. -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -439,8 +463,16 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js index 21bb82a2ff3..a5c1009a86f 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js @@ -29,8 +29,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -91,8 +95,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -144,8 +152,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js index 13bc449dda7..0d2abbff020 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js @@ -4,7 +4,14 @@ Input:: myapp.component("hello"); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"none","types":["@myapp/ts-types"]}} +{ + "compilerOptions": { + "module": "none", + "types": [ + "@myapp/ts-types" + ] + } +} //// [/a/lib/lib.d.ts] /// @@ -29,17 +36,27 @@ Output:: The file is in the program because: Entry point of type library '@myapp/ts-types' specified in compilerOptions - user/username/projects/myproject/tsconfig.json:1:46 - 1 {"compilerOptions":{"module":"none","types":["@myapp/ts-types"]}} -    ~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/tsconfig.json:5:7 + 5 "@myapp/ts-types" +    ~~~~~~~~~~~~~~~~~ File is entry point of type library specified here. [12:00:26 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"module":0,"types":["@myapp/ts-types"],"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "module": 0, + "types": [ + "@myapp/ts-types" + ], + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -80,7 +97,10 @@ Change:: npm install ts-types Input:: //// [/user/username/projects/myproject/node_modules/@myapp/ts-types/package.json] -{"version":"1.65.1","types":"types/somefile.define.d.ts"} +{ + "version": "1.65.1", + "types": "types/somefile.define.d.ts" +} //// [/user/username/projects/myproject/node_modules/@myapp/ts-types/types/somefile.define.d.ts] @@ -129,8 +149,18 @@ sysLog:: /user/username/projects/myproject/node_modules:: Changing watcher to Pr -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"module":0,"types":["@myapp/ts-types"],"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "module": 0, + "types": [ + "@myapp/ts-types" + ], + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js index 620e7fcba37..91956774c58 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js @@ -17,11 +17,26 @@ interface Array { length: number; [n: number]: T; } import { Foo } from '@scoped/linked-package' //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"module":"commonjs","moduleResolution":"node","baseUrl":".","rootDir":"."},"files":["index.ts"]} +{ + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "baseUrl": ".", + "rootDir": "." + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/main/node_modules/@scoped/linked-package] symlink(/user/username/projects/myproject/linked-package) //// [/user/username/projects/myproject/linked-package/package.json] -{"name":"@scoped/linked-package","version":"0.0.1","types":"dist/index.d.ts","main":"dist/index.js"} +{ + "name": "@scoped/linked-package", + "version": "0.0.1", + "types": "dist/index.d.ts", + "main": "dist/index.js" +} //// [/user/username/projects/myproject/linked-package/dist/index.d.ts] export * from './other'; @@ -39,8 +54,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/main/index.ts"] -Program options: {"module":1,"moduleResolution":2,"baseUrl":"/user/username/projects/myproject/main","rootDir":"/user/username/projects/myproject/main","watch":true,"configFilePath":"/user/username/projects/myproject/main/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main/index.ts" +] +Program options: { + "module": 1, + "moduleResolution": 2, + "baseUrl": "/user/username/projects/myproject/main", + "rootDir": "/user/username/projects/myproject/main", + "watch": true, + "configFilePath": "/user/username/projects/myproject/main/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js index 54b7a129934..da874fe0613 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js @@ -43,8 +43,13 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts","/users/username/projects/project/bar.d.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts", + "/users/username/projects/project/bar.d.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -117,8 +122,13 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts","/users/username/projects/project/bar.d.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts", + "/users/username/projects/project/bar.d.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js index d3930c936fd..98e845ef15c 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js @@ -66,8 +66,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -243,8 +249,14 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/ -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -350,8 +362,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/ -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -425,8 +443,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -530,8 +554,14 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js index 25b4f698510..70c398399f7 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js @@ -31,8 +31,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -128,8 +132,12 @@ sysLog:: /users/username/projects/project/node_modules/@types:: Changing watcher -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js index afa65bed75b..25f3a369cf5 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js @@ -34,8 +34,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -120,8 +124,12 @@ sysLog:: /user/username/projects/myproject/node_modules/@types:: Changing watche -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js index 9165d5deb19..24f4ec3ffe5 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js @@ -25,7 +25,15 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/projects/myProject/src/tsconfig.json] -{"compilerOptions":{"allowJs":true,"rootDir":".","outDir":"../dist","moduleResolution":"node","maxNodeModuleJsDepth":1}} +{ + "compilerOptions": { + "allowJs": true, + "rootDir": ".", + "outDir": "../dist", + "moduleResolution": "node", + "maxNodeModuleJsDepth": 1 + } +} /a/lib/tsc.js --w -p /a/b/projects/myProject/src @@ -37,8 +45,20 @@ Output:: -Program root files: ["/a/b/projects/myProject/src/file1.ts","/a/b/projects/myProject/src/file2.ts"] -Program options: {"allowJs":true,"rootDir":"/a/b/projects/myProject/src","outDir":"/a/b/projects/myProject/dist","moduleResolution":2,"maxNodeModuleJsDepth":1,"watch":true,"project":"/a/b/projects/myProject/src","configFilePath":"/a/b/projects/myProject/src/tsconfig.json"} +Program root files: [ + "/a/b/projects/myProject/src/file1.ts", + "/a/b/projects/myProject/src/file2.ts" +] +Program options: { + "allowJs": true, + "rootDir": "/a/b/projects/myProject/src", + "outDir": "/a/b/projects/myProject/dist", + "moduleResolution": 2, + "maxNodeModuleJsDepth": 1, + "watch": true, + "project": "/a/b/projects/myProject/src", + "configFilePath": "/a/b/projects/myProject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +145,20 @@ Output:: -Program root files: ["/a/b/projects/myProject/src/file1.ts","/a/b/projects/myProject/src/file2.ts"] -Program options: {"allowJs":true,"rootDir":"/a/b/projects/myProject/src","outDir":"/a/b/projects/myProject/dist","moduleResolution":2,"maxNodeModuleJsDepth":1,"watch":true,"project":"/a/b/projects/myProject/src","configFilePath":"/a/b/projects/myProject/src/tsconfig.json"} +Program root files: [ + "/a/b/projects/myProject/src/file1.ts", + "/a/b/projects/myProject/src/file2.ts" +] +Program options: { + "allowJs": true, + "rootDir": "/a/b/projects/myProject/src", + "outDir": "/a/b/projects/myProject/dist", + "moduleResolution": 2, + "maxNodeModuleJsDepth": 1, + "watch": true, + "project": "/a/b/projects/myProject/src", + "configFilePath": "/a/b/projects/myProject/src/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js index c54659321b4..6017a54b65b 100644 --- a/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js +++ b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js @@ -11,9 +11,9 @@ declare var val: string; export default val; //// [/src/project/tsconfig.json] { - "compilerOptions": { - "resolveJsonModule": true - } + "compilerOptions": { + "resolveJsonModule": true + } } //// [/a/lib/lib.d.ts] @@ -44,8 +44,17 @@ Output:: -Program root files: ["/src/project/data.d.json.ts","/src/project/main.ts"] -Program options: {"resolveJsonModule":true,"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/data.d.json.ts", + "/src/project/main.ts" +] +Program options: { + "resolveJsonModule": true, + "project": "/src/project", + "incremental": true, + "watch": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -155,9 +164,9 @@ Change:: Change json setting Input:: //// [/src/project/tsconfig.json] { - "compilerOptions": { - "resolveJsonModule": false - } + "compilerOptions": { + "resolveJsonModule": false + } } @@ -177,8 +186,17 @@ Output:: -Program root files: ["/src/project/data.d.json.ts","/src/project/main.ts"] -Program options: {"resolveJsonModule":false,"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/data.d.json.ts", + "/src/project/main.ts" +] +Program options: { + "resolveJsonModule": false, + "project": "/src/project", + "incremental": true, + "watch": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js index 61e63c20fc7..62588a07e00 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -224,8 +250,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js index dd8965f9ff9..262df2f03d7 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -224,8 +252,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js index 79718fa9056..7308fa7c87a 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -46,8 +74,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js index d6a461549c5..61ccd99f1d9 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -224,8 +250,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index cb7291e925d..2064dcd91db 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -224,8 +252,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js index b22583ec4f5..2065dfc270a 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -46,8 +74,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js index afab75d9eb5..9f4819a6700 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -46,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js index dc5699083a0..9baa31492b8 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -46,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js index 0a57f414b5e..fc9351b0a7d 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -224,8 +247,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js index 6424572caa8..b1d917484af 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -224,8 +249,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js index 00e73b9fbc7..01bd09296c8 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -46,8 +71,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js index 56a3e787099..75c7902953a 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -224,8 +247,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index f54c008b0ef..783ca4b36c4 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -224,8 +249,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js index 66af97f60d7..24467a09edf 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -46,8 +71,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js index 0d70c9fa260..ffe35483268 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -46,8 +69,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js index cc085833a05..9742ef562d2 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -46,8 +69,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js index 93ca86c6d66..b6f6558f6b9 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js @@ -1,5 +1,129 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + + +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} + + +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } +} + +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + + +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} + +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } +} + +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] +} + //// [/a/lib/lib.d.ts] /// interface Boolean {} @@ -15,92 +139,6 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} - -//// [/user/username/projects/demo/core/utilities.ts] - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - - - -//// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} - -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - //// [/user/username/projects/demo/lib/core/utilities.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -123,7 +161,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -144,10 +182,10 @@ export declare function lastElementOf(arr: T[]): T | undefined; }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -179,7 +217,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1372 + "size": 1348 } //// [/user/username/projects/demo/lib/animals/animal.js] @@ -236,7 +274,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,19 +310,15 @@ export declare function createDog(): Dog; "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../core/utilities.d.ts": { @@ -293,10 +327,10 @@ export declare function createDog(): Dog; }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -356,21 +390,38 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2465 + "size": 2260 } /a/lib/tsc.js --w --p /user/username/projects/demo/animals/tsconfig.json Output:: >> Screen clear -[12:01:09 AM] Starting compilation in watch mode... +[12:01:17 AM] Starting compilation in watch mode... -[12:01:16 AM] Found 0 errors. Watching for file changes. +[12:01:24 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/demo/animals/animal.ts","/user/username/projects/demo/animals/dog.ts","/user/username/projects/demo/animals/index.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/animals","rootDir":"/user/username/projects/demo/animals","configFilePath":"/user/username/projects/demo/animals/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/animals/animal.ts", + "/user/username/projects/demo/animals/dog.ts", + "/user/username/projects/demo/animals/index.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/animals", + "rootDir": "/user/username/projects/demo/animals", + "configFilePath": "/user/username/projects/demo/animals/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -425,7 +476,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/demo/lib/animals/dog.js] file written with same contents //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"},{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -461,35 +512,31 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -549,6 +596,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2737 + "size": 2508 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js index 701dcd407fb..cb9e88bb785 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js @@ -1,5 +1,129 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} + + +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} + + +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } +} + +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} + + +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] +} + +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } +} + +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] +} + //// [/a/lib/lib.d.ts] /// interface Boolean {} @@ -15,104 +139,35 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} - -//// [/user/username/projects/demo/core/utilities.ts] - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - - - -//// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} - -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - /a/lib/tsc.js --w --p /user/username/projects/demo/animals/tsconfig.json Output:: >> Screen clear -[12:00:35 AM] Starting compilation in watch mode... +[12:00:43 AM] Starting compilation in watch mode... -[12:00:55 AM] Found 0 errors. Watching for file changes. +[12:01:03 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/demo/animals/animal.ts","/user/username/projects/demo/animals/dog.ts","/user/username/projects/demo/animals/index.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/animals","rootDir":"/user/username/projects/demo/animals","configFilePath":"/user/username/projects/demo/animals/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/animals/animal.ts", + "/user/username/projects/demo/animals/dog.ts", + "/user/username/projects/demo/animals/index.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/animals", + "rootDir": "/user/username/projects/demo/animals", + "configFilePath": "/user/username/projects/demo/animals/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -130,7 +185,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/demo/animals/animal.ts (computed .d.ts during emit) +/user/username/projects/demo/animals/animal.ts (used version) /user/username/projects/demo/animals/index.ts (computed .d.ts during emit) /user/username/projects/demo/core/utilities.ts (used version) /user/username/projects/demo/animals/dog.ts (computed .d.ts during emit) @@ -225,7 +280,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"version":"-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","signature":"1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n"},"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -261,31 +316,27 @@ export declare function createDog(): Dog; "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../../core/utilities.ts": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", - "signature": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n" + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "signature": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -345,6 +396,6 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2578 + "size": 2349 } diff --git a/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js b/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js index 018087f7ecb..a6f71566460 100644 --- a/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js +++ b/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.vue"] -Program options: {"allowNonTsExtensions":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.vue" +] +Program options: { + "allowNonTsExtensions": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,8 +104,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.vue","/user/username/projects/myproject/other2.vue"] -Program options: {"allowNonTsExtensions":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.vue", + "/user/username/projects/myproject/other2.vue" +] +Program options: { + "allowNonTsExtensions": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js index 57305309cc9..1be6e8bfd46 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js @@ -1,7 +1,15 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true,"extendedDiagnostics":true},"files":["main.ts"]} +{ + "compilerOptions": { + "traceResolution": true, + "extendedDiagnostics": true + }, + "files": [ + "main.ts" + ] +} //// [/user/username/projects/myproject/main.ts] import { foo } from "./other"; @@ -52,8 +60,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +137,14 @@ File '/user/username/projects/myproject/other.d.ts' exists - use it as a name re -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -169,8 +189,14 @@ File '/user/username/projects/myproject/other.d.ts' exists - use it as a name re -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -220,8 +246,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js index 48a062fde4b..7a2db8ce026 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js @@ -1,7 +1,15 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true,"extendedDiagnostics":true},"files":["main.ts"]} +{ + "compilerOptions": { + "traceResolution": true, + "extendedDiagnostics": true + }, + "files": [ + "main.ts" + ] +} //// [/user/username/projects/myproject/main.ts] import { foo } from "./other"; @@ -52,8 +60,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -136,8 +150,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -187,8 +207,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js index 0e21ef51be0..cf6a66d9c83 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js @@ -1,7 +1,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/main.ts] export const x = 10; @@ -32,8 +36,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +162,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -329,8 +346,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -445,8 +469,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -610,8 +640,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js index ae3152345d9..45afed30575 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js @@ -1,7 +1,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/main.ts] export const x = 10; @@ -32,8 +36,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -158,8 +169,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -343,8 +360,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -466,8 +490,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -638,8 +668,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js index 498d7ec1e4e..ba7886588af 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js @@ -1,7 +1,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true}} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true + } +} //// [/user/username/projects/myproject/main.ts] export const x: string = 10; @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -202,8 +214,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -361,8 +380,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js index a287270efad..ea8615f781e 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js @@ -1,7 +1,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true}} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true + } +} //// [/user/username/projects/myproject/main.ts] export const x: string = 10; @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -209,8 +221,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -375,8 +394,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js index 25b6eed967c..f9fd9f60d9d 100644 --- a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js +++ b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js @@ -1,7 +1,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true}} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true + } +} //// [/user/username/projects/myproject/main.ts] export const x: string = 10; @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,8 +207,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js b/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js index 27b59563fb6..39bff95fbed 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js +++ b/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -92,8 +98,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js index f6a4f068a30..4dbba4366cf 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js +++ b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js @@ -17,10 +17,20 @@ interface Array { length: number; [n: number]: T; } import settings from './settings.json'; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"commonjs","resolveJsonModule":true},"files":["index.ts"]} +{ + "compilerOptions": { + "module": "commonjs", + "resolveJsonModule": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/settings.json] -{"content":"Print this"} +{ + "content": "Print this" +} /a/lib/tsc.js --w --p /user/username/projects/myproject/tsconfig.json @@ -34,7 +44,7 @@ Output::    ~~~~~~~~ settings.json:1:1 - 1 {"content":"Print this"} + 1 {   ~ This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. @@ -42,8 +52,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"module":1,"resolveJsonModule":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "module": 1, + "resolveJsonModule": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js b/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js index 1e8968cd06b..0db5c27c2fc 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js +++ b/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js @@ -17,7 +17,14 @@ interface Array { length: number; [n: number]: T; } let compiler = new Compiler(); for (let i = 0; j < 5; i++) {} //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"commonjs"},"files":["index.ts"]} +{ + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "index.ts" + ] +} /a/lib/tsc.js --w --p /user/username/projects/myproject/tsconfig.json @@ -44,8 +51,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"module":1,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "module": 1, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js index f65d0bfa97d..92c59f037d6 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js @@ -1,7 +1,18 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true,"module":"amd","outFile":"outFile.js"},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true, + "module": "amd", + "outFile": "outFile.js" + }, + "files": [ + "a.ts", + "b.ts" + ] +} //// [/user/username/projects/myproject/a.ts] export const x = 10; @@ -49,8 +60,18 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"outFile":"/user/username/projects/myproject/outFile.js","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "outFile": "/user/username/projects/myproject/outFile.js", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -102,8 +123,18 @@ CreatingProgramWith:: options: {"composite":true,"noEmitOnError":true,"module":2,"outFile":"/user/username/projects/myproject/outFile.js","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"outFile":"/user/username/projects/myproject/outFile.js","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "outFile": "/user/username/projects/myproject/outFile.js", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js index 64897b927b7..c07cf147499 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js @@ -1,7 +1,17 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true,"module":"amd"},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true, + "module": "amd" + }, + "files": [ + "a.ts", + "b.ts" + ] +} //// [/user/username/projects/myproject/a.ts] export const x = 10; @@ -49,8 +59,17 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -191,8 +210,17 @@ CreatingProgramWith:: options: {"composite":true,"noEmitOnError":true,"module":2,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js index e7d34a69b9d..e79b0224fa8 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js @@ -1,7 +1,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -10,7 +18,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} @@ -61,8 +79,15 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -212,17 +237,28 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:00:46 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -328,8 +364,15 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -504,17 +547,28 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:01:12 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -689,8 +743,15 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js index 3b3d19d139c..deba6702fce 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js @@ -1,7 +1,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -10,7 +18,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} @@ -61,8 +79,15 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -212,8 +237,15 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js index a5b31158ddb..b562174c7e4 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js @@ -1,7 +1,19 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/project/tsconfig.json] -{"compilerOptions":{"types":[]},"files":["app.ts"],"references":[{"path":"./lib"}]} +{ + "compilerOptions": { + "types": [] + }, + "files": [ + "app.ts" + ], + "references": [ + { + "path": "./lib" + } + ] +} //// [/user/username/projects/project/app.ts] import { one } from './lib'; @@ -9,10 +21,23 @@ console.log(one); //// [/user/username/projects/project/lib/tsconfig.json] -{"compilerOptions":{"composite":true,"types":[]},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true, + "types": [] + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/project/lib/tsconfig.base.json] -{"compilerOptions":{"composite":true,"types":[]}} +{ + "compilerOptions": { + "composite": true, + "types": [] + } +} //// [/user/username/projects/project/lib/index.ts] export const one = 1; @@ -59,8 +84,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/project/ -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,7 +136,14 @@ Change:: Modify lib tsconfig Input:: //// [/user/username/projects/project/lib/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} Before running Timeout callback:: count: 1 @@ -127,8 +165,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js index b7757a47cd7..d61ce49f7a5 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js @@ -1,7 +1,19 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/project/tsconfig.json] -{"compilerOptions":{"types":[]},"files":["app.ts"],"references":[{"path":"./lib"}]} +{ + "compilerOptions": { + "types": [] + }, + "files": [ + "app.ts" + ], + "references": [ + { + "path": "./lib" + } + ] +} //// [/user/username/projects/project/app.ts] import { one } from './lib'; @@ -9,10 +21,20 @@ console.log(one); //// [/user/username/projects/project/lib/tsconfig.json] -{"extends":"./tsconfig.base.json","files":["index.ts"]} +{ + "extends": "./tsconfig.base.json", + "files": [ + "index.ts" + ] +} //// [/user/username/projects/project/lib/tsconfig.base.json] -{"compilerOptions":{"composite":true,"types":[]}} +{ + "compilerOptions": { + "composite": true, + "types": [] + } +} //// [/user/username/projects/project/lib/index.ts] export const one = 1; @@ -60,8 +82,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/project/ -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -108,7 +136,15 @@ Change:: Modify lib tsconfig Input:: //// [/user/username/projects/project/lib/tsconfig.json] -{"extends":"./tsconfig.base.json","compilerOptions":{"typeRoots":[]},"files":["index.ts"]} +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { + "typeRoots": [] + }, + "files": [ + "index.ts" + ] +} Before running Timeout callback:: count: 1 @@ -130,8 +166,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -149,7 +191,11 @@ Change:: Modify lib extends Input:: //// [/user/username/projects/project/lib/tsconfig.base.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Before running Timeout callback:: count: 1 @@ -171,8 +217,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js b/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js index 80aad326d01..c37ab8b03f4 100644 --- a/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js +++ b/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js @@ -29,8 +29,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -83,8 +87,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/bar.ts","/user/username/projects/myproject/main.ts"] -Program options: {"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/bar.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js index b2e0f7ef8e9..8f7d6522854 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js @@ -36,8 +36,13 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +99,13 @@ CreatingProgramWith:: -Program root files: ["main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -156,8 +166,13 @@ CreatingProgramWith:: -Program root files: ["main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js index e2bc97e462f..b489ab2dc7b 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] Inode:: 10 -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.d.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.d.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -48,8 +56,15 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -178,8 +193,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -272,8 +294,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js index 1e46e82d9ba..69a19f1fb5b 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export declare function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] Inode:: 10 -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -44,8 +52,15 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -148,8 +163,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -222,8 +244,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js index 542706ed571..0679bcf1cf9 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] Inode:: 10 -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.d.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.d.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -48,8 +56,15 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -166,8 +181,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -248,8 +270,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js index c39cbae1f91..8fa09c61872 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export declare function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -44,8 +52,15 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -127,8 +142,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -175,8 +197,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js index b88c0010d09..9f1e85fc3db 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js @@ -4,7 +4,11 @@ Input:: //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/a/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -89,8 +99,14 @@ Output:: -Program root files: ["/a/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js index 3067d9f39ab..1d98f7378fc 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js @@ -4,7 +4,11 @@ Input:: //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/a/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -85,8 +95,14 @@ Output:: -Program root files: ["/a/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js index 26dc21eb487..6b93a7faa13 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js @@ -4,7 +4,11 @@ Input:: //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/a/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +96,14 @@ Output:: -Program root files: ["/a/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js index 0cd148d4e23..03ee45286ea 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js @@ -71,8 +71,15 @@ DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject 1 undefined Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject 1 undefined Wild card directory -Program root files: ["/home/user/projects/myproject/src/file.ts"] -Program options: {"extendedDiagnostics":true,"traceResolution":true,"watch":true,"configFilePath":"/home/user/projects/myproject/tsconfig.json"} +Program root files: [ + "/home/user/projects/myproject/src/file.ts" +] +Program options: { + "extendedDiagnostics": true, + "traceResolution": true, + "watch": true, + "configFilePath": "/home/user/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js index 6048d8820ca..d528bc369fd 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js @@ -20,7 +20,11 @@ import { x } from "./file2"; export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"dist"}} +{ + "compilerOptions": { + "outDir": "dist" + } +} /a/lib/tsc.js --w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -124,8 +136,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -197,8 +217,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/renamed.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/renamed.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js index b1807b5c688..a735fb6b033 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js @@ -20,7 +20,12 @@ import { x } from "file2"; export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"dist","declaration":true}} +{ + "compilerOptions": { + "outDir": "dist", + "declaration": true + } +} /a/lib/tsc.js --w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -133,8 +146,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js index 3903c80e3ea..c8e35ea20a1 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -145,8 +151,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -218,8 +230,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -338,8 +356,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js index dc45826e354..a5c665166b3 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js @@ -26,8 +26,12 @@ Output:: -Program root files: ["/a/username/project/typescript.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/username/project/typescript.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -350,8 +354,12 @@ Output:: -Program root files: ["/a/username/project/typescript.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/username/project/typescript.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js index 4ea79f3390d..64409284362 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchFile":"FixedChunkSizePolling"}} +{ + "watchOptions": { + "watchFile": "FixedChunkSizePolling" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +36,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -124,8 +135,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js index 0cb47c338e9..0a06c6ab0a6 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} /a/lib/tsc.js -w -extendedDiagnostics @@ -60,8 +69,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excl Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Wild card directory -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js index 36baa6add6f..8ce6304975c 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["**/temp"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } +} /a/lib/tsc.js -w -extendedDiagnostics @@ -60,8 +69,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excl Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Wild card directory -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js index a7829cedc4f..880198483c1 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["**/temp"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } +} /a/lib/tsc.js -w @@ -41,8 +50,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js index ed5d800b6f2..b715b34ba7b 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} /a/lib/tsc.js -w @@ -41,8 +50,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js index 5c50f0ac49c..e151c51e0fb 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeFiles":["node_modules/*"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeFiles": [ + "node_modules/*" + ] + } +} /a/lib/tsc.js -w -extendedDiagnostics @@ -62,8 +71,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excl Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Wild card directory -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js index 856fc546460..791e4bbcc20 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeFiles":["node_modules/*"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeFiles": [ + "node_modules/*" + ] + } +} /a/lib/tsc.js -w @@ -41,8 +50,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js index 43e6ba05deb..64a7872c1b3 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"fallbackPolling":"PriorityInterval"}} +{ + "watchOptions": { + "fallbackPolling": "PriorityInterval" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -37,8 +41,15 @@ sysLog:: /a/lib/lib.d.ts:: Changing to watchFile sysLog:: /a/b:: Changing to watchFile -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js index 748c392319e..cf964f410ea 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchDirectory":"UseFsEvents"}} +{ + "watchOptions": { + "watchDirectory": "UseFsEvents" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +36,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js index 7d31d67153c..d59e66b6a01 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js index cf37200fa12..ec494ec85fc 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchFile":"UseFsEvents"}} +{ + "watchOptions": { + "watchFile": "UseFsEvents" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +36,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js index 5645bc03a3a..52128022b45 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js @@ -50,10 +50,10 @@ PolledWatches:: /node_modules/@angular/forms/node_modules/@types: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -65,29 +65,84 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/node_modules/@angular/forms/forms.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/node_modules/@angular/forms","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/node_modules/@angular/forms/forms.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/node_modules/@angular/forms", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/node_modules/@angular/forms/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js index ad4bd7066d3..4cf77bb0f57 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js @@ -74,7 +74,19 @@ Before request { "compilerOptions": { "module": "commonjs" } } //// [/package.json] -{"package0":"*","package1":"*","package2":"*","package3":"*","package4":"*","package5":"*","package6":"*","package7":"*","package8":"*","package9":"*","package10":"*"} +{ + "package0": "*", + "package1": "*", + "package2": "*", + "package3": "*", + "package4": "*", + "package5": "*", + "package6": "*", + "package7": "*", + "package8": "*", + "package9": "*", + "package10": "*" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js index 32bdca4c83f..92b7a61f2e6 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js @@ -157,10 +157,10 @@ FsWatchesRecursive:: /node_modules: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -196,7 +196,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -220,25 +220,80 @@ FsWatchesRecursive:: /node_modules: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/node_modules/@angular/forms/forms.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/node_modules/@angular/forms","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/node_modules/@angular/forms/forms.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/node_modules/@angular/forms", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/node_modules/@angular/forms/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js b/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js index 645079863f7..84c854aadd7 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js @@ -2,14 +2,21 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/node_modules/memfs/package.json] -{ "name": "memfs", "version": "1.0.0", "types": "lib/index.d.ts" } +{ + "name": "memfs", + "version": "1.0.0", + "types": "lib/index.d.ts" +} //// [/node_modules/memfs/lib/index.d.ts] /// export declare class Volume {} //// [/node_modules/@types/node/package.json] -{ "name": "@types/node", "version": "1.0.0" } +{ + "name": "@types/node", + "version": "1.0.0" +} //// [/node_modules/@types/node/index.d.ts] export declare class Stats {} diff --git a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js index 796db995d8e..6e0e0f649ed 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js @@ -47,10 +47,10 @@ PolledWatches:: /node_modules/@angular/forms/node_modules/@types: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -62,22 +62,62 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/node_modules/@angular/forms/forms.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/node_modules/@angular/forms","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/node_modules/@angular/forms/forms.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/node_modules/@angular/forms", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/node_modules/@angular/forms/package.json' dependencies: ["@angular/core"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@angular/core"],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@angular/core"],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@angular/core" + ], + "filesToWatch": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -87,7 +127,24 @@ TI:: [hh:mm:ss:mss] Installing typings ["@angular/core"] TI:: [hh:mm:ss:mss] '@angular/core':: Entry for package 'angular__core' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js b/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js index 24c29ad25d7..5d9f6dfd085 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js @@ -59,6 +59,19 @@ FsWatches:: /b.d.ts: *new* {} +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "findSourceDefinition", + "arguments": { + "file": "/a.ts", + "line": 1, + "offset": 10 + }, + "seq": 2, + "type": "request" + } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -74,7 +87,32 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -Before request +Info seq [hh:mm:ss:mss] response: + { + "response": [ + { + "file": "/b.js", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 18 + } + } + ], + "responseRequired": true + } +After request PolledWatches:: /a/lib/lib.d.ts: @@ -86,13 +124,15 @@ FsWatches:: /b.js: *new* {} +Before request + Info seq [hh:mm:ss:mss] request: { "command": "open", "arguments": { "file": "/b.js" }, - "seq": 2, + "seq": 3, "type": "request" } Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /b.js 500 undefined WatchType: Closed Script info @@ -124,10 +164,10 @@ FsWatches *deleted*:: /b.js: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -139,27 +179,82 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js new file mode 100644 index 00000000000..3436697fff3 --- /dev/null +++ b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js @@ -0,0 +1,318 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist +Before request +//// [/user/users/projects/myproject/node_modules/@types/yargs/package.json] +{ + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" +} + +//// [/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts] +export declare class Yargs { positional(): Yargs; } + + +//// [/user/users/projects/myproject/node_modules/@types/yargs/index.d.ts] + +import { Yargs } from "./callback"; +export declare function command(command: string, cb: (yargs: Yargs) => void): void; + + +//// [/user/users/projects/myproject/node_modules/yargs/package.json] +{ + "name": "yargs", + "version": "1.0.0", + "main": "index.js" +} + +//// [/user/users/projects/myproject/node_modules/yargs/callback.js] +export class Yargs { positional() { } } + + +//// [/user/users/projects/myproject/node_modules/yargs/index.js] +// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage +export function command(cmd, cb) { cb(Yargs) } + + +//// [/user/users/projects/myproject/index.ts] +import { command } from "yargs"; +command("foo", yargs => { + yargs.positional(); +}); + + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/user/users/projects/myproject/index.ts" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] Search path: /user/users/projects/myproject +Info seq [hh:mm:ss:mss] For info: /user/users/projects/myproject/index.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" + /user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }\n" + /user/users/projects/myproject/node_modules/@types/yargs/index.d.ts Text-1 "\nimport { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;\n" + /user/users/projects/myproject/index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});\n" + + + ../../../../a/lib/lib.d.ts + Default library for target 'es5' + node_modules/@types/yargs/callback.d.ts + Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + node_modules/@types/yargs/index.d.ts + Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /user/users/projects/myproject/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] response: + { + "responseRequired": false + } +After request + +PolledWatches:: +/user/users/projects/myproject/jsconfig.json: *new* + {"pollingInterval":2000} +/user/users/projects/myproject/tsconfig.json: *new* + {"pollingInterval":2000} +/user/users/projects/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/a/lib/lib.d.ts: *new* + {} +/user/users/projects/myproject/node_modules/@types/yargs/package.json: *new* + {} +/user/users/projects/myproject/node_modules/yargs/package.json: *new* + {} + +FsWatchesRecursive:: +/user/users/projects/myproject/node_modules: *new* + {} +/user/users/projects/myproject/node_modules/@types: *new* + {} + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "findSourceDefinition", + "arguments": { + "file": "/user/users/projects/myproject/index.ts", + "line": 3, + "offset": 11 + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /user/users/projects/myproject/node_modules/yargs/index.js Text-1 "// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage\nexport function command(cmd, cb) { cb(Yargs) }\n" + /user/users/projects/myproject/index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});\n" + + + node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (3) + /user/users/projects/myproject/node_modules/yargs/index.js Text-1 "// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage\nexport function command(cmd, cb) { cb(Yargs) }\n" + /user/users/projects/myproject/index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});\n" + /user/users/projects/myproject/node_modules/yargs/callback.js Text-1 "export class Yargs { positional() { } }\n" + + + node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + node_modules/yargs/callback.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "response": [ + { + "file": "/user/users/projects/myproject/node_modules/yargs/callback.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 32 + }, + "contextStart": { + "line": 1, + "offset": 22 + }, + "contextEnd": { + "line": 1, + "offset": 38 + }, + "unverified": true + } + ], + "responseRequired": true + } +After request + +PolledWatches:: +/user/users/projects/myproject/jsconfig.json: + {"pollingInterval":2000} +/user/users/projects/myproject/tsconfig.json: + {"pollingInterval":2000} +/user/users/projects/node_modules: *new* + {"pollingInterval":500} +/user/users/projects/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/users/projects/myproject/node_modules/@types/yargs/package.json: + {} +/user/users/projects/myproject/node_modules/yargs/package.json: + {} + +FsWatchesRecursive:: +/user/users/projects/myproject/node_modules: + {} +/user/users/projects/myproject/node_modules/@types: + {} + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "findSourceDefinition", + "arguments": { + "file": "/user/users/projects/myproject/index.ts", + "line": 3, + "offset": 11 + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] response: + { + "response": [ + { + "file": "/user/users/projects/myproject/node_modules/yargs/callback.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 32 + }, + "contextStart": { + "line": 1, + "offset": 22 + }, + "contextEnd": { + "line": 1, + "offset": 38 + }, + "unverified": true + } + ], + "responseRequired": true + } +After request + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "findSourceDefinition", + "arguments": { + "file": "/user/users/projects/myproject/index.ts", + "line": 2, + "offset": 1 + }, + "seq": 4, + "type": "request" + } +Info seq [hh:mm:ss:mss] response: + { + "response": [ + { + "file": "/user/users/projects/myproject/node_modules/yargs/index.js", + "start": { + "line": 2, + "offset": 17 + }, + "end": { + "line": 2, + "offset": 24 + }, + "contextStart": { + "line": 2, + "offset": 1 + }, + "contextEnd": { + "line": 2, + "offset": 47 + } + } + ], + "responseRequired": true + } +After request diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js new file mode 100644 index 00000000000..93fdd4e46fc --- /dev/null +++ b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js @@ -0,0 +1,272 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist +Before request +//// [/user/users/projects/myproject/node_modules/@types/yargs/package.json] +{ + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" +} + +//// [/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts] +export declare class Yargs { positional(): Yargs; } + + +//// [/user/users/projects/myproject/node_modules/@types/yargs/index.d.ts] + +import { Yargs } from "./callback"; +export declare function command(command: string, cb: (yargs: Yargs) => void): void; + + +//// [/user/users/projects/myproject/node_modules/yargs/package.json] +{ + "name": "yargs", + "version": "1.0.0", + "main": "index.js" +} + +//// [/user/users/projects/myproject/node_modules/yargs/callback.js] +export class Yargs { positional() { } } + + +//// [/user/users/projects/myproject/node_modules/yargs/index.js] +// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage +export function command(cmd, cb) { cb(Yargs) } + + +//// [/user/users/projects/myproject/folder/random.ts] +import { Yargs } from "yargs/callback"; + + +//// [/user/users/projects/myproject/some/index.ts] +import { random } from "../folder/random"; +import { command } from "yargs"; +command("foo", yargs => { + yargs.positional(); +}); + + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/user/users/projects/myproject/some/index.ts" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] Search path: /user/users/projects/myproject/some +Info seq [hh:mm:ss:mss] For info: /user/users/projects/myproject/some/index.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/random.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" + /user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }\n" + /user/users/projects/myproject/folder/random.ts Text-1 "import { Yargs } from \"yargs/callback\";\n" + /user/users/projects/myproject/node_modules/@types/yargs/index.d.ts Text-1 "\nimport { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;\n" + /user/users/projects/myproject/some/index.ts SVC-1-0 "import { random } from \"../folder/random\";\nimport { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});\n" + + + ../../../../../a/lib/lib.d.ts + Default library for target 'es5' + ../node_modules/@types/yargs/callback.d.ts + Imported via "yargs/callback" from file '../folder/random.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + Imported via "./callback" from file '../node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + ../folder/random.ts + Imported via "../folder/random" from file 'index.ts' + ../node_modules/@types/yargs/index.d.ts + Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /user/users/projects/myproject/some/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] response: + { + "responseRequired": false + } +After request + +PolledWatches:: +/user/users/projects/myproject/folder/node_modules: *new* + {"pollingInterval":500} +/user/users/projects/myproject/jsconfig.json: *new* + {"pollingInterval":2000} +/user/users/projects/myproject/some/jsconfig.json: *new* + {"pollingInterval":2000} +/user/users/projects/myproject/some/node_modules: *new* + {"pollingInterval":500} +/user/users/projects/myproject/some/node_modules/@types: *new* + {"pollingInterval":500} +/user/users/projects/myproject/some/tsconfig.json: *new* + {"pollingInterval":2000} +/user/users/projects/myproject/tsconfig.json: *new* + {"pollingInterval":2000} +/user/users/projects/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/a/lib/lib.d.ts: *new* + {} +/user/users/projects/myproject/folder/random.ts: *new* + {} +/user/users/projects/myproject/node_modules/@types/yargs/package.json: *new* + {} +/user/users/projects/myproject/node_modules/yargs/package.json: *new* + {} + +FsWatchesRecursive:: +/user/users/projects/myproject/node_modules: *new* + {} +/user/users/projects/myproject/node_modules/@types: *new* + {} + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "findSourceDefinition", + "arguments": { + "file": "/user/users/projects/myproject/some/index.ts", + "line": 4, + "offset": 11 + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/auxiliaryProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/folder/node_modules 1 undefined Project: /dev/null/auxiliaryProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (4) + /user/users/projects/myproject/node_modules/yargs/callback.js Text-1 "export class Yargs { positional() { } }\n" + /user/users/projects/myproject/folder/random.ts Text-1 "import { Yargs } from \"yargs/callback\";\n" + /user/users/projects/myproject/node_modules/yargs/index.js Text-1 "// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage\nexport function command(cmd, cb) { cb(Yargs) }\n" + /user/users/projects/myproject/some/index.ts SVC-1-0 "import { random } from \"../folder/random\";\nimport { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});\n" + + + ../node_modules/yargs/callback.js + Imported via "yargs/callback" from file '../folder/random.ts' with packageId 'yargs/callback.js@1.0.0' + ../folder/random.ts + Imported via "../folder/random" from file 'index.ts' + ../node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "response": [ + { + "file": "/user/users/projects/myproject/node_modules/yargs/callback.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 32 + }, + "contextStart": { + "line": 1, + "offset": 22 + }, + "contextEnd": { + "line": 1, + "offset": 38 + }, + "unverified": true + } + ], + "responseRequired": true + } +After request + +PolledWatches:: +/user/users/projects/myproject/folder/node_modules: + {"pollingInterval":500} +/user/users/projects/myproject/jsconfig.json: + {"pollingInterval":2000} +/user/users/projects/myproject/some/jsconfig.json: + {"pollingInterval":2000} +/user/users/projects/myproject/some/node_modules: + {"pollingInterval":500} +/user/users/projects/myproject/some/node_modules/@types: + {"pollingInterval":500} +/user/users/projects/myproject/some/tsconfig.json: + {"pollingInterval":2000} +/user/users/projects/myproject/tsconfig.json: + {"pollingInterval":2000} +/user/users/projects/node_modules: *new* + {"pollingInterval":500} +/user/users/projects/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/a/lib/lib.d.ts: + {} +/user/users/projects/myproject/folder/random.ts: + {} +/user/users/projects/myproject/node_modules/@types/yargs/package.json: + {} +/user/users/projects/myproject/node_modules/yargs/package.json: + {} + +FsWatchesRecursive:: +/user/users/projects/myproject/node_modules: + {} +/user/users/projects/myproject/node_modules/@types: + {} diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js index 3c5d184eef3..4a2699ac06d 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js @@ -8,7 +8,13 @@ import * as debug from "debug" import * as debug from "debug" //// [/users/username/projects/proj/tsconfig.json] -{"files":["foo/boo/app.ts","foo/boo/moo/app.ts"],"moduleResolution":"Classic"} +{ + "files": [ + "foo/boo/app.ts", + "foo/boo/moo/app.ts" + ], + "moduleResolution": "Classic" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js index 897b3e326d8..cc6851c28c8 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js @@ -8,7 +8,13 @@ import * as debug from "debug" import * as debug from "debug" //// [/users/username/projects/proj/tsconfig.json] -{"files":["foo/boo/app.ts","foo/boo/moo/app.ts"],"moduleResolution":"Node"} +{ + "files": [ + "foo/boo/app.ts", + "foo/boo/moo/app.ts" + ], + "moduleResolution": "Node" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js index 1a61caf38f7..9c070d0536a 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js @@ -42,10 +42,237 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /users/username/projects/project/foo.ts:: 1 Info seq [hh:mm:ss:mss] foo.ts(1,17): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/users/username/projects/project/tsconfig.json","count":2},{"key":"/users/username/projects/project/jsconfig.json","count":2},{"key":"/users/username/projects/tsconfig.json","count":1},{"key":"/users/username/projects/jsconfig.json","count":1},{"key":"/users/username/tsconfig.json","count":1},{"key":"/users/username/jsconfig.json","count":1},{"key":"/users/tsconfig.json","count":1},{"key":"/users/jsconfig.json","count":1},{"key":"/tsconfig.json","count":1},{"key":"/jsconfig.json","count":1},{"key":"/users/username/projects/project/bar.ts","count":1},{"key":"/users/username/projects/project/bar.tsx","count":1},{"key":"/users/username/projects/project/bar.d.ts","count":1},{"key":"/users/username/projects/bar.ts","count":1},{"key":"/users/username/projects/bar.tsx","count":1},{"key":"/users/username/projects/bar.d.ts","count":1},{"key":"/users/username/bar.ts","count":1},{"key":"/users/username/bar.tsx","count":1},{"key":"/users/username/bar.d.ts","count":1},{"key":"/users/bar.ts","count":1},{"key":"/users/bar.tsx","count":1},{"key":"/users/bar.d.ts","count":1},{"key":"/bar.ts","count":1},{"key":"/bar.tsx","count":1},{"key":"/bar.d.ts","count":1},{"key":"/users/username/projects/project/bar.js","count":1},{"key":"/users/username/projects/project/bar.jsx","count":1},{"key":"/users/username/projects/bar.js","count":1},{"key":"/users/username/projects/bar.jsx","count":1},{"key":"/users/username/bar.js","count":1},{"key":"/users/username/bar.jsx","count":1},{"key":"/users/bar.js","count":1},{"key":"/users/bar.jsx","count":1},{"key":"/bar.js","count":1},{"key":"/bar.jsx","count":1},{"key":"/users/username/projects/project/package.json","count":1},{"key":"/users/username/projects/package.json","count":1},{"key":"/users/username/package.json","count":1},{"key":"/users/package.json","count":1},{"key":"/package.json","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/users/username/projects/project","count":3},{"key":"/users/username/projects","count":3},{"key":"/users/username","count":2},{"key":"/users","count":2},{"key":"/","count":2},{"key":"/users/username/projects/project/node_modules","count":2},{"key":"/users/username/projects/node_modules","count":2},{"key":"/users/username/node_modules","count":1},{"key":"/users/node_modules","count":1},{"key":"/node_modules","count":1},{"key":"/users/username/projects/project/node_modules/@types","count":2},{"key":"/users/username/projects/node_modules/@types","count":2},{"key":"/users/username/node_modules/@types","count":1},{"key":"/users/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/users/username/projects/project/tsconfig.json", + "count": 2 + }, + { + "key": "/users/username/projects/project/jsconfig.json", + "count": 2 + }, + { + "key": "/users/username/projects/tsconfig.json", + "count": 1 + }, + { + "key": "/users/username/projects/jsconfig.json", + "count": 1 + }, + { + "key": "/users/username/tsconfig.json", + "count": 1 + }, + { + "key": "/users/username/jsconfig.json", + "count": 1 + }, + { + "key": "/users/tsconfig.json", + "count": 1 + }, + { + "key": "/users/jsconfig.json", + "count": 1 + }, + { + "key": "/tsconfig.json", + "count": 1 + }, + { + "key": "/jsconfig.json", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.ts", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.d.ts", + "count": 1 + }, + { + "key": "/users/username/projects/bar.ts", + "count": 1 + }, + { + "key": "/users/username/projects/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/projects/bar.d.ts", + "count": 1 + }, + { + "key": "/users/username/bar.ts", + "count": 1 + }, + { + "key": "/users/username/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/bar.d.ts", + "count": 1 + }, + { + "key": "/users/bar.ts", + "count": 1 + }, + { + "key": "/users/bar.tsx", + "count": 1 + }, + { + "key": "/users/bar.d.ts", + "count": 1 + }, + { + "key": "/bar.ts", + "count": 1 + }, + { + "key": "/bar.tsx", + "count": 1 + }, + { + "key": "/bar.d.ts", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.js", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.jsx", + "count": 1 + }, + { + "key": "/users/username/projects/bar.js", + "count": 1 + }, + { + "key": "/users/username/projects/bar.jsx", + "count": 1 + }, + { + "key": "/users/username/bar.js", + "count": 1 + }, + { + "key": "/users/username/bar.jsx", + "count": 1 + }, + { + "key": "/users/bar.js", + "count": 1 + }, + { + "key": "/users/bar.jsx", + "count": 1 + }, + { + "key": "/bar.js", + "count": 1 + }, + { + "key": "/bar.jsx", + "count": 1 + }, + { + "key": "/users/username/projects/project/package.json", + "count": 1 + }, + { + "key": "/users/username/projects/package.json", + "count": 1 + }, + { + "key": "/users/username/package.json", + "count": 1 + }, + { + "key": "/users/package.json", + "count": 1 + }, + { + "key": "/package.json", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/users/username/projects/project", + "count": 3 + }, + { + "key": "/users/username/projects", + "count": 3 + }, + { + "key": "/users/username", + "count": 2 + }, + { + "key": "/users", + "count": 2 + }, + { + "key": "/", + "count": 2 + }, + { + "key": "/users/username/projects/project/node_modules", + "count": 2 + }, + { + "key": "/users/username/projects/node_modules", + "count": 2 + }, + { + "key": "/users/username/node_modules", + "count": 1 + }, + { + "key": "/users/node_modules", + "count": 1 + }, + { + "key": "/node_modules", + "count": 1 + }, + { + "key": "/users/username/projects/project/node_modules/@types", + "count": 2 + }, + { + "key": "/users/username/projects/node_modules/@types", + "count": 2 + }, + { + "key": "/users/username/node_modules/@types", + "count": 1 + }, + { + "key": "/users/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/users/username/projects/project/foo.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/users/username/projects/project/foo.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/bar.d.ts :: WatchInfo: /users/username/projects/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1*FailedLookupInvalidation @@ -105,8 +332,51 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /users/username/projects/project/foo.ts:: 0 -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/users/username/projects/project/bar.ts","count":1},{"key":"/users/username/projects/project/bar.tsx","count":1},{"key":"/users/username/projects/project/bar.d.ts","count":3}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/users/username/projects/project","count":1},{"key":"/users/username/projects/project/node_modules/@types","count":1},{"key":"/users/username/projects/node_modules/@types","count":1},{"key":"/users/username/node_modules/@types","count":1},{"key":"/users/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/users/username/projects/project/bar.ts", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.d.ts", + "count": 3 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/users/username/projects/project", + "count": 1 + }, + { + "key": "/users/username/projects/project/node_modules/@types", + "count": 1 + }, + { + "key": "/users/username/projects/node_modules/@types", + "count": 1 + }, + { + "key": "/users/username/node_modules/@types", + "count": 1 + }, + { + "key": "/users/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/users/username/projects/project/bar.d.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/users/username/projects/project/bar.d.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js index 17cdf3f31c5..dd9034f0035 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js @@ -21,7 +21,42 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/Users/someuser/work/applications/frontend/tsconfig.json] -{"compilerOptions":{"strict":true,"strictNullChecks":true,"target":"es2016","module":"commonjs","moduleResolution":"node","sourceMap":true,"noEmitOnError":true,"experimentalDecorators":true,"emitDecoratorMetadata":true,"types":["node","jest"],"noUnusedLocals":true,"outDir":"./compiled","typeRoots":["types","node_modules/@types"],"baseUrl":".","paths":{"*":["types/*"]}},"include":["src/**/*"],"exclude":["node_modules","compiled"]} +{ + "compilerOptions": { + "strict": true, + "strictNullChecks": true, + "target": "es2016", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "noEmitOnError": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "types": [ + "node", + "jest" + ], + "noUnusedLocals": true, + "outDir": "./compiled", + "typeRoots": [ + "types", + "node_modules/@types" + ], + "baseUrl": ".", + "paths": { + "*": [ + "types/*" + ] + } + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "compiled" + ] +} Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils @@ -185,10 +220,29 @@ FsWatchesRecursive:: /users/someuser/work/applications/frontend/src: {} -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/users/someuser/work/applications/frontend/src/app/utils/cookie.ts","count":1},{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/users/someuser/work/applications/frontend/src/app/utils/cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/users/someuser/work/applications/frontend/src/app/utils/cookie.ts", + "count": 1 + }, + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/users/someuser/work/applications/frontend/src/app/utils/cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js index 1c4fa7c9b4b..550483f876a 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js @@ -21,7 +21,42 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/Users/someuser/work/applications/frontend/tsconfig.json] -{"compilerOptions":{"strict":true,"strictNullChecks":true,"target":"es2016","module":"commonjs","moduleResolution":"node","sourceMap":true,"noEmitOnError":true,"experimentalDecorators":true,"emitDecoratorMetadata":true,"types":["node","jest"],"noUnusedLocals":true,"outDir":"./compiled","typeRoots":["types","node_modules/@types"],"baseUrl":".","paths":{"*":["types/*"]}},"include":["src/**/*"],"exclude":["node_modules","compiled"]} +{ + "compilerOptions": { + "strict": true, + "strictNullChecks": true, + "target": "es2016", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "noEmitOnError": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "types": [ + "node", + "jest" + ], + "noUnusedLocals": true, + "outDir": "./compiled", + "typeRoots": [ + "types", + "node_modules/@types" + ], + "baseUrl": ".", + "paths": { + "*": [ + "types/*" + ] + } + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "compiled" + ] +} Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils @@ -185,10 +220,25 @@ FsWatchesRecursive:: /Users/someuser/work/applications/frontend/src: {} -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":2}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 2 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js index 846c21ef7c5..203a5e57e95 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js @@ -17,7 +17,27 @@ export class Bookshelf { } //// [/a/b/tsconfig.json] -{"compilerOptions":{"target":"es6","module":"es6","baseUrl":"./","paths":{"~/*":["*"]}},"exclude":["api","build","node_modules","public","seeds","sql_updates","tests.build"]} +{ + "compilerOptions": { + "target": "es6", + "module": "es6", + "baseUrl": "./", + "paths": { + "~/*": [ + "*" + ] + } + }, + "exclude": [ + "api", + "build", + "node_modules", + "public", + "seeds", + "sql_updates", + "tests.build" + ] +} Info seq [hh:mm:ss:mss] request: @@ -188,7 +208,16 @@ FsWatchesRecursive:: /a/b: {} -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/a/b/models/tsconfig.json","count":1},{"key":"/a/b/models/jsconfig.json","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/a/b/models/tsconfig.json", + "count": 1 + }, + { + "key": "/a/b/models/jsconfig.json", + "count": 1 + } +] Info seq [hh:mm:ss:mss] directoryExists:: [] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js index 059a14ff330..881a2e8c860 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js @@ -9,7 +9,20 @@ import * as M from "folder1/module1"; //// [/user/username/projects/myproject/client/linktofolder2] symlink(/user/username/projects/myproject/folder2) //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"baseUrl":"client","paths":{"*":["*"]}},"include":["client/**/*","folder2"]} +{ + "compilerOptions": { + "baseUrl": "client", + "paths": { + "*": [ + "*" + ] + } + }, + "include": [ + "client/**/*", + "folder2" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js index d9cd6ac2fb6..f2299ab7a06 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js @@ -63,8 +63,106 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Could not find source file: '/c/f1.ts'. -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/c/d/f2.ts","count":1},{"key":"/c/d/f2.tsx","count":1},{"key":"/c/d/f2.d.ts","count":1},{"key":"/c/f2.ts","count":1},{"key":"/c/f2.tsx","count":1},{"key":"/c/f2.d.ts","count":1},{"key":"/f2.ts","count":1},{"key":"/f2.tsx","count":1},{"key":"/f2.d.ts","count":1},{"key":"/c/d/f2.js","count":1},{"key":"/c/d/f2.jsx","count":1},{"key":"/c/f2.js","count":1},{"key":"/c/f2.jsx","count":1},{"key":"/f2.js","count":1},{"key":"/f2.jsx","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/c/d","count":2},{"key":"/c","count":2},{"key":"/","count":2},{"key":"/c/d/node_modules","count":1},{"key":"/c/node_modules","count":1},{"key":"/node_modules","count":1},{"key":"/c/d/node_modules/@types","count":1},{"key":"/c/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/c/d/f2.ts", + "count": 1 + }, + { + "key": "/c/d/f2.tsx", + "count": 1 + }, + { + "key": "/c/d/f2.d.ts", + "count": 1 + }, + { + "key": "/c/f2.ts", + "count": 1 + }, + { + "key": "/c/f2.tsx", + "count": 1 + }, + { + "key": "/c/f2.d.ts", + "count": 1 + }, + { + "key": "/f2.ts", + "count": 1 + }, + { + "key": "/f2.tsx", + "count": 1 + }, + { + "key": "/f2.d.ts", + "count": 1 + }, + { + "key": "/c/d/f2.js", + "count": 1 + }, + { + "key": "/c/d/f2.jsx", + "count": 1 + }, + { + "key": "/c/f2.js", + "count": 1 + }, + { + "key": "/c/f2.jsx", + "count": 1 + }, + { + "key": "/f2.js", + "count": 1 + }, + { + "key": "/f2.jsx", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/c/d", + "count": 2 + }, + { + "key": "/c", + "count": 2 + }, + { + "key": "/", + "count": 2 + }, + { + "key": "/c/d/node_modules", + "count": 1 + }, + { + "key": "/c/node_modules", + "count": 1 + }, + { + "key": "/node_modules", + "count": 1 + }, + { + "key": "/c/d/node_modules/@types", + "count": 1 + }, + { + "key": "/c/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] Info seq [hh:mm:ss:mss] readDirectory:: [] @@ -85,8 +183,46 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /c/f1.ts:: 1 Info seq [hh:mm:ss:mss] ../f1.ts(1,1): error TS2304: Cannot find name 'foo'. -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/c/d/f1.ts","count":1},{"key":"/c/d/f1.tsx","count":1},{"key":"/c/d/f1.d.ts","count":1},{"key":"/c/f1.ts","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/c/d","count":1},{"key":"/c","count":1},{"key":"/c/d/node_modules/@types","count":1},{"key":"/c/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/c/d/f1.ts", + "count": 1 + }, + { + "key": "/c/d/f1.tsx", + "count": 1 + }, + { + "key": "/c/d/f1.d.ts", + "count": 1 + }, + { + "key": "/c/f1.ts", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/c/d", + "count": 1 + }, + { + "key": "/c", + "count": 1 + }, + { + "key": "/c/d/node_modules/@types", + "count": 1 + }, + { + "key": "/c/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] Info seq [hh:mm:ss:mss] readDirectory:: [] @@ -103,8 +239,46 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /c/f1.ts:: 1 Info seq [hh:mm:ss:mss] ../f1.ts(1,1): error TS2304: Cannot find name 'foo'. -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/c/d/f1.ts","count":1},{"key":"/c/d/f1.tsx","count":1},{"key":"/c/d/f1.d.ts","count":1},{"key":"/c/f1.ts","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/c/d","count":1},{"key":"/c","count":1},{"key":"/c/d/node_modules/@types","count":1},{"key":"/c/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/c/d/f1.ts", + "count": 1 + }, + { + "key": "/c/d/f1.tsx", + "count": 1 + }, + { + "key": "/c/d/f1.d.ts", + "count": 1 + }, + { + "key": "/c/f1.ts", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/c/d", + "count": 1 + }, + { + "key": "/c", + "count": 1 + }, + { + "key": "/c/d/node_modules/@types", + "count": 1 + }, + { + "key": "/c/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] Info seq [hh:mm:ss:mss] readDirectory:: [] \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js b/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js index 594bb4dd296..69ffd994c9b 100644 --- a/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js +++ b/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js @@ -5,7 +5,9 @@ Before request let x = 1 //// [/a/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] request: @@ -95,12 +97,12 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } TestServerCancellationToken:: resetRequest:: 2 is as expected After running Timeout callback:: count: 0 @@ -156,12 +158,12 @@ Before running Timeout callback:: count: 1 TestServerCancellationToken:: Cancellation is requested Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } TestServerCancellationToken:: resetRequest:: 3 is as expected After running Timeout callback:: count: 0 @@ -192,13 +194,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 5 is as expected After running Timeout callback:: count: 0 @@ -210,12 +212,12 @@ Before running Immedidate callback:: count: 1 TestServerCancellationToken:: Cancellation is requested Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } TestServerCancellationToken:: resetRequest:: 5 is as expected After running Immedidate callback:: count: 0 @@ -246,13 +248,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 6 is as expected After running Timeout callback:: count: 0 @@ -262,13 +264,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 6 is as expected After running Immedidate callback:: count: 1 @@ -279,22 +281,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } TestServerCancellationToken:: resetRequest:: 6 is as expected After running Immedidate callback:: count: 0 @@ -325,13 +327,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 7 is as expected After running Timeout callback:: count: 0 @@ -352,12 +354,12 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } TestServerCancellationToken:: resetRequest:: 8 is as expected Info seq [hh:mm:ss:mss] response: diff --git a/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js b/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js index d43290454e8..5a463c08244 100644 --- a/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js +++ b/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js @@ -5,7 +5,9 @@ Before request { let x = 1; } var foo = "foo"; var bar = "bar"; var fooBar = "fooBar"; //// [/a/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js index a3fd6a6af81..68c992a9bf9 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js +++ b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js @@ -24,10 +24,28 @@ let x = 10; let y = 10; //// [/user/username/projects/myproject/app1/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/app2/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js index c1e54347975..533fac2d08d 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js +++ b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js @@ -24,10 +24,28 @@ let x = 10; let y = 10; //// [/user/username/projects/myproject/app1/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/app2/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js index 84903633a1e..870666a1aea 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js +++ b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js @@ -8,7 +8,12 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"},"compileOnSave":true} +{ + "compilerOptions": { + "out": "/a/out.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js index 886cb5008ea..c6ad765a405 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js +++ b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js @@ -8,7 +8,12 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"},"compileOnSave":true} +{ + "compilerOptions": { + "outFile": "/a/out.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js index aebac74267c..1f93d82724b 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js +++ b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js @@ -8,7 +8,10 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{},"compileOnSave":true} +{ + "compilerOptions": {}, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js index 74fdee46e55..d61269e2937 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js @@ -8,7 +8,12 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{"composite":true},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js index 0416afdf44b..acc53306d07 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js @@ -8,7 +8,13 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{"experimentalDecorators":true,"emitDecoratorMetadata":true},"compileOnSave":true} +{ + "compilerOptions": { + "experimentalDecorators": true, + "emitDecoratorMetadata": true + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js index 3ef03028df3..8ff95cc9776 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js @@ -8,7 +8,12 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{"declaration":true},"compileOnSave":true} +{ + "compilerOptions": { + "declaration": true + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js index eda5f540ff0..687ae9ba324 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js @@ -8,7 +8,10 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{},"compileOnSave":true} +{ + "compilerOptions": {}, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js index 215433b9704..872818ee6dc 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js @@ -8,7 +8,10 @@ export const x: string; import { x } from './runtime/a; //// [/a/tsconfig.json] -{"compilerOptions":{},"compileOnSave":true} +{ + "compilerOptions": {}, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js index 726da15a826..05079576336 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js @@ -17,7 +17,13 @@ function bar() { const xy = 3; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":true,"module":"none"}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": true, + "module": "none" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js index 49f6751f4e1..b020b4ed21b 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js @@ -20,7 +20,12 @@ const xy = 3; export const xyz = 4; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":true}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js index dafe531139c..86e89474aed 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js @@ -20,7 +20,12 @@ const xy = 3; export const xyz = 4; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":false}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": false + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js index 44f9547175d..3d2d6090fdb 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js @@ -17,7 +17,13 @@ function bar() { const xy = 3; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":false,"module":"none"}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": false, + "module": "none" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js index e9021e8dc6d..fa4537e5bb1 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js @@ -8,7 +8,17 @@ const x = 1; const y = 2; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"outDir":"test","noEmitOnError":true,"declaration":true},"exclude":["node_modules"]} +{ + "compileOnSave": true, + "compilerOptions": { + "outDir": "test", + "noEmitOnError": true, + "declaration": true + }, + "exclude": [ + "node_modules" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js index dd826a08d8c..bb1090677d3 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js @@ -8,7 +8,17 @@ const x = 1; const y = 2; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"outDir":"test","noEmitOnError":true,"declaration":true},"exclude":["node_modules"]} +{ + "compileOnSave": true, + "compilerOptions": { + "outDir": "test", + "noEmitOnError": true, + "declaration": true + }, + "exclude": [ + "node_modules" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js index 1c8ba38dbee..b3a5beb7417 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js @@ -8,7 +8,17 @@ const x = 1; const y = 2; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"outDir":"test","noEmitOnError":true,"declaration":true},"exclude":["node_modules"]} +{ + "compileOnSave": true, + "compilerOptions": { + "outDir": "test", + "noEmitOnError": true, + "declaration": true + }, + "exclude": [ + "node_modules" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js index 1b747203aff..f85ffbbe910 100644 --- a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js +++ b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js @@ -33,7 +33,14 @@ import * as PropTypes from 'prop-types'; //// [e:/myproject/package.json] -{"name":"test","version":"0.1.0","dependencies":{"react":"^16.12.0","react-router-dom":"^5.1.2"}} +{ + "name": "test", + "version": "0.1.0", + "dependencies": { + "react": "^16.12.0", + "react-router-dom": "^5.1.2" + } +} //// [c:/a/lib/lib.d.ts] /// @@ -49,22 +56,37 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [e:/myproject/node_modules/@types/react/package.json] -{"name":"@types/react","version":"16.9.14"} +{ + "name": "@types/react", + "version": "16.9.14" +} //// [e:/myproject/node_modules/react-router-dom/package.json] -{"name":"react-router-dom","version":"5.1.2"} +{ + "name": "react-router-dom", + "version": "5.1.2" +} //// [e:/myproject/node_modules/react-router-dom/index.js] export function foo() {} //// [e:/myproject/node_modules/@types/prop-types/package.json] -{"name":"@types/prop-types","version":"15.7.3"} +{ + "name": "@types/prop-types", + "version": "15.7.3" +} //// [c:/typescript/node_modules/@types/react-router-dom/package.json] -{"name":"@types/react-router-dom","version":"5.1.2"} +{ + "name": "@types/react-router-dom", + "version": "5.1.2" +} //// [c:/typescript/node_modules/@types/react/package.json] -{"name":"@types/react","version":"16.9.14"} +{ + "name": "@types/react", + "version": "16.9.14" +} Info seq [hh:mm:ss:mss] request: @@ -182,27 +204,83 @@ TI:: typing installer creation complete //// [c:/typescript/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["c:/a/lib/lib.d.ts","e:/myproject/src/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"e:/myproject/src","cachePath":"c:/typescript","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "c:/a/lib/lib.d.ts", + "e:/myproject/src/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "e:/myproject/src", + "cachePath": "c:/typescript", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/typescript', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location 'c:/typescript' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["e:/myproject/src/bower_components","e:/myproject/src/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["e:/myproject/src/bower_components","e:/myproject/src/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "e:/myproject/src/bower_components", + "e:/myproject/src/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["e:/myproject/src/bower_components","e:/myproject/src/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "e:/myproject/src/bower_components", + "e:/myproject/src/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/myproject/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js b/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js index 83f7afbae51..d761b0dd635 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js @@ -1025,11 +1025,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js index 5b6d5cea19c..525a8bd2711 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js @@ -2625,11 +2625,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js index abde13b145e..82620c06d39 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js @@ -475,11 +475,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js b/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js index 8f218eb2a64..875f3d2d498 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js @@ -331,11 +331,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js b/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js index ffab11b380c..93978d8a4fe 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js @@ -534,11 +534,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/works.js b/tests/baselines/reference/tsserver/completionsIncomplete/works.js index 640aad92691..5ebd8c26cb9 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/works.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/works.js @@ -775,11 +775,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js index feef5972e16..d817be19531 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js +++ b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js @@ -14,7 +14,12 @@ let z = 1; let z = 1; //// [/a/b/tsconfig.json] -{"files":["src/file1.ts","file3.ts"]} +{ + "files": [ + "src/file1.ts", + "file3.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b/src diff --git a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js index 79df60ca095..2bf0aa6f791 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js +++ b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js @@ -14,7 +14,12 @@ let z = 1; let z = 1; //// [/a/b/tsconfig.json] -{"files":["src/file1.ts","file3.ts"]} +{ + "files": [ + "src/file1.ts", + "file3.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b/src diff --git a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js index c8bc4fb6c62..de5545016d3 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js +++ b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js @@ -8,7 +8,12 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -50,7 +55,13 @@ Before running Timeout callback:: count: 2 1: /a/b/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js index 58e3fd27be7..596f0a2585d 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js +++ b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js @@ -5,7 +5,9 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js b/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js index a3c2e210a6b..173f607b389 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js +++ b/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js @@ -8,7 +8,13 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -55,7 +61,15 @@ Before running Timeout callback:: count: 2 1: /a/b/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/a/b/tsconfig.json] -{"compilerOptions":{"outFile":"out.js"},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": { + "outFile": "out.js" + }, + "files": [ + "f1.ts", + "f2.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js index 7750f2b665a..fd196ebace7 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js +++ b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js @@ -8,7 +8,14 @@ import classc from "file2" export classc { method2a() { return 10; } } //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1.ts"],"compilerOptions":{"module":"amd"}} +{ + "files": [ + "/users/username/projects/project/file1.ts" + ], + "compilerOptions": { + "module": "amd" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index 50ce8a2797f..ab7494515a3 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +92,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -198,14 +205,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +318,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +333,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +349,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +364,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +379,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +395,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index 8d1b3b4163f..c1704c638e1 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +89,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -261,13 +265,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 3:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -278,13 +282,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -294,13 +298,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -312,13 +316,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 4:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -329,13 +333,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -345,21 +349,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index b2d318dbe33..dc6f0ac90df 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +92,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -198,14 +205,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +318,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +333,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +349,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +364,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +379,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +395,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index e13df3f3243..9c87b1207c5 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +89,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -261,13 +265,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 3:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -278,13 +282,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -294,13 +298,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -312,13 +316,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 4:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -329,13 +333,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -345,21 +349,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index 42a514757ce..35e85354108 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +92,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +199,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +318,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +333,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +349,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +364,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +379,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +395,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index 50b181fc95a..caecb5a075a 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +89,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +196,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -340,13 +344,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -391,13 +395,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -407,13 +411,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -425,13 +429,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 4:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -442,13 +446,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -458,21 +462,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index 2bbe8fc3921..54c6bddaf5e 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +92,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +199,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +318,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +333,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +349,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +364,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +379,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +395,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index 7560d61cf36..60e068f15a6 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +89,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +196,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -315,13 +319,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 3:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -332,13 +336,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -348,13 +352,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -391,13 +395,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -442,13 +446,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -458,21 +462,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js b/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js index 5b4271e51de..fe3e763e875 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js +++ b/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js @@ -15,7 +15,11 @@ export class2 { method2() { return 10; } } export class3 { method2() { return 10; } } //// [/user/username/rootfolder/a/b/src/tsconfig.json] -{"files":["file1.ts"]} +{ + "files": [ + "file1.ts" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js b/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js index 85cfbe959aa..1689a8a1bab 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js +++ b/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js @@ -11,7 +11,11 @@ var x = 1 var x = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} Info seq [hh:mm:ss:mss] Search path: /a diff --git a/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js b/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js index 14902a522c5..c121974202f 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js @@ -100,7 +100,13 @@ Before running Timeout callback:: count: 2 3: /user/username/projects/myproject/a/c/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/a/c/tsconfig.json] -{"compilerOptions":{},"files":["f2.ts","f3.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f2.ts", + "f3.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js index 1419a0b1b6c..05b9bc8e5b3 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js @@ -5,7 +5,10 @@ Creating project service let x = 1 //// [/a/tsconfig.json] -{"compiler":{},"files":[]} +{ + "compiler": {}, + "files": [] +} //// [/a/node_modules/@types/typings/index.d.ts] export * from "./lib" diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js b/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js index 0ae9090784d..33b37e547a5 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -75,70 +75,70 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 11, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/file1.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot read file '/user/username/projects/myproject/tsconfig.json'.", - "code": 5083, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 11, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/file1.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot read file '/user/username/projects/myproject/tsconfig.json'.", + "code": 5083, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js b/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js index 8ebdc8bb487..753fb0862cf 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js @@ -5,16 +5,28 @@ Creating project service {} //// [/user/username/projects/myproject/a/tsconfig.json] -{"extends":"../extended/alpha.tsconfig.json","files":["a.ts"]} +{ + "extends": "../extended/alpha.tsconfig.json", + "files": [ + "a.ts" + ] +} //// [/user/username/projects/myproject/a/a.ts] let a = 1; //// [/user/username/projects/myproject/extended/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"extends":"../extended/bravo.tsconfig.json","files":["b.ts"]} +{ + "extends": "../extended/bravo.tsconfig.json", + "files": [ + "b.ts" + ] +} //// [/user/username/projects/myproject/b/b.ts] let b = 1; diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js b/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js index 655abd4507b..3b8e1138d03 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js @@ -5,7 +5,15 @@ Creating project service let x = 1 //// [/user/username/projects/myproject/src/server/tsconfig.json] -{"compiler":{"module":"commonjs","outDir":"../../build"},"include":["../src/**/*.ts"]} +{ + "compiler": { + "module": "commonjs", + "outDir": "../../build" + }, + "include": [ + "../src/**/*.ts" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js b/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js index 8fe305d0a57..4ed7f290688 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js @@ -5,16 +5,28 @@ Creating project service {} //// [/user/username/projects/myproject/a/tsconfig.json] -{"extends":"../extended/alpha.tsconfig.json","files":["a.ts"]} +{ + "extends": "../extended/alpha.tsconfig.json", + "files": [ + "a.ts" + ] +} //// [/user/username/projects/myproject/a/a.ts] let a = 1; //// [/user/username/projects/myproject/extended/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"extends":"../extended/bravo.tsconfig.json","files":["b.ts"]} +{ + "extends": "../extended/bravo.tsconfig.json", + "files": [ + "b.ts" + ] +} //// [/user/username/projects/myproject/b/b.ts] let b = 1; @@ -112,7 +124,11 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/b/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/extended/alpha.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} PolledWatches:: @@ -212,7 +228,12 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/b/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/extended/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"strict":false}} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "strict": false + } +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/b/tsconfig.json @@ -272,7 +293,9 @@ Before running Timeout callback:: count: 2 6: /user/username/projects/myproject/b/tsconfig.json 7: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"extends":"../extended/alpha.tsconfig.json"} +{ + "extends": "../extended/alpha.tsconfig.json" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/b/tsconfig.json diff --git a/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js b/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js index 6568c5b807a..fa36e7d4b6e 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js +++ b/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/jsconfig.json 2000 undefined Project: /a/jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/jsconfig.json", - "reason": "Creating possible configured project for /a/app.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/jsconfig.json", + "reason": "Creating possible configured project for /a/app.js to open" + } } Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { "rootNames": [ @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { Info seq [hh:mm:ss:mss] Non TS file size exceeded limit (20971533). Largest files: /a/largefile.js:20971521, /a/app.js:12 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/a/jsconfig.json", - "languageServiceEnabled": false - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/a/jsconfig.json", + "languageServiceEnabled": false + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/largefile.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json @@ -74,128 +74,128 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/jsconfig.json" + } } Info seq [hh:mm:ss:mss] Skipped loading contents of large file /a/largefile.js for info /a/largefile.js: fileSize: 20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/a/largefile.js", - "fileSize": 20971521, - "maxFileSize": 4194304 - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", - "fileStats": { - "js": 2, - "jsSize": 12, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": false, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/a/largefile.js", + "fileSize": 20971521, + "maxFileSize": 4194304 } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/app.js", - "configFile": "/a/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", + "fileStats": { + "js": 2, + "jsSize": 12, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": false, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/app.js", + "configFile": "/a/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js b/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js index 8a6e3d3c7de..9b0181dca98 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js @@ -16,7 +16,15 @@ import {foo} from "../foo/lib"; foo(); //// [/user/username/projects/myproject/foo/tsconfig.json] -{"include":["index.ts"],"compilerOptions":{"declaration":true,"outDir":"lib"}} +{ + "include": [ + "index.ts" + ], + "compilerOptions": { + "declaration": true, + "outDir": "lib" + } +} //// [/user/username/projects/myproject/foo/index.ts] export function foo() {} diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js index 224160ea1c3..bfb9842afa1 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js @@ -2,7 +2,17 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/bar/tsconfig.json] -{"include":["index.ts"],"compilerOptions":{"lib":["dom","es2017"]}} +{ + "include": [ + "index.ts" + ], + "compilerOptions": { + "lib": [ + "dom", + "es2017" + ] + } +} //// [/user/username/projects/myproject/bar/index.ts] @@ -11,7 +21,16 @@ export function bar() { } //// [/user/username/projects/myproject/foo/tsconfig.json] -{"include":["index.ts"],"compilerOptions":{"lib":["es2017"]}} +{ + "include": [ + "index.ts" + ], + "compilerOptions": { + "lib": [ + "es2017" + ] + } +} //// [/user/username/projects/myproject/foo/index.ts] @@ -54,13 +73,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/foo/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/foo/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/foo/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/foo/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/foo/tsconfig.json : { "rootNames": [ @@ -106,68 +125,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/foo/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "36730603d9c37d63f14b455060fadde05a7a93dcbc44aecd507b60e066616be6", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 90, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "lib": [ - "es2017" - ] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/foo/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/foo/index.ts", - "configFile": "/user/username/projects/myproject/foo/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "36730603d9c37d63f14b455060fadde05a7a93dcbc44aecd507b60e066616be6", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 90, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "lib": [ + "es2017" + ] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/foo/index.ts", + "configFile": "/user/username/projects/myproject/foo/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/foo/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -224,13 +243,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/bar/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/bar/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/bar/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/bar/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/bar/tsconfig.json : { "rootNames": [ @@ -276,69 +295,69 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/bar/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5370ca7ca3faf398ecd694700ec7a0793b5e111125c5b8f56f69d3de23ff19ae", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 56, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 391, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "lib": [ - "dom", - "es2017" - ] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/bar/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/bar/index.ts", - "configFile": "/user/username/projects/myproject/bar/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5370ca7ca3faf398ecd694700ec7a0793b5e111125c5b8f56f69d3de23ff19ae", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 56, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 391, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "lib": [ + "dom", + "es2017" + ] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/bar/index.ts", + "configFile": "/user/username/projects/myproject/bar/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/foo/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -419,13 +438,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/bar/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/bar/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -434,13 +453,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/bar/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/bar/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -450,13 +469,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/bar/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/bar/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -465,13 +484,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/foo/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/foo/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -480,13 +499,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/foo/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/foo/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -496,21 +515,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/foo/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/foo/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js b/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js index fae729d20ec..02fd225d5f2 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js @@ -7,7 +7,19 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC","sourcesContent":["export function fnA() {}\nexport interface IfaceA {}\nexport const instanceA: IfaceA = {};"]} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC", + "sourcesContent": [ + "export function fnA() {}\nexport interface IfaceA {}\nexport const instanceA: IfaceA = {};" + ] +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,7 +32,16 @@ export declare const instanceA: IfaceA; export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js index 9eb57a3df0c..db34a59e90a 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js index a416a46653b..a6363cee50d 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js index 75b7c1a795f..54128c63146 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js index 931cb5c474d..664925425f0 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js @@ -5,20 +5,41 @@ Before request function f() {} //// [/a/tsconfig.json] -{"compilerOptions":{"declaration":true,"declarationMap":true,"outFile":"../bin/a.js"}} +{ + "compilerOptions": { + "declaration": true, + "declarationMap": true, + "outFile": "../bin/a.js" + } +} //// [/b/b.ts] f(); //// [/b/tsconfig.json] -{"references":[{"path":"../a"}]} +{ + "references": [ + { + "path": "../a" + } + ] +} //// [/bin/a.d.ts] declare function f(): void; //# sourceMappingURL=a.d.ts.map //// [/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a/a.ts"],"names":[],"mappings":"AAAA,iBAAS,CAAC,SAAK"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a/a.ts" + ], + "names": [], + "mappings": "AAAA,iBAAS,CAAC,SAAK" +} Info seq [hh:mm:ss:mss] request: @@ -85,20 +106,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a/a.ts\"],\"names\":[],\"mappings\":\"AAAA,iBAAS,CAAC,SAAK\"}" - }, - { - "name": "/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "declare function f(): void;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a/a.ts\"],\"names\":[],\"mappings\":\"AAAA,iBAAS,CAAC,SAAK\"}" + }, + { + "name": "/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "declare function f(): void;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js index 9bc84bea78f..d3f083ce32f 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js index 4eea97387b0..de4f07e1114 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -38,7 +70,19 @@ import * as b from "../b/b"; export function fnUser() { a.fnA(); b.fnB(); a.instanceA; } //// [/user/tsconfig.json] -{"file":["user.ts"],"references":[{"path":"../a"},{"path":"../b"}]} +{ + "file": [ + "user.ts" + ], + "references": [ + { + "path": "../a" + }, + { + "path": "../b" + } + ] +} //// [/dummy/dummy.ts] let a = 10; @@ -111,20 +155,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -257,20 +301,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js index 7134dce0bfa..7c644e3d644 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js index e361f6d6cdc..711108dcbbd 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js @@ -5,13 +5,33 @@ Before request //// [/a/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationMap":true,"outDir":"./build"}} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outDir": "./build" + } +} //// [/b/src/b.ts] //// [/b/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"./build"},"include":["./src"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./build" + }, + "include": [ + "./src" + ], + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js index 834abdacb39..8890dda3383 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js index 34ded2f980c..7f4cb47a259 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js index b2b81c51370..a659e955458 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js index dfd76af3317..bbc8d7528fb 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js index 56fc3f72ff1..3e66b3ef25a 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js b/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js index d2ed909955d..421274e2c1b 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js index 4891b4636a8..73fae8bf763 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -38,7 +70,19 @@ import * as b from "../b/b"; export function fnUser() { a.fnA(); b.fnB(); a.instanceA; } //// [/user/tsconfig.json] -{"file":["user.ts"],"references":[{"path":"../a"},{"path":"../b"}]} +{ + "file": [ + "user.ts" + ], + "references": [ + { + "path": "../a" + }, + { + "path": "../b" + } + ] +} //// [/dummy/dummy.ts] let a = 10; @@ -111,20 +155,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -257,20 +301,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js index 604d31e4b2d..9b994526e03 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -38,7 +70,19 @@ import * as b from "../b/b"; export function fnUser() { a.fnA(); b.fnB(); a.instanceA; } //// [/user/tsconfig.json] -{"file":["user.ts"],"references":[{"path":"../a"},{"path":"../b"}]} +{ + "file": [ + "user.ts" + ], + "references": [ + { + "path": "../a" + }, + { + "path": "../b" + } + ] +} //// [/dummy/dummy.ts] let a = 10; @@ -111,20 +155,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -257,20 +301,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js index 2ed9018f152..5616c7ab83e 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js index 60ddac7a7cf..3b2d34db8fb 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js index 72089e1e0ec..0b9731cbebe 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js index 4dbdee5335c..e44e26976c9 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js index 9be7576e028..eb659795892 100644 --- a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js +++ b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["index.ts"]} +{ + "files": [ + "index.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject diff --git a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js index 41814d3b60e..d1fe2db2046 100644 --- a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js +++ b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["index.ts"]} +{ + "files": [ + "index.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject diff --git a/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js b/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js index 05b8867db76..36498dc404b 100644 --- a/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js +++ b/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js @@ -5,13 +5,19 @@ Before request export const foo: number; //// [/a/node_modules/foo/package.json] -{"name":"foo","version":"1.2.3"} +{ + "name": "foo", + "version": "1.2.3" +} //// [/b/node_modules/foo/index.d.ts] export const foo: number; //// [/b/node_modules/foo/package.json] -{"name":"foo","version":"1.2.3"} +{ + "name": "foo", + "version": "1.2.3" +} //// [/a/user.ts] import("foo"); diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js index 3ce6f27f964..76218067112 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js @@ -64,10 +64,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -79,21 +79,63 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet:/Users/UserName 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet:/Users/UserName 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -101,7 +143,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -179,16 +239,58 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/a/lib/lib.d.ts","^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#2.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/a/lib/lib.d.ts", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#2.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer @@ -196,7 +298,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js index 6514e327c5b..1447ec6cc55 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js @@ -71,10 +71,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -86,21 +86,63 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js"],"compilerOptions":{"module":1,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js" + ], + "compilerOptions": { + "module": 1, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -108,7 +150,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"module":1,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "module": 1, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js index 336b68d13ce..76a2a7b4a6b 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js @@ -45,14 +45,14 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Skipped loading contents of large file /user/username/projects/myproject/src/large.js for info /user/username/projects/myproject/src/large.js: fileSize: 4194305 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/user/username/projects/myproject/src/large.js", - "fileSize": 4194305, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/user/username/projects/myproject/src/large.js", + "fileSize": 4194305, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js index ccafa5e8998..da811e9eaef 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js @@ -18,7 +18,16 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file.ts","src/large.js"],"compilerOptions":{"target":1,"allowJs":true}} +{ + "files": [ + "src/file.ts", + "src/large.js" + ], + "compilerOptions": { + "target": 1, + "allowJs": true + } +} //// [/user/username/projects/myproject/src/large.js] export var x = 10; @@ -39,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -62,14 +71,14 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] Skipped loading contents of large file /user/username/projects/myproject/src/large.js for info /user/username/projects/myproject/src/large.js: fileSize: 4194305 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/user/username/projects/myproject/src/large.js", - "fileSize": 4194305, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/user/username/projects/myproject/src/large.js", + "fileSize": 4194305, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -94,86 +103,86 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 1, - "jsSize": 4194305, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/file.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot write file '/user/username/projects/myproject/src/large.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 69 - }, - "end": { - "line": 1, - "offset": 70 - }, - "text": "Compiler option 'target' requires a value of type string.", - "code": 5024, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 1, + "jsSize": 4194305, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/file.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/user/username/projects/myproject/src/large.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "start": { + "line": 7, + "offset": 15 + }, + "end": { + "line": 7, + "offset": 16 + }, + "text": "Compiler option 'target' requires a value of type string.", + "code": 5024, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js index 0531e7a83bc..7fb43a2d3a6 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js @@ -18,7 +18,16 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file.ts","src/large.ts"],"compilerOptions":{"target":1,"allowJs":true}} +{ + "files": [ + "src/file.ts", + "src/large.ts" + ], + "compilerOptions": { + "target": 1, + "allowJs": true + } +} //// [/user/username/projects/myproject/src/large.ts] export var x = 10; @@ -39,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -82,81 +91,81 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 36, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/file.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 69 - }, - "end": { - "line": 1, - "offset": 70 - }, - "text": "Compiler option 'target' requires a value of type string.", - "code": 5024, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 36, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/file.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 7, + "offset": 15 + }, + "end": { + "line": 7, + "offset": 16 + }, + "text": "Compiler option 'target' requires a value of type string.", + "code": 5024, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) diff --git a/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js b/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js index aa18a8cffd6..ca291adea75 100644 --- a/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js +++ b/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/jsconfig.json 2000 undefined Project: /a/jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/jsconfig.json", - "reason": "Creating possible configured project for /a/app.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/jsconfig.json", + "reason": "Creating possible configured project for /a/app.js to open" + } } Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { "rootNames": [ @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { Info seq [hh:mm:ss:mss] Non TS file size exceeded limit (20971531). Largest files: /a/largefile.js:20971521, /a/app.js:10 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/a/jsconfig.json", - "languageServiceEnabled": false - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/a/jsconfig.json", + "languageServiceEnabled": false + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/largefile.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json @@ -74,128 +74,128 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/jsconfig.json" + } } Info seq [hh:mm:ss:mss] Skipped loading contents of large file /a/largefile.js for info /a/largefile.js: fileSize: 20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/a/largefile.js", - "fileSize": 20971521, - "maxFileSize": 4194304 - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", - "fileStats": { - "js": 2, - "jsSize": 10, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": false, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/a/largefile.js", + "fileSize": 20971521, + "maxFileSize": 4194304 } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/app.js", - "configFile": "/a/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", + "fileStats": { + "js": 2, + "jsSize": 10, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": false, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/app.js", + "configFile": "/a/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -229,20 +229,24 @@ Before running Timeout callback:: count: 2 1: /a/jsconfig.json 2: *ensureProjectForOpenFiles* //// [/a/jsconfig.json] -{"exclude":["largefile.js"]} +{ + "exclude": [ + "largefile.js" + ] +} Info seq [hh:mm:ss:mss] Running: /a/jsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /a/jsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/jsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/jsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { "rootNames": [ @@ -259,13 +263,13 @@ Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/a/jsconfig.json", - "languageServiceEnabled": true - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/a/jsconfig.json", + "languageServiceEnabled": true + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -296,10 +300,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -331,7 +335,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -351,91 +355,146 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/jsconfig.json" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/jsconfig.json", - "configFile": "/a/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/jsconfig.json", + "configFile": "/a/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } After running Timeout callback:: count: 2 7: /a/jsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js index b8c1bb2dd12..53fd652e24f 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js @@ -24,7 +24,9 @@ export class A { } export class B {} //// [/user/username/projects/b/tsconfig.json] -{"extends":"../a/tsconfig.json"} +{ + "extends": "../a/tsconfig.json" +} Info seq [hh:mm:ss:mss] request: @@ -42,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -82,64 +84,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -185,13 +187,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -206,23 +208,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/tsconfig.json", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/tsconfig.json", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -244,14 +246,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/b/b.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/b/b.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/b/b.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js index 91edd0f3fbb..2be34fd3332 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js @@ -24,7 +24,9 @@ export class A { } export class B {} //// [/user/username/projects/b/tsconfig.json] -{"extends":"../a/tsconfig.json"} +{ + "extends": "../a/tsconfig.json" +} Info seq [hh:mm:ss:mss] request: @@ -42,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -82,61 +84,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -182,13 +184,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -203,23 +205,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -240,13 +242,13 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/b/b.ts ProjectRootPa Info seq [hh:mm:ss:mss] Projects: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/b/b.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/b/b.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js index f9108f1beca..398326cc949 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/a.ts", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/a.ts", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -176,13 +176,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -197,23 +197,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/tsconfig.json", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/tsconfig.json", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -235,14 +235,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/a/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/a/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/a/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js index 11ce13c7117..1ece0cc55b4 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -75,61 +75,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -173,13 +173,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -194,23 +194,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/a/a.ts ProjectRootPa Info seq [hh:mm:ss:mss] Projects: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/a/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/a/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js index 435f85db5df..de9c7e91043 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -135,75 +135,75 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/tsconfig.json", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/tsconfig.json", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js index 52e2b512503..c9bab6ba6d6 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -135,72 +135,72 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js index 8b1a90801f6..68f67ccae4d 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -70,13 +70,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -110,53 +110,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js index 9b33c195637..c55c44ee759 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -70,13 +70,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -110,50 +110,50 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js index c6b96c3eaf2..a82831f8d62 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -134,64 +134,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/tsconfig.json", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/tsconfig.json", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js index 673b7c6b66f..0e256d336eb 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -134,61 +134,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js index d89ef6e45e4..a097237c3a0 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js @@ -27,13 +27,31 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"compilerOptions":{"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -51,13 +69,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -113,81 +131,81 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 34, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 393, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "disableSourceOfProjectReferenceRedirect": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 83 - }, - "end": { - "line": 1, - "offset": 98 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 34, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 393, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 8, + "offset": 6 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -245,13 +263,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -273,53 +291,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js index 839a85f06e5..e62bb861e89 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js @@ -27,13 +27,31 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"compilerOptions":{"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -51,13 +69,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -113,78 +131,78 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 34, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 393, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "disableSourceOfProjectReferenceRedirect": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 34, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 393, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 83 - }, - "end": { - "line": 1, - "offset": 98 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 8, + "offset": 6 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -242,13 +260,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -270,50 +288,50 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js index c9cc12cc0cb..26b2a351a53 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js @@ -27,13 +27,28 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"references":[{"path":"../a"}]} +{ + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -51,13 +66,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -111,79 +126,79 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 52, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 16 - }, - "end": { - "line": 1, - "offset": 31 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 52, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 5, + "offset": 6 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -239,13 +254,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -267,53 +282,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js index 8ef0cadaa36..334e8553285 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js @@ -27,13 +27,28 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"references":[{"path":"../a"}]} +{ + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -51,13 +66,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -111,76 +126,76 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 52, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 52, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 16 - }, - "end": { - "line": 1, - "offset": 31 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 5, + "offset": 6 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -236,13 +251,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -264,50 +279,50 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js index 9ab4e3b74f4..8e43f7e8030 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -81,64 +81,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/a.ts", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/a.ts", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -186,13 +186,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -224,64 +224,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js index fbe7495845c..d5ab32a69fa 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -81,61 +81,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -183,13 +183,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -221,61 +221,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js index 8afe1c371d5..0ad1abd36c5 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -39,13 +43,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/project/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/project/tsconfig.json : { "rootNames": [ @@ -82,63 +86,63 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/a/b/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/a/b/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/a/b/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/a/b/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -209,14 +213,14 @@ Info seq [hh:mm:ss:mss] FileName: /a/b/project/file1.ts ProjectRootPath: undef Info seq [hh:mm:ss:mss] Projects: /a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js index 3d16e746f33..bcad76efdca 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -39,13 +43,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/rootfolde Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : { "rootNames": [ @@ -90,63 +94,63 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -225,14 +229,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/rootfolder/otherfolder/a/b/pr Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -338,14 +342,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/rootfolder/otherfolder/a/b/pr Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index f69f6e5f34b..586c41b1452 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +27,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -64,109 +68,109 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "isolatedModules": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "isolatedModules": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -357,14 +361,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index f414205576b..c486567bda7 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -5,7 +5,12 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/users/username/projects/project/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/users/username/projects/project/out.js" + } +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +28,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +68,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "system", - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "system", + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -351,14 +356,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js index 94dc88ba9eb..2299250b61b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -359,14 +359,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js index 31af295f6f2..a2693d09d19 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -371,14 +371,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js index 6e7f0cf2e4b..fb47de41a3c 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -368,14 +368,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -450,14 +450,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -534,14 +534,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -642,13 +642,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js index fd9a9cc9485..e3614810eba 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -354,14 +354,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -440,13 +440,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js index 9159d38603b..777881bfffd 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1Consumer1.ts"]} +{ + "files": [ + "/users/username/projects/project/file1Consumer1.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +27,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -61,107 +65,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -314,14 +318,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -387,13 +391,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js index 18187c9dba5..fe052a21fe4 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,107 +62,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/referenceFile1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/referenceFile1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -294,14 +294,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/referenceFi Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -398,14 +398,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/referenceFi Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js index 36682293668..3278a782a29 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,107 +62,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/referenceFile1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/referenceFile1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -286,14 +286,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/referenceFi Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js index 56752a32f74..24651e50aad 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -354,14 +354,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js index 289d85e5597..a4e54114193 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -388,14 +388,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -477,14 +477,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -554,13 +554,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js index 9cdc3f98281..5a971a7f443 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,107 +62,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 96, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 96, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -292,14 +292,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1.ts Pr Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js index 9832c076a8f..ddf2157446a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,78 +80,78 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "out": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ], - "triggerFile": "/users/username/projects/project/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 10 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ], + "triggerFile": "/users/username/projects/project/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -227,14 +231,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -296,13 +300,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js index 952c297f69d..974c0b9c452 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,63 +80,63 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/users/username/projects/project/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/users/username/projects/project/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -212,14 +216,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -281,13 +285,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js index c78df5800a9..c0363bae759 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,61 +75,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/users/username/projects/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/users/username/projects/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -209,14 +209,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1.ts Pr Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -290,14 +290,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1.ts Pr Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js index 2e40bd101a4..1603b8b8fcf 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js @@ -5,7 +5,9 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +38,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,61 +77,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/users/username/projects/project/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/users/username/projects/project/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -209,14 +211,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -278,13 +280,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index 327786d1504..f979091429e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -39,13 +43,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/project/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/project/tsconfig.json : { "rootNames": [ @@ -82,66 +86,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/project/file1.ts", - "configFile": "/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/project/file1.ts", + "configFile": "/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -213,14 +217,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 301c2660ac1..ae5d2f153ae 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -39,13 +43,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/rootfolde Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : { "rootNames": [ @@ -90,66 +94,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", - "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", + "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -229,14 +233,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -343,14 +347,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index f3c200bca9a..e852f4d540d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +27,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -64,112 +68,112 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "isolatedModules": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "isolatedModules": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -361,14 +365,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index 77d34c102a1..55e2fa184f4 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -5,7 +5,12 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/users/username/projects/project/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/users/username/projects/project/out.js" + } +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +28,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,113 +68,113 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "system", - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "system", + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -355,14 +360,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js index 4be9d152677..229917d999b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -363,14 +363,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js index b06c826b784..eea2fbd8b23 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -375,14 +375,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js index 13aa08ea191..4f72020aad2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -372,14 +372,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -455,14 +455,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -540,14 +540,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -649,13 +649,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js index 73fbadac755..a573d386bd4 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -445,13 +445,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index 26f1e235e10..43db29ff3e8 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1Consumer1.ts"]} +{ + "files": [ + "/users/username/projects/project/file1Consumer1.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +27,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -61,110 +65,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -318,14 +322,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -392,13 +396,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js index 19ac3bac596..399712e483b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -298,14 +298,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -403,14 +403,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js index 783e25bcbd8..d0a3c526192 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -290,14 +290,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js index bacd04d0304..4528bdf51ea 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js index 3a515415021..b28a28381bb 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -392,14 +392,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -482,14 +482,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -560,13 +560,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js index f2bcb5b0599..1d6e8b9cc1d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 96, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 96, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -296,14 +296,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js index 9d2ddd5242f..c69c7ae0554 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,81 +80,81 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "out": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 10 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -231,14 +235,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -301,13 +305,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index bdc44c541e0..cba03fffba5 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,66 +80,66 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -216,14 +220,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -286,13 +290,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js index f8b844095bd..c728f4f7d86 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -295,14 +295,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index 1b4f4cfba5b..aa9d66bd91d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -5,7 +5,9 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +38,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +77,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +215,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -283,13 +285,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index f2224dd7f67..891d768daee 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -39,13 +43,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/project/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/project/tsconfig.json : { "rootNames": [ @@ -82,66 +86,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/project/file1.ts", - "configFile": "/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/project/file1.ts", + "configFile": "/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -213,14 +217,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -233,13 +237,13 @@ export class a { } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/project/file1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/project/file1.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 8c19811479c..5d3b8f2fe3a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -39,13 +43,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/rootfolde Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : { "rootNames": [ @@ -90,66 +94,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", - "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", + "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -229,14 +233,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -316,13 +320,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 7: *ensureProjectForOpenFiles* @@ -376,14 +380,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 8: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index 1bd697fb8fc..dfd9e6568cf 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +27,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -64,112 +68,112 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "isolatedModules": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "isolatedModules": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -361,14 +365,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index eb46ff916b0..983b4c002a9 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -5,7 +5,12 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/users/username/projects/project/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/users/username/projects/project/out.js" + } +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +28,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,113 +68,113 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "system", - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "system", + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -355,14 +360,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js index 7f4a08a042f..e6b8d9a88a3 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -363,14 +363,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js index 68874543804..74cd3c42afc 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -375,14 +375,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js index 36153a153c4..f81ea95828b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -372,14 +372,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne @@ -438,13 +438,13 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -467,14 +467,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne @@ -554,14 +554,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 23: checkOne @@ -665,14 +665,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 26: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js index 2c51c8fe6c9..9388fc8f9cb 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne @@ -428,13 +428,13 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -457,14 +457,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index f58ea7da0ab..2cd45cfb9f1 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1Consumer1.ts"]} +{ + "files": [ + "/users/username/projects/project/file1Consumer1.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +27,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -61,110 +65,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -318,14 +322,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne @@ -375,13 +379,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -404,14 +408,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 12: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js index bb68f350ab7..514d7fb2519 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -298,14 +298,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -386,13 +386,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/referenceFile1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/referenceFile1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -415,14 +415,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 1 8: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js index b22cb7ee351..47d64fbd1a5 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -290,14 +290,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js index 9dc0eae186f..b3473b593d8 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js index df95ae13866..1347546008b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -392,14 +392,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne @@ -465,13 +465,13 @@ Info seq [hh:mm:ss:mss] Files (7) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -494,14 +494,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 23: checkOne @@ -574,14 +574,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 26: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js index 76f0c0f7e78..2fbbe48acf1 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 96, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 96, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -296,14 +296,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 7: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js index e8a337e00b6..9d86a713118 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,81 +80,81 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "out": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 10 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -231,14 +235,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -284,13 +288,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -313,14 +317,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index b439bd39ca5..4f303cc449a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,66 +80,66 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -216,14 +220,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -269,13 +273,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -298,14 +302,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js index 7746ca7bf70..5cd471e9568 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -278,13 +278,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -307,14 +307,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index 7f86560897e..b33aac91f66 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -5,7 +5,9 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -36,13 +38,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +77,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +215,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -266,13 +268,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -295,14 +297,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js index 4e9b6ceeb3f..1f483b65e66 100644 --- a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js +++ b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js @@ -337,18 +337,27 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } Info seq [hh:mm:ss:mss] Err:: Unrecognized JSON command: - {"command":"watchChange","arguments":{"id":1,"path":"/user/username/projects/myproject/b.ts","eventType":"update"},"seq":4,"type":"request"} + { + "command": "watchChange", + "arguments": { + "id": 1, + "path": "/user/username/projects/myproject/b.ts", + "eventType": "update" + }, + "seq": 4, + "type": "request" + } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "unknown", - "request_seq": 4, - "success": false, - "performanceData": { - "updateGraphDurationMs": * - }, - "message": "Unrecognized JSON command: watchChange" + "seq": 0, + "type": "response", + "command": "unknown", + "request_seq": 4, + "success": false, + "performanceData": { + "updateGraphDurationMs": * + }, + "message": "Unrecognized JSON command: watchChange" } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js index 34a10b3434b..5e78dff62f3 100644 --- a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js @@ -39,24 +39,24 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 1, - "path": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 1, + "path": "/user/username/projects/myproject/tsconfig.json" + } } Custom watchFile: 1: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -70,67 +70,67 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createDirectoryWatcher", - "body": { - "id": 2, - "path": "/user/username/projects/myproject", - "recursive": true - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createDirectoryWatcher", + "body": { + "id": 2, + "path": "/user/username/projects/myproject", + "recursive": true + } } Custom watchDirectory: 2: /user/username/projects/myproject true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 3, - "path": "/user/username/projects/myproject/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 3, + "path": "/user/username/projects/myproject/b.ts" + } } Custom watchFile: 3: /user/username/projects/myproject/b.ts Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 4, - "path": "/a/lib/lib.d.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 4, + "path": "/a/lib/lib.d.ts" + } } Custom watchFile: 4: /a/lib/lib.d.ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createDirectoryWatcher", - "body": { - "id": 5, - "path": "/user/username/projects/myproject/node_modules/@types", - "recursive": true - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createDirectoryWatcher", + "body": { + "id": 5, + "path": "/user/username/projects/myproject/node_modules/@types", + "recursive": true + } } Custom watchDirectory: 5: /user/username/projects/myproject/node_modules/@types true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createDirectoryWatcher", - "body": { - "id": 6, - "path": "/user/username/projects/node_modules/@types", - "recursive": true - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createDirectoryWatcher", + "body": { + "id": 6, + "path": "/user/username/projects/node_modules/@types", + "recursive": true + } } Custom watchDirectory: 6: /user/username/projects/node_modules/@types true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -152,61 +152,61 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 124, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 124, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/myproject/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/myproject/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -229,7 +229,7 @@ Custom WatchedFiles:: /user/username/projects/myproject/tsconfig.json: *new* {"id":1,"path":"/user/username/projects/myproject/tsconfig.json"} -Custom WatchedDirectories:Recursive:: +Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: *new* {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: *new* @@ -277,13 +277,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.jso Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 7, - "path": "/user/username/projects/myproject/c.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 7, + "path": "/user/username/projects/myproject/c.ts" + } } Custom watchFile: 7: /user/username/projects/myproject/c.ts Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json @@ -325,14 +325,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/a.ts Proje Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -346,7 +346,7 @@ Custom WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"id":1,"path":"/user/username/projects/myproject/tsconfig.json"} -Custom WatchedDirectories:Recursive:: +Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: @@ -420,14 +420,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/a.ts Proje Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -445,12 +445,12 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::closeFileWatcher", - "body": { - "id": 3 - } + "seq": 0, + "type": "event", + "event": "CustomHandler::closeFileWatcher", + "body": { + "id": 3 + } } Custom watchFile:: Close:: 3: /user/username/projects/myproject/b.ts Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject @@ -482,7 +482,7 @@ Custom WatchedFiles *deleted*:: /user/username/projects/myproject/b.ts: {"id":3,"path":"/user/username/projects/myproject/b.ts"} -Custom WatchedDirectories:Recursive:: +Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: @@ -504,13 +504,13 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 8, - "path": "/user/username/projects/myproject/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 8, + "path": "/user/username/projects/myproject/b.ts" + } } Custom watchFile: 8: /user/username/projects/myproject/b.ts Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -536,7 +536,7 @@ Custom WatchedFiles:: /user/username/projects/myproject/tsconfig.json: {"id":1,"path":"/user/username/projects/myproject/tsconfig.json"} -Custom WatchedDirectories:Recursive:: +Custom WatchedDirectoriesRecursive:: /user/username/projects/myproject: {"id":2,"path":"/user/username/projects/myproject","recursive":true} /user/username/projects/myproject/node_modules/@types: diff --git a/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js b/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js index 524f6f6de1c..66ec75f4c51 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js +++ b/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js b/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js index e3aa1dd0da8..bdae53e2e59 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js +++ b/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js b/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js index 689d23545ff..d6c0884e54a 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js +++ b/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js index e5dc1356cac..25447dbf5b7 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /classes.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /classes.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -74,110 +74,110 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 302, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/classes.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 302, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/classes.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -223,14 +223,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js index 08105e4ddf3..d55572b09c7 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js index f0b69645b24..c1092034d93 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js index 519b0f4f465..6222b5fbe67 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js index 4407f52471d..30cc10b6def 100644 --- a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js +++ b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js @@ -5,7 +5,9 @@ Before request let x = 1 //// [/a/b/tsconfig.json] -{"include":[]} +{ + "include": [] +} Info seq [hh:mm:ss:mss] request: @@ -21,11 +23,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js index bcc8e981793..748194922ba 100644 --- a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js +++ b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js @@ -5,7 +5,9 @@ Before request let x = 1 //// [/a/b/tsconfig.json] -{"include":[]} +{ + "include": [] +} Info seq [hh:mm:ss:mss] request: @@ -21,11 +23,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js b/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js index 935d54f0070..7e9b0cd6d12 100644 --- a/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js +++ b/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js @@ -11,7 +11,17 @@ declare class Promise {} var x: Promise; //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5" + ] + } +} Info seq [hh:mm:ss:mss] Search path: /src @@ -65,7 +75,18 @@ Before running Timeout callback:: count: 2 1: /src/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5","es2015.promise"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5", + "es2015.promise" + ] + } +} FsWatches:: diff --git a/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js b/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js index 7cd9088f6de..39ac1ad2c03 100644 --- a/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js +++ b/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js @@ -11,10 +11,20 @@ let y =1; let z =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} //// [/a/c/tsconfig.json] -{"compilerOptions":{},"files":["f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f2.ts" + ] +} Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json diff --git a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js index 09fc1a03f41..003f32950bf 100644 --- a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js +++ b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js @@ -21,7 +21,9 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js index 6fe178cc8b0..b1964eefba3 100644 --- a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js +++ b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js @@ -5,7 +5,9 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js b/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js index 21751cae086..9b2714f24e1 100644 --- a/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js +++ b/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js @@ -5,7 +5,13 @@ Creating project service let x = 1; //// [/a/tsconfig.json] -{"compilerOptions":{},"include":["src/**/*","notexistingfolder/*"]} +{ + "compilerOptions": {}, + "include": [ + "src/**/*", + "notexistingfolder/*" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/src diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js index c641df57ecd..708ff679cd2 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js @@ -8,7 +8,11 @@ export class logger { } import { logger } from "./Logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// @@ -40,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/another.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/another.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -86,66 +90,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 71, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "forceConsistentCasingInFileNames": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/another.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 71, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "forceConsistentCasingInFileNames": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/another.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -203,13 +207,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -218,13 +222,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -234,22 +238,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -322,13 +326,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -337,27 +341,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 24 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "File name '/user/username/projects/myproject/logger.ts' differs from already included file name '/user/username/projects/myproject/Logger.ts' only in casing.\n The file is in the program because:\n Matched by default include pattern '**/*'\n Imported via \"./logger\" from file '/user/username/projects/myproject/another.ts'", - "code": 1149, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 24 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "File name '/user/username/projects/myproject/logger.ts' differs from already included file name '/user/username/projects/myproject/Logger.ts' only in casing.\n The file is in the program because:\n Matched by default include pattern '**/*'\n Imported via \"./logger\" from file '/user/username/projects/myproject/another.ts'", + "code": 1149, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -367,21 +371,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js index 048a5cb72df..a2137719f93 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js @@ -24,10 +24,25 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/Users/username/dev/project/tsconfig.json] -{"extends":"./tsconfig.all.json"} +{ + "extends": "./tsconfig.all.json" +} //// [/Users/username/dev/project/tsconfig.all.json] -{"compilerOptions":{"baseUrl":".","paths":{"file2":["./file2.js"]},"typeRoots":["./types"],"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "file2": [ + "./file2.js" + ] + }, + "typeRoots": [ + "./types" + ], + "forceConsistentCasingInFileNames": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js index 97ed2d423d0..1927502b526 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js @@ -8,7 +8,11 @@ export class logger { } import { logger } from "./Logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// @@ -40,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/Logger.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/Logger.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -86,66 +90,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 71, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "forceConsistentCasingInFileNames": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/Logger.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 71, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "forceConsistentCasingInFileNames": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/Logger.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -203,13 +207,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/Logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/Logger.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -218,13 +222,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/Logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/Logger.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -234,22 +238,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/Logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/Logger.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -481,13 +485,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/logger.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -496,13 +500,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/logger.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -512,13 +516,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/logger.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -527,13 +531,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -542,13 +546,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -558,21 +562,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js index 723e229d520..805d1e6ca43 100644 --- a/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js @@ -82,14 +82,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Format host information updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -98,28 +98,28 @@ Info seq [hh:mm:ss:mss] response: After request FormatCodeOptions should be global:: /a/b/app.ts:: { - "indentSize": 4, - "tabSize": 4, - "newLineCharacter": "\n", - "convertTabsToSpaces": true, - "indentStyle": 2, - "insertSpaceAfterConstructor": false, - "insertSpaceAfterCommaDelimiter": true, - "insertSpaceAfterSemicolonInForStatements": true, - "insertSpaceBeforeAndAfterBinaryOperators": true, - "insertSpaceAfterKeywordsInControlFlowStatements": true, - "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, - "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, - "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, - "insertSpaceBeforeFunctionParenthesis": false, - "placeOpenBraceOnNewLineForFunctions": false, - "placeOpenBraceOnNewLineForControlBlocks": true, - "semicolons": "ignore", - "trimTrailingWhitespace": true, - "indentSwitchCase": true + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": true, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true } Before request @@ -159,14 +159,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /a/b/app.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -175,28 +175,28 @@ Info seq [hh:mm:ss:mss] response: After request FormatCodeOptions should be per file:: /a/b/app.ts:: { - "indentSize": 4, - "tabSize": 4, - "newLineCharacter": "\n", - "convertTabsToSpaces": true, - "indentStyle": 2, - "insertSpaceAfterConstructor": false, - "insertSpaceAfterCommaDelimiter": false, - "insertSpaceAfterSemicolonInForStatements": true, - "insertSpaceBeforeAndAfterBinaryOperators": true, - "insertSpaceAfterKeywordsInControlFlowStatements": true, - "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, - "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, - "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, - "insertSpaceBeforeFunctionParenthesis": false, - "placeOpenBraceOnNewLineForFunctions": false, - "placeOpenBraceOnNewLineForControlBlocks": false, - "semicolons": "ignore", - "trimTrailingWhitespace": true, - "indentSwitchCase": true + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": false, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true } Before request @@ -235,14 +235,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Format host information updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -251,26 +251,26 @@ Info seq [hh:mm:ss:mss] response: After request FormatCodeOptions should be per file:: /a/b/app.ts:: { - "indentSize": 4, - "tabSize": 4, - "newLineCharacter": "\n", - "convertTabsToSpaces": true, - "indentStyle": 2, - "insertSpaceAfterConstructor": false, - "insertSpaceAfterCommaDelimiter": false, - "insertSpaceAfterSemicolonInForStatements": true, - "insertSpaceBeforeAndAfterBinaryOperators": true, - "insertSpaceAfterKeywordsInControlFlowStatements": true, - "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, - "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, - "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, - "insertSpaceBeforeFunctionParenthesis": false, - "placeOpenBraceOnNewLineForFunctions": false, - "placeOpenBraceOnNewLineForControlBlocks": false, - "semicolons": "ignore", - "trimTrailingWhitespace": true, - "indentSwitchCase": true + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": false, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js new file mode 100644 index 00000000000..25c5a662350 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js @@ -0,0 +1,432 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/project/node_modules/@company/common] symlink(/project/packages/common) +//// [/project/packages/app/lib/index.ts] +Tooltip + +//// [/project/packages/app/package.json] +{ + "name": "@company/app", + "version": "1.0.0", + "dependencies": { + "@company/common": "1.0.0" + } +} + +//// [/project/packages/app/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "module": "esnext", + "moduleResolution": "bundler", + "paths": { + "@/*": ["./*"] + } + } +} + +//// [/project/packages/common/lib/index.tsx] +export function Tooltip {}; + +//// [/project/packages/common/package.json] +{ + "name": "@company/common", + "version": "1.0.0", + "main": "./lib/index.tsx" +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/project/packages/common/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project/packages/common +Info seq [hh:mm:ss:mss] For info: /project/packages/common/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/packages/common/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/packages/common/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/packages/common/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/packages/common/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/packages/common/package.json SVC-1-0 "{\n \"name\": \"@company/common\",\n \"version\": \"1.0.0\",\n \"main\": \"./lib/index.tsx\"\n}" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/common/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/packages/common/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/project/packages/common/package.json: *new* + {"pollingInterval":250} + +watchedDirectoriesRecursive:: +/project/packages/common/node_modules: *new* + {} +/project/packages/common/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/packages/app/lib/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project/packages/app/lib +Info seq [hh:mm:ss:mss] For info: /project/packages/app/lib/index.ts :: Config file name: /project/packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /project/packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/app/tsconfig.json 2000 undefined Project: /project/packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/project/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /project/packages/app/lib/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /project/packages/app/tsconfig.json : { + "rootNames": [ + "/project/packages/app/lib/index.ts" + ], + "options": { + "composite": true, + "module": 99, + "moduleResolution": 100, + "paths": { + "@/*": [ + "./*" + ] + }, + "pathsBasePath": "/project/packages/app", + "configFilePath": "/project/packages/app/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/packages/app 1 undefined Config: /project/packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/packages/app 1 undefined Config: /project/packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /project/packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/packages/app/node_modules 1 undefined Project: /project/packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/packages/app/node_modules 1 undefined Project: /project/packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/packages/app/node_modules/@types 1 undefined Project: /project/packages/app/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/packages/app/node_modules/@types 1 undefined Project: /project/packages/app/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/project/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/packages/app/lib/index.ts SVC-1-0 "Tooltip" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + lib/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/app/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/packages/common/lib/index.tsx 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /project/packages/common/lib/index.tsx Text-1 "export function Tooltip {};" + + + ../common/lib/index.tsx + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/project/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/project/packages/app/lib/index.ts", + "configFile": "/project/packages/app/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Search path: /project/packages/app +Info seq [hh:mm:ss:mss] For info: /project/packages/app/tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/project/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/packages/common/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /project/packages/app/lib/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /project/packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/packages/app/package.json: *new* + {"pollingInterval":250} +/project/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/project/packages/common/lib/index.tsx: *new* + {"pollingInterval":500} +/project/packages/common/package.json: + {"pollingInterval":250} + +watchedDirectoriesRecursive:: +/project/packages/app: *new* + {} +/project/packages/app/node_modules: *new* + {} +/project/packages/app/node_modules/@types: *new* + {} +/project/packages/common/node_modules: + {} +/project/packages/common/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/project/packages/app/lib/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/project/packages/app/lib/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'Tooltip'.", + "start": 0, + "length": 7, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 8 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/project/packages/app/lib/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/project/packages/app/lib/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 8, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"@company/common\"", + "changes": [ + { + "fileName": "/project/packages/app/lib/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { Tooltip } from \"@company/common\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/packages/app/package.json: + {"pollingInterval":250} +/project/packages/app/tsconfig.json: + {"pollingInterval":2000} +/project/packages/common/lib/index.tsx: + {"pollingInterval":500} +/project/packages/common/package.json: + {"pollingInterval":250} + +watchedDirectoriesRecursive:: +/project/node_modules: *new* + {} +/project/packages/app: + {} +/project/packages/app/node_modules: + {} +/project/packages/app/node_modules/@types: + {} +/project/packages/common/node_modules: + {} +/project/packages/common/node_modules/@types: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_baseUrl_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_baseUrl_toDist.js new file mode 100644 index 00000000000..20541db885d --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_baseUrl_toDist.js @@ -0,0 +1,474 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/common/src/MyModule.ts] +export function square(n: number) { + return n * 2; +} + +//// [/common/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "composite": true + }, + "include": ["src"] +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/web/src/Helper.ts] +export function saveMe() { + square(2); +} + +//// [/web/src/MyApp.ts] +import { square } from "../../common/dist/src/MyModule"; + +//// [/web/tsconfig.json] +{ + "compilerOptions": { + "module": "esnext", + "moduleResolution": "node", + "noEmit": true, + "baseUrl": "." + }, + "include": ["src"], + "references": [{ "path": "../common" }] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/common/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /common +Info seq [hh:mm:ss:mss] For info: /common/tsconfig.json :: Config file name: /common/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /common/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /common/tsconfig.json 2000 undefined Project: /common/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/common/tsconfig.json", + "reason": "Creating possible configured project for /common/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /common/tsconfig.json : { + "rootNames": [ + "/common/src/MyModule.ts" + ], + "options": { + "module": 1, + "outDir": "/common/dist", + "composite": true, + "configFilePath": "/common/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /common/src 1 undefined Config: /common/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /common/src 1 undefined Config: /common/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /common/src/MyModule.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /common/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /common/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/common/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /common/src/MyModule.ts Text-1 "export function square(n: number) {\n return n * 2;\n}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + src/MyModule.ts + Matched by include pattern 'src' in 'tsconfig.json' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/common/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/common/tsconfig.json", + "configFile": "/common/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"outDir\": \"dist\",\n \"composite\": true\n },\n \"include\": [\"src\"]\n}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/common/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /common/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/common/src/MyModule.ts: *new* + {"pollingInterval":500} +/common/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/common/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /web/src +Info seq [hh:mm:ss:mss] For info: /web/src/Helper.ts :: Config file name: /web/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /web/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /web/tsconfig.json 2000 undefined Project: /web/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/web/tsconfig.json", + "reason": "Creating possible configured project for /web/src/Helper.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /web/tsconfig.json : { + "rootNames": [ + "/web/src/Helper.ts", + "/web/src/MyApp.ts" + ], + "options": { + "module": 99, + "moduleResolution": 2, + "noEmit": true, + "baseUrl": "/web", + "configFilePath": "/web/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/common", + "originalPath": "../common" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /web/src 1 undefined Config: /web/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /web/src 1 undefined Config: /web/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /web/src/MyApp.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /web/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /common/dist/src 1 undefined Project: /web/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /common/dist/src 1 undefined Project: /web/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /web/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/web/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /web/src/Helper.ts SVC-1-0 "export function saveMe() {\n square(2);\n}" + /common/src/MyModule.ts Text-1 "export function square(n: number) {\n return n * 2;\n}" + /web/src/MyApp.ts Text-1 "import { square } from \"../../common/dist/src/MyModule\";" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + src/Helper.ts + Matched by include pattern 'src' in 'tsconfig.json' + ../common/src/MyModule.ts + Imported via "../../common/dist/src/MyModule" from file 'src/MyApp.ts' + src/MyApp.ts + Matched by include pattern 'src' in 'tsconfig.json' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/web/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/web/src/Helper.ts", + "configFile": "/web/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/common/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/web/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /common/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /web/src/Helper.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /web/tsconfig.json +After Request +watchedFiles:: +/common/src/MyModule.ts: + {"pollingInterval":500} +/common/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/web/src/MyApp.ts: *new* + {"pollingInterval":500} +/web/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/common/dist/src: *new* + {} +/common/src: + {} +/web/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true, + "importModuleSpecifierPreference": "non-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'square'.", + "start": 29, + "length": 6, + "category": "error", + "code": 2304, + "startLocation": { + "line": 2, + "offset": 3 + }, + "endLocation": { + "line": 2, + "offset": 9 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "startLine": 2, + "startOffset": 3, + "endLine": 2, + "endOffset": 9, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"../../common/src/MyModule\"", + "changes": [ + { + "fileName": "/web/src/Helper.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { square } from \"../../common/src/MyModule\";\r\n\r\n" + } + ] + } + ] + }, + { + "fixName": "fixMissingFunctionDeclaration", + "description": "Add missing function declaration 'square'", + "changes": [ + { + "fileName": "/web/src/Helper.ts", + "textChanges": [ + { + "start": { + "line": 3, + "offset": 2 + }, + "end": { + "line": 3, + "offset": 2 + }, + "newText": "\r\n\r\nfunction square(arg0: number) {\r\n throw new Error(\"Function not implemented.\");\r\n}\r\n" + } + ] + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js new file mode 100644 index 00000000000..a94adfbe45b --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js @@ -0,0 +1,446 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/index.ts] +dep + +//// [/packages/app/tsconfig.json] +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "outDir": "../../dist/packages/app" }, + "references": [{ "path": "../dep" }] +} + +//// [/packages/app/utils.ts] +import "packages/dep"; + +//// [/packages/dep/index.ts] +import "./sub/folder"; + +//// [/packages/dep/sub/folder/index.ts] +export const dep = 0; + +//// [/packages/dep/tsconfig.json] +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "outDir": "../../dist/packages/dep" } +} + +//// [/tsconfig.base.json] +{ + "compilerOptions": { + "module": "commonjs", + "baseUrl": ".", + "paths": { + "packages/*": ["./packages/*"] + } + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.base.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.base.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"baseUrl\": \".\",\n \"paths\": {\n \"packages/*\": [\"./packages/*\"]\n }\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.base.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.base.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/app/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/app +Info seq [hh:mm:ss:mss] For info: /packages/app/index.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /packages/app/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/app/tsconfig.json : { + "rootNames": [ + "/packages/app/index.ts", + "/packages/app/utils.ts" + ], + "options": { + "module": 1, + "baseUrl": "/", + "paths": { + "packages/*": [ + "./packages/*" + ] + }, + "pathsBasePath": "/", + "outDir": "/dist/packages/app", + "configFilePath": "/packages/app/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/dep", + "originalPath": "../dep" + } + ] +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.base.json 2000 undefined Config: /packages/app/tsconfig.json WatchType: Extended config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/dep/tsconfig.json : { + "rootNames": [ + "/packages/dep/index.ts", + "/packages/dep/sub/folder/index.ts" + ], + "options": { + "module": 1, + "baseUrl": "/", + "paths": { + "packages/*": [ + "./packages/*" + ] + }, + "pathsBasePath": "/", + "outDir": "/dist/packages/dep", + "configFilePath": "/packages/dep/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/sub 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/sub 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (7) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/index.ts SVC-1-0 "dep" + /packages/dep/sub/folder/index.ts Text-1 "export const dep = 0;" + /packages/dep/index.ts Text-1 "import \"./sub/folder\";" + /packages/app/utils.ts Text-1 "import \"packages/dep\";" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + ../dep/sub/folder/index.ts + Imported via "./sub/folder" from file '../dep/index.ts' + ../dep/index.ts + Imported via "packages/dep" from file 'utils.ts' + utils.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/index.ts", + "configFile": "/packages/app/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 18 + }, + "end": { + "line": 4, + "offset": 38 + }, + "text": "Referenced project '/packages/dep' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (7) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.base.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/app/utils.ts: *new* + {"pollingInterval":500} +/packages/dep/index.ts: *new* + {"pollingInterval":500} +/packages/dep/sub/folder/index.ts: *new* + {"pollingInterval":500} +/packages/dep/tsconfig.json: *new* + {"pollingInterval":2000} +/tsconfig.base.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: *new* + {} +/packages/dep: *new* + {} +/packages/dep/sub: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/app/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/app/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep'.", + "start": 0, + "length": 3, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 4 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/app/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/app/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 4, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"packages/dep/sub/folder\"", + "changes": [ + { + "fileName": "/packages/app/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep } from \"packages/dep/sub/folder\";\r\n\r\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/app/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep } from \"packages/dep/sub/folder\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/app/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js new file mode 100644 index 00000000000..719ea33f1d7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js @@ -0,0 +1,817 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/package.json] +{ "name": "app", "dependencies": { "dep": "*" } } + +//// [/packages/app/src/a.ts] +import "dep"; + +//// [/packages/app/src/index.ts] +dep1; + +//// [/packages/app/src/utils.ts] +dep2; + +//// [/packages/app/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "baseUrl": ".", + "paths": { + "dep": ["../dep/src/main"], + "dep/*": ["../dep/src/*"] + } + } + "references": [{ "path": "../dep" }] +} + +//// [/packages/dep/package.json] +{ "name": "dep", "main": "dist/main.js", "types": "dist/main.d.ts" } + +//// [/packages/dep/src/main.ts] +import "./sub/folder"; +export const dep1 = 0; + +//// [/packages/dep/src/sub/folder/index.ts] +export const dep2 = 0; + +//// [/packages/dep/tsconfig.json] +{ + "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/packages/app/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/app +Info seq [hh:mm:ss:mss] For info: /packages/app/package.json :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/app/tsconfig.json : { + "rootNames": [ + "/packages/app/src/a.ts", + "/packages/app/src/index.ts", + "/packages/app/src/utils.ts" + ], + "options": { + "module": 1, + "outDir": "/packages/app/dist", + "rootDir": "/packages/app/src", + "baseUrl": "/packages/app", + "paths": { + "dep": [ + "../dep/src/main" + ], + "dep/*": [ + "../dep/src/*" + ] + }, + "pathsBasePath": "/packages/app", + "configFilePath": "/packages/app/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/dep", + "originalPath": "../dep" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/dep/tsconfig.json : { + "rootNames": [ + "/packages/dep/src/main.ts", + "/packages/dep/src/sub/folder/index.ts" + ], + "options": { + "outDir": "/packages/dep/dist", + "rootDir": "/packages/dep/src", + "module": 1, + "configFilePath": "/packages/dep/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/main.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + /packages/app/src/a.ts Text-1 "import \"dep\";" + /packages/app/src/index.ts Text-1 "dep1;" + /packages/app/src/utils.ts Text-1 "dep2;" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + ../dep/src/sub/folder/index.ts + Imported via "./sub/folder" from file '../dep/src/main.ts' + ../dep/src/main.ts + Imported via "dep" from file 'src/a.ts' + src/a.ts + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + src/utils.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/dep/tsconfig.json", + "reason": "Creating project referenced in solution /packages/app/tsconfig.json to find possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/sub/folder/index.ts + Imported via "./sub/folder" from file 'src/main.ts' + Matched by default include pattern '**/*' + src/main.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/dep/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/app/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 38 + }, + "text": "Referenced project '/packages/dep' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + }, + { + "start": { + "line": 12, + "offset": 3 + }, + "end": { + "line": 12, + "offset": 15 + }, + "text": "',' expected.", + "code": 1005, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/dep/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/app/package.json: *new* + {"pollingInterval":250} +/packages/app/src/a.ts: *new* + {"pollingInterval":500} +/packages/app/src/index.ts: *new* + {"pollingInterval":500} +/packages/app/src/utils.ts: *new* + {"pollingInterval":500} +/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/dep/src/main.ts: *new* + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: *new* + {"pollingInterval":500} +/packages/dep/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: *new* + {} +/packages/dep: *new* + {} +/packages/dep/src: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/index.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/src/a.ts: + {"pollingInterval":500} +/packages/app/src/utils.ts: + {"pollingInterval":500} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/main.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep1'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep\"", + "changes": [ + { + "fileName": "/packages/app/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep1 } from \"dep\";\r\n\r\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep1 } from \"dep\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/utils.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + /packages/app/src/a.ts Text-1 "import \"dep\";" + /packages/app/src/index.ts SVC-2-2 "dep1;" + /packages/app/src/utils.ts Text-1 "dep2;" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/utils.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/src/a.ts: + {"pollingInterval":500} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/main.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/utils.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 10, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 12, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep2'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 14, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep/sub/folder\"", + "changes": [ + { + "fileName": "/packages/app/src/utils.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep2 } from \"dep/sub/folder\";\r\n\r\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep2 } from \"dep/sub/folder\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js new file mode 100644 index 00000000000..57b600479fe --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js @@ -0,0 +1,817 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/package.json] +{ "name": "app", "dependencies": { "dep": "*" } } + +//// [/packages/app/src/a.ts] +import "dep"; + +//// [/packages/app/src/index.ts] +dep1; + +//// [/packages/app/src/utils.ts] +dep2; + +//// [/packages/app/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "baseUrl": ".", + "paths": { + "dep": ["../dep/src/main"], + "dep/dist/*": ["../dep/src/*"] + } + } + "references": [{ "path": "../dep" }] +} + +//// [/packages/dep/package.json] +{ "name": "dep", "main": "dist/main.js", "types": "dist/main.d.ts" } + +//// [/packages/dep/src/main.ts] +import "./sub/folder"; +export const dep1 = 0; + +//// [/packages/dep/src/sub/folder/index.ts] +export const dep2 = 0; + +//// [/packages/dep/tsconfig.json] +{ + "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/packages/app/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/app +Info seq [hh:mm:ss:mss] For info: /packages/app/package.json :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/app/tsconfig.json : { + "rootNames": [ + "/packages/app/src/a.ts", + "/packages/app/src/index.ts", + "/packages/app/src/utils.ts" + ], + "options": { + "module": 1, + "outDir": "/packages/app/dist", + "rootDir": "/packages/app/src", + "baseUrl": "/packages/app", + "paths": { + "dep": [ + "../dep/src/main" + ], + "dep/dist/*": [ + "../dep/src/*" + ] + }, + "pathsBasePath": "/packages/app", + "configFilePath": "/packages/app/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/dep", + "originalPath": "../dep" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/dep/tsconfig.json : { + "rootNames": [ + "/packages/dep/src/main.ts", + "/packages/dep/src/sub/folder/index.ts" + ], + "options": { + "outDir": "/packages/dep/dist", + "rootDir": "/packages/dep/src", + "module": 1, + "configFilePath": "/packages/dep/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/main.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + /packages/app/src/a.ts Text-1 "import \"dep\";" + /packages/app/src/index.ts Text-1 "dep1;" + /packages/app/src/utils.ts Text-1 "dep2;" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + ../dep/src/sub/folder/index.ts + Imported via "./sub/folder" from file '../dep/src/main.ts' + ../dep/src/main.ts + Imported via "dep" from file 'src/a.ts' + src/a.ts + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + src/utils.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/dep/tsconfig.json", + "reason": "Creating project referenced in solution /packages/app/tsconfig.json to find possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/sub/folder/index.ts + Imported via "./sub/folder" from file 'src/main.ts' + Matched by default include pattern '**/*' + src/main.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/dep/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/app/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 38 + }, + "text": "Referenced project '/packages/dep' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + }, + { + "start": { + "line": 12, + "offset": 3 + }, + "end": { + "line": 12, + "offset": 15 + }, + "text": "',' expected.", + "code": 1005, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/dep/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/app/package.json: *new* + {"pollingInterval":250} +/packages/app/src/a.ts: *new* + {"pollingInterval":500} +/packages/app/src/index.ts: *new* + {"pollingInterval":500} +/packages/app/src/utils.ts: *new* + {"pollingInterval":500} +/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/dep/src/main.ts: *new* + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: *new* + {"pollingInterval":500} +/packages/dep/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: *new* + {} +/packages/dep: *new* + {} +/packages/dep/src: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/index.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/src/a.ts: + {"pollingInterval":500} +/packages/app/src/utils.ts: + {"pollingInterval":500} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/main.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep1'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep\"", + "changes": [ + { + "fileName": "/packages/app/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep1 } from \"dep\";\r\n\r\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep1 } from \"dep\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/utils.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + /packages/app/src/a.ts Text-1 "import \"dep\";" + /packages/app/src/index.ts SVC-2-2 "dep1;" + /packages/app/src/utils.ts Text-1 "dep2;" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/utils.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/src/a.ts: + {"pollingInterval":500} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/main.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/utils.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 10, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 12, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep2'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 14, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep/dist/sub/folder\"", + "changes": [ + { + "fileName": "/packages/app/src/utils.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep2 } from \"dep/dist/sub/folder\";\r\n\r\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep2 } from \"dep/dist/sub/folder\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist2.js new file mode 100644 index 00000000000..4794c7e2aaa --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist2.js @@ -0,0 +1,481 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/common/src/MyModule.ts] +export function square(n: number) { + return n * 2; +} + +//// [/common/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "composite": true + }, + "include": ["src"] +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/web/src/Helper.ts] +export function saveMe() { + square(2); +} + +//// [/web/src/MyApp.ts] +import { square } from "@common/MyModule"; + +//// [/web/tsconfig.json] +{ + "compilerOptions": { + "module": "esnext", + "moduleResolution": "node", + "noEmit": true, + "paths": { + "@common/*": ["../common/dist/src/*"] + } + }, + "include": ["src"], + "references": [{ "path": "../common" }] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/common/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /common +Info seq [hh:mm:ss:mss] For info: /common/tsconfig.json :: Config file name: /common/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /common/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /common/tsconfig.json 2000 undefined Project: /common/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/common/tsconfig.json", + "reason": "Creating possible configured project for /common/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /common/tsconfig.json : { + "rootNames": [ + "/common/src/MyModule.ts" + ], + "options": { + "module": 1, + "outDir": "/common/dist", + "composite": true, + "configFilePath": "/common/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /common/src 1 undefined Config: /common/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /common/src 1 undefined Config: /common/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /common/src/MyModule.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /common/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /common/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/common/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /common/src/MyModule.ts Text-1 "export function square(n: number) {\n return n * 2;\n}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + src/MyModule.ts + Matched by include pattern 'src' in 'tsconfig.json' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/common/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/common/tsconfig.json", + "configFile": "/common/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"outDir\": \"dist\",\n \"composite\": true\n },\n \"include\": [\"src\"]\n}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/common/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /common/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/common/src/MyModule.ts: *new* + {"pollingInterval":500} +/common/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/common/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /web/src +Info seq [hh:mm:ss:mss] For info: /web/src/Helper.ts :: Config file name: /web/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /web/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /web/tsconfig.json 2000 undefined Project: /web/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/web/tsconfig.json", + "reason": "Creating possible configured project for /web/src/Helper.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /web/tsconfig.json : { + "rootNames": [ + "/web/src/Helper.ts", + "/web/src/MyApp.ts" + ], + "options": { + "module": 99, + "moduleResolution": 2, + "noEmit": true, + "paths": { + "@common/*": [ + "../common/dist/src/*" + ] + }, + "pathsBasePath": "/web", + "configFilePath": "/web/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/common", + "originalPath": "../common" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /web/src 1 undefined Config: /web/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /web/src 1 undefined Config: /web/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /web/src/MyApp.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /web/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /common/dist/src 1 undefined Project: /web/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /common/dist/src 1 undefined Project: /web/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /web/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/web/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /web/src/Helper.ts SVC-1-0 "export function saveMe() {\n square(2);\n}" + /common/src/MyModule.ts Text-1 "export function square(n: number) {\n return n * 2;\n}" + /web/src/MyApp.ts Text-1 "import { square } from \"@common/MyModule\";" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + src/Helper.ts + Matched by include pattern 'src' in 'tsconfig.json' + ../common/src/MyModule.ts + Imported via "@common/MyModule" from file 'src/MyApp.ts' + src/MyApp.ts + Matched by include pattern 'src' in 'tsconfig.json' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/web/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/web/src/Helper.ts", + "configFile": "/web/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/common/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/web/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /common/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /web/src/Helper.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /web/tsconfig.json +After Request +watchedFiles:: +/common/src/MyModule.ts: + {"pollingInterval":500} +/common/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/web/src/MyApp.ts: *new* + {"pollingInterval":500} +/web/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/common/dist/src: *new* + {} +/common/src: + {} +/web/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true, + "importModuleSpecifierPreference": "non-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'square'.", + "start": 29, + "length": 6, + "category": "error", + "code": 2304, + "startLocation": { + "line": 2, + "offset": 3 + }, + "endLocation": { + "line": 2, + "offset": 9 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/web/src/Helper.ts", + "startLine": 2, + "startOffset": 3, + "endLine": 2, + "endOffset": 9, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"@common/MyModule\"", + "changes": [ + { + "fileName": "/web/src/Helper.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { square } from \"@common/MyModule\";\r\n\r\n" + } + ] + } + ] + }, + { + "fixName": "fixMissingFunctionDeclaration", + "description": "Add missing function declaration 'square'", + "changes": [ + { + "fileName": "/web/src/Helper.ts", + "textChanges": [ + { + "start": { + "line": 3, + "offset": 2 + }, + "end": { + "line": 3, + "offset": 2 + }, + "newText": "\r\n\r\nfunction square(arg0: number) {\r\n throw new Error(\"Function not implemented.\");\r\n}\r\n" + } + ] + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js new file mode 100644 index 00000000000..df9cbd57193 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js @@ -0,0 +1,817 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/package.json] +{ "name": "app", "dependencies": { "dep": "*" } } + +//// [/packages/app/src/a.ts] +import "dep"; + +//// [/packages/app/src/index.ts] +dep1; + +//// [/packages/app/src/utils.ts] +dep2; + +//// [/packages/app/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "baseUrl": ".", + "paths": { + "dep": ["../dep/src/main"], + "dep/*": ["../dep/*"] + } + } + "references": [{ "path": "../dep" }] +} + +//// [/packages/dep/package.json] +{ "name": "dep", "main": "dist/main.js", "types": "dist/main.d.ts" } + +//// [/packages/dep/src/main.ts] +import "./sub/folder"; +export const dep1 = 0; + +//// [/packages/dep/src/sub/folder/index.ts] +export const dep2 = 0; + +//// [/packages/dep/tsconfig.json] +{ + "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/packages/app/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/app +Info seq [hh:mm:ss:mss] For info: /packages/app/package.json :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/app/tsconfig.json : { + "rootNames": [ + "/packages/app/src/a.ts", + "/packages/app/src/index.ts", + "/packages/app/src/utils.ts" + ], + "options": { + "module": 1, + "outDir": "/packages/app/dist", + "rootDir": "/packages/app/src", + "baseUrl": "/packages/app", + "paths": { + "dep": [ + "../dep/src/main" + ], + "dep/*": [ + "../dep/*" + ] + }, + "pathsBasePath": "/packages/app", + "configFilePath": "/packages/app/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/dep", + "originalPath": "../dep" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/dep/tsconfig.json : { + "rootNames": [ + "/packages/dep/src/main.ts", + "/packages/dep/src/sub/folder/index.ts" + ], + "options": { + "outDir": "/packages/dep/dist", + "rootDir": "/packages/dep/src", + "module": 1, + "configFilePath": "/packages/dep/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/main.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/app/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + /packages/app/src/a.ts Text-1 "import \"dep\";" + /packages/app/src/index.ts Text-1 "dep1;" + /packages/app/src/utils.ts Text-1 "dep2;" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + ../dep/src/sub/folder/index.ts + Imported via "./sub/folder" from file '../dep/src/main.ts' + ../dep/src/main.ts + Imported via "dep" from file 'src/a.ts' + src/a.ts + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + src/utils.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/dep/tsconfig.json", + "reason": "Creating project referenced in solution /packages/app/tsconfig.json to find possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/sub/folder/index.ts + Imported via "./sub/folder" from file 'src/main.ts' + Matched by default include pattern '**/*' + src/main.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/dep/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/app/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 38 + }, + "text": "Referenced project '/packages/dep' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + }, + { + "start": { + "line": 12, + "offset": 3 + }, + "end": { + "line": 12, + "offset": 15 + }, + "text": "',' expected.", + "code": 1005, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/dep/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/app/package.json: *new* + {"pollingInterval":250} +/packages/app/src/a.ts: *new* + {"pollingInterval":500} +/packages/app/src/index.ts: *new* + {"pollingInterval":500} +/packages/app/src/utils.ts: *new* + {"pollingInterval":500} +/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/dep/src/main.ts: *new* + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: *new* + {"pollingInterval":500} +/packages/dep/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: *new* + {} +/packages/dep: *new* + {} +/packages/dep/src: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/index.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/src/a.ts: + {"pollingInterval":500} +/packages/app/src/utils.ts: + {"pollingInterval":500} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/main.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep1'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep\"", + "changes": [ + { + "fileName": "/packages/app/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep1 } from \"dep\";\r\n\r\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep1 } from \"dep\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/utils.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" + /packages/dep/src/main.ts Text-1 "import \"./sub/folder\";\nexport const dep1 = 0;" + /packages/app/src/a.ts Text-1 "import \"dep\";" + /packages/app/src/index.ts SVC-2-2 "dep1;" + /packages/app/src/utils.ts Text-1 "dep2;" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/utils.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/src/a.ts: + {"pollingInterval":500} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/main.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/utils.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 10, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 12, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep2'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 14, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep/src/sub/folder\"", + "changes": [ + { + "fileName": "/packages/app/src/utils.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep2 } from \"dep/src/sub/folder\";\r\n\r\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep2 } from \"dep/src/sub/folder\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/packages/app/src/utils.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js new file mode 100644 index 00000000000..4eb94500c8e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js @@ -0,0 +1,588 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/node_modules/dep] symlink(/packages/dep) +//// [/packages/app/package.json] +{ "name": "app", "dependencies": { "dep": "*" } } + +//// [/packages/app/src/index.ts] +dep + +//// [/packages/app/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "baseUrl": ".", + "paths": { + "dep/*": ["../dep/src/*"] + } + } + "references": [{ "path": "../dep" }] +} + +//// [/packages/dep/package.json] +{ "name": "dep", "main": "dist/index.js", "types": "dist/index.d.ts" } + +//// [/packages/dep/src/index.ts] +import "./sub/folder"; + +//// [/packages/dep/src/sub/folder/index.ts] +export const dep = 0; + +//// [/packages/dep/tsconfig.json] +{ + "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/packages/app/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/app +Info seq [hh:mm:ss:mss] For info: /packages/app/package.json :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/app/tsconfig.json : { + "rootNames": [ + "/packages/app/src/index.ts" + ], + "options": { + "module": 1, + "outDir": "/packages/app/dist", + "rootDir": "/packages/app/src", + "baseUrl": "/packages/app", + "paths": { + "dep/*": [ + "../dep/src/*" + ] + }, + "pathsBasePath": "/packages/app", + "configFilePath": "/packages/app/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/dep", + "originalPath": "../dep" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/dep/tsconfig.json : { + "rootNames": [ + "/packages/dep/src/index.ts", + "/packages/dep/src/sub/folder/index.ts" + ], + "options": { + "outDir": "/packages/dep/dist", + "rootDir": "/packages/dep/src", + "module": 1, + "configFilePath": "/packages/dep/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/src/index.ts Text-1 "dep" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/dep/tsconfig.json", + "reason": "Creating project referenced in solution /packages/app/tsconfig.json to find possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep = 0;" + /packages/dep/src/index.ts Text-1 "import \"./sub/folder\";" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/sub/folder/index.ts + Imported via "./sub/folder" from file 'src/index.ts' + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/dep/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/app/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 11, + "offset": 18 + }, + "end": { + "line": 11, + "offset": 38 + }, + "text": "Referenced project '/packages/dep' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + }, + { + "start": { + "line": 11, + "offset": 3 + }, + "end": { + "line": 11, + "offset": 15 + }, + "text": "',' expected.", + "code": 1005, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/dep/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/app/package.json: *new* + {"pollingInterval":250} +/packages/app/src/index.ts: *new* + {"pollingInterval":500} +/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/dep/src/index.ts: *new* + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: *new* + {"pollingInterval":500} +/packages/dep/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: *new* + {} +/packages/dep: *new* + {} +/packages/dep/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/index.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/index.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep'.", + "start": 0, + "length": 3, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 4 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 4, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep = 0;" + /packages/dep/src/index.ts Text-1 "import \"./sub/folder\";" + + + ../dep/src/sub/folder/index.ts + Imported via "./sub/folder" from file '../dep/src/index.ts' + ../dep/src/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep/sub/folder\"", + "changes": [ + { + "fileName": "/packages/app/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep } from \"dep/sub/folder\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/index.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/app/node_modules: *new* + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep } from \"dep/sub/folder\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js new file mode 100644 index 00000000000..54f8477f75d --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js @@ -0,0 +1,588 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/node_modules/dep] symlink(/packages/dep) +//// [/packages/app/package.json] +{ "name": "app", "dependencies": { "dep": "*" } } + +//// [/packages/app/src/index.ts] +dep + +//// [/packages/app/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "baseUrl": ".", + "paths": { + "dep/dist/*": ["../dep/src/*"] + } + } + "references": [{ "path": "../dep" }] +} + +//// [/packages/dep/package.json] +{ "name": "dep", "main": "dist/index.js", "types": "dist/index.d.ts" } + +//// [/packages/dep/src/index.ts] +import "./sub/folder"; + +//// [/packages/dep/src/sub/folder/index.ts] +export const dep = 0; + +//// [/packages/dep/tsconfig.json] +{ + "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/packages/app/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/app +Info seq [hh:mm:ss:mss] For info: /packages/app/package.json :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/app/tsconfig.json : { + "rootNames": [ + "/packages/app/src/index.ts" + ], + "options": { + "module": 1, + "outDir": "/packages/app/dist", + "rootDir": "/packages/app/src", + "baseUrl": "/packages/app", + "paths": { + "dep/dist/*": [ + "../dep/src/*" + ] + }, + "pathsBasePath": "/packages/app", + "configFilePath": "/packages/app/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/dep", + "originalPath": "../dep" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/dep/tsconfig.json : { + "rootNames": [ + "/packages/dep/src/index.ts", + "/packages/dep/src/sub/folder/index.ts" + ], + "options": { + "outDir": "/packages/dep/dist", + "rootDir": "/packages/dep/src", + "module": 1, + "configFilePath": "/packages/dep/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/src/index.ts Text-1 "dep" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/dep/tsconfig.json", + "reason": "Creating project referenced in solution /packages/app/tsconfig.json to find possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep = 0;" + /packages/dep/src/index.ts Text-1 "import \"./sub/folder\";" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/sub/folder/index.ts + Imported via "./sub/folder" from file 'src/index.ts' + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/dep/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/app/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 11, + "offset": 18 + }, + "end": { + "line": 11, + "offset": 38 + }, + "text": "Referenced project '/packages/dep' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + }, + { + "start": { + "line": 11, + "offset": 3 + }, + "end": { + "line": 11, + "offset": 15 + }, + "text": "',' expected.", + "code": 1005, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/dep/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/app/package.json: *new* + {"pollingInterval":250} +/packages/app/src/index.ts: *new* + {"pollingInterval":500} +/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/dep/src/index.ts: *new* + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: *new* + {"pollingInterval":500} +/packages/dep/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: *new* + {} +/packages/dep: *new* + {} +/packages/dep/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/index.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/index.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep'.", + "start": 0, + "length": 3, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 4 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 4, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep = 0;" + /packages/dep/src/index.ts Text-1 "import \"./sub/folder\";" + + + ../dep/src/sub/folder/index.ts + Imported via "./sub/folder" from file '../dep/src/index.ts' + ../dep/src/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep/dist/sub/folder\"", + "changes": [ + { + "fileName": "/packages/app/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep } from \"dep/dist/sub/folder\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/index.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/app/node_modules: *new* + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep } from \"dep/dist/sub/folder\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js new file mode 100644 index 00000000000..110d8846dc3 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js @@ -0,0 +1,579 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/node_modules/dep] symlink(/packages/dep) +//// [/packages/app/package.json] +{ "name": "app", "dependencies": { "dep": "*" } } + +//// [/packages/app/src/index.ts] +dep + +//// [/packages/app/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "outDir": "dist", + "rootDir": "src", + "baseUrl": "." + } + "references": [{ "path": "../dep" }] +} + +//// [/packages/dep/package.json] +{ "name": "dep", "main": "dist/index.js", "types": "dist/index.d.ts" } + +//// [/packages/dep/src/index.ts] +import "./sub/folder"; + +//// [/packages/dep/src/sub/folder/index.ts] +export const dep = 0; + +//// [/packages/dep/tsconfig.json] +{ + "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/packages/app/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/app +Info seq [hh:mm:ss:mss] For info: /packages/app/package.json :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/app/tsconfig.json", + "reason": "Creating possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/app/tsconfig.json : { + "rootNames": [ + "/packages/app/src/index.ts" + ], + "options": { + "module": 1, + "outDir": "/packages/app/dist", + "rootDir": "/packages/app/src", + "baseUrl": "/packages/app", + "configFilePath": "/packages/app/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/dep", + "originalPath": "../dep" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app 1 undefined Config: /packages/app/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/dep/tsconfig.json : { + "rootNames": [ + "/packages/dep/src/index.ts", + "/packages/dep/src/sub/folder/index.ts" + ], + "options": { + "outDir": "/packages/dep/dist", + "rootDir": "/packages/dep/src", + "module": 1, + "configFilePath": "/packages/dep/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/tsconfig.json 2000 undefined Project: /packages/app/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep 1 undefined Config: /packages/dep/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/src/index.ts Text-1 "dep" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/app/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/dep/tsconfig.json", + "reason": "Creating project referenced in solution /packages/app/tsconfig.json to find possible configured project for /packages/app/package.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/dep/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /packages/dep/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/dep/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep = 0;" + /packages/dep/src/index.ts Text-1 "import \"./sub/folder\";" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/sub/folder/index.ts + Imported via "./sub/folder" from file 'src/index.ts' + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/dep/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/app/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 8, + "offset": 18 + }, + "end": { + "line": 8, + "offset": 38 + }, + "text": "Referenced project '/packages/dep' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + }, + { + "start": { + "line": 8, + "offset": 3 + }, + "end": { + "line": 8, + "offset": 15 + }, + "text": "',' expected.", + "code": 1005, + "category": "error", + "fileName": "/packages/app/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/app/package.json", + "configFile": "/packages/dep/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/app/package.json: *new* + {"pollingInterval":250} +/packages/app/src/index.ts: *new* + {"pollingInterval":500} +/packages/app/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/dep/src/index.ts: *new* + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: *new* + {"pollingInterval":500} +/packages/dep/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: *new* + {} +/packages/dep: *new* + {} +/packages/dep/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /packages/app/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /packages/app/src +Info seq [hh:mm:ss:mss] For info: /packages/app/src/index.ts :: Config file name: /packages/app/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/packages/app/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/dep/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/app/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/app/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/app/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/index.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/packages/app/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/dep: + {} +/packages/dep/src: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'dep'.", + "start": 0, + "length": 3, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 4 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 4, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/dep/src 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /packages/dep/src/sub/folder/index.ts Text-1 "export const dep = 0;" + /packages/dep/src/index.ts Text-1 "import \"./sub/folder\";" + + + ../dep/src/sub/folder/index.ts + Imported via "./sub/folder" from file '../dep/src/index.ts' + ../dep/src/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": [ + { + "fixName": "import", + "description": "Add import from \"dep/src/sub/folder\"", + "changes": [ + { + "fileName": "/packages/app/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { dep } from \"dep/src/sub/folder\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/package.json: + {"pollingInterval":250} +/packages/app/tsconfig.json: + {"pollingInterval":2000} +/packages/dep/src/index.ts: + {"pollingInterval":500} +/packages/dep/src/sub/folder/index.ts: + {"pollingInterval":500} +/packages/dep/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/app: + {} +/packages/app/node_modules: *new* + {} +/packages/dep: + {} +/packages/dep/src: + {} + {} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { dep } from \"dep/src/sub/folder\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/app/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js new file mode 100644 index 00000000000..c53853b686e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js @@ -0,0 +1,995 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/project/index.ts] +S3 + +//// [/project/node_modules/aws-sdk/clients/s3.d.ts] +export declare class S3 {} + +//// [/project/node_modules/aws-sdk/index.d.ts] +export * from "./clients/s3"; + +//// [/project/node_modules/aws-sdk/package.json] +{ "name": "aws-sdk", "version": "2.0.0", "main": "index.js" } + +//// [/project/package.json] +{ "dependencies": "aws-sdk" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/project/node_modules/aws-sdk/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project/node_modules/aws-sdk +Info seq [hh:mm:ss:mss] For info: /project/node_modules/aws-sdk/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/node_modules/aws-sdk/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/node_modules/aws-sdk/package.json SVC-1-0 "{ \"name\": \"aws-sdk\", \"version\": \"2.0.0\", \"main\": \"index.js\" }" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/node_modules/aws-sdk/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/project/node_modules/aws-sdk/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/index.ts SVC-1-0 "S3" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/node_modules/aws-sdk/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /project/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/package.json: *new* + {"pollingInterval":250} + +watchedDirectoriesRecursive:: +/project/node_modules/aws-sdk/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "autoImportFileExcludePatterns": [ + "/**/node_modules/aws-sdk" + ] + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "line": 1, + "offset": 3 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 3 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "autoImportFileExcludePatterns": [ + "/**/node_modules/aws-sdk" + ] + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": { + "autoImportFileExcludePatterns": [ + "/**/node_modules/aws-sdk" + ] + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 7, + "success": true, + "body": [ + { + "message": "Cannot find name 'S3'.", + "start": 0, + "length": 2, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 3 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 8, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 3, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 9, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js new file mode 100644 index 00000000000..357a7ea8ecd --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js @@ -0,0 +1,451 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@monorepo/utils] symlink(/packages/utils) +//// [/node_modules/utils] symlink(/packages/utils) +//// [/node_modules/web] symlink(/packages/web) +//// [/package.json] +{ + "name": "monorepo", + "workspaces": ["packages/*"] +} + +//// [/packages/utils/package.json] +{ + "name": "utils", + "version": "1.0.0", + "exports": "./dist/index.js" +} + +//// [/packages/utils/src/index.ts] +export function gainUtility() { return 0; } + +//// [/packages/utils/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "module": "nodenext", + "rootDir": "src", + "outDir": "dist" + }, + "include": ["src"] +} + +//// [/packages/web/package.json] +{ + "name": "web", + "version": "1.0.0", + "dependencies": { + "@monorepo/utils": "file:../utils" + } +} + +//// [/packages/web/src/index.ts] +gainUtility + +//// [/packages/web/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "module": "esnext", + "moduleResolution": "bundler", + "rootDir": "src", + "outDir": "dist", + "emitDeclarationOnly": true + }, + "include": ["src"], + "references": [ + { "path": "../utils" } + ] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /package.json SVC-1-0 "{\n \"name\": \"monorepo\",\n \"workspaces\": [\"packages/*\"]\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/web/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/web/src +Info seq [hh:mm:ss:mss] For info: /packages/web/src/index.ts :: Config file name: /packages/web/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/web/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/web/tsconfig.json 2000 undefined Project: /packages/web/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/web/tsconfig.json", + "reason": "Creating possible configured project for /packages/web/src/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/web/tsconfig.json : { + "rootNames": [ + "/packages/web/src/index.ts" + ], + "options": { + "composite": true, + "module": 99, + "moduleResolution": 100, + "rootDir": "/packages/web/src", + "outDir": "/packages/web/dist", + "emitDeclarationOnly": true, + "configFilePath": "/packages/web/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/utils", + "originalPath": "../utils" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/web/src 1 undefined Config: /packages/web/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/web/src 1 undefined Config: /packages/web/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/web/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/utils/tsconfig.json : { + "rootNames": [ + "/packages/utils/src/index.ts" + ], + "options": { + "composite": true, + "module": 199, + "rootDir": "/packages/utils/src", + "outDir": "/packages/utils/dist", + "configFilePath": "/packages/utils/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/utils/tsconfig.json 2000 undefined Project: /packages/web/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/utils/src 1 undefined Config: /packages/utils/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/utils/src 1 undefined Config: /packages/utils/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/web/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/web/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/web/src/index.ts SVC-1-0 "gainUtility" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/index.ts + Matched by include pattern 'src' in 'tsconfig.json' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/web/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/utils/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /packages/utils/src/index.ts Text-1 "export function gainUtility() { return 0; }" + + + ../utils/src/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/web/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/web/src/index.ts", + "configFile": "/packages/web/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Search path: /packages/web +Info seq [hh:mm:ss:mss] For info: /packages/web/tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/packages/web/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/web/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/web/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/packages/utils/src/index.ts: *new* + {"pollingInterval":500} +/packages/utils/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/web/package.json: *new* + {"pollingInterval":250} +/packages/web/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/utils/src: *new* + {} +/packages/web/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/web/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/web/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'gainUtility'.", + "start": 0, + "length": 11, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 12 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/web/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/web/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 12, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"@monorepo/utils\"", + "changes": [ + { + "fileName": "/packages/web/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { gainUtility } from \"@monorepo/utils\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/packages/utils/src/index.ts: + {"pollingInterval":500} +/packages/utils/tsconfig.json: + {"pollingInterval":2000} +/packages/web/package.json: + {"pollingInterval":250} +/packages/web/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/node_modules: *new* + {} +/packages/utils/src: + {} +/packages/web/src: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js new file mode 100644 index 00000000000..382bea72c3c --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js @@ -0,0 +1,446 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +PatternValidator + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@angular/forms/forms.d.ts] +export class PatternValidator {} + +//// [/node_modules/@angular/forms/package.json] +{ "name": "@angular/forms", "typings": "./forms.d.ts" } + +//// [/package.json] +{ "dependencies": { "@angular/forms": "*" } } + +//// [/tsconfig.json] +{} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/@angular/forms/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/@angular/forms +Info seq [hh:mm:ss:mss] For info: /node_modules/@angular/forms/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@angular/forms/package.json SVC-1-0 "{ \"name\": \"@angular/forms\", \"typings\": \"./forms.d.ts\" }" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@angular/forms/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/node_modules/@angular/forms/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-1-0 "PatternValidator" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/forms.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/@angular/forms/forms.d.ts Text-1 "export class PatternValidator {}" + + + node_modules/@angular/forms/forms.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/index.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@angular/forms/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@angular/forms/forms.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} +/node_modules/@angular/forms/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [ + { + "message": "Cannot find name 'PatternValidator'.", + "start": 0, + "length": 16, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 17 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 17, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 7, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"@angular/forms\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { PatternValidator } from \"@angular/forms\";\n\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@angular/forms/forms.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} +/node_modules/@angular/forms/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { PatternValidator } from \"@angular/forms\";\n\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider2.js new file mode 100644 index 00000000000..50173b3fc7d --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider2.js @@ -0,0 +1,375 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +IndirectDependency + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/direct-dependency/index.d.ts] +import "indirect-dependency"; +export declare class DirectDependency {} + +//// [/node_modules/direct-dependency/package.json] +{ "name": "direct-dependency", "dependencies": { "indirect-dependency": "*" } } + +//// [/node_modules/indirect-dependency/index.d.ts] +export declare class IndirectDependency + +//// [/node_modules/indirect-dependency/package.json] +{ "name": "indirect-dependency" } + +//// [/package.json] +{ "dependencies": { "direct-dependency": "*" } } + +//// [/tsconfig.json] +{} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/direct-dependency/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/direct-dependency +Info seq [hh:mm:ss:mss] For info: /node_modules/direct-dependency/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/direct-dependency/package.json SVC-1-0 "{ \"name\": \"direct-dependency\", \"dependencies\": { \"indirect-dependency\": \"*\" } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/direct-dependency/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-1-0 "IndirectDependency" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/direct-dependency/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/indirect-dependency/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/indirect-dependency/index.d.ts Text-1 "export declare class IndirectDependency" + /node_modules/direct-dependency/index.d.ts Text-1 "import \"indirect-dependency\";\nexport declare class DirectDependency {}" + + + node_modules/indirect-dependency/index.d.ts + Imported via "indirect-dependency" from file 'node_modules/direct-dependency/index.d.ts' + node_modules/direct-dependency/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/index.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/direct-dependency/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/direct-dependency/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/indirect-dependency/index.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [ + { + "message": "Cannot find name 'IndirectDependency'.", + "start": 0, + "length": 18, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 19 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 19, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 7, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js new file mode 100644 index 00000000000..4eda5b5265d --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js @@ -0,0 +1,776 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/common-dependency/index.d.ts] +export declare class CommonDependency {} + +//// [/node_modules/common-dependency/package.json] +{ "name": "common-dependency" } + +//// [/node_modules/package-dependency/index.d.ts] +export declare class PackageDependency + +//// [/node_modules/package-dependency/package.json] +{ "name": "package-dependency" } + +//// [/package.json] +{ "private": true, "dependencies": { "common-dependency": "*" } } + +//// [/packages/a/index.ts] + + +//// [/packages/a/package.json] +{ "peerDependencies": { "package-dependency": "*" } } + +//// [/packages/a/tsconfig.json] +{ "compilerOptions": { "target": "esnext", "composite": true } } + +//// [/tsconfig.json] +{ "files": [], "references": [{ "path": "packages/a" }] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/common-dependency/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/common-dependency +Info seq [hh:mm:ss:mss] For info: /node_modules/common-dependency/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/common-dependency/package.json SVC-1-0 "{ \"name\": \"common-dependency\" }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/common-dependency/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/a/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/a +Info seq [hh:mm:ss:mss] For info: /packages/a/index.ts :: Config file name: /packages/a/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/a/tsconfig.json 2000 undefined Project: /packages/a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/a/tsconfig.json", + "reason": "Creating possible configured project for /packages/a/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/a/tsconfig.json : { + "rootNames": [ + "/packages/a/index.ts" + ], + "options": { + "target": 99, + "composite": true, + "configFilePath": "/packages/a/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/a 1 undefined Config: /packages/a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/a 1 undefined Config: /packages/a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.esnext.full.d.ts 500 undefined Project: /packages/a/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/a/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + /packages/a/index.ts SVC-1-0 "" + + + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/a/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 2 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/package-dependency/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/common-dependency/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/package-dependency/index.d.ts Text-1 "export declare class PackageDependency" + /node_modules/common-dependency/index.d.ts Text-1 "export declare class CommonDependency {}" + + + ../../node_modules/package-dependency/index.d.ts + Root file specified for compilation + ../../node_modules/common-dependency/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/a/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/a/index.ts", + "configFile": "/packages/a/tsconfig.json", + "diagnostics": [ + { + "text": "File '/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", + "code": 6053, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 34 + }, + "end": { + "line": 1, + "offset": 42 + }, + "file": "/packages/a/tsconfig.json" + }, + "message": "File is default library for target specified here.", + "category": "message", + "code": 1426 + } + ] + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] Search path: /packages/a +Info seq [hh:mm:ss:mss] For info: /packages/a/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/packages/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) InitialLoadPending + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/common-dependency/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/a/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.esnext.full.d.ts: *new* + {"pollingInterval":500} +/node_modules/common-dependency/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/package-dependency/index.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/packages/a/package.json: *new* + {"pollingInterval":250} +/packages/a/tsconfig.json: *new* + {"pollingInterval":2000} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/a: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/packages/a/index.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "CommonDependency", + "kind": "class", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/common-dependency/index", + "isPackageJsonImport": true, + "data": { + "exportName": "CommonDependency", + "exportMapKey": "16 * CommonDependency ", + "fileName": "/node_modules/common-dependency/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "PackageDependency", + "kind": "class", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/package-dependency/index", + "isPackageJsonImport": true, + "data": { + "exportName": "PackageDependency", + "exportMapKey": "17 * PackageDependency ", + "fileName": "/node_modules/package-dependency/index.d.ts", + "isPackageJsonImport": true + } + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider4.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider4.js new file mode 100644 index 00000000000..d01ba11e79a --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider4.js @@ -0,0 +1,590 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a/index.ts] +new Shape + +//// [/a/node_modules/b] symlink(/b) +//// [/a/package.json] +{ "dependencies": { "b": "*" } } + +//// [/a/tsconfig.json] +{ "compilerOptions": { "module": "commonjs", "target": "esnext" }, "references": [{ "path": "../b" }] } + +//// [/b/index.ts] +export class Shape {} + +//// [/b/package.json] +{ "types": "out/index.d.ts" } + +//// [/b/tsconfig.json] +{ "compilerOptions": { "outDir": "out", "composite": true } } + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/package.json :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { + "rootNames": [ + "/a/index.ts" + ], + "options": { + "module": 1, + "target": 99, + "configFilePath": "/a/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/b", + "originalPath": "../b" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /b/tsconfig.json : { + "rootNames": [ + "/b/index.ts" + ], + "options": { + "outDir": "/b/out", + "composite": true, + "configFilePath": "/b/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b 1 undefined Config: /b/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b 1 undefined Config: /b/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.esnext.full.d.ts 500 undefined Project: /a/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + /a/index.ts Text-1 "new Shape" + + + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /b/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/b/tsconfig.json", + "reason": "Creating project referenced in solution /a/tsconfig.json to find possible configured project for /a/package.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /b/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/index.ts Text-1 "export class Shape {}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/b/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/package.json", + "configFile": "/a/tsconfig.json", + "diagnostics": [ + { + "text": "File '/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", + "code": 6053, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 56 + }, + "end": { + "line": 1, + "offset": 64 + }, + "file": "/a/tsconfig.json" + }, + "message": "File is default library for target specified here.", + "category": "message", + "code": 1426 + } + ] + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/package.json", + "configFile": "/b/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a/package.json SVC-1-0 "{ \"dependencies\": { \"b\": \"*\" } }" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /b/index.ts Text-1 "export class Shape {}" + + + ../b/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/a/index.ts: *new* + {"pollingInterval":500} +/a/package.json: *new* + {"pollingInterval":250} +/a/tsconfig.json: *new* + {"pollingInterval":2000} +/b/index.ts: *new* + {"pollingInterval":500} +/b/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/lib.esnext.full.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/a: *new* + {} +/b: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/index.ts :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +After Request +watchedFiles:: +/a/package.json: + {"pollingInterval":250} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/index.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.esnext.full.d.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/a/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/a: + {} +/b: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'Shape'.", + "start": 4, + "length": 5, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 5 + }, + "endLocation": { + "line": 1, + "offset": 10 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "startLine": 1, + "startOffset": 5, + "endLine": 1, + "endOffset": 10, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /b/index.ts Text-1 "export class Shape {}" + + + ../b/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": [ + { + "fixName": "import", + "description": "Add import from \"b\"", + "changes": [ + { + "fileName": "/a/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { Shape } from \"b\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/a/package.json: + {"pollingInterval":250} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/index.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.esnext.full.d.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/a: + {} +/a/node_modules: *new* + {} +/b: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { Shape } from \"b\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js new file mode 100644 index 00000000000..c0645cdd2aa --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js @@ -0,0 +1,410 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +useForm + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/react-hook-form/dist/index.d.ts] +export * from "./useForm"; + +//// [/node_modules/react-hook-form/dist/useForm.d.ts] +export declare function useForm(): void; + +//// [/node_modules/react-hook-form/package.json] +{ "types": "dist/index.d.ts" } + +//// [/package.json] +{ "dependencies": { "react-hook-form": "*" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /package.json SVC-1-0 "{ \"dependencies\": { \"react-hook-form\": \"*\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react-hook-form/dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react-hook-form/dist/useForm.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/react-hook-form/dist/useForm.d.ts Text-1 "export declare function useForm(): void;" + /node_modules/react-hook-form/dist/index.d.ts Text-1 "export * from \"./useForm\";" + + + node_modules/react-hook-form/dist/useForm.d.ts + Imported via "./useForm" from file 'node_modules/react-hook-form/dist/index.d.ts' + node_modules/react-hook-form/dist/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/react-hook-form/dist/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/react-hook-form/dist/useForm.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-1-0 "useForm" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/react-hook-form/dist/useForm.d.ts Text-1 "export declare function useForm(): void;" + /node_modules/react-hook-form/dist/index.d.ts Text-1 "export * from \"./useForm\";" + + + node_modules/react-hook-form/dist/useForm.d.ts + Imported via "./useForm" from file 'node_modules/react-hook-form/dist/index.d.ts' + node_modules/react-hook-form/dist/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'useForm'.", + "start": 0, + "length": 7, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 8 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 8, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"react-hook-form\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { useForm } from \"react-hook-form\";\r\n\r\n" + } + ] + } + ] + }, + { + "fixName": "import", + "description": "Add import from \"react-hook-form/dist/useForm\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { useForm } from \"react-hook-form/dist/useForm\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/react-hook-form/dist/index.d.ts: + {"pollingInterval":500} +/node_modules/react-hook-form/dist/useForm.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} + +watchedDirectoriesRecursive:: +/node_modules: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { useForm } from \"react-hook-form\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { useForm } from \"react-hook-form/dist/useForm\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js new file mode 100644 index 00000000000..c615e7a719e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js @@ -0,0 +1,1434 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +Component + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/lib.es2015.collection.d.ts] +lib.es2015.collection.d.ts-Text + +//// [/lib.es2015.core.d.ts] +lib.es2015.core.d.ts-Text + +//// [/lib.es2015.d.ts] +lib.es2015.d.ts-Text + +//// [/lib.es2015.generator.d.ts] +lib.es2015.generator.d.ts-Text + +//// [/lib.es2015.iterable.d.ts] +lib.es2015.iterable.d.ts-Text + +//// [/lib.es2015.promise.d.ts] +lib.es2015.promise.d.ts-Text + +//// [/lib.es2015.proxy.d.ts] +lib.es2015.proxy.d.ts-Text + +//// [/lib.es2015.reflect.d.ts] +lib.es2015.reflect.d.ts-Text + +//// [/lib.es2015.symbol.d.ts] +lib.es2015.symbol.d.ts-Text + +//// [/lib.es2015.symbol.wellknown.d.ts] +lib.es2015.symbol.wellknown.d.ts-Text + +//// [/lib.es2016.array.include.d.ts] +lib.es2016.array.include.d.ts-Text + +//// [/lib.es2016.d.ts] +lib.es2016.d.ts-Text + +//// [/lib.es2017.d.ts] +lib.es2017.d.ts-Text + +//// [/lib.es2017.date.d.ts] +lib.es2017.date.d.ts-Text + +//// [/lib.es2017.intl.d.ts] +lib.es2017.intl.d.ts-Text + +//// [/lib.es2017.object.d.ts] +lib.es2017.object.d.ts-Text + +//// [/lib.es2017.sharedmemory.d.ts] +lib.es2017.sharedmemory.d.ts-Text + +//// [/lib.es2017.string.d.ts] +lib.es2017.string.d.ts-Text + +//// [/lib.es2017.typedarrays.d.ts] +lib.es2017.typedarrays.d.ts-Text + +//// [/lib.es2018.asyncgenerator.d.ts] +lib.es2018.asyncgenerator.d.ts-Text + +//// [/lib.es2018.asynciterable.d.ts] +lib.es2018.asynciterable.d.ts-Text + +//// [/lib.es2018.d.ts] +lib.es2018.d.ts-Text + +//// [/lib.es2018.intl.d.ts] +lib.es2018.intl.d.ts-Text + +//// [/lib.es2018.promise.d.ts] +lib.es2018.promise.d.ts-Text + +//// [/lib.es2018.regexp.d.ts] +lib.es2018.regexp.d.ts-Text + +//// [/lib.es2019.array.d.ts] +lib.es2019.array.d.ts-Text + +//// [/lib.es2019.d.ts] +lib.es2019.d.ts-Text + +//// [/lib.es2019.intl.d.ts] +lib.es2019.intl.d.ts-Text + +//// [/lib.es2019.object.d.ts] +lib.es2019.object.d.ts-Text + +//// [/lib.es2019.string.d.ts] +lib.es2019.string.d.ts-Text + +//// [/lib.es2019.symbol.d.ts] +lib.es2019.symbol.d.ts-Text + +//// [/lib.es5.d.ts] +lib.d.ts-Text + +//// [/node_modules/@types/react/index.d.ts] +export declare function Component(): void; + +//// [/node_modules/antd/index.d.ts] +import "react"; + +//// [/package.json] +{ "dependencies": { "antd": "*", "react": "*" } } + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs", "lib": ["es2019"] } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/lib.es2015.collection.d.ts", + "/lib.es2015.core.d.ts", + "/lib.es2015.d.ts", + "/lib.es2015.generator.d.ts", + "/lib.es2015.iterable.d.ts", + "/lib.es2015.promise.d.ts", + "/lib.es2015.proxy.d.ts", + "/lib.es2015.reflect.d.ts", + "/lib.es2015.symbol.d.ts", + "/lib.es2015.symbol.wellknown.d.ts", + "/lib.es2016.array.include.d.ts", + "/lib.es2016.d.ts", + "/lib.es2017.d.ts", + "/lib.es2017.date.d.ts", + "/lib.es2017.intl.d.ts", + "/lib.es2017.object.d.ts", + "/lib.es2017.sharedmemory.d.ts", + "/lib.es2017.string.d.ts", + "/lib.es2017.typedarrays.d.ts", + "/lib.es2018.asyncgenerator.d.ts", + "/lib.es2018.asynciterable.d.ts", + "/lib.es2018.d.ts", + "/lib.es2018.intl.d.ts", + "/lib.es2018.promise.d.ts", + "/lib.es2018.regexp.d.ts", + "/lib.es2019.array.d.ts", + "/lib.es2019.d.ts", + "/lib.es2019.intl.d.ts", + "/lib.es2019.object.d.ts", + "/lib.es2019.string.d.ts", + "/lib.es2019.symbol.d.ts", + "/lib.es5.d.ts" + ], + "options": { + "module": 1, + "lib": [ + "lib.es2019.d.ts" + ], + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.collection.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.generator.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.iterable.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.promise.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.proxy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.reflect.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.symbol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2015.symbol.wellknown.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2016.array.include.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2016.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2017.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2017.date.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2017.intl.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2017.object.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2017.sharedmemory.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2017.string.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2017.typedarrays.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2018.asyncgenerator.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2018.asynciterable.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2018.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2018.intl.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2018.promise.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2018.regexp.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2019.array.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2019.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2019.intl.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2019.object.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2019.string.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2019.symbol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (37) + /lib.es5.d.ts Text-1 lib.d.ts-Text + /lib.es2015.generator.d.ts Text-1 lib.es2015.generator.d.ts-Text + /lib.es2015.iterable.d.ts Text-1 lib.es2015.iterable.d.ts-Text + /lib.es2015.promise.d.ts Text-1 lib.es2015.promise.d.ts-Text + /lib.es2015.proxy.d.ts Text-1 lib.es2015.proxy.d.ts-Text + /lib.es2015.reflect.d.ts Text-1 lib.es2015.reflect.d.ts-Text + /lib.es2015.symbol.d.ts Text-1 lib.es2015.symbol.d.ts-Text + /lib.es2015.symbol.wellknown.d.ts Text-1 lib.es2015.symbol.wellknown.d.ts-Text + /lib.es2017.date.d.ts Text-1 lib.es2017.date.d.ts-Text + /lib.es2017.object.d.ts Text-1 lib.es2017.object.d.ts-Text + /lib.es2017.sharedmemory.d.ts Text-1 lib.es2017.sharedmemory.d.ts-Text + /lib.es2017.string.d.ts Text-1 lib.es2017.string.d.ts-Text + /lib.es2017.intl.d.ts Text-1 lib.es2017.intl.d.ts-Text + /lib.es2017.typedarrays.d.ts Text-1 lib.es2017.typedarrays.d.ts-Text + /lib.es2018.asynciterable.d.ts Text-1 lib.es2018.asynciterable.d.ts-Text + /lib.es2018.intl.d.ts Text-1 lib.es2018.intl.d.ts-Text + /lib.es2018.promise.d.ts Text-1 lib.es2018.promise.d.ts-Text + /lib.es2018.regexp.d.ts Text-1 lib.es2018.regexp.d.ts-Text + /lib.es2019.object.d.ts Text-1 lib.es2019.object.d.ts-Text + /lib.es2019.string.d.ts Text-1 lib.es2019.string.d.ts-Text + /lib.es2019.symbol.d.ts Text-1 lib.es2019.symbol.d.ts-Text + /lib.es2019.intl.d.ts Text-1 lib.es2019.intl.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "Component" + /lib.d.ts Text-1 lib.d.ts-Text + /lib.es2015.collection.d.ts Text-1 lib.es2015.collection.d.ts-Text + /lib.es2015.core.d.ts Text-1 lib.es2015.core.d.ts-Text + /lib.es2015.d.ts Text-1 lib.es2015.d.ts-Text + /lib.es2016.array.include.d.ts Text-1 lib.es2016.array.include.d.ts-Text + /lib.es2016.d.ts Text-1 lib.es2016.d.ts-Text + /lib.es2017.d.ts Text-1 lib.es2017.d.ts-Text + /lib.es2018.asyncgenerator.d.ts Text-1 lib.es2018.asyncgenerator.d.ts-Text + /lib.es2018.d.ts Text-1 lib.es2018.d.ts-Text + /lib.es2019.array.d.ts Text-1 lib.es2019.array.d.ts-Text + /lib.es2019.d.ts Text-1 lib.es2019.d.ts-Text + /node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + + + lib.es5.d.ts + Library referenced via 'es5' from file 'lib.es2015.d.ts' + Matched by default include pattern '**/*' + lib.es2015.generator.d.ts + Library referenced via 'es2015.generator' from file 'lib.es2015.d.ts' + Matched by default include pattern '**/*' + lib.es2015.iterable.d.ts + Library referenced via 'es2015.iterable' from file 'lib.es2015.d.ts' + Library referenced via 'es2015.iterable' from file 'lib.es2015.generator.d.ts' + Matched by default include pattern '**/*' + Library referenced via 'es2015.iterable' from file 'lib.es2018.asynciterable.d.ts' + Library referenced via 'es2015.iterable' from file 'lib.es2019.object.d.ts' + lib.es2015.promise.d.ts + Library referenced via 'es2015.promise' from file 'lib.es2015.d.ts' + Matched by default include pattern '**/*' + lib.es2015.proxy.d.ts + Library referenced via 'es2015.proxy' from file 'lib.es2015.d.ts' + Matched by default include pattern '**/*' + lib.es2015.reflect.d.ts + Library referenced via 'es2015.reflect' from file 'lib.es2015.d.ts' + Matched by default include pattern '**/*' + lib.es2015.symbol.d.ts + Library referenced via 'es2015.symbol' from file 'lib.es2015.iterable.d.ts' + Library referenced via 'es2015.symbol' from file 'lib.es2015.d.ts' + Library referenced via 'es2015.symbol' from file 'lib.es2015.symbol.wellknown.d.ts' + Matched by default include pattern '**/*' + Library referenced via 'es2015.symbol' from file 'lib.es2017.sharedmemory.d.ts' + Library referenced via 'es2015.symbol' from file 'lib.es2018.asynciterable.d.ts' + lib.es2015.symbol.wellknown.d.ts + Library referenced via 'es2015.symbol.wellknown' from file 'lib.es2015.d.ts' + Matched by default include pattern '**/*' + Library referenced via 'es2015.symbol.wellknown' from file 'lib.es2017.sharedmemory.d.ts' + lib.es2017.date.d.ts + Library referenced via 'es2017.date' from file 'lib.es2017.d.ts' + Matched by default include pattern '**/*' + lib.es2017.object.d.ts + Library referenced via 'es2017.object' from file 'lib.es2017.d.ts' + Matched by default include pattern '**/*' + lib.es2017.sharedmemory.d.ts + Library referenced via 'es2017.sharedmemory' from file 'lib.es2017.d.ts' + Matched by default include pattern '**/*' + lib.es2017.string.d.ts + Library referenced via 'es2017.string' from file 'lib.es2017.d.ts' + Matched by default include pattern '**/*' + lib.es2017.intl.d.ts + Library referenced via 'es2017.intl' from file 'lib.es2017.d.ts' + Matched by default include pattern '**/*' + lib.es2017.typedarrays.d.ts + Library referenced via 'es2017.typedarrays' from file 'lib.es2017.d.ts' + Matched by default include pattern '**/*' + lib.es2018.asynciterable.d.ts + Library referenced via 'es2018.asynciterable' from file 'lib.es2018.asyncgenerator.d.ts' + Matched by default include pattern '**/*' + Library referenced via 'es2018.asynciterable' from file 'lib.es2018.d.ts' + lib.es2018.intl.d.ts + Library referenced via 'es2018.intl' from file 'lib.es2018.d.ts' + Matched by default include pattern '**/*' + lib.es2018.promise.d.ts + Library referenced via 'es2018.promise' from file 'lib.es2018.d.ts' + Matched by default include pattern '**/*' + lib.es2018.regexp.d.ts + Library referenced via 'es2018.regexp' from file 'lib.es2018.d.ts' + Matched by default include pattern '**/*' + lib.es2019.object.d.ts + Library referenced via 'es2019.object' from file 'lib.es2019.d.ts' + Matched by default include pattern '**/*' + lib.es2019.string.d.ts + Library referenced via 'es2019.string' from file 'lib.es2019.d.ts' + Matched by default include pattern '**/*' + lib.es2019.symbol.d.ts + Library referenced via 'es2019.symbol' from file 'lib.es2019.d.ts' + Matched by default include pattern '**/*' + lib.es2019.intl.d.ts + Library referenced via 'es2019.intl' from file 'lib.es2019.d.ts' + Matched by default include pattern '**/*' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + Library referenced via 'decorators' from file 'lib.es5.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + Library referenced via 'decorators.legacy' from file 'lib.es5.d.ts' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + lib.es2015.collection.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2015.collection' from file 'lib.es2015.d.ts' + lib.es2015.core.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2015.core' from file 'lib.es2015.d.ts' + lib.es2015.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2015' from file 'lib.es2016.d.ts' + lib.es2016.array.include.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2016.array.include' from file 'lib.es2016.d.ts' + lib.es2016.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2016' from file 'lib.es2017.d.ts' + lib.es2017.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2017' from file 'lib.es2018.d.ts' + lib.es2018.asyncgenerator.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2018.asyncgenerator' from file 'lib.es2018.d.ts' + lib.es2018.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2018' from file 'lib.es2019.d.ts' + lib.es2019.array.d.ts + Matched by default include pattern '**/*' + Library referenced via 'es2019.array' from file 'lib.es2019.d.ts' + lib.es2019.d.ts + Matched by default include pattern '**/*' + node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es2019\"] } }" + /node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (37) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.collection.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.core.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.generator.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.iterable.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.promise.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.proxy.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.reflect.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.symbol.d.ts: *new* + {"pollingInterval":500} +/lib.es2015.symbol.wellknown.d.ts: *new* + {"pollingInterval":500} +/lib.es2016.array.include.d.ts: *new* + {"pollingInterval":500} +/lib.es2016.d.ts: *new* + {"pollingInterval":500} +/lib.es2017.d.ts: *new* + {"pollingInterval":500} +/lib.es2017.date.d.ts: *new* + {"pollingInterval":500} +/lib.es2017.intl.d.ts: *new* + {"pollingInterval":500} +/lib.es2017.object.d.ts: *new* + {"pollingInterval":500} +/lib.es2017.sharedmemory.d.ts: *new* + {"pollingInterval":500} +/lib.es2017.string.d.ts: *new* + {"pollingInterval":500} +/lib.es2017.typedarrays.d.ts: *new* + {"pollingInterval":500} +/lib.es2018.asyncgenerator.d.ts: *new* + {"pollingInterval":500} +/lib.es2018.asynciterable.d.ts: *new* + {"pollingInterval":500} +/lib.es2018.d.ts: *new* + {"pollingInterval":500} +/lib.es2018.intl.d.ts: *new* + {"pollingInterval":500} +/lib.es2018.promise.d.ts: *new* + {"pollingInterval":500} +/lib.es2018.regexp.d.ts: *new* + {"pollingInterval":500} +/lib.es2019.array.d.ts: *new* + {"pollingInterval":500} +/lib.es2019.d.ts: *new* + {"pollingInterval":500} +/lib.es2019.intl.d.ts: *new* + {"pollingInterval":500} +/lib.es2019.object.d.ts: *new* + {"pollingInterval":500} +/lib.es2019.string.d.ts: *new* + {"pollingInterval":500} +/lib.es2019.symbol.d.ts: *new* + {"pollingInterval":500} +/lib.es5.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/react/index.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (37) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.es2015.collection.d.ts: + {"pollingInterval":500} +/lib.es2015.core.d.ts: + {"pollingInterval":500} +/lib.es2015.d.ts: + {"pollingInterval":500} +/lib.es2015.generator.d.ts: + {"pollingInterval":500} +/lib.es2015.iterable.d.ts: + {"pollingInterval":500} +/lib.es2015.promise.d.ts: + {"pollingInterval":500} +/lib.es2015.proxy.d.ts: + {"pollingInterval":500} +/lib.es2015.reflect.d.ts: + {"pollingInterval":500} +/lib.es2015.symbol.d.ts: + {"pollingInterval":500} +/lib.es2015.symbol.wellknown.d.ts: + {"pollingInterval":500} +/lib.es2016.array.include.d.ts: + {"pollingInterval":500} +/lib.es2016.d.ts: + {"pollingInterval":500} +/lib.es2017.d.ts: + {"pollingInterval":500} +/lib.es2017.date.d.ts: + {"pollingInterval":500} +/lib.es2017.intl.d.ts: + {"pollingInterval":500} +/lib.es2017.object.d.ts: + {"pollingInterval":500} +/lib.es2017.sharedmemory.d.ts: + {"pollingInterval":500} +/lib.es2017.string.d.ts: + {"pollingInterval":500} +/lib.es2017.typedarrays.d.ts: + {"pollingInterval":500} +/lib.es2018.asyncgenerator.d.ts: + {"pollingInterval":500} +/lib.es2018.asynciterable.d.ts: + {"pollingInterval":500} +/lib.es2018.d.ts: + {"pollingInterval":500} +/lib.es2018.intl.d.ts: + {"pollingInterval":500} +/lib.es2018.promise.d.ts: + {"pollingInterval":500} +/lib.es2018.regexp.d.ts: + {"pollingInterval":500} +/lib.es2019.array.d.ts: + {"pollingInterval":500} +/lib.es2019.d.ts: + {"pollingInterval":500} +/lib.es2019.intl.d.ts: + {"pollingInterval":500} +/lib.es2019.object.d.ts: + {"pollingInterval":500} +/lib.es2019.string.d.ts: + {"pollingInterval":500} +/lib.es2019.symbol.d.ts: + {"pollingInterval":500} +/lib.es5.d.ts: + {"pollingInterval":500} +/node_modules/@types/react/index.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 10 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 10 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Atomics", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Map", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Promise", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Proxy", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Reflect", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Set", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "SharedArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Symbol", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "WeakMap", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "WeakSet", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Component", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "Component", + "exportMapKey": "9 * Component ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js new file mode 100644 index 00000000000..bf659d12c68 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js @@ -0,0 +1,1273 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/mylib] symlink(/packages/mylib) +//// [/package.json] +{ "dependencies": { "mylib": "file:packages/mylib" } } + +//// [/packages/mylib/index.ts] +export * from "./mySubDir"; + +//// [/packages/mylib/mySubDir/index.ts] +export * from "./myClass"; +export * from "./myClass2"; + +//// [/packages/mylib/mySubDir/myClass.ts] +export class MyClass {} + +//// [/packages/mylib/mySubDir/myClass2.ts] +export class MyClass2 {} + +//// [/packages/mylib/package.json] +{ "name": "mylib", "version": "1.0.0", "main": "index.js", "types": "index" } + +//// [/src/index.ts] + +const a = new MyClass(); +const b = new MyClass2(); + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/packages/mylib/index.ts", + "/packages/mylib/mySubDir/index.ts", + "/packages/mylib/mySubDir/myClass.ts", + "/packages/mylib/mySubDir/myClass2.ts", + "/src/index.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/myClass.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/myClass2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" + /packages/mylib/mySubDir/myClass2.ts Text-1 "export class MyClass2 {}" + /packages/mylib/mySubDir/index.ts Text-1 "export * from \"./myClass\";\nexport * from \"./myClass2\";" + /packages/mylib/index.ts Text-1 "export * from \"./mySubDir\";" + /src/index.ts Text-1 "\nconst a = new MyClass();\nconst b = new MyClass2();" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + packages/mylib/mySubDir/myClass.ts + Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' + Matched by default include pattern '**/*' + packages/mylib/mySubDir/myClass2.ts + Imported via "./myClass2" from file 'packages/mylib/mySubDir/index.ts' + Matched by default include pattern '**/*' + packages/mylib/mySubDir/index.ts + Imported via "./mySubDir" from file 'packages/mylib/index.ts' + Matched by default include pattern '**/*' + packages/mylib/index.ts + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (4) + /packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" + /packages/mylib/mySubDir/myClass2.ts Text-1 "export class MyClass2 {}" + /packages/mylib/mySubDir/index.ts Text-1 "export * from \"./myClass\";\nexport * from \"./myClass2\";" + /packages/mylib/index.ts Text-1 "export * from \"./mySubDir\";" + + + packages/mylib/mySubDir/myClass.ts + Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' + packages/mylib/mySubDir/myClass2.ts + Imported via "./myClass2" from file 'packages/mylib/mySubDir/index.ts' + packages/mylib/mySubDir/index.ts + Imported via "./mySubDir" from file 'packages/mylib/index.ts' + packages/mylib/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/packages/mylib/index.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: *new* + {"pollingInterval":500} +/src/index.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} +/packages/mylib/mySubDir: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/packages/mylib/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} +/packages/mylib/mySubDir: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 2, + "offset": 22 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 4 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 15 + }, + "end": { + "line": 2, + "offset": 22 + } + }, + "entries": [ + { + "name": "b", + "kind": "const", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "MyClass", + "kind": "class", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "mylib", + "sourceDisplay": [ + { + "text": "mylib", + "kind": "text" + } + ], + "data": { + "exportName": "MyClass", + "exportMapKey": "7 * MyClass ", + "moduleSpecifier": "mylib", + "fileName": "/packages/mylib/index.ts" + } + }, + { + "name": "MyClass2", + "kind": "class", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "mylib", + "sourceDisplay": [ + { + "text": "mylib", + "kind": "text" + } + ], + "data": { + "exportName": "MyClass2", + "exportMapKey": "8 * MyClass2 ", + "moduleSpecifier": "mylib", + "fileName": "/packages/mylib/index.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/packages/mylib/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} +/packages/mylib/mySubDir: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 2, + "offset": 22, + "entryNames": [ + { + "name": "MyClass", + "source": "mylib", + "data": { + "exportName": "MyClass", + "fileName": "/packages/mylib/index.ts" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 6, + "success": true, + "body": [ + { + "name": "MyClass", + "kindModifiers": "export", + "kind": "constructor", + "displayParts": [ + { + "text": "constructor", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "MyClass", + "kind": "className" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "MyClass", + "kind": "className" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"mylib\"", + "changes": [ + { + "fileName": "/src/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import { MyClass } from \"mylib\";\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "mylib", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "mylib", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { MyClass } from \"mylib\";\n" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js new file mode 100644 index 00000000000..ed4a29586b0 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js @@ -0,0 +1,1273 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/mylib] symlink(/packages/mylib) +//// [/package.json] +{ "dependencies": { "mylib": "file:packages/mylib" } } + +//// [/packages/mylib/index.ts] +export * from "./mySubDir"; + +//// [/packages/mylib/mySubDir/index.ts] +export * from "./myClass"; +export * from "./myClass2"; + +//// [/packages/mylib/mySubDir/myClass.ts] +export class MyClass {} + +//// [/packages/mylib/mySubDir/myClass2.ts] +export class MyClass2 {} + +//// [/packages/mylib/package.json] +{ "name": "mylib", "version": "1.0.0" } + +//// [/src/index.ts] + +const a = new MyClass(); +const b = new MyClass2(); + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/packages/mylib/index.ts", + "/packages/mylib/mySubDir/index.ts", + "/packages/mylib/mySubDir/myClass.ts", + "/packages/mylib/mySubDir/myClass2.ts", + "/src/index.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/myClass.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/myClass2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" + /packages/mylib/mySubDir/myClass2.ts Text-1 "export class MyClass2 {}" + /packages/mylib/mySubDir/index.ts Text-1 "export * from \"./myClass\";\nexport * from \"./myClass2\";" + /packages/mylib/index.ts Text-1 "export * from \"./mySubDir\";" + /src/index.ts Text-1 "\nconst a = new MyClass();\nconst b = new MyClass2();" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + packages/mylib/mySubDir/myClass.ts + Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' + Matched by default include pattern '**/*' + packages/mylib/mySubDir/myClass2.ts + Imported via "./myClass2" from file 'packages/mylib/mySubDir/index.ts' + Matched by default include pattern '**/*' + packages/mylib/mySubDir/index.ts + Imported via "./mySubDir" from file 'packages/mylib/index.ts' + Matched by default include pattern '**/*' + packages/mylib/index.ts + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /dev/null/autoImportProviderProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (4) + /packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" + /packages/mylib/mySubDir/myClass2.ts Text-1 "export class MyClass2 {}" + /packages/mylib/mySubDir/index.ts Text-1 "export * from \"./myClass\";\nexport * from \"./myClass2\";" + /packages/mylib/index.ts Text-1 "export * from \"./mySubDir\";" + + + packages/mylib/mySubDir/myClass.ts + Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' + packages/mylib/mySubDir/myClass2.ts + Imported via "./myClass2" from file 'packages/mylib/mySubDir/index.ts' + packages/mylib/mySubDir/index.ts + Imported via "./mySubDir" from file 'packages/mylib/index.ts' + packages/mylib/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/packages/mylib/index.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: *new* + {"pollingInterval":500} +/src/index.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} +/packages/mylib/mySubDir: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/packages/mylib/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} +/packages/mylib/mySubDir: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 2, + "offset": 22 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 4 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 15 + }, + "end": { + "line": 2, + "offset": 22 + } + }, + "entries": [ + { + "name": "b", + "kind": "const", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "MyClass", + "kind": "class", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "mylib", + "sourceDisplay": [ + { + "text": "mylib", + "kind": "text" + } + ], + "data": { + "exportName": "MyClass", + "exportMapKey": "7 * MyClass ", + "moduleSpecifier": "mylib", + "fileName": "/packages/mylib/index.ts" + } + }, + { + "name": "MyClass2", + "kind": "class", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "mylib", + "sourceDisplay": [ + { + "text": "mylib", + "kind": "text" + } + ], + "data": { + "exportName": "MyClass2", + "exportMapKey": "8 * MyClass2 ", + "moduleSpecifier": "mylib", + "fileName": "/packages/mylib/index.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/packages/mylib/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} +/packages/mylib/mySubDir: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 2, + "offset": 22, + "entryNames": [ + { + "name": "MyClass", + "source": "mylib", + "data": { + "exportName": "MyClass", + "fileName": "/packages/mylib/index.ts" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 6, + "success": true, + "body": [ + { + "name": "MyClass", + "kindModifiers": "export", + "kind": "constructor", + "displayParts": [ + { + "text": "constructor", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "MyClass", + "kind": "className" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "MyClass", + "kind": "className" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"mylib\"", + "changes": [ + { + "fileName": "/src/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import { MyClass } from \"mylib\";\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "mylib", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "mylib", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { MyClass } from \"mylib\";\n" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap1.js new file mode 100644 index 00000000000..da0959a3e1a --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap1.js @@ -0,0 +1,1043 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + ".": { + "types": "./lib/index.d.ts" + }, + "./lol": { + "types": "./lib/lol.d.ts" + } + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/foo.ts Text-1 "fooFrom" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/foo.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + /node_modules/dependency/lib/lol.d.ts Text-1 "export function fooFromLol(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + node_modules/dependency/lib/lol.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 2 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency", + "sourceDisplay": [ + { + "text": "dependency", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency", + "fileName": "/node_modules/dependency/lib/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "fooFromLol", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency/lol", + "sourceDisplay": [ + { + "text": "dependency/lol", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromLol", + "exportMapKey": "10 * fooFromLol ", + "moduleSpecifier": "dependency/lol", + "fileName": "/node_modules/dependency/lib/lol.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js new file mode 100644 index 00000000000..c1cc6b41030 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js @@ -0,0 +1,1034 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "types": "./lib/index.d.ts", + "exports": { + ".": { + "types": "./lib/index.d.ts" + }, + "./lol": { + "types": "./lib/lol.d.ts" + } + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/foo.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/foo.ts Text-1 "fooFrom" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/foo.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency", + "sourceDisplay": [ + { + "text": "dependency", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency", + "fileName": "/node_modules/dependency/lib/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js new file mode 100644 index 00000000000..495d159dbe1 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js @@ -0,0 +1,1038 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "name": "dependency", + "version": "1.0.0", + "main": "./lib/index.js", + "exports": "./lib/lol.d.ts" +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/foo.ts Text-1 "fooFrom" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/foo.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + /node_modules/dependency/lib/lol.d.ts Text-1 "export function fooFromLol(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is CommonJS module because 'node_modules/dependency/package.json' does not have field "type" + node_modules/dependency/lib/lol.d.ts + Root file specified for compilation + File is CommonJS module because 'node_modules/dependency/package.json' does not have field "type" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromLol", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency", + "sourceDisplay": [ + { + "text": "dependency", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromLol", + "exportMapKey": "10 * fooFromLol ", + "moduleSpecifier": "dependency", + "fileName": "/node_modules/dependency/lib/lol.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap4.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap4.js new file mode 100644 index 00000000000..0144a7524bb --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap4.js @@ -0,0 +1,1010 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + "types": "./lib/index.d.ts", + "require": "./lib/lol.js" + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/foo.ts Text-1 "fooFrom" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/foo.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency", + "sourceDisplay": [ + { + "text": "dependency", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency", + "fileName": "/node_modules/dependency/lib/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js new file mode 100644 index 00000000000..3ee8301f7bf --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js @@ -0,0 +1,1077 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/dependency/lib/index.d.ts] +export declare function fooFromIndex(): void; + +//// [/node_modules/@types/dependency/lib/lol.d.ts] +export declare function fooFromLol(): void; + +//// [/node_modules/@types/dependency/package.json] +{ + "type": "module", + "name": "@types/dependency", + "version": "1.0.0", + "exports": { + ".": "./lib/index.d.ts", + "./lol": "./lib/lol.d.ts" + } +} + +//// [/node_modules/dependency/lib/index.js] +export function fooFromIndex() {} + +//// [/node_modules/dependency/lib/lol.js] +export function fooFromLol() {} + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + ".": "./lib/index.js", + "./lol": "./lib/lol.js" + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/lib/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/foo.ts Text-1 "fooFrom" + /node_modules/@types/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void;" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/foo.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + node_modules/@types/dependency/lib/index.d.ts + Entry point for implicit type library 'dependency' with packageId '@types/dependency/lib/index.d.ts@1.0.0' + File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/node_modules/@types/dependency/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":250} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/dependency/lib/package.json: + {"pollingInterval":2000} +/node_modules/@types/dependency/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/@types/dependency/lib/lol.d.ts Text-1 "export declare function fooFromLol(): void;" + + + node_modules/@types/dependency/lib/lol.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 2 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency", + "sourceDisplay": [ + { + "text": "dependency", + "kind": "text" + } + ], + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency", + "fileName": "/node_modules/@types/dependency/lib/index.d.ts" + } + }, + { + "name": "fooFromLol", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency/lol", + "sourceDisplay": [ + { + "text": "dependency/lol", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromLol", + "exportMapKey": "10 * fooFromLol ", + "moduleSpecifier": "dependency/lol", + "fileName": "/node_modules/@types/dependency/lib/lol.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/dependency/lib/lol.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/dependency/lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/node_modules/@types/dependency/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js new file mode 100644 index 00000000000..a80633575ae --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js @@ -0,0 +1,1084 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/dependency/lib/index.d.ts] +export declare function fooFromAtTypesIndex(): void; + +//// [/node_modules/@types/dependency/lib/lol.d.ts] +export declare function fooFromAtTypesLol(): void; + +//// [/node_modules/@types/dependency/package.json] +{ + "type": "module", + "name": "@types/dependency", + "version": "1.0.0", + "exports": { + ".": "./lib/index.d.ts", + "./lol": "./lib/lol.d.ts" + } +} + +//// [/node_modules/dependency/lib/index.d.ts] +export declare function fooFromIndex(): void + +//// [/node_modules/dependency/lib/index.js] +export function fooFromIndex() {} + +//// [/node_modules/dependency/lib/lol.d.ts] +export declare function fooFromLol(): void + +//// [/node_modules/dependency/lib/lol.js] +export function fooFromLol() {} + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + ".": "./lib/index.js", + "./lol": "./lib/lol.js" + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + }, + "devDependencies": { + "@types/dependency": "^1.0.0" + } +} + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/foo.ts Text-1 "fooFrom" + /node_modules/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/foo.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + node_modules/dependency/lib/index.d.ts + Entry point for implicit type library 'dependency' with packageId 'dependency/lib/index.d.ts@1.0.0' + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/dependency/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":250} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/dependency/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/dependency/lib/lol.d.ts Text-1 "export declare function fooFromLol(): void" + + + node_modules/dependency/lib/lol.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 2 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency", + "sourceDisplay": [ + { + "text": "dependency", + "kind": "text" + } + ], + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency", + "fileName": "/node_modules/dependency/lib/index.d.ts" + } + }, + { + "name": "fooFromLol", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency/lol", + "sourceDisplay": [ + { + "text": "dependency/lol", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromLol", + "exportMapKey": "10 * fooFromLol ", + "moduleSpecifier": "dependency/lol", + "fileName": "/node_modules/dependency/lib/lol.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/dependency/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap7.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap7.js new file mode 100644 index 00000000000..703baaf30d4 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap7.js @@ -0,0 +1,1066 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + ".": { + "types": "./lib/index.d.ts" + }, + "./lol": { + "types": "./lib/lol.d.ts" + } + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/bar.ts] +import { fooFromIndex } from "dependency"; + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/bar.ts", + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/bar.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + /src/bar.ts Text-1 "import { fooFromIndex } from \"dependency\";" + /src/foo.ts Text-1 "fooFrom" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + node_modules/dependency/lib/index.d.ts + Imported via "dependency" from file 'src/bar.ts' with packageId 'dependency/lib/index.d.ts@1.0.0' + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + src/bar.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + src/foo.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":250} +/src/bar.ts: *new* + {"pollingInterval":500} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/dependency/lib/lol.d.ts Text-1 "export function fooFromLol(): void;" + + + node_modules/dependency/lib/lol.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 2 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency", + "sourceDisplay": [ + { + "text": "dependency", + "kind": "text" + } + ], + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency", + "fileName": "/node_modules/dependency/lib/index.d.ts" + } + }, + { + "name": "fooFromLol", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency/lol", + "sourceDisplay": [ + { + "text": "dependency/lol", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromLol", + "exportMapKey": "10 * fooFromLol ", + "moduleSpecifier": "dependency/lol", + "fileName": "/node_modules/dependency/lib/lol.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap8.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap8.js new file mode 100644 index 00000000000..ce53878bb5e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap8.js @@ -0,0 +1,1883 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + "./lol": { + "import": "./lib/index.js", + "require": "./lib/lol.js" + } + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/bar.ts] +import { fooFromIndex } from "dependency"; + +//// [/src/foo.cts] +fooFrom + +//// [/src/foo.mts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/bar.ts", + "/src/foo.cts", + "/src/foo.mts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/bar.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.cts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.mts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/bar.ts Text-1 "import { fooFromIndex } from \"dependency\";" + /src/foo.cts Text-1 "fooFrom" + /src/foo.mts Text-1 "fooFrom" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/bar.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + src/foo.cts + Matched by default include pattern '**/*' + src/foo.mts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/src/bar.ts: *new* + {"pollingInterval":500} +/src/foo.cts: *new* + {"pollingInterval":500} +/src/foo.mts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.cts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.cts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.cts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.cts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/src/foo.mts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.cts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.cts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + /node_modules/dependency/lib/lol.d.ts Text-1 "export function fooFromLol(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + node_modules/dependency/lib/lol.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromLol", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency/lol", + "sourceDisplay": [ + { + "text": "dependency/lol", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromLol", + "exportMapKey": "10 * fooFromLol ", + "moduleSpecifier": "dependency/lol", + "fileName": "/node_modules/dependency/lib/lol.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/src/foo.mts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/src/foo.mts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.mts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.mts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.cts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /src/foo.mts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.mts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/src/foo.mts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 6, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency/lol", + "sourceDisplay": [ + { + "text": "dependency/lol", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency/lol", + "fileName": "/node_modules/dependency/lib/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: + {} *new* + +watchedDirectoriesRecursive *deleted*:: +/node_modules: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap9.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap9.js new file mode 100644 index 00000000000..e80f2ff86cd --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap9.js @@ -0,0 +1,1024 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + "./lol": ["./lib/index.js", "./lib/lol.js"] + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/bar.ts] +import { fooFromIndex } from "dependency"; + +//// [/src/foo.ts] +fooFrom + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/src/bar.ts", + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/bar.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /src/bar.ts Text-1 "import { fooFromIndex } from \"dependency\";" + /src/foo.ts Text-1 "fooFrom" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + src/bar.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + src/foo.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/src/bar.ts: *new* + {"pollingInterval":500} +/src/foo.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/foo.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 8 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 8 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "fooFromIndex", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "dependency/lol", + "sourceDisplay": [ + { + "text": "dependency/lol", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "fooFromIndex", + "exportMapKey": "12 * fooFromIndex ", + "moduleSpecifier": "dependency/lol", + "fileName": "/node_modules/dependency/lib/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/src/bar.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js new file mode 100644 index 00000000000..7d3041aa5ba --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js @@ -0,0 +1,951 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts] +export class BrowserRouterFromDts {} + +//// [/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json] +{ "name": "@types/react-router-dom", "version": "16.8.4", "types": "index.d.ts" } + +//// [/project/index.js] +BrowserRouter + +//// [/project/node_modules/react-router-dom/BrowserRouter.js] +export const BrowserRouterFromJs = () => null; + +//// [/project/node_modules/react-router-dom/index.js] +import "./BrowserRouter"; +export {}; + +//// [/project/node_modules/react-router-dom/package.json] +{ "name": "react-router-dom", "version": "16.8.4", "main": "index.js" } + +//// [/project/package.json] +{ "dependencies": { "react-router-dom": "*" } } + +//// [/project/tsconfig.json] +{ "compilerOptions": { "module": "commonjs", "allowJs": true, "checkJs": true, "maxNodeModuleJsDepth": 2 }, "typeAcquisition": { "enable": true } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /Library/Caches/typescript/node_modules/@types/react-router-dom +Info seq [hh:mm:ss:mss] For info: /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Library/Caches/typescript/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json SVC-1-0 "{ \"name\": \"@types/react-router-dom\", \"version\": \"16.8.4\", \"types\": \"index.d.ts\" }" + /Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts Text-1 "export class BrowserRouterFromDts {}" + + + ../../../../../../lib.d.ts + Default library for target 'es5' + ../../../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../../lib.d.ts' + ../../../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../../lib.d.ts' + package.json + Root file specified for compilation + index.d.ts + Entry point for implicit type library 'react-router-dom' with packageId '@types/react-router-dom/index.d.ts@16.8.4' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/Library/Caches/typescript/node_modules/@types/jsconfig.json: *new* + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/jsconfig.json: *new* + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: *new* + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: *new* + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/tsconfig.json: *new* + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/jsconfig.json: *new* + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/Library/Caches/typescript/node_modules: *new* + {} +/Library/Caches/typescript/node_modules/@types: *new* + {} +/Library/Caches/typescript/node_modules/@types/node_modules/@types: *new* + {} +/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules: *new* + {} +/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types: *new* + {} +/Library/Caches/typescript/node_modules/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/index.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/index.js :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/tsconfig.json 2000 undefined Project: /project/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/project/tsconfig.json", + "reason": "Creating possible configured project for /project/index.js to open" + } + } +Info seq [hh:mm:ss:mss] Config: /project/tsconfig.json : { + "rootNames": [ + "/project/index.js" + ], + "options": { + "module": 1, + "allowJs": true, + "checkJs": true, + "maxNodeModuleJsDepth": 2, + "configFilePath": "/project/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/index.js SVC-1-0 "BrowserRouter" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts Text-1 "export class BrowserRouterFromDts {}" + + + ../Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/project/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/project/index.js", + "configFile": "/project/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/project/index.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /Library/Caches/typescript/node_modules/@types/react-router-dom/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /project/index.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /project/tsconfig.json +After Request +watchedFiles:: +/Library/Caches/typescript/node_modules/@types/jsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/jsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/tsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/jsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/package.json: *new* + {"pollingInterval":250} +/project/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/Library/Caches/typescript/node_modules: + {} +/Library/Caches/typescript/node_modules/@types: + {} +/Library/Caches/typescript/node_modules/@types/node_modules/@types: + {} +/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules: + {} +/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types: + {} +/Library/Caches/typescript/node_modules/node_modules/@types: + {} +/project: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "allowIncompleteCompletions": true, + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/project/index.js", + "line": 1, + "offset": 14 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /library/caches/typescript/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /library/caches/typescript/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 14 + } + }, + "entries": [ + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "BrowserRouterFromDts", + "kind": "class", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "react-router-dom", + "sourceDisplay": [ + { + "text": "react-router-dom", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "BrowserRouterFromDts", + "exportMapKey": "20 * BrowserRouterFromDts ", + "moduleSpecifier": "react-router-dom", + "fileName": "/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/Library/Caches/typescript/node_modules/@types/jsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/jsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/@types/tsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/jsconfig.json: + {"pollingInterval":2000} +/Library/Caches/typescript/node_modules/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/package.json: + {"pollingInterval":250} +/project/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/Library/Caches/typescript/node_modules: + {} +/Library/Caches/typescript/node_modules/@types: + {} +/Library/Caches/typescript/node_modules/@types/node_modules/@types: + {} +/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules: + {} +/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types: + {} +/Library/Caches/typescript/node_modules/node_modules/@types: + {} +/library/caches/typescript/node_modules: *new* + {} +/project: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js new file mode 100644 index 00000000000..f0978308548 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js @@ -0,0 +1,1183 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +type A = { name: string } + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/fp-ts/index.d.ts] +export * as string from "./lib/string"; + +//// [/node_modules/fp-ts/lib/string.d.ts] +export declare const fromString: (s: string) => string; +export type SafeString = string; + +//// [/node_modules/fp-ts/package.json] +{ "name": "fp-ts", "version": "0.10.4" } + +//// [/package.json] +{ "dependencies": { "fp-ts": "^0.10.4" } } + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/fp-ts/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/fp-ts +Info seq [hh:mm:ss:mss] For info: /node_modules/fp-ts/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/fp-ts/package.json SVC-1-0 "{ \"name\": \"fp-ts\", \"version\": \"0.10.4\" }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/fp-ts/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-1-0 "type A = { name: string }" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/fp-ts/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/fp-ts/lib/string.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/fp-ts/lib/string.d.ts Text-1 "export declare const fromString: (s: string) => string;\nexport type SafeString = string;" + /node_modules/fp-ts/index.d.ts Text-1 "export * as string from \"./lib/string\";" + + + node_modules/fp-ts/lib/string.d.ts + Imported via "./lib/string" from file 'node_modules/fp-ts/index.d.ts' with packageId 'fp-ts/lib/string.d.ts@0.10.4' + node_modules/fp-ts/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/index.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/fp-ts/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/fp-ts/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/fp-ts/lib/string.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 24 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 2 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "A", + "kind": "type", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBufferConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBufferLike", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBufferTypes", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBufferView", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayLike", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Awaited", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "BooleanConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "CallableFunction", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Capitalize", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassAccessorDecoratorContext", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassAccessorDecoratorResult", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassAccessorDecoratorTarget", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassDecorator", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassDecoratorContext", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassFieldDecoratorContext", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassGetterDecoratorContext", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassMemberDecoratorContext", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassMethodDecoratorContext", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ClassSetterDecoratorContext", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ConcatArray", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ConstructorParameters", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "DataViewConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "DateConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "DecoratorContext", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "DecoratorMetadata", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "DecoratorMetadataObject", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ErrorConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalErrorConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Exclude", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Extract", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float32ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "FunctionConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "IArguments", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ImportAssertions", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ImportAttributes", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ImportCallOptions", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ImportMeta", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "InstanceType", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Lowercase", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "MethodDecorator", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NewableFunction", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NonNullable", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NumberConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ObjectConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Omit", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "OmitThisParameter", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ParameterDecorator", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Parameters", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Partial", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Pick", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Promise", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "PromiseConstructorLike", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "PromiseLike", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "PropertyDecorator", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "PropertyDescriptor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "PropertyDescriptorMap", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "PropertyKey", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeErrorConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Readonly", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReadonlyArray", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Record", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceErrorConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExpConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExpExecArray", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExpMatchArray", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Required", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReturnType", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "StringConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Symbol", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "SyntaxErrorConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "TemplateStringsArray", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ThisParameterType", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ThisType", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypedPropertyDescriptor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "TypeErrorConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArrayConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uncapitalize", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uppercase", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "URIErrorConstructor", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "WeakKey", + "kind": "type", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "WeakKeyTypes", + "kind": "interface", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "SafeString", + "kind": "type", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "fp-ts/lib/string", + "sourceDisplay": [ + { + "text": "fp-ts/lib/string", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "SafeString", + "exportMapKey": "10 * SafeString ", + "moduleSpecifier": "fp-ts/lib/string", + "fileName": "/node_modules/fp-ts/lib/string.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "string", + "kind": "alias", + "kindModifiers": "declare", + "sortText": "16", + "hasAction": true, + "source": "fp-ts", + "sourceDisplay": [ + { + "text": "fp-ts", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "string", + "exportMapKey": "6 * string ", + "moduleSpecifier": "fp-ts", + "fileName": "/node_modules/fp-ts/index.d.ts", + "isPackageJsonImport": true + } + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/fp-ts/index.d.ts: + {"pollingInterval":500} +/node_modules/fp-ts/lib/string.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js new file mode 100644 index 00000000000..d9fe9fefef4 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js @@ -0,0 +1,439 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +autorun + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts] +export declare function autorun(): void; + +//// [/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/package.json] +{ "types": "dist/mobx.d.ts" } + +//// [/node_modules/mobx] symlink(/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx) +//// [/package.json] +{ "dependencies": { "mobx": "*" } } + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "autorun" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts Text-1 "export declare function autorun(): void;" + + + node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'autorun'.", + "start": 0, + "length": 7, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 8 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 8, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts Text-1 "export declare function autorun(): void;" + + + node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": [ + { + "fixName": "import", + "description": "Add import from \"mobx\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { autorun } from \"mobx\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { autorun } from \"mobx\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_referencesCrash.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_referencesCrash.js new file mode 100644 index 00000000000..51a267a3580 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_referencesCrash.js @@ -0,0 +1,602 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a/index.d.ts] +declare class A { +} +//# sourceMappingURL=index.d.ts.map + +//// [/a/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;CAAG"} + +//// [/a/index.ts] +class A {} + +//// [/a/package.json] +{} + +//// [/a/tsconfig.json] +{} + +//// [/b/b.ts] +/// +new A(); + +//// [/b/tsconfig.json] +{ + "compilerOptions": { "disableSourceOfProjectReferenceRedirect": true }, + "references": [{ "path": "../a" }] +} + +//// [/c/index.ts] +export {}; + +//// [/c/node_modules/a] symlink(/a) +//// [/c/package.json] +{ "dependencies": { "a": "*" } } + +//// [/c/tsconfig.json] +{ "references" [{ "path": "../a" }] } + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/package.json :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/package.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { + "rootNames": [ + "/a/index.ts" + ], + "options": { + "configFilePath": "/a/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a/index.ts Text-1 "class A {}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/package.json", + "configFile": "/a/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a/package.json SVC-1-0 "{}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/a/index.ts: *new* + {"pollingInterval":500} +/a/package.json: *new* + {"pollingInterval":250} +/a/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/a: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/c/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /c/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/tsconfig.json 2000 undefined Project: /c/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/c/tsconfig.json", + "reason": "Creating possible configured project for /c/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /c/tsconfig.json : { + "rootNames": [ + "/c/index.ts" + ], + "options": { + "configFilePath": "/c/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/a", + "originalPath": "../a" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /c 1 undefined Config: /c/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /c 1 undefined Config: /c/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /c/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /c/index.ts SVC-1-0 "export {};" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /a/index.ts Text-1 "class A {}" + + + ../a/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/c/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/c/index.ts", + "configFile": "/c/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 35 + }, + "text": "Referenced project '/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/c/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 16 + }, + "end": { + "line": 1, + "offset": 17 + }, + "text": "':' expected.", + "code": 1005, + "category": "error", + "fileName": "/c/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /c/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /c/tsconfig.json +After Request +watchedFiles:: +/a/index.ts: + {"pollingInterval":500} +/a/package.json: + {"pollingInterval":250} +/a/tsconfig.json: + {"pollingInterval":2000} +/c/package.json: *new* + {"pollingInterval":250} +/c/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/a: + {} +/c: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/b/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/b.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/tsconfig.json 2000 undefined Project: /b/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/b/tsconfig.json", + "reason": "Creating possible configured project for /b/b.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /b/tsconfig.json : { + "rootNames": [ + "/b/b.ts" + ], + "options": { + "disableSourceOfProjectReferenceRedirect": true, + "configFilePath": "/b/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/a", + "originalPath": "../a" + } + ] +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b 1 undefined Config: /b/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b 1 undefined Config: /b/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /b/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a/index.d.ts Text-1 "declare class A {\n}\n//# sourceMappingURL=index.d.ts.map" + /b/b.ts SVC-1-0 "/// \nnew A();" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../a/index.d.ts + Referenced via '../a/index.d.ts' from file 'b.ts' + b.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/b/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/b/b.ts", + "configFile": "/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 18 + }, + "end": { + "line": 3, + "offset": 36 + }, + "text": "Referenced project '/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/b/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /c/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /c/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /b/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /b/tsconfig.json +After Request +watchedFiles:: +/a/index.d.ts: *new* + {"pollingInterval":500} +/a/index.ts: + {"pollingInterval":500} +/a/package.json: + {"pollingInterval":250} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/tsconfig.json: *new* + {"pollingInterval":2000} +/c/package.json: + {"pollingInterval":250} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/a: + {} +/b: *new* + {} +/c: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/b/b.ts", + "line": 2, + "offset": 6 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/b.ts position 46 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/index.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/index.ts :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/index.ts :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /a/index.ts position 10 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 3, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "class", + "name": "class A", + "textSpan": { + "start": 10, + "length": 1 + }, + "displayParts": [ + { + "text": "class", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "A", + "kind": "className" + } + ], + "contextSpan": { + "start": 0, + "length": 10 + } + }, + "references": [ + { + "textSpan": { + "start": 45, + "length": 1 + }, + "fileName": "/b/b.ts", + "isWriteAccess": false + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":500} +/a/index.d.ts.map: *new* + {"pollingInterval":500} +/a/index.ts: + {"pollingInterval":500} +/a/package.json: + {"pollingInterval":250} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/package.json: + {"pollingInterval":250} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/a: + {} +/b: + {} +/c: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports1.js new file mode 100644 index 00000000000..c20647bf14f --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports1.js @@ -0,0 +1,1130 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/main.ts] + + +//// [/node_modules/pkg/a/a1.d.ts] +export const a1: number; + +//// [/node_modules/pkg/b/b1.d.ts] +export const b1: number; + +//// [/node_modules/pkg/b/b2.d.mts] +export const NOT_REACHABLE: number; + +//// [/node_modules/pkg/c/c1.d.ts] +export const c1: number; + +//// [/node_modules/pkg/c/subfolder/c2.d.mts] +export const c2: number; + +//// [/node_modules/pkg/d/d1.d.mts] +export const d1: number; + +//// [/node_modules/pkg/package.json] +{ + "name": "pkg", + "version": "1.0.0", + "exports": { + "./*": "./a/*.js", + "./b/*.js": "./b/*.js", + "./c/*": "./c/*", + "./d/*": { + "import": "./d/*.mjs" + } + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "pkg": "1.0.0" + } +} + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/pkg/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/pkg +Info seq [hh:mm:ss:mss] For info: /node_modules/pkg/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/pkg/package.json SVC-1-0 "{\n \"name\": \"pkg\",\n \"version\": \"1.0.0\",\n \"exports\": {\n \"./*\": \"./a/*.js\",\n \"./b/*.js\": \"./b/*.js\",\n \"./c/*\": \"./c/*\",\n \"./d/*\": {\n \"import\": \"./d/*.mjs\"\n }\n }\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/pkg/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/main.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /main.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /main.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/main.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /main.ts SVC-1-0 "" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + main.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 5 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/a/a1.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/b/b1.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/c/c1.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/c/subfolder/c2.d.mts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/d/d1.d.mts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/a/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/b/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/c/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (5) + /node_modules/pkg/a/a1.d.ts Text-1 "export const a1: number;" + /node_modules/pkg/b/b1.d.ts Text-1 "export const b1: number;" + /node_modules/pkg/c/c1.d.ts Text-1 "export const c1: number;" + /node_modules/pkg/c/subfolder/c2.d.mts Text-1 "export const c2: number;" + /node_modules/pkg/d/d1.d.mts Text-1 "export const d1: number;" + + + node_modules/pkg/a/a1.d.ts + Root file specified for compilation + File is CommonJS module because 'node_modules/pkg/package.json' does not have field "type" + node_modules/pkg/b/b1.d.ts + Root file specified for compilation + File is CommonJS module because 'node_modules/pkg/package.json' does not have field "type" + node_modules/pkg/c/c1.d.ts + Root file specified for compilation + File is CommonJS module because 'node_modules/pkg/package.json' does not have field "type" + node_modules/pkg/c/subfolder/c2.d.mts + Root file specified for compilation + node_modules/pkg/d/d1.d.mts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/main.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/pkg/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /main.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/pkg/a/a1.d.ts: *new* + {"pollingInterval":500} +/node_modules/pkg/a/package.json: *new* + {"pollingInterval":2000} +/node_modules/pkg/b/b1.d.ts: *new* + {"pollingInterval":500} +/node_modules/pkg/b/package.json: *new* + {"pollingInterval":2000} +/node_modules/pkg/c/c1.d.ts: *new* + {"pollingInterval":500} +/node_modules/pkg/c/package.json: *new* + {"pollingInterval":2000} +/node_modules/pkg/c/subfolder/c2.d.mts: *new* + {"pollingInterval":500} +/node_modules/pkg/d/d1.d.mts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/main.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 5 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "a1", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "pkg/a1", + "sourceDisplay": [ + { + "text": "pkg/a1", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "a1", + "exportMapKey": "2 * a1 ", + "moduleSpecifier": "pkg/a1", + "fileName": "/node_modules/pkg/a/a1.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "b1", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "pkg/b/b1.js", + "sourceDisplay": [ + { + "text": "pkg/b/b1.js", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "b1", + "exportMapKey": "2 * b1 ", + "moduleSpecifier": "pkg/b/b1.js", + "fileName": "/node_modules/pkg/b/b1.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "c1", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "pkg/c/c1.js", + "sourceDisplay": [ + { + "text": "pkg/c/c1.js", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "c1", + "exportMapKey": "2 * c1 ", + "moduleSpecifier": "pkg/c/c1.js", + "fileName": "/node_modules/pkg/c/c1.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "c2", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "pkg/c/subfolder/c2.mjs", + "sourceDisplay": [ + { + "text": "pkg/c/subfolder/c2.mjs", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "c2", + "exportMapKey": "2 * c2 ", + "moduleSpecifier": "pkg/c/subfolder/c2.mjs", + "fileName": "/node_modules/pkg/c/subfolder/c2.d.mts", + "isPackageJsonImport": true + } + }, + { + "name": "d1", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "pkg/d/d1", + "sourceDisplay": [ + { + "text": "pkg/d/d1", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "d1", + "exportMapKey": "2 * d1 ", + "moduleSpecifier": "pkg/d/d1", + "fileName": "/node_modules/pkg/d/d1.d.mts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/pkg/a/a1.d.ts: + {"pollingInterval":500} +/node_modules/pkg/a/package.json: + {"pollingInterval":2000} +/node_modules/pkg/b/b1.d.ts: + {"pollingInterval":500} +/node_modules/pkg/b/package.json: + {"pollingInterval":2000} +/node_modules/pkg/c/c1.d.ts: + {"pollingInterval":500} +/node_modules/pkg/c/package.json: + {"pollingInterval":2000} +/node_modules/pkg/c/subfolder/c2.d.mts: + {"pollingInterval":500} +/node_modules/pkg/d/d1.d.mts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports2.js new file mode 100644 index 00000000000..2db32a7bd9a --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports2.js @@ -0,0 +1,986 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/main.ts] + + +//// [/node_modules/pkg/lib/core/test.d.ts] +export function test(): void; + +//// [/node_modules/pkg/package.json] +{ + "name": "pkg", + "version": "1.0.0", + "exports": { + "./core/*": { + "types": "./lib/core/*.d.ts", + "default": "./lib/core/*.js" + } + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "pkg": "1.0.0" + } +} + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/pkg/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/pkg +Info seq [hh:mm:ss:mss] For info: /node_modules/pkg/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/pkg/package.json SVC-1-0 "{\n \"name\": \"pkg\",\n \"version\": \"1.0.0\",\n \"exports\": {\n \"./core/*\": {\n \"types\": \"./lib/core/*.d.ts\",\n \"default\": \"./lib/core/*.js\"\n }\n }\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/pkg/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/main.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /main.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /main.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/main.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /main.ts SVC-1-0 "" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + main.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/lib/core/test.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/lib/core/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /node_modules/pkg/lib/core/test.d.ts Text-1 "export function test(): void;" + + + node_modules/pkg/lib/core/test.d.ts + Root file specified for compilation + File is CommonJS module because 'node_modules/pkg/package.json' does not have field "type" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/main.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/pkg/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /main.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/pkg/lib/core/package.json: *new* + {"pollingInterval":2000} +/node_modules/pkg/lib/core/test.d.ts: *new* + {"pollingInterval":500} +/node_modules/pkg/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/main.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "test", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "pkg/core/test", + "sourceDisplay": [ + { + "text": "pkg/core/test", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "test", + "exportMapKey": "4 * test ", + "moduleSpecifier": "pkg/core/test", + "fileName": "/node_modules/pkg/lib/core/test.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/pkg/lib/core/package.json: + {"pollingInterval":2000} +/node_modules/pkg/lib/core/test.d.ts: + {"pollingInterval":500} +/node_modules/pkg/lib/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js new file mode 100644 index 00000000000..01c9a473045 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js @@ -0,0 +1,1140 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +access + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/fs-extra/index.d.ts] +export * from "fs"; + +//// [/node_modules/@types/node/index.d.ts] +declare module "fs" { + export function accessSync(path: string): void; +} + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/fs-extra/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "access" + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/@types/fs-extra/index.d.ts Text-1 "export * from \"fs\";" + /node_modules/@types/node/index.d.ts Text-1 "declare module \"fs\" {\n export function accessSync(path: string): void;\n}" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + node_modules/@types/fs-extra/index.d.ts + Entry point for implicit type library 'fs-extra' + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\"\n }\n}" + /node_modules/@types/fs-extra/index.d.ts Text-1 "export * from \"fs\";" + /node_modules/@types/node/index.d.ts Text-1 "declare module \"fs\" {\n export function accessSync(path: string): void;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/@types/fs-extra/index.d.ts + Entry point for implicit type library 'fs-extra' + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/fs-extra/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/fs-extra/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 7 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 1 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 7 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "accessSync", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "fs", + "sourceDisplay": [ + { + "text": "fs", + "kind": "text" + } + ], + "data": { + "exportName": "accessSync", + "exportMapKey": "10 * accessSync fs", + "moduleSpecifier": "fs", + "ambientModuleName": "fs" + } + }, + { + "name": "accessSync", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "fs-extra", + "sourceDisplay": [ + { + "text": "fs-extra", + "kind": "text" + } + ], + "data": { + "exportName": "accessSync", + "exportMapKey": "10 * accessSync ", + "moduleSpecifier": "fs-extra", + "fileName": "/node_modules/@types/fs-extra/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/fs-extra/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 7, + "entryNames": [ + { + "name": "accessSync", + "source": "fs-extra", + "data": { + "exportName": "accessSync", + "fileName": "/node_modules/@types/fs-extra/index.d.ts", + "moduleSpecifier": "fs-extra" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 4, + "success": true, + "body": [ + { + "name": "accessSync", + "kindModifiers": "export,declare", + "kind": "function", + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "accessSync", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "path", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"fs-extra\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import { accessSync } from \"fs-extra\";\r\n\r\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "fs-extra", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "fs-extra", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { accessSync } from \"fs-extra\";\r\n\r\n" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportRelativePathToMonorepoPackage.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportRelativePathToMonorepoPackage.js new file mode 100644 index 00000000000..a129eed2212 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportRelativePathToMonorepoPackage.js @@ -0,0 +1,417 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/app/dist/index.d.ts] +import {} from "utils"; +export const app: number; + +//// [/packages/app/node_modules/utils] symlink(/packages/utils) +//// [/packages/utils/dist/index.d.ts] +export const x: number; + +//// [/packages/utils/package.json] +{ "name": "utils", "version": "1.0.0", "main": "dist/index.js" } + +//// [/script.ts] +import {} from "./packages/app/dist/index.js"; +x + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/script.ts", + "/packages/app/dist/index.d.ts", + "/packages/utils/dist/index.d.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /script.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/utils/dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app/dist 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app/dist 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/utils/dist/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/app/dist/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /packages/utils/dist/index.d.ts Text-1 "export const x: number;" + /packages/app/dist/index.d.ts Text-1 "import {} from \"utils\";\nexport const app: number;" + /script.ts Text-1 "import {} from \"./packages/app/dist/index.js\";\nx" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + packages/utils/dist/index.d.ts + Imported via "utils" from file 'packages/app/dist/index.d.ts' with packageId 'utils/dist/index.d.ts@1.0.0' + Matched by default include pattern '**/*' + File is CommonJS module because 'packages/utils/package.json' does not have field "type" + packages/app/dist/index.d.ts + Imported via "./packages/app/dist/index.js" from file 'script.ts' + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found + script.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/app/dist/index.d.ts: *new* + {"pollingInterval":500} +/packages/app/dist/package.json: *new* + {"pollingInterval":2000} +/packages/utils/dist/index.d.ts: *new* + {"pollingInterval":500} +/packages/utils/dist/package.json: *new* + {"pollingInterval":2000} +/script.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} +/packages/app/dist: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/script.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /script.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /script.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /script.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/dist/index.d.ts: + {"pollingInterval":500} +/packages/app/dist/package.json: + {"pollingInterval":2000} +/packages/utils/dist/index.d.ts: + {"pollingInterval":500} +/packages/utils/dist/package.json: + {"pollingInterval":2000} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/script.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} +/packages/app/dist: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/script.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/script.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'x'.", + "start": 47, + "length": 1, + "category": "error", + "code": 2304, + "startLocation": { + "line": 2, + "offset": 1 + }, + "endLocation": { + "line": 2, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/script.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/script.ts", + "startLine": 2, + "startOffset": 1, + "endLine": 2, + "endOffset": 2, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/app/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"./packages/utils/dist/index.js\"", + "changes": [ + { + "fileName": "/script.ts", + "textChanges": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 1 + }, + "newText": "import { x } from \"./packages/utils/dist/index.js\";\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/app/dist/index.d.ts: + {"pollingInterval":500} +/packages/app/dist/package.json: + {"pollingInterval":2000} +/packages/utils/dist/index.d.ts: + {"pollingInterval":500} +/packages/utils/dist/package.json: + {"pollingInterval":2000} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/packages/app/dist: + {} +/packages/app/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportSymlinkedJsPackages.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportSymlinkedJsPackages.js new file mode 100644 index 00000000000..e5a6e15b825 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportSymlinkedJsPackages.js @@ -0,0 +1,811 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/a/index.js] +packageB + +//// [/packages/a/node_modules/package-b] symlink(/packages/b) +//// [/packages/a/package.json] +{ + "name": "package-a", + "dependencies": { + "package-b": "*" + } +} + +//// [/packages/b/index.js] +export const packageB = "package-b"; + +//// [/packages/b/package.json] +{ "name": "package-b", "main": "index.js" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/packages/a/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/a +Info seq [hh:mm:ss:mss] For info: /packages/a/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/a/package.json SVC-1-0 "{\n \"name\": \"package-a\",\n \"dependencies\": {\n \"package-b\": \"*\"\n }\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/a/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/a/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/a/package.json: *new* + {"pollingInterval":250} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "allowJs": true, + "maxNodeModulesJsDepth": 2 + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 1, + "success": true, + "body": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/packages/a/index.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/a +Info seq [hh:mm:ss:mss] For info: /packages/a/index.js :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/a/index.js SVC-1-0 "packageB" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + index.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/b/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + /packages/b/index.js Text-1 "export const packageB = \"package-b\";" + + + ../b/index.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /packages/a/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/a/index.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/a/package.json: + {"pollingInterval":250} +/packages/b/index.js: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/packages/a/index.js", + "line": 1, + "offset": 9 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 9 + } + }, + "entries": [ + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "packageB", + "kind": "const", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "package-b", + "sourceDisplay": [ + { + "text": "package-b", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "packageB", + "exportMapKey": "8 * packageB ", + "moduleSpecifier": "package-b", + "fileName": "/packages/b/index.js", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/a/package.json: + {"pollingInterval":250} +/packages/b/index.js: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/packages/a/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/brace01.js b/tests/baselines/reference/tsserver/fourslashServer/brace01.js new file mode 100644 index 00000000000..2e951c101a8 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/brace01.js @@ -0,0 +1,1518 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/brace01.ts] +//curly braces +module Foo { + class Bar { + private f() { + } + + private f2() { + if (true) { } { }; + } + } +} + +//parenthesis +class FooBar { + private f() { + return ((1 + 1)); + } + + private f2() { + if (true) { } + } +} + +//square brackets +class Baz { + private f() { + var a: any[] = [[1, 2], [3, 4], 5]; + } +} + +// angular brackets +class TemplateTest { + public foo(a, b) { + return a; + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/brace01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/brace01.ts SVC-1-0 "//curly braces\nmodule Foo {\n class Bar {\n private f() {\n }\n\n private f2() {\n if (true) { } { };\n }\n }\n}\n\n//parenthesis\nclass FooBar {\n private f() {\n return ((1 + 1));\n }\n\n private f2() {\n if (true) { }\n }\n}\n\n//square brackets\nclass Baz {\n private f() {\n var a: any[] = [[1, 2], [3, 4], 5];\n }\n}\n\n// angular brackets\nclass TemplateTest {\n public foo(a, b) {\n return a;\n }\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + brace01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/brace01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 2, + "offset": 12 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 1, + "success": true, + "body": [ + { + "start": { + "line": 2, + "offset": 12 + }, + "end": { + "line": 2, + "offset": 13 + } + }, + { + "start": { + "line": 11, + "offset": 1 + }, + "end": { + "line": 11, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 11, + "offset": 1 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 2, + "success": true, + "body": [ + { + "start": { + "line": 2, + "offset": 12 + }, + "end": { + "line": 2, + "offset": 13 + } + }, + { + "start": { + "line": 11, + "offset": 1 + }, + "end": { + "line": 11, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 3, + "offset": 15 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 3, + "success": true, + "body": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 16 + } + }, + { + "start": { + "line": 10, + "offset": 5 + }, + "end": { + "line": 10, + "offset": 6 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 10, + "offset": 5 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 4, + "success": true, + "body": [ + { + "start": { + "line": 3, + "offset": 15 + }, + "end": { + "line": 3, + "offset": 16 + } + }, + { + "start": { + "line": 10, + "offset": 5 + }, + "end": { + "line": 10, + "offset": 6 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 4, + "offset": 21 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 5, + "success": true, + "body": [ + { + "start": { + "line": 4, + "offset": 21 + }, + "end": { + "line": 4, + "offset": 22 + } + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 10 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 5, + "offset": 9 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 6, + "success": true, + "body": [ + { + "start": { + "line": 4, + "offset": 21 + }, + "end": { + "line": 4, + "offset": 22 + } + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 10 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 7, + "offset": 22 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 7, + "success": true, + "body": [ + { + "start": { + "line": 7, + "offset": 22 + }, + "end": { + "line": 7, + "offset": 23 + } + }, + { + "start": { + "line": 9, + "offset": 9 + }, + "end": { + "line": 9, + "offset": 10 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 9, + "offset": 9 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 8, + "success": true, + "body": [ + { + "start": { + "line": 7, + "offset": 22 + }, + "end": { + "line": 7, + "offset": 23 + } + }, + { + "start": { + "line": 9, + "offset": 9 + }, + "end": { + "line": 9, + "offset": 10 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 8, + "offset": 23 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 9, + "success": true, + "body": [ + { + "start": { + "line": 8, + "offset": 23 + }, + "end": { + "line": 8, + "offset": 24 + } + }, + { + "start": { + "line": 8, + "offset": 25 + }, + "end": { + "line": 8, + "offset": 26 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 8, + "offset": 25 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 10, + "success": true, + "body": [ + { + "start": { + "line": 8, + "offset": 23 + }, + "end": { + "line": 8, + "offset": 24 + } + }, + { + "start": { + "line": 8, + "offset": 25 + }, + "end": { + "line": 8, + "offset": 26 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 8, + "offset": 27 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 11, + "success": true, + "body": [ + { + "start": { + "line": 8, + "offset": 27 + }, + "end": { + "line": 8, + "offset": 28 + } + }, + { + "start": { + "line": 8, + "offset": 29 + }, + "end": { + "line": 8, + "offset": 30 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 8, + "offset": 29 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 12, + "success": true, + "body": [ + { + "start": { + "line": 8, + "offset": 27 + }, + "end": { + "line": 8, + "offset": 28 + } + }, + { + "start": { + "line": 8, + "offset": 29 + }, + "end": { + "line": 8, + "offset": 30 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 15, + "offset": 14 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 13, + "success": true, + "body": [ + { + "start": { + "line": 15, + "offset": 14 + }, + "end": { + "line": 15, + "offset": 15 + } + }, + { + "start": { + "line": 15, + "offset": 15 + }, + "end": { + "line": 15, + "offset": 16 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 15, + "offset": 15 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 14, + "success": true, + "body": [ + { + "start": { + "line": 15, + "offset": 14 + }, + "end": { + "line": 15, + "offset": 15 + } + }, + { + "start": { + "line": 15, + "offset": 15 + }, + "end": { + "line": 15, + "offset": 16 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 16, + "offset": 16 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 15, + "success": true, + "body": [ + { + "start": { + "line": 16, + "offset": 16 + }, + "end": { + "line": 16, + "offset": 17 + } + }, + { + "start": { + "line": 16, + "offset": 24 + }, + "end": { + "line": 16, + "offset": 25 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 16, + "offset": 24 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 16, + "success": true, + "body": [ + { + "start": { + "line": 16, + "offset": 16 + }, + "end": { + "line": 16, + "offset": 17 + } + }, + { + "start": { + "line": 16, + "offset": 24 + }, + "end": { + "line": 16, + "offset": 25 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 16, + "offset": 17 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 17, + "success": true, + "body": [ + { + "start": { + "line": 16, + "offset": 17 + }, + "end": { + "line": 16, + "offset": 18 + } + }, + { + "start": { + "line": 16, + "offset": 23 + }, + "end": { + "line": 16, + "offset": 24 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 16, + "offset": 23 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 18, + "success": true, + "body": [ + { + "start": { + "line": 16, + "offset": 17 + }, + "end": { + "line": 16, + "offset": 18 + } + }, + { + "start": { + "line": 16, + "offset": 23 + }, + "end": { + "line": 16, + "offset": 24 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 19, + "offset": 15 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 19, + "success": true, + "body": [ + { + "start": { + "line": 19, + "offset": 15 + }, + "end": { + "line": 19, + "offset": 16 + } + }, + { + "start": { + "line": 19, + "offset": 16 + }, + "end": { + "line": 19, + "offset": 17 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 19, + "offset": 16 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 20, + "success": true, + "body": [ + { + "start": { + "line": 19, + "offset": 15 + }, + "end": { + "line": 19, + "offset": 16 + } + }, + { + "start": { + "line": 19, + "offset": 16 + }, + "end": { + "line": 19, + "offset": 17 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 20, + "offset": 12 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 21, + "success": true, + "body": [ + { + "start": { + "line": 20, + "offset": 12 + }, + "end": { + "line": 20, + "offset": 13 + } + }, + { + "start": { + "line": 20, + "offset": 17 + }, + "end": { + "line": 20, + "offset": 18 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 20, + "offset": 17 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 22, + "success": true, + "body": [ + { + "start": { + "line": 20, + "offset": 12 + }, + "end": { + "line": 20, + "offset": 13 + } + }, + { + "start": { + "line": 20, + "offset": 17 + }, + "end": { + "line": 20, + "offset": 18 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 19 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 23, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 19 + }, + "end": { + "line": 27, + "offset": 20 + } + }, + { + "start": { + "line": 27, + "offset": 20 + }, + "end": { + "line": 27, + "offset": 21 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 20 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 24, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 19 + }, + "end": { + "line": 27, + "offset": 20 + } + }, + { + "start": { + "line": 27, + "offset": 20 + }, + "end": { + "line": 27, + "offset": 21 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 24 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 25, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 24 + }, + "end": { + "line": 27, + "offset": 25 + } + }, + { + "start": { + "line": 27, + "offset": 42 + }, + "end": { + "line": 27, + "offset": 43 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 42 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 26, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 24 + }, + "end": { + "line": 27, + "offset": 25 + } + }, + { + "start": { + "line": 27, + "offset": 42 + }, + "end": { + "line": 27, + "offset": 43 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 25 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 27, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 25 + }, + "end": { + "line": 27, + "offset": 26 + } + }, + { + "start": { + "line": 27, + "offset": 30 + }, + "end": { + "line": 27, + "offset": 31 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 30 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 28, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 25 + }, + "end": { + "line": 27, + "offset": 26 + } + }, + { + "start": { + "line": 27, + "offset": 30 + }, + "end": { + "line": 27, + "offset": 31 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 33 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 29, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 33 + }, + "end": { + "line": 27, + "offset": 34 + } + }, + { + "start": { + "line": 27, + "offset": 38 + }, + "end": { + "line": 27, + "offset": 39 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 27, + "offset": 38 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 30, + "success": true, + "body": [ + { + "start": { + "line": 27, + "offset": 33 + }, + "end": { + "line": 27, + "offset": 34 + } + }, + { + "start": { + "line": 27, + "offset": 38 + }, + "end": { + "line": 27, + "offset": 39 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 32, + "offset": 20 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 31, + "success": true, + "body": [ + { + "start": { + "line": 32, + "offset": 20 + }, + "end": { + "line": 32, + "offset": 21 + } + }, + { + "start": { + "line": 32, + "offset": 41 + }, + "end": { + "line": 32, + "offset": 42 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 32, + "offset": 41 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 32, + "success": true, + "body": [ + { + "start": { + "line": 32, + "offset": 20 + }, + "end": { + "line": 32, + "offset": 21 + } + }, + { + "start": { + "line": 32, + "offset": 41 + }, + "end": { + "line": 32, + "offset": 42 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 34, + "offset": 16 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 33, + "success": true, + "body": [ + { + "start": { + "line": 34, + "offset": 16 + }, + "end": { + "line": 34, + "offset": 17 + } + }, + { + "start": { + "line": 34, + "offset": 20 + }, + "end": { + "line": 34, + "offset": 21 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 34, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/brace01.ts", + "line": 34, + "offset": 20 + }, + "command": "brace" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "brace", + "request_seq": 34, + "success": true, + "body": [ + { + "start": { + "line": 34, + "offset": 16 + }, + "end": { + "line": 34, + "offset": 17 + } + }, + { + "start": { + "line": 34, + "offset": 20 + }, + "end": { + "line": 34, + "offset": 21 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/callHierarchyContainerNameServer.js b/tests/baselines/reference/tsserver/fourslashServer/callHierarchyContainerNameServer.js new file mode 100644 index 00000000000..13baaada2a8 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/callHierarchyContainerNameServer.js @@ -0,0 +1,580 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts] +function f() {} + +class A { + static sameName() { + f(); + } +} + +class B { + sameName() { + A.sameName(); + } +} + +const Obj = { + get sameName() { + return new B().sameName; + } +}; + +namespace Foo { + function sameName() { + return Obj.sameName; + } + + export class C { + constructor() { + sameName(); + } + } +} + +module Foo.Bar { + const sameName = () => new Foo.C(); +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/callHierarchyContainerNameServer.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/callHierarchyContainerNameServer.ts SVC-1-0 "function f() {}\n\nclass A {\n static sameName() {\n f();\n }\n}\n\nclass B {\n sameName() {\n A.sameName();\n }\n}\n\nconst Obj = {\n get sameName() {\n return new B().sameName;\n }\n};\n\nnamespace Foo {\n function sameName() {\n return Obj.sameName;\n }\n\n export class C {\n constructor() {\n sameName();\n }\n }\n}\n\nmodule Foo.Bar {\n const sameName = () => new Foo.C();\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + callHierarchyContainerNameServer.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/callHierarchyContainerNameServer.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 1, + "offset": 10 + }, + "command": "prepareCallHierarchy" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "prepareCallHierarchy", + "request_seq": 1, + "success": true, + "body": { + "name": "f", + "kind": "function", + "kindModifiers": "", + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "span": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 16 + } + }, + "selectionSpan": { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 1, + "offset": 10 + }, + "command": "provideCallHierarchyIncomingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyIncomingCalls", + "request_seq": 2, + "success": true, + "body": [ + { + "from": { + "name": "sameName", + "kind": "method", + "kindModifiers": "static", + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "containerName": "A", + "span": { + "start": { + "line": 4, + "offset": 3 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "selectionSpan": { + "start": { + "line": 4, + "offset": 10 + }, + "end": { + "line": 4, + "offset": 18 + } + } + }, + "fromSpans": [ + { + "start": { + "line": 5, + "offset": 5 + }, + "end": { + "line": 5, + "offset": 6 + } + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 1, + "offset": 10 + }, + "command": "provideCallHierarchyOutgoingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyOutgoingCalls", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 4, + "offset": 10 + }, + "command": "provideCallHierarchyIncomingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyIncomingCalls", + "request_seq": 4, + "success": true, + "body": [ + { + "from": { + "name": "sameName", + "kind": "method", + "kindModifiers": "", + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "containerName": "B", + "span": { + "start": { + "line": 10, + "offset": 3 + }, + "end": { + "line": 12, + "offset": 4 + } + }, + "selectionSpan": { + "start": { + "line": 10, + "offset": 3 + }, + "end": { + "line": 10, + "offset": 11 + } + } + }, + "fromSpans": [ + { + "start": { + "line": 11, + "offset": 7 + }, + "end": { + "line": 11, + "offset": 15 + } + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 10, + "offset": 3 + }, + "command": "provideCallHierarchyIncomingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyIncomingCalls", + "request_seq": 5, + "success": true, + "body": [ + { + "from": { + "name": "sameName", + "kind": "getter", + "kindModifiers": "", + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "containerName": "Obj", + "span": { + "start": { + "line": 16, + "offset": 3 + }, + "end": { + "line": 18, + "offset": 4 + } + }, + "selectionSpan": { + "start": { + "line": 16, + "offset": 7 + }, + "end": { + "line": 16, + "offset": 15 + } + } + }, + "fromSpans": [ + { + "start": { + "line": 17, + "offset": 20 + }, + "end": { + "line": 17, + "offset": 28 + } + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 16, + "offset": 7 + }, + "command": "provideCallHierarchyIncomingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyIncomingCalls", + "request_seq": 6, + "success": true, + "body": [ + { + "from": { + "name": "sameName", + "kind": "function", + "kindModifiers": "", + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "containerName": "Foo", + "span": { + "start": { + "line": 22, + "offset": 3 + }, + "end": { + "line": 24, + "offset": 4 + } + }, + "selectionSpan": { + "start": { + "line": 22, + "offset": 12 + }, + "end": { + "line": 22, + "offset": 20 + } + } + }, + "fromSpans": [ + { + "start": { + "line": 23, + "offset": 16 + }, + "end": { + "line": 23, + "offset": 24 + } + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 22, + "offset": 12 + }, + "command": "provideCallHierarchyIncomingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyIncomingCalls", + "request_seq": 7, + "success": true, + "body": [ + { + "from": { + "name": "C", + "kind": "class", + "kindModifiers": "export", + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "containerName": "Foo", + "span": { + "start": { + "line": 26, + "offset": 3 + }, + "end": { + "line": 30, + "offset": 4 + } + }, + "selectionSpan": { + "start": { + "line": 26, + "offset": 16 + }, + "end": { + "line": 26, + "offset": 17 + } + } + }, + "fromSpans": [ + { + "start": { + "line": 28, + "offset": 7 + }, + "end": { + "line": 28, + "offset": 15 + } + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 26, + "offset": 16 + }, + "command": "provideCallHierarchyIncomingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyIncomingCalls", + "request_seq": 8, + "success": true, + "body": [ + { + "from": { + "name": "sameName", + "kind": "function", + "kindModifiers": "", + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "containerName": "Bar", + "span": { + "start": { + "line": 34, + "offset": 20 + }, + "end": { + "line": 34, + "offset": 37 + } + }, + "selectionSpan": { + "start": { + "line": 34, + "offset": 9 + }, + "end": { + "line": 34, + "offset": 17 + } + } + }, + "fromSpans": [ + { + "start": { + "line": 34, + "offset": 34 + }, + "end": { + "line": 34, + "offset": 35 + } + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", + "line": 34, + "offset": 9 + }, + "command": "provideCallHierarchyIncomingCalls" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "provideCallHierarchyIncomingCalls", + "request_seq": 9, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js new file mode 100644 index 00000000000..00a194e0284 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js @@ -0,0 +1,1146 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.js] +/** + * Modify the parameter + * @param {string} p1 + */ +var foo = function (p1) { } +exports.foo = foo; +fo + +//// [/tests/cases/fourslash/server/b.ts] +import a = require("./a"); +a.fo + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nexports.foo = foo;\nfo" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js", + "line": 7, + "offset": 3 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 7, + "offset": 1 + }, + "end": { + "line": 7, + "offset": 3 + } + }, + "entries": [ + { + "name": "foo", + "kind": "var", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "exports", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p1", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js", + "line": 7, + "offset": 3, + "entryNames": [ + { + "name": "foo" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 3, + "success": true, + "body": [ + { + "name": "foo", + "kindModifiers": "", + "kind": "var", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "p1", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "=>", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Modify the parameter", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": "p1" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/b.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nexports.foo = foo;\nfo" + /tests/cases/fourslash/server/b.ts SVC-1-0 "import a = require(\"./a\");\na.fo" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.js + Imported via "./a" from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/a.js + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectories:: +/tests/cases/fourslash/server: *new* + {} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} *new* +/tests/cases/fourslash/server/a: *new* + {} +/tests/cases/fourslash/server/node_modules: + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} *new* + +watchedDirectoriesRecursive *deleted*:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "line": 2, + "offset": 5 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 6, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 5 + } + }, + "entries": [ + { + "name": "foo", + "kind": "alias", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "line": 2, + "offset": 5, + "entryNames": [ + { + "name": "foo" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 7, + "success": true, + "body": [ + { + "name": "foo", + "kindModifiers": "", + "kind": "alias", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "aliasName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "p1", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "=>", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "a", + "kind": "aliasName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "foo", + "kind": "aliasName" + } + ], + "documentation": [ + { + "text": "Modify the parameter", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": "p1" + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js new file mode 100644 index 00000000000..38806f9f947 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js @@ -0,0 +1,1152 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.js] +/** + * Modify the parameter + * @param {string} p1 + */ +var foo = function (p1) { } +module.exports.foo = foo; +fo + +//// [/tests/cases/fourslash/server/b.ts] +import a = require("./a"); +a.fo + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nmodule.exports.foo = foo;\nfo" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js", + "line": 7, + "offset": 3 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 7, + "offset": 1 + }, + "end": { + "line": 7, + "offset": 3 + } + }, + "entries": [ + { + "name": "foo", + "kind": "var", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "module", + "kind": "var", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "exports", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p1", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js", + "line": 7, + "offset": 3, + "entryNames": [ + { + "name": "foo" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 3, + "success": true, + "body": [ + { + "name": "foo", + "kindModifiers": "", + "kind": "var", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "p1", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "=>", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "Modify the parameter", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": "p1" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/b.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nmodule.exports.foo = foo;\nfo" + /tests/cases/fourslash/server/b.ts SVC-1-0 "import a = require(\"./a\");\na.fo" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.js + Imported via "./a" from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/a.js + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectories:: +/tests/cases/fourslash/server: *new* + {} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} *new* +/tests/cases/fourslash/server/a: *new* + {} +/tests/cases/fourslash/server/node_modules: + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} *new* + +watchedDirectoriesRecursive *deleted*:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "line": 2, + "offset": 5 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 6, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 3 + }, + "end": { + "line": 2, + "offset": 5 + } + }, + "entries": [ + { + "name": "foo", + "kind": "alias", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "line": 2, + "offset": 5, + "entryNames": [ + { + "name": "foo" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 7, + "success": true, + "body": [ + { + "name": "foo", + "kindModifiers": "", + "kind": "alias", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "aliasName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "p1", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "=>", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "a", + "kind": "aliasName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "foo", + "kind": "aliasName" + } + ], + "documentation": [ + { + "text": "Modify the parameter", + "kind": "text" + } + ], + "tags": [ + { + "name": "param", + "text": "p1" + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completions01.js b/tests/baselines/reference/tsserver/fourslashServer/completions01.js new file mode 100644 index 00000000000..5cea208af3f --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completions01.js @@ -0,0 +1,712 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/completions01.ts] +var x: string[] = []; +x.forEach(function (y) { y +x.forEach(y => y + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/completions01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/completions01.ts SVC-1-0 "var x: string[] = [];\nx.forEach(function (y) { y\nx.forEach(y => y" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + completions01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/completions01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 27, + "endLine": 2, + "endOffset": 27, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 27, + "endLine": 2, + "endOffset": 27, + "insertString": "." + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 28, + "key": "." + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 28 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/completions01.ts SVC-1-2 "var x: string[] = [];\nx.forEach(function (y) { y.\nx.forEach(y => y" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 5, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 28, + "endLine": 2, + "endOffset": 28, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 28, + "endLine": 2, + "endOffset": 28, + "insertString": "}" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 29, + "key": "}" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 8, + "success": true, + "body": [ + { + "start": { + "line": 2, + "offset": 19 + }, + "end": { + "line": 2, + "offset": 20 + }, + "newText": "" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 19, + "endLine": 2, + "endOffset": 20, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 28, + "endLine": 2, + "endOffset": 28, + "insertString": ")" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 29, + "key": ")" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 29, + "endLine": 2, + "endOffset": 29, + "insertString": ";" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 2, + "offset": 30, + "key": ";" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 3, + "offset": 17, + "endLine": 3, + "endOffset": 17, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 3, + "offset": 17, + "endLine": 3, + "endOffset": 17, + "insertString": "." + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 3, + "offset": 18, + "key": "." + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 16, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 17, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions01.ts", + "line": 3, + "offset": 18 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/completions01.ts SVC-1-9 "var x: string[] = [];\nx.forEach(function(y) { y.});\nx.forEach(y => y." + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 18, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completions02.js b/tests/baselines/reference/tsserver/fourslashServer/completions02.js new file mode 100644 index 00000000000..c64216a3999 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completions02.js @@ -0,0 +1,682 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/completions02.ts] +class Foo { +} +module Foo { + export var x: number; +} +Foo. + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/completions02.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/completions02.ts SVC-1-0 "class Foo {\n}\nmodule Foo {\n export var x: number;\n}\nFoo." + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + completions02.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/completions02.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "apply", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "arguments", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "bind", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "call", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "caller", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "prototype", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "x", + "kind": "var", + "kindModifiers": "export", + "sortText": "11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5, + "entryNames": [ + { + "name": "arguments" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 3, + "success": true, + "body": [ + { + "name": "arguments", + "kindModifiers": "declare", + "kind": "property", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Function", + "kind": "localName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "arguments", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "documentation": [], + "tags": [] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5, + "entryNames": [ + { + "name": "x" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 4, + "success": true, + "body": [ + { + "name": "x", + "kindModifiers": "export", + "kind": "var", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Foo", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "x", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "documentation": [], + "tags": [] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5, + "endLine": 6, + "endOffset": 5, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5, + "endLine": 6, + "endOffset": 5, + "insertString": "a" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 6, + "key": "a" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 7, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5, + "endLine": 6, + "endOffset": 6, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 9, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/completions02.ts SVC-1-3 "class Foo {\n}\nmodule Foo {\n export var x: number;\n}\nFoo." + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 10, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "apply", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "arguments", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "bind", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "call", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "caller", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "prototype", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "x", + "kind": "var", + "kindModifiers": "export", + "sortText": "11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5, + "entryNames": [ + { + "name": "arguments" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 11, + "success": true, + "body": [ + { + "name": "arguments", + "kindModifiers": "declare", + "kind": "property", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Function", + "kind": "localName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "arguments", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "documentation": [], + "tags": [] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions02.ts", + "line": 6, + "offset": 5, + "entryNames": [ + { + "name": "x" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 12, + "success": true, + "body": [ + { + "name": "x", + "kindModifiers": "export", + "kind": "var", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "Foo", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "x", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "documentation": [], + "tags": [] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completions03.js b/tests/baselines/reference/tsserver/fourslashServer/completions03.js new file mode 100644 index 00000000000..8ba03998240 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completions03.js @@ -0,0 +1,155 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/completions03.ts] +interface Foo { + one: any; + two: any; + three: any; +} + +let x: Foo = { + get one() { return "" }, + set two(t) {}, + +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions03.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/completions03.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/completions03.ts SVC-1-0 "interface Foo {\n one: any;\n two: any;\n three: any;\n}\n\nlet x: Foo = {\n get one() { return \"\" },\n set two(t) {},\n \n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + completions03.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/completions03.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/completions03.ts", + "line": 10, + "offset": 5 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "three", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js new file mode 100644 index 00000000000..134e566fd92 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js @@ -0,0 +1,3135 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/mylib] symlink(/packages/mylib) +//// [/packages/mylib/index.ts] +export * from "./mySubDir"; + +//// [/packages/mylib/mySubDir/index.ts] +export * from "./myClass"; +export * from "./myClass2"; + +//// [/packages/mylib/mySubDir/myClass.ts] +export class MyClass {} + +//// [/packages/mylib/mySubDir/myClass2.ts] +export class MyClass2 {} + +//// [/packages/mylib/package.json] +{ "name": "mylib", "version": "1.0.0", "main": "index.js" } + +//// [/src/index.ts] + +const a = new MyClass(); +const b = new MyClass2(); + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/packages/mylib/index.ts", + "/packages/mylib/mySubDir/index.ts", + "/packages/mylib/mySubDir/myClass.ts", + "/packages/mylib/mySubDir/myClass2.ts", + "/src/index.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/myClass.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir/myClass2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/mylib/mySubDir 1 undefined Project: /tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" + /packages/mylib/mySubDir/myClass2.ts Text-1 "export class MyClass2 {}" + /packages/mylib/mySubDir/index.ts Text-1 "export * from \"./myClass\";\nexport * from \"./myClass2\";" + /packages/mylib/index.ts Text-1 "export * from \"./mySubDir\";" + /src/index.ts Text-1 "\nconst a = new MyClass();\nconst b = new MyClass2();" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + packages/mylib/mySubDir/myClass.ts + Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' + Matched by default include pattern '**/*' + packages/mylib/mySubDir/myClass2.ts + Imported via "./myClass2" from file 'packages/mylib/mySubDir/index.ts' + Matched by default include pattern '**/*' + packages/mylib/mySubDir/index.ts + Imported via "./mySubDir" from file 'packages/mylib/index.ts' + Matched by default include pattern '**/*' + packages/mylib/index.ts + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/mylib/index.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: *new* + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: *new* + {"pollingInterval":500} +/src/index.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} +/packages/mylib/mySubDir: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/mylib/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/index.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass.ts: + {"pollingInterval":500} +/packages/mylib/mySubDir/myClass2.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} +/packages/mylib/mySubDir: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 2, + "offset": 22 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 4 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 9, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 15 + }, + "end": { + "line": 2, + "offset": 22 + } + }, + "entries": [ + { + "name": "b", + "kind": "const", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "MyClass", + "kind": "class", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "../packages/mylib", + "sourceDisplay": [ + { + "text": "../packages/mylib", + "kind": "text" + } + ], + "data": { + "exportName": "MyClass", + "exportMapKey": "7 * MyClass ", + "moduleSpecifier": "../packages/mylib", + "fileName": "/packages/mylib/index.ts" + } + }, + { + "name": "MyClass2", + "kind": "class", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "../packages/mylib", + "sourceDisplay": [ + { + "text": "../packages/mylib", + "kind": "text" + } + ], + "data": { + "exportName": "MyClass2", + "exportMapKey": "8 * MyClass2 ", + "moduleSpecifier": "../packages/mylib", + "fileName": "/packages/mylib/index.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 2, + "offset": 22, + "entryNames": [ + { + "name": "MyClass", + "source": "../packages/mylib", + "data": { + "exportName": "MyClass", + "fileName": "/packages/mylib/index.ts" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 6, + "success": true, + "body": [ + { + "name": "MyClass", + "kindModifiers": "export", + "kind": "constructor", + "displayParts": [ + { + "text": "constructor", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "MyClass", + "kind": "className" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "MyClass", + "kind": "className" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"../packages/mylib\"", + "changes": [ + { + "fileName": "/src/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import { MyClass } from \"../packages/mylib\";\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "../packages/mylib", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "../packages/mylib", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { MyClass } from \"../packages/mylib\";\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" + /packages/mylib/mySubDir/myClass2.ts Text-1 "export class MyClass2 {}" + /packages/mylib/mySubDir/index.ts Text-1 "export * from \"./myClass\";\nexport * from \"./myClass2\";" + /packages/mylib/index.ts Text-1 "export * from \"./mySubDir\";" + /src/index.ts SVC-2-1 "import { MyClass } from \"../packages/mylib\";\n\nconst a = new MyClass();\nconst b = new MyClass2();" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 45, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 2, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 3, + "key": "m" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 3, + "endLine": 1, + "endOffset": 3, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 4, + "key": "p" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 15, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 4, + "endLine": 1, + "endOffset": 4, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 5, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 17, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 5, + "endLine": 1, + "endOffset": 5, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 6, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 19, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 6, + "endLine": 1, + "endOffset": 6, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 7, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 21, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 7, + "endLine": 1, + "endOffset": 7, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 8, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 23, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 8, + "endLine": 1, + "endOffset": 8, + "insertString": "{" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 9, + "key": "{" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 25, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 9, + "endLine": 1, + "endOffset": 9, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 10, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 27, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 10, + "endLine": 1, + "endOffset": 10, + "insertString": "M" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 11, + "key": "M" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 29, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 11, + "endLine": 1, + "endOffset": 11, + "insertString": "y" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 12, + "key": "y" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 31, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 12, + "endLine": 1, + "endOffset": 12, + "insertString": "C" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 13, + "key": "C" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 33, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 34, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 13, + "endLine": 1, + "endOffset": 13, + "insertString": "l" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 35, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 14, + "key": "l" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 35, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 36, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 14, + "endLine": 1, + "endOffset": 14, + "insertString": "a" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 37, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 15, + "key": "a" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 37, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 38, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 15, + "endLine": 1, + "endOffset": 15, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 39, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 16, + "key": "s" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 39, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 40, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 16, + "endLine": 1, + "endOffset": 16, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 41, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 17, + "key": "s" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 41, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 42, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 17, + "endLine": 1, + "endOffset": 17, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 43, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 18, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 43, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 44, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 18, + "endLine": 1, + "endOffset": 18, + "insertString": "}" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 45, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 19, + "key": "}" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 45, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 46, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 19, + "endLine": 1, + "endOffset": 19, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 47, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 20, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 47, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 48, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 20, + "endLine": 1, + "endOffset": 20, + "insertString": "f" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 49, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 21, + "key": "f" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 49, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 50, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 21, + "endLine": 1, + "endOffset": 21, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 51, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 22, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 51, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 52, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 22, + "endLine": 1, + "endOffset": 22, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 53, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 23, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 53, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 54, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 23, + "endLine": 1, + "endOffset": 23, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 55, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 24, + "key": "m" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 55, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 56, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 24, + "endLine": 1, + "endOffset": 24, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 57, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 25, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 57, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 58, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 25, + "endLine": 1, + "endOffset": 25, + "insertString": "\"" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 59, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 26, + "key": "\"" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 59, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 60, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 26, + "endLine": 1, + "endOffset": 26, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 61, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 27, + "key": "m" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 61, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 62, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 27, + "endLine": 1, + "endOffset": 27, + "insertString": "y" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 63, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 28, + "key": "y" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 63, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 64, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 28, + "endLine": 1, + "endOffset": 28, + "insertString": "l" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 65, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 29, + "key": "l" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 65, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 66, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 29, + "endLine": 1, + "endOffset": 29, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 67, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 30, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 67, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 68, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 30, + "endLine": 1, + "endOffset": 30, + "insertString": "b" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 69, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 31, + "key": "b" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 69, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 70, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 31, + "endLine": 1, + "endOffset": 31, + "insertString": "\"" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 71, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 32, + "key": "\"" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 71, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 72, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 32, + "endLine": 1, + "endOffset": 32, + "insertString": ";" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 73, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 33, + "key": ";" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 73, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 74, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 74, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 75, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 4, + "offset": 23 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" + /packages/mylib/mySubDir/myClass2.ts Text-1 "export class MyClass2 {}" + /packages/mylib/mySubDir/index.ts Text-1 "export * from \"./myClass\";\nexport * from \"./myClass2\";" + /packages/mylib/index.ts Text-1 "export * from \"./mySubDir\";" + /src/index.ts SVC-2-34 "import { MyClass } from \"mylib\";\n\nconst a = new MyClass();\nconst b = new MyClass2();" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 3 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 75, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 4, + "offset": 15 + }, + "end": { + "line": 4, + "offset": 23 + } + }, + "entries": [ + { + "name": "a", + "kind": "const", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "MyClass", + "kind": "alias", + "kindModifiers": "export", + "sortText": "11" + }, + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "MyClass2", + "kind": "class", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "mylib", + "sourceDisplay": [ + { + "text": "mylib", + "kind": "text" + } + ], + "data": { + "exportName": "MyClass2", + "exportMapKey": "8 * MyClass2 ", + "moduleSpecifier": "mylib", + "fileName": "/packages/mylib/mySubDir/myClass2.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js new file mode 100644 index 00000000000..d895532ceb5 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js @@ -0,0 +1,1742 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +I + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/node/index.d.ts] +declare module "process" { + global { + var process: NodeJS.Process; + namespace NodeJS { + interface Process { + argv: string[]; + } + } + } + export = process; +} + +//// [/node_modules/@types/ts-node/index.d.ts] +export {}; +declare const REGISTER_INSTANCE: unique symbol; +declare global { + namespace NodeJS { + interface Process { + [REGISTER_INSTANCE]?: Service; + } + } +} + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/ts-node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "I" + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/@types/node/index.d.ts Text-1 "declare module \"process\" {\n global {\n var process: NodeJS.Process;\n namespace NodeJS {\n interface Process {\n argv: string[];\n }\n }\n }\n export = process;\n}" + /node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + node_modules/@types/ts-node/index.d.ts + Entry point for implicit type library 'ts-node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /node_modules/@types/node/index.d.ts Text-1 "declare module \"process\" {\n global {\n var process: NodeJS.Process;\n namespace NodeJS {\n interface Process {\n argv: string[];\n }\n }\n }\n export = process;\n}" + /node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + node_modules/@types/ts-node/index.d.ts + Entry point for implicit type library 'ts-node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/ts-node/index.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/ts-node/index.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "process", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "N" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 3, + "key": "N" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 7, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-2-2 "IN" + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/@types/node/index.d.ts Text-1 "declare module \"process\" {\n global {\n var process: NodeJS.Process;\n namespace NodeJS {\n interface Process {\n argv: string[];\n }\n }\n }\n export = process;\n}" + /node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 8, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 3 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "process", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_defaultAndNamedConflict_server.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_defaultAndNamedConflict_server.js new file mode 100644 index 00000000000..9811c6e7a29 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_defaultAndNamedConflict_server.js @@ -0,0 +1,1013 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +someMo + +//// [/someModule.ts] +export const someModule = 0; +export default 1; + +//// [/tsconfig.json] +{ "compilerOptions": { "noLib": true } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/someModule.ts" + ], + "options": { + "noLib": true, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /someModule.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + /index.ts Text-1 "someMo" + /someModule.ts Text-1 "export const someModule = 0;\nexport default 1;" + + + index.ts + Matched by default include pattern '**/*' + someModule.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (1) + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"noLib\": true } }" + + + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/someModule.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/someModule.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 7 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 7 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "someModule", + "kind": "property", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "/someModule", + "data": { + "exportName": "default", + "exportMapKey": "10 * someModule ", + "fileName": "/someModule.ts" + } + }, + { + "name": "someModule", + "kind": "const", + "kindModifiers": "export", + "sortText": "16", + "hasAction": true, + "source": "/someModule", + "data": { + "exportName": "someModule", + "exportMapKey": "10 * someModule ", + "fileName": "/someModule.ts" + } + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 7, + "entryNames": [ + { + "name": "someModule", + "source": "/someModule", + "data": { + "exportName": "default", + "exportMapKey": "10 * someModule ", + "fileName": "/someModule.ts" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 4, + "success": true, + "body": [ + { + "name": "default", + "kindModifiers": "export", + "kind": "property", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "default", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "1", + "kind": "stringLiteral" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"./someModule\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import someModule from \"./someModule\";\r\n\r\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "./someModule", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "./someModule", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 7, + "entryNames": [ + { + "name": "someModule", + "source": "/someModule", + "data": { + "exportName": "someModule", + "exportMapKey": "10 * someModule ", + "fileName": "/someModule.ts" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 5, + "success": true, + "body": [ + { + "name": "someModule", + "kindModifiers": "export", + "kind": "const", + "displayParts": [ + { + "text": "const", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "someModule", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "0", + "kind": "stringLiteral" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"./someModule\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import { someModule } from \"./someModule\";\r\n\r\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "./someModule", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "./someModule", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 7, + "entryNames": [ + { + "name": "someModule", + "source": "/someModule", + "data": { + "exportName": "default", + "fileName": "/someModule.ts" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 6, + "success": true, + "body": [ + { + "name": "default", + "kindModifiers": "export", + "kind": "property", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "default", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "1", + "kind": "stringLiteral" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"./someModule\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import someModule from \"./someModule\";\r\n\r\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "./someModule", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "./someModule", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import someModule from \"./someModule\";\r\n\r\n" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js new file mode 100644 index 00000000000..ca41b2b2a63 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js @@ -0,0 +1,1975 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] + + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/third_party/marked/src/defaults.js] +function getDefaults() { + return { + baseUrl: null, + }; +} + +function changeDefaults(newDefaults) { + module.exports.defaults = newDefaults; +} + +module.exports = { + defaults: getDefaults(), + getDefaults, + changeDefaults +}; + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs", "allowJs": true } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/third_party/marked/src/defaults.js" + ], + "options": { + "module": 1, + "allowJs": true, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /third_party/marked/src/defaults.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "" + /lib.d.ts Text-1 lib.d.ts-Text + /third_party/marked/src/defaults.js Text-1 "function getDefaults() {\n return {\n baseUrl: null,\n };\n}\n\nfunction changeDefaults(newDefaults) {\n module.exports.defaults = newDefaults;\n}\n\nmodule.exports = {\n defaults: getDefaults(),\n getDefaults,\n changeDefaults\n};" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + third_party/marked/src/defaults.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/third_party/marked/src/defaults.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"allowJs\": true } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/third_party/marked/src/defaults.js: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/third_party/marked/src/defaults.js: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 3 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "changeDefaults", + "kind": "property", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/third_party/marked/src/defaults", + "data": { + "exportName": "changeDefaults", + "exportMapKey": "14 * changeDefaults ", + "fileName": "/third_party/marked/src/defaults.js" + } + }, + { + "name": "defaults", + "kind": "alias", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/third_party/marked/src/defaults", + "data": { + "exportName": "defaults", + "exportMapKey": "8 * defaults ", + "fileName": "/third_party/marked/src/defaults.js" + } + }, + { + "name": "getDefaults", + "kind": "property", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/third_party/marked/src/defaults", + "data": { + "exportName": "getDefaults", + "exportMapKey": "11 * getDefaults ", + "fileName": "/third_party/marked/src/defaults.js" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "d" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2, + "key": "d" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 7, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 8, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-2-2 "d" + /lib.d.ts Text-1 lib.d.ts-Text + /third_party/marked/src/defaults.js Text-1 "function getDefaults() {\n return {\n baseUrl: null,\n };\n}\n\nfunction changeDefaults(newDefaults) {\n module.exports.defaults = newDefaults;\n}\n\nmodule.exports = {\n defaults: getDefaults(),\n getDefaults,\n changeDefaults\n};" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 3 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 9, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "changeDefaults", + "kind": "property", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/third_party/marked/src/defaults", + "data": { + "exportName": "changeDefaults", + "exportMapKey": "14 * changeDefaults ", + "fileName": "/third_party/marked/src/defaults.js" + } + }, + { + "name": "defaults", + "kind": "alias", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/third_party/marked/src/defaults", + "data": { + "exportName": "defaults", + "exportMapKey": "8 * defaults ", + "fileName": "/third_party/marked/src/defaults.js" + } + }, + { + "name": "getDefaults", + "kind": "property", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/third_party/marked/src/defaults", + "data": { + "exportName": "getDefaults", + "exportMapKey": "11 * getDefaults ", + "fileName": "/third_party/marked/src/defaults.js" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "entryNames": [ + { + "name": "defaults", + "source": "/third_party/marked/src/defaults", + "data": { + "exportName": "defaults", + "fileName": "/third_party/marked/src/defaults.js" + } + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 10, + "success": true, + "body": [ + { + "name": "defaults", + "kindModifiers": "", + "kind": "alias", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "parameter", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "defaults", + "kind": "aliasName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "defaults", + "kind": "aliasName" + } + ], + "documentation": [], + "tags": [], + "codeActions": [ + { + "description": "Add import from \"./third_party/marked/src/defaults\"", + "changes": [ + { + "fileName": "/index.ts", + "textChanges": [ + { + "span": { + "start": 0, + "length": 0 + }, + "newText": "import { defaults } from \"./third_party/marked/src/defaults\";\n\n" + } + ] + } + ] + } + ], + "source": [ + { + "text": "./third_party/marked/src/defaults", + "kind": "text" + } + ], + "sourceDisplay": [ + { + "text": "./third_party/marked/src/defaults", + "kind": "text" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { defaults } from \"./third_party/marked/src/defaults\";\n\n" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_mergedReExport.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_mergedReExport.js new file mode 100644 index 00000000000..bf62ab39c73 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_mergedReExport.js @@ -0,0 +1,1864 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +C + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@jest/types/Config.d.ts] +export interface ConfigGlobals { + [K: string]: unknown; +} + +//// [/node_modules/@jest/types/index.d.ts] +import type * as Config from "./Config"; +export type { Config }; + +//// [/node_modules/@jest/types/package.json] +{ "name": "@jest/types" } + +//// [/node_modules/ts-jest/index.d.ts] +export {}; +declare module "@jest/types" { + namespace Config { + interface ConfigGlobals { + 'ts-jest': any; + } + } +} + +//// [/package.json] +{ "dependencies": { "@jest/types": "*", "ts-jest": "*" } } + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "C" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@jest/types/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@jest/types/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@jest/types/Config.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/@jest/types/Config.d.ts Text-1 "export interface ConfigGlobals {\n [K: string]: unknown;\n}" + /node_modules/@jest/types/index.d.ts Text-1 "import type * as Config from \"./Config\";\nexport type { Config };" + + + node_modules/@jest/types/Config.d.ts + Imported via "./Config" from file 'node_modules/@jest/types/index.d.ts' + node_modules/@jest/types/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@jest/types/Config.d.ts: *new* + {"pollingInterval":500} +/node_modules/@jest/types/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@jest/types/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/Config.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/index.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@jest/types/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/@jest/types/Config.d.ts Text-1 "export interface ConfigGlobals {\n [K: string]: unknown;\n}" + /node_modules/@jest/types/index.d.ts Text-1 "import type * as Config from \"./Config\";\nexport type { Config };" + + + node_modules/@jest/types/Config.d.ts + Imported via "./Config" from file 'node_modules/@jest/types/index.d.ts' + node_modules/@jest/types/index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Config", + "kind": "alias", + "kindModifiers": "declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@jest/types/index", + "isPackageJsonImport": true, + "data": { + "exportName": "Config", + "exportMapKey": "6 * Config ", + "fileName": "/node_modules/@jest/types/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/Config.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/index.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 3, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 7, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-2-2 "Co" + /lib.d.ts Text-1 lib.d.ts-Text + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 8, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 9, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 3 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Config", + "kind": "alias", + "kindModifiers": "declare", + "sortText": "16", + "hasAction": true, + "source": "@jest/types", + "sourceDisplay": [ + { + "text": "@jest/types", + "kind": "text" + } + ], + "isPackageJsonImport": true, + "data": { + "exportName": "Config", + "exportMapKey": "6 * Config ", + "moduleSpecifier": "@jest/types", + "fileName": "/node_modules/@jest/types/index.d.ts", + "isPackageJsonImport": true + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/Config.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/index.d.ts: + {"pollingInterval":500} +/node_modules/@jest/types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} +/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_sortingModuleSpecifiers.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_sortingModuleSpecifiers.js new file mode 100644 index 00000000000..b0436bd517c --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_sortingModuleSpecifiers.js @@ -0,0 +1,1029 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/main.ts] +normalize + +//// [/tests/cases/fourslash/server/path.d.ts] +declare module "path/posix" { + export function normalize(p: string): string; +} +declare module "path/win32" { + export function normalize(p: string): string; +} +declare module "path" { + export function normalize(p: string): string; +} + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/main.ts", + "/tests/cases/fourslash/server/path.d.ts" + ], + "options": { + "module": 1, + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 1 undefined Config: /tests/cases/fourslash/server/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 1 undefined Config: /tests/cases/fourslash/server/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/main.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/path.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/main.ts Text-1 "normalize" + /tests/cases/fourslash/server/path.d.ts Text-1 "declare module \"path/posix\" {\n export function normalize(p: string): string;\n}\ndeclare module \"path/win32\" {\n export function normalize(p: string): string;\n}\ndeclare module \"path\" {\n export function normalize(p: string): string;\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + main.ts + Matched by default include pattern '**/*' + path.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/main.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/path.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/main.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/main.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/main.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/main.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/path.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/main.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server: + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeCompletionsWithInsertText": true, + "allowIncompleteCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/main.ts", + "line": 1, + "offset": 10 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 3 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 10 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "normalize", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "path", + "sourceDisplay": [ + { + "text": "path", + "kind": "text" + } + ], + "data": { + "exportName": "normalize", + "exportMapKey": "9 * normalize path", + "moduleSpecifier": "path", + "ambientModuleName": "path" + } + }, + { + "name": "normalize", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "path/posix", + "sourceDisplay": [ + { + "text": "path/posix", + "kind": "text" + } + ], + "data": { + "exportName": "normalize", + "exportMapKey": "9 * normalize path/posix", + "moduleSpecifier": "path/posix", + "ambientModuleName": "path/posix" + } + }, + { + "name": "normalize", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "path/win32", + "sourceDisplay": [ + { + "text": "path/win32", + "kind": "text" + } + ], + "data": { + "exportName": "normalize", + "exportMapKey": "9 * normalize path/win32", + "moduleSpecifier": "path/win32", + "ambientModuleName": "path/win32" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsOverridingMethodCrash2.js b/tests/baselines/reference/tsserver/fourslashServer/completionsOverridingMethodCrash2.js new file mode 100644 index 00000000000..ae78c95b063 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsOverridingMethodCrash2.js @@ -0,0 +1,629 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/classes.ts] +import { Component } from "./utils.js"; + +export class MyComponent extends Component { + render +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "nodenext" + } +} + +//// [/utils.ts] +export class Element { + // ... +} + +export abstract class Component { + abstract render(): Element; +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/classes.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/utils.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /classes.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /utils.ts Text-1 "export class Element {\n // ...\n}\n\nexport abstract class Component {\n abstract render(): Element;\n}" + /classes.ts Text-1 "import { Component } from \"./utils.js\";\n\nexport class MyComponent extends Component {\n render\n}" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + utils.ts + Imported via "./utils.js" from file 'classes.ts' + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found + classes.ts + Matched by default include pattern '**/*' + File is CommonJS module because 'package.json' was not found + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/classes.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} +/utils.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/classes.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /classes.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /classes.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /classes.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/utils.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/classes.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsWithInsertText": true, + "includeCompletionsWithSnippetText": true, + "includeCompletionsWithClassMemberSnippets": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/classes.ts", + "line": 4, + "offset": 11 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": true, + "optionalReplacementSpan": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 11 + } + }, + "entries": [ + { + "name": "render", + "kind": "method", + "kindModifiers": "abstract", + "sortText": "11", + "insertText": "render(): Element {\r\n $0\r\n}", + "filterText": "render", + "isSnippet": true, + "hasAction": true, + "source": "ClassMemberSnippet/" + }, + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "accessor", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "constructor", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "get", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "override", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "private", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "protected", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "public", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "set", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "static", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/utils.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /utils.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /classes.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /utils.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/utils.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/classes.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /classes.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /utils.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/classes.ts", + "line": 4, + "offset": 10, + "endLine": 4, + "endOffset": 11, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsWithInsertText": true, + "includeCompletionsWithSnippetText": true, + "includeCompletionsWithClassMemberSnippets": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 7, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/classes.ts", + "line": 4, + "offset": 10 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /utils.ts Text-1 "export class Element {\n // ...\n}\n\nexport abstract class Component {\n abstract render(): Element;\n}" + /classes.ts SVC-2-1 "import { Component } from \"./utils.js\";\n\nexport class MyComponent extends Component {\n rende\n}" + /lib.d.ts Text-1 lib.d.ts-Text + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 8, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": true, + "optionalReplacementSpan": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + } + }, + "entries": [ + { + "name": "render", + "kind": "method", + "kindModifiers": "abstract", + "sortText": "11", + "insertText": "render(): Element {\r\n $0\r\n}", + "filterText": "render", + "isSnippet": true, + "hasAction": true, + "source": "ClassMemberSnippet/" + }, + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "accessor", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "constructor", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "get", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "override", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "private", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "protected", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "public", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "set", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "static", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/configurePlugin.js b/tests/baselines/reference/tsserver/fourslashServer/configurePlugin.js new file mode 100644 index 00000000000..7dcb0088ed7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/configurePlugin.js @@ -0,0 +1,334 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +let x = [1, 2]; + + + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ + "compilerOptions": { + "plugins": [ + { "name": "configurable-diagnostic-adder" , "message": "configured error" } + ] + }, + "files": ["a.ts"] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/a.ts" + ], + "options": { + "plugins": [ + { + "name": "configurable-diagnostic-adder", + "message": "configured error" + } + ], + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Enabling plugin configurable-diagnostic-adder from candidate paths: /../../.. +Info seq [hh:mm:ss:mss] Loading configurable-diagnostic-adder from /../../.. (resolved to /../../../node_modules) +Info seq [hh:mm:ss:mss] Plugin validation succeeded +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\n\n" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"configurable-diagnostic-adder\" , \"message\": \"configured error\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/a.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/node_modules: *new* + {} + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/a.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [ + { + "message": "configured error", + "start": 0, + "length": 3, + "category": "error", + "code": 9999, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 4 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "pluginName": "configurable-diagnostic-adder", + "configuration": { + "message": "new error" + } + }, + "command": "configurePlugin" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configurePlugin", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "new error", + "start": 0, + "length": 3, + "category": "error", + "code": 9999, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 4 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server1.js b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server1.js new file mode 100644 index 00000000000..66566de83ab --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server1.js @@ -0,0 +1,244 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/test123.js] +// Comment +function fn() { + this.baz = 10; +} +fn.prototype.bar = function () { + console.log('hello world'); +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/test123.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/test123.js SVC-1-0 "// Comment\nfunction fn() {\n this.baz = 10;\n}\nfn.prototype.bar = function () {\n console.log('hello world');\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + test123.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test123.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "This constructor function may be converted to a class declaration.", + "start": 20, + "length": 2, + "category": "suggestion", + "code": 80002, + "startLocation": { + "line": 2, + "offset": 10 + }, + "endLocation": { + "line": 2, + "offset": 12 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "startLine": 2, + "startOffset": 10, + "endLine": 2, + "endOffset": 12, + "errorCodes": [ + 80002 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 5, + "success": true, + "body": [ + { + "fixName": "convertFunctionToEs6Class", + "description": "Convert function to an ES2015 class", + "changes": [ + { + "fileName": "/tests/cases/fourslash/server/test123.js", + "textChanges": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 2 + }, + "newText": "class fn {\r\n constructor() {\r\n this.baz = 10;\r\n }\r\n bar() {\r\n console.log('hello world');\r\n }\r\n}" + }, + { + "start": { + "line": 5, + "offset": 1 + }, + "end": { + "line": 7, + "offset": 2 + }, + "newText": "" + } + ] + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server2.js b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server2.js new file mode 100644 index 00000000000..e87485dbaee --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server2.js @@ -0,0 +1,246 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/test123.js] +/** + * JSDoc Comment + */ +function fn() { + this.baz = 10; +} +fn.prototype.bar = function () { + console.log('hello world'); +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/test123.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/test123.js SVC-1-0 "/**\n * JSDoc Comment\n */\nfunction fn() {\n this.baz = 10;\n}\nfn.prototype.bar = function () {\n console.log('hello world');\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + test123.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test123.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "This constructor function may be converted to a class declaration.", + "start": 34, + "length": 2, + "category": "suggestion", + "code": 80002, + "startLocation": { + "line": 4, + "offset": 10 + }, + "endLocation": { + "line": 4, + "offset": 12 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test123.js", + "startLine": 4, + "startOffset": 10, + "endLine": 4, + "endOffset": 12, + "errorCodes": [ + 80002 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 5, + "success": true, + "body": [ + { + "fixName": "convertFunctionToEs6Class", + "description": "Convert function to an ES2015 class", + "changes": [ + { + "fileName": "/tests/cases/fourslash/server/test123.js", + "textChanges": [ + { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 2 + }, + "newText": "class fn {\r\n constructor() {\r\n this.baz = 10;\r\n }\r\n bar() {\r\n console.log('hello world');\r\n }\r\n}" + }, + { + "start": { + "line": 7, + "offset": 1 + }, + "end": { + "line": 9, + "offset": 2 + }, + "newText": "" + } + ] + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js new file mode 100644 index 00000000000..8902b7b1145 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js @@ -0,0 +1,305 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/index.ts] +export class Foo { + member: string; + methodName(propName: SomeType): void {} + otherMethod() { + if (Math.random() > 0.5) { + return {x: 42}; + } + return {y: "yes"}; + } +} + +export interface SomeType { + member: number; +} + +//// [/tests/cases/fourslash/server/indexdef.d.ts] +export declare class Foo { + member: string; + methodName(propName: SomeType): void; + otherMethod(): { + x: number; + y?: undefined; + } | { + y: string; + x?: undefined; + }; +} +export interface SomeType { + member: number; +} +//# sourceMappingURL=indexdef.d.ts.map + +//// [/tests/cases/fourslash/server/indexdef.d.ts.map] +{"version":3,"file":"indexdef.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;IACI,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IACpC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"} + +//// [/tests/cases/fourslash/server/mymodule.ts] +import * as mod from "./indexdef"; +const instance = new mod.Foo(); +instance.methodName({member: 12}); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/index.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/index.ts SVC-1-0 "export class Foo {\n member: string;\n methodName(propName: SomeType): void {}\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/mymodule.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/mymodule.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/indexdef.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/indexdef.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): void;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=indexdef.d.ts.map" + /tests/cases/fourslash/server/mymodule.ts SVC-1-0 "import * as mod from \"./indexdef\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + indexdef.d.ts + Imported via "./indexdef" from file 'mymodule.ts' + mymodule.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/mymodule.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/indexdef.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectories:: +/tests/cases/fourslash/server: *new* + {} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} + {} *new* +/tests/cases/fourslash/server/node_modules: + {} + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} + {} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/indexdef.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 2, + "success": true, + "body": { + "definitions": [ + { + "file": "/tests/cases/fourslash/server/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 10 + }, + "end": { + "line": 3, + "offset": 20 + } + } + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/indexdef.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/indexdef.d.ts.map: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectories:: +/tests/cases/fourslash/server: + {} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js new file mode 100644 index 00000000000..dd28dc7c023 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js @@ -0,0 +1,552 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/dist/index.d.ts] +export declare class Foo { + member: string; + methodName(propName: SomeType): SomeType; + otherMethod(): { + x: number; + y?: undefined; + } | { + y: string; + x?: undefined; + }; +} +export interface SomeType { + member: number; +} +//# sourceMappingURL=index.d.ts.map + +//// [/dist/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"} + +//// [/dist/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Foo = void 0; +var Foo = /** @class */ (function () { + function Foo() { + } + Foo.prototype.methodName = function (propName) { return propName; }; + Foo.prototype.otherMethod = function () { + if (Math.random() > 0.5) { + return { x: 42 }; + } + return { y: "yes" }; + }; + return Foo; +}()); +exports.Foo = Foo; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTtJQUFBO0lBU0EsQ0FBQztJQVBHLHdCQUFVLEdBQVYsVUFBVyxRQUFrQixJQUFjLE9BQU8sUUFBUSxDQUFDLENBQUMsQ0FBQztJQUM3RCx5QkFBVyxHQUFYO1FBQ0ksSUFBSSxJQUFJLENBQUMsTUFBTSxFQUFFLEdBQUcsR0FBRyxFQUFFLENBQUM7WUFDdEIsT0FBTyxFQUFDLENBQUMsRUFBRSxFQUFFLEVBQUMsQ0FBQztRQUNuQixDQUFDO1FBQ0QsT0FBTyxFQUFDLENBQUMsRUFBRSxLQUFLLEVBQUMsQ0FBQztJQUN0QixDQUFDO0lBQ0wsVUFBQztBQUFELENBQUMsQUFURCxJQVNDO0FBVFksa0JBQUcifQ== + +//// [/index.ts] +export class Foo { + member: string; + methodName(propName: SomeType): SomeType { return propName; } + otherMethod() { + if (Math.random() > 0.5) { + return {x: 42}; + } + return {y: "yes"}; + } +} + +export interface SomeType { + member: number; +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/mymodule.ts] +import * as mod from "/dist/index"; +const instance = new mod.Foo(); +instance.methodName({member: 12}); + +//// [/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dist", + "inlineSourceMap": true, + "declaration": true, + "declarationMap": true, + "newLine": "lf", + }, + "files": ["/index.ts"], +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts" + ], + "options": { + "outDir": "/dist", + "inlineSourceMap": true, + "declaration": true, + "declarationMap": true, + "newLine": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/index.ts\"],\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "emit-output" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "emit-output", + "request_seq": 2, + "success": true, + "body": { + "outputFiles": [ + { + "name": "/dist/index.js", + "writeByteOrderMark": false, + "text": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Foo = void 0;\nvar Foo = /** @class */ (function () {\n function Foo() {\n }\n Foo.prototype.methodName = function (propName) { return propName; };\n Foo.prototype.otherMethod = function () {\n if (Math.random() > 0.5) {\n return { x: 42 };\n }\n return { y: \"yes\" };\n };\n return Foo;\n}());\nexports.Foo = Foo;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTtJQUFBO0lBU0EsQ0FBQztJQVBHLHdCQUFVLEdBQVYsVUFBVyxRQUFrQixJQUFjLE9BQU8sUUFBUSxDQUFDLENBQUMsQ0FBQztJQUM3RCx5QkFBVyxHQUFYO1FBQ0ksSUFBSSxJQUFJLENBQUMsTUFBTSxFQUFFLEdBQUcsR0FBRyxFQUFFLENBQUM7WUFDdEIsT0FBTyxFQUFDLENBQUMsRUFBRSxFQUFFLEVBQUMsQ0FBQztRQUNuQixDQUFDO1FBQ0QsT0FBTyxFQUFDLENBQUMsRUFBRSxLQUFLLEVBQUMsQ0FBQztJQUN0QixDQUFDO0lBQ0wsVUFBQztBQUFELENBQUMsQUFURCxJQVNDO0FBVFksa0JBQUcifQ==" + }, + { + "name": "/dist/index.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"index.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../index.ts\"],\"names\":[],\"mappings\":\"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB\"}" + }, + { + "name": "/dist/index.d.ts", + "writeByteOrderMark": false, + "text": "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/mymodule.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /mymodule.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/mymodule.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + /mymodule.ts SVC-1-0 "import * as mod from \"/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + dist/index.d.ts + Imported via "/dist/index" from file 'mymodule.ts' + mymodule.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /mymodule.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/dist/index.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "implementation" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "implementation", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } +After Request +watchedFiles:: +/dist/index.d.ts: + {"pollingInterval":500} +/dist/index.d.ts.map: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "typeDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "typeDefinition", + "request_seq": 5, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 26 + }, + "contextStart": { + "line": 12, + "offset": 1 + }, + "contextEnd": { + "line": 14, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 6, + "success": true, + "body": { + "definitions": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 10 + }, + "end": { + "line": 3, + "offset": 20 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definition", + "request_seq": 7, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js new file mode 100644 index 00000000000..8695f03692b --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js @@ -0,0 +1,554 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/dist/index.d.ts] +export declare class Foo { + member: string; + methodName(propName: SomeType): SomeType; + otherMethod(): { + x: number; + y?: undefined; + } | { + y: string; + x?: undefined; + }; +} +export interface SomeType { + member: number; +} +//# sourceMappingURL=index.d.ts.map + +//// [/dist/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"} + +//// [/dist/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Foo = void 0; +var Foo = /** @class */ (function () { + function Foo() { + } + Foo.prototype.methodName = function (propName) { return propName; }; + Foo.prototype.otherMethod = function () { + if (Math.random() > 0.5) { + return { x: 42 }; + } + return { y: "yes" }; + }; + return Foo; +}()); +exports.Foo = Foo; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTtJQUFBO0lBU0EsQ0FBQztJQVBHLHdCQUFVLEdBQVYsVUFBVyxRQUFrQixJQUFjLE9BQU8sUUFBUSxDQUFDLENBQUMsQ0FBQztJQUM3RCx5QkFBVyxHQUFYO1FBQ0ksSUFBSSxJQUFJLENBQUMsTUFBTSxFQUFFLEdBQUcsR0FBRyxFQUFFLENBQUM7WUFDdEIsT0FBTyxFQUFDLENBQUMsRUFBRSxFQUFFLEVBQUMsQ0FBQztRQUNuQixDQUFDO1FBQ0QsT0FBTyxFQUFDLENBQUMsRUFBRSxLQUFLLEVBQUMsQ0FBQztJQUN0QixDQUFDO0lBQ0wsVUFBQztBQUFELENBQUMsQUFURCxJQVNDO0FBVFksa0JBQUciLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgRm9vIHtcbiAgICBtZW1iZXI6IHN0cmluZztcbiAgICBtZXRob2ROYW1lKHByb3BOYW1lOiBTb21lVHlwZSk6IFNvbWVUeXBlIHsgcmV0dXJuIHByb3BOYW1lOyB9XG4gICAgb3RoZXJNZXRob2QoKSB7XG4gICAgICAgIGlmIChNYXRoLnJhbmRvbSgpID4gMC41KSB7XG4gICAgICAgICAgICByZXR1cm4ge3g6IDQyfTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4ge3k6IFwieWVzXCJ9O1xuICAgIH1cbn1cblxuZXhwb3J0IGludGVyZmFjZSBTb21lVHlwZSB7XG4gICAgbWVtYmVyOiBudW1iZXI7XG59Il19 + +//// [/index.ts] +export class Foo { + member: string; + methodName(propName: SomeType): SomeType { return propName; } + otherMethod() { + if (Math.random() > 0.5) { + return {x: 42}; + } + return {y: "yes"}; + } +} + +export interface SomeType { + member: number; +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/mymodule.ts] +import * as mod from "/dist/index"; +const instance = new mod.Foo(); +instance.methodName({member: 12}); + +//// [/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dist", + "inlineSourceMap": true, + "inlineSources": true, + "declaration": true, + "declarationMap": true, + "newLine": "lf", + }, + "files": ["/index.ts"], +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts" + ], + "options": { + "outDir": "/dist", + "inlineSourceMap": true, + "inlineSources": true, + "declaration": true, + "declarationMap": true, + "newLine": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"inlineSources\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/index.ts\"],\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "emit-output" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "emit-output", + "request_seq": 2, + "success": true, + "body": { + "outputFiles": [ + { + "name": "/dist/index.js", + "writeByteOrderMark": false, + "text": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Foo = void 0;\nvar Foo = /** @class */ (function () {\n function Foo() {\n }\n Foo.prototype.methodName = function (propName) { return propName; };\n Foo.prototype.otherMethod = function () {\n if (Math.random() > 0.5) {\n return { x: 42 };\n }\n return { y: \"yes\" };\n };\n return Foo;\n}());\nexports.Foo = Foo;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTtJQUFBO0lBU0EsQ0FBQztJQVBHLHdCQUFVLEdBQVYsVUFBVyxRQUFrQixJQUFjLE9BQU8sUUFBUSxDQUFDLENBQUMsQ0FBQztJQUM3RCx5QkFBVyxHQUFYO1FBQ0ksSUFBSSxJQUFJLENBQUMsTUFBTSxFQUFFLEdBQUcsR0FBRyxFQUFFLENBQUM7WUFDdEIsT0FBTyxFQUFDLENBQUMsRUFBRSxFQUFFLEVBQUMsQ0FBQztRQUNuQixDQUFDO1FBQ0QsT0FBTyxFQUFDLENBQUMsRUFBRSxLQUFLLEVBQUMsQ0FBQztJQUN0QixDQUFDO0lBQ0wsVUFBQztBQUFELENBQUMsQUFURCxJQVNDO0FBVFksa0JBQUciLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgRm9vIHtcbiAgICBtZW1iZXI6IHN0cmluZztcbiAgICBtZXRob2ROYW1lKHByb3BOYW1lOiBTb21lVHlwZSk6IFNvbWVUeXBlIHsgcmV0dXJuIHByb3BOYW1lOyB9XG4gICAgb3RoZXJNZXRob2QoKSB7XG4gICAgICAgIGlmIChNYXRoLnJhbmRvbSgpID4gMC41KSB7XG4gICAgICAgICAgICByZXR1cm4ge3g6IDQyfTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4ge3k6IFwieWVzXCJ9O1xuICAgIH1cbn1cblxuZXhwb3J0IGludGVyZmFjZSBTb21lVHlwZSB7XG4gICAgbWVtYmVyOiBudW1iZXI7XG59Il19" + }, + { + "name": "/dist/index.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"index.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../index.ts\"],\"names\":[],\"mappings\":\"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB\"}" + }, + { + "name": "/dist/index.d.ts", + "writeByteOrderMark": false, + "text": "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/mymodule.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /mymodule.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/mymodule.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + /mymodule.ts SVC-1-0 "import * as mod from \"/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + dist/index.d.ts + Imported via "/dist/index" from file 'mymodule.ts' + mymodule.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /mymodule.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/dist/index.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "implementation" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "implementation", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } +After Request +watchedFiles:: +/dist/index.d.ts: + {"pollingInterval":500} +/dist/index.d.ts.map: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "typeDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "typeDefinition", + "request_seq": 5, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 26 + }, + "contextStart": { + "line": 12, + "offset": 1 + }, + "contextEnd": { + "line": 14, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 6, + "success": true, + "body": { + "definitions": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 10 + }, + "end": { + "line": 3, + "offset": 20 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definition", + "request_seq": 7, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js new file mode 100644 index 00000000000..115692d9bf7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js @@ -0,0 +1,550 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/dist/index.d.ts] +export declare class Foo { + member: string; + methodName(propName: SomeType): SomeType; + otherMethod(): { + x: number; + y?: undefined; + } | { + y: string; + x?: undefined; + }; +} +export interface SomeType { + member: number; +} +//# sourceMappingURL=index.d.ts.map + +//// [/dist/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"} + +//// [/dist/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Foo = void 0; +var Foo = /** @class */ (function () { + function Foo() { + } + Foo.prototype.methodName = function (propName) { return propName; }; + Foo.prototype.otherMethod = function () { + if (Math.random() > 0.5) { + return { x: 42 }; + } + return { y: "yes" }; + }; + return Foo; +}()); +exports.Foo = Foo; + + +//// [/index.ts] +export class Foo { + member: string; + methodName(propName: SomeType): SomeType { return propName; } + otherMethod() { + if (Math.random() > 0.5) { + return {x: 42}; + } + return {y: "yes"}; + } +} + +export interface SomeType { + member: number; +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/mymodule.ts] +import * as mod from "/dist/index"; +const instance = new mod.Foo(); +instance.methodName({member: 12}); + +//// [/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dist", + "declaration": true, + "declarationMap": true, + "newLine": "lf", + }, + "files": ["/index.ts"], +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts" + ], + "options": { + "outDir": "/dist", + "declaration": true, + "declarationMap": true, + "newLine": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/index.ts\"],\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "emit-output" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "emit-output", + "request_seq": 2, + "success": true, + "body": { + "outputFiles": [ + { + "name": "/dist/index.js", + "writeByteOrderMark": false, + "text": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Foo = void 0;\nvar Foo = /** @class */ (function () {\n function Foo() {\n }\n Foo.prototype.methodName = function (propName) { return propName; };\n Foo.prototype.otherMethod = function () {\n if (Math.random() > 0.5) {\n return { x: 42 };\n }\n return { y: \"yes\" };\n };\n return Foo;\n}());\nexports.Foo = Foo;\n" + }, + { + "name": "/dist/index.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"index.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../index.ts\"],\"names\":[],\"mappings\":\"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB\"}" + }, + { + "name": "/dist/index.d.ts", + "writeByteOrderMark": false, + "text": "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/mymodule.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /mymodule.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/mymodule.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + /mymodule.ts SVC-1-0 "import * as mod from \"/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + dist/index.d.ts + Imported via "/dist/index" from file 'mymodule.ts' + mymodule.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /mymodule.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/dist/index.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "implementation" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "implementation", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } +After Request +watchedFiles:: +/dist/index.d.ts: + {"pollingInterval":500} +/dist/index.d.ts.map: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "typeDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "typeDefinition", + "request_seq": 5, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 26 + }, + "contextStart": { + "line": 12, + "offset": 1 + }, + "contextEnd": { + "line": 14, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 6, + "success": true, + "body": { + "definitions": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 10 + }, + "end": { + "line": 3, + "offset": 20 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definition", + "request_seq": 7, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js new file mode 100644 index 00000000000..f8bddd45c39 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js @@ -0,0 +1,562 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/dist/index.d.ts] +export declare class Foo { + member: string; + methodName(propName: SomeType): SomeType; + otherMethod(): { + x: number; + y?: undefined; + } | { + y: string; + x?: undefined; + }; +} +export interface SomeType { + member: number; +} +//# sourceMappingURL=index.d.ts.map + +//// [/dist/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"} + +//// [/dist/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Foo = void 0; +var Foo = /** @class */ (function () { + function Foo() { + } + Foo.prototype.methodName = function (propName) { return propName; }; + Foo.prototype.otherMethod = function () { + if (Math.random() > 0.5) { + return { x: 42 }; + } + return { y: "yes" }; + }; + return Foo; +}()); +exports.Foo = Foo; +//# sourceMappingURL=index.js.map + +//// [/dist/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;AAAA;IAAA;IASA,CAAC;IAPG,wBAAU,GAAV,UAAW,QAAkB,IAAc,OAAO,QAAQ,CAAC,CAAC,CAAC;IAC7D,yBAAW,GAAX;QACI,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;YACtB,OAAO,EAAC,CAAC,EAAE,EAAE,EAAC,CAAC;QACnB,CAAC;QACD,OAAO,EAAC,CAAC,EAAE,KAAK,EAAC,CAAC;IACtB,CAAC;IACL,UAAC;AAAD,CAAC,AATD,IASC;AATY,kBAAG"} + +//// [/index.ts] +export class Foo { + member: string; + methodName(propName: SomeType): SomeType { return propName; } + otherMethod() { + if (Math.random() > 0.5) { + return {x: 42}; + } + return {y: "yes"}; + } +} + +export interface SomeType { + member: number; +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/mymodule.ts] +import * as mod from "/dist/index"; +const instance = new mod.Foo(); +instance.methodName({member: 12}); + +//// [/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dist", + "sourceMap": true, + "sourceRoot": "/", + "declaration": true, + "declarationMap": true, + "newLine": "lf", + }, + "files": ["/index.ts"], +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts" + ], + "options": { + "outDir": "/dist", + "sourceMap": true, + "sourceRoot": "/", + "declaration": true, + "declarationMap": true, + "newLine": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"sourceMap\": true,\n \"sourceRoot\": \"/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/index.ts\"],\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "emit-output" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "emit-output", + "request_seq": 2, + "success": true, + "body": { + "outputFiles": [ + { + "name": "/dist/index.js.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"/\",\"sources\":[\"index.ts\"],\"names\":[],\"mappings\":\";;;AAAA;IAAA;IASA,CAAC;IAPG,wBAAU,GAAV,UAAW,QAAkB,IAAc,OAAO,QAAQ,CAAC,CAAC,CAAC;IAC7D,yBAAW,GAAX;QACI,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;YACtB,OAAO,EAAC,CAAC,EAAE,EAAE,EAAC,CAAC;QACnB,CAAC;QACD,OAAO,EAAC,CAAC,EAAE,KAAK,EAAC,CAAC;IACtB,CAAC;IACL,UAAC;AAAD,CAAC,AATD,IASC;AATY,kBAAG\"}" + }, + { + "name": "/dist/index.js", + "writeByteOrderMark": false, + "text": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Foo = void 0;\nvar Foo = /** @class */ (function () {\n function Foo() {\n }\n Foo.prototype.methodName = function (propName) { return propName; };\n Foo.prototype.otherMethod = function () {\n if (Math.random() > 0.5) {\n return { x: 42 };\n }\n return { y: \"yes\" };\n };\n return Foo;\n}());\nexports.Foo = Foo;\n//# sourceMappingURL=index.js.map" + }, + { + "name": "/dist/index.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"index.d.ts\",\"sourceRoot\":\"/\",\"sources\":[\"index.ts\"],\"names\":[],\"mappings\":\"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB\"}" + }, + { + "name": "/dist/index.d.ts", + "writeByteOrderMark": false, + "text": "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/mymodule.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /mymodule.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/mymodule.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + /mymodule.ts SVC-1-0 "import * as mod from \"/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + dist/index.d.ts + Imported via "/dist/index" from file 'mymodule.ts' + mymodule.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /mymodule.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/dist/index.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "implementation" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "implementation", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } +After Request +watchedFiles:: +/dist/index.d.ts: + {"pollingInterval":500} +/dist/index.d.ts.map: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "typeDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "typeDefinition", + "request_seq": 5, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 26 + }, + "contextStart": { + "line": 12, + "offset": 1 + }, + "contextEnd": { + "line": 14, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 6, + "success": true, + "body": { + "definitions": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 10 + }, + "end": { + "line": 3, + "offset": 20 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definition", + "request_seq": 7, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js new file mode 100644 index 00000000000..8d94e0d4da6 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js @@ -0,0 +1,582 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/dist/index.d.ts] +export declare class Foo { + member: string; + methodName(propName: SomeType): SomeType; + otherMethod(): { + x: number; + y?: undefined; + } | { + y: string; + x?: undefined; + }; +} +export interface SomeType { + member: number; +} +//# sourceMappingURL=index.d.ts.map + +//// [/dist/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"} + +//// [/dist/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Foo = void 0; +var Foo = /** @class */ (function () { + function Foo() { + } + Foo.prototype.methodName = function (propName) { return propName; }; + Foo.prototype.otherMethod = function () { + if (Math.random() > 0.5) { + return { x: 42 }; + } + return { y: "yes" }; + }; + return Foo; +}()); +exports.Foo = Foo; + + +//// [/index.ts] +export class Foo { + member: string; + methodName(propName: SomeType): SomeType { return propName; } + otherMethod() { + if (Math.random() > 0.5) { + return {x: 42}; + } + return {y: "yes"}; + } +} + +export interface SomeType { + member: number; +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/mymodule.ts] +import * as mod from "/dist/index"; +const instance = new mod.Foo(); +instance.methodName({member: 12}); + +//// [/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dist", + "sourceRoot": "/", + "declaration": true, + "declarationMap": true, + "newLine": "lf", + }, + "files": ["/index.ts"], +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts" + ], + "options": { + "outDir": "/dist", + "sourceRoot": "/", + "declaration": true, + "declarationMap": true, + "newLine": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 9 + }, + "end": { + "line": 4, + "offset": 21 + }, + "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", + "code": 5051, + "category": "error", + "fileName": "/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"sourceRoot\": \"/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/index.ts\"],\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "emit-output" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "emit-output", + "request_seq": 2, + "success": true, + "body": { + "outputFiles": [ + { + "name": "/dist/index.js", + "writeByteOrderMark": false, + "text": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Foo = void 0;\nvar Foo = /** @class */ (function () {\n function Foo() {\n }\n Foo.prototype.methodName = function (propName) { return propName; };\n Foo.prototype.otherMethod = function () {\n if (Math.random() > 0.5) {\n return { x: 42 };\n }\n return { y: \"yes\" };\n };\n return Foo;\n}());\nexports.Foo = Foo;\n" + }, + { + "name": "/dist/index.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"index.d.ts\",\"sourceRoot\":\"/\",\"sources\":[\"index.ts\"],\"names\":[],\"mappings\":\"AAAA,qBAAa,GAAG;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IACxC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB\"}" + }, + { + "name": "/dist/index.d.ts", + "writeByteOrderMark": false, + "text": "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/mymodule.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /mymodule.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/mymodule.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 9 + }, + "end": { + "line": 4, + "offset": 21 + }, + "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", + "code": 5051, + "category": "error", + "fileName": "/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" + /mymodule.ts SVC-1-0 "import * as mod from \"/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + dist/index.d.ts + Imported via "/dist/index" from file 'mymodule.ts' + mymodule.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /mymodule.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/dist/index.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "implementation" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /dist/index.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "implementation", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } +After Request +watchedFiles:: +/dist/index.d.ts: + {"pollingInterval":500} +/dist/index.d.ts.map: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "typeDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "typeDefinition", + "request_seq": 5, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 12, + "offset": 18 + }, + "end": { + "line": 12, + "offset": 26 + }, + "contextStart": { + "line": 12, + "offset": 1 + }, + "contextEnd": { + "line": 14, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 6, + "success": true, + "body": { + "definitions": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 10 + }, + "end": { + "line": 3, + "offset": 20 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definition", + "request_seq": 7, + "success": true, + "body": [ + { + "file": "/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js new file mode 100644 index 00000000000..c7606c08bc6 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js @@ -0,0 +1,301 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/index.ts] +export class Foo { + member: string; + methodName(propName: SomeType): void {} + otherMethod() { + if (Math.random() > 0.5) { + return {x: 42}; + } + return {y: "yes"}; + } +} + +export interface SomeType { + member: number; +} + +//// [/tests/cases/fourslash/server/mymodule.ts] +import * as mod from "./out/indexdef"; +const instance = new mod.Foo(); +instance.methodName({member: 12}); + +//// [/tests/cases/fourslash/server/out/indexdef.d.ts] +export declare class Foo { + member: string; + methodName(propName: SomeType): void; + otherMethod(): { + x: number; + y?: undefined; + } | { + y: string; + x?: undefined; + }; +} +export interface SomeType { + member: number; +} +//# sourceMappingURL=out/indexdef.d.ts.map + +//// [/tests/cases/fourslash/server/out/indexdef.d.ts.map] +{"version":3,"file":"indexdef.d.ts","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA;IACI,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IACpC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/index.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/index.ts SVC-1-0 "export class Foo {\n member: string;\n methodName(propName: SomeType): void {}\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/mymodule.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/mymodule.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/out 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/out 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/out/indexdef.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/out/indexdef.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): void;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=out/indexdef.d.ts.map" + /tests/cases/fourslash/server/mymodule.ts SVC-1-0 "import * as mod from \"./out/indexdef\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + out/indexdef.d.ts + Imported via "./out/indexdef" from file 'mymodule.ts' + mymodule.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/mymodule.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/out/indexdef.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} + {} *new* +/tests/cases/fourslash/server/node_modules: + {} + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} + {} *new* +/tests/cases/fourslash/server/out: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/mymodule.ts", + "line": 3, + "offset": 10 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/out/indexdef.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 2, + "success": true, + "body": { + "definitions": [ + { + "file": "/tests/cases/fourslash/server/index.ts", + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 5 + }, + "contextEnd": { + "line": 4, + "offset": 5 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 10 + }, + "end": { + "line": 3, + "offset": 20 + } + } + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/out/indexdef.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/out/indexdef.d.ts.map: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/out: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js new file mode 100644 index 00000000000..fb002c8ebe2 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js @@ -0,0 +1,484 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/BaseClass/Source.d.ts] +declare class Control { + constructor(); + /** this is a super var */ + myVar: boolean | 'yeah'; +} +//# sourceMappingURL=Source.d.ts.map + +//// [/tests/cases/fourslash/server/BaseClass/Source.d.ts.map] +{"version":3,"file":"Source.d.ts","sourceRoot":"","sources":["Source.ts"],"names":[],"mappings":"AAAA,cAAM,OAAO;;IAIT,0BAA0B;IACnB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAQ;CACzC"} + +//// [/tests/cases/fourslash/server/BaseClass/Source.ts] +class Control{ + constructor(){ + return; + } + /** this is a super var */ + public myVar: boolean | 'yeah' = true; +} + +//// [/tests/cases/fourslash/server/buttonClass/Source.ts] +// I cannot F12 navigate to Control +// vvvvvvv +class Button extends Control { + public myFunction() { + // I cannot F12 navigate to myVar + // vvvvv + if (typeof this.myVar === 'boolean') { + this.myVar; + } else { + this.myVar.toLocaleUpperCase(); + } + } +} + +//// [/tests/cases/fourslash/server/buttonClass/tsconfig.json] +{ + "extends": "../tsbase.json", + "compilerOptions": { + "outFile": "Source.js" + }, + "files": [ + "Source.ts" + ], + "include": [ + "../BaseClass/Source.d.ts" + ] + } + +//// [/tests/cases/fourslash/server/tsbase.json] +{ + "$schema": "http://json.schemastore.org/tsconfig", + "compileOnSave": true, + "compilerOptions": { + "sourceMap": true, + "declaration": true, + "declarationMap": true + } + } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/BaseClass/Source.d.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server/BaseClass +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/BaseClass/Source.d.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/BaseClass/Source.d.ts SVC-1-0 "declare class Control {\n constructor();\n /** this is a super var */\n myVar: boolean | 'yeah';\n}\n//# sourceMappingURL=Source.d.ts.map" + + + ../../../../../lib.d.ts + Default library for target 'es5' + ../../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../lib.d.ts' + ../../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../lib.d.ts' + Source.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/BaseClass/Source.d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/BaseClass/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/BaseClass/tsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/BaseClass/node_modules: *new* + {} +/tests/cases/fourslash/server/BaseClass/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/buttonClass/Source.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server/buttonClass +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/buttonClass/Source.ts :: Config file name: /tests/cases/fourslash/server/buttonClass/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/buttonClass/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/buttonClass/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/buttonClass/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/buttonClass/Source.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/buttonClass/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/buttonClass/Source.ts", + "/tests/cases/fourslash/server/BaseClass/Source.d.ts" + ], + "options": { + "sourceMap": true, + "declaration": true, + "declarationMap": true, + "outFile": "/tests/cases/fourslash/server/buttonClass/Source.js", + "configFilePath": "/tests/cases/fourslash/server/buttonClass/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsbase.json 2000 undefined Config: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Extended config file +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/BaseClass/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/BaseClass/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/buttonClass/node_modules 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/buttonClass/node_modules 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/buttonClass/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/buttonClass/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/buttonClass/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/buttonClass/Source.ts SVC-1-0 "// I cannot F12 navigate to Control\n// vvvvvvv\nclass Button extends Control {\n public myFunction() {\n // I cannot F12 navigate to myVar\n // vvvvv\n if (typeof this.myVar === 'boolean') {\n this.myVar;\n } else {\n this.myVar.toLocaleUpperCase();\n }\n }\n}" + /tests/cases/fourslash/server/BaseClass/Source.d.ts SVC-1-0 "declare class Control {\n constructor();\n /** this is a super var */\n myVar: boolean | 'yeah';\n}\n//# sourceMappingURL=Source.d.ts.map" + + + ../../../../../lib.d.ts + Default library for target 'es5' + ../../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../lib.d.ts' + ../../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../lib.d.ts' + Source.ts + Part of 'files' list in tsconfig.json + ../BaseClass/Source.d.ts + Matched by include pattern '../BaseClass/Source.d.ts' in 'tsconfig.json' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/buttonClass/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/buttonClass/Source.ts", + "configFile": "/tests/cases/fourslash/server/buttonClass/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/BaseClass/Source.d.ts + + + ../../../../../lib.d.ts + Default library for target 'es5' + ../../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../lib.d.ts' + ../../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../lib.d.ts' + Source.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/buttonClass/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/BaseClass/Source.d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/buttonClass/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/buttonClass/Source.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/buttonClass/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/buttonClass/tsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsbase.json: *new* + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/BaseClass/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/BaseClass/tsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} *new* +/tests/cases/fourslash/server/buttonClass/node_modules: *new* + {} +/tests/cases/fourslash/server/buttonClass/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} *new* + +watchedDirectoriesRecursive *deleted*:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/BaseClass/node_modules: + {} +/tests/cases/fourslash/server/BaseClass/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/buttonClass/Source.ts", + "line": 3, + "offset": 22 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/Source.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/Source.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 2, + "success": true, + "body": { + "definitions": [ + { + "file": "/tests/cases/fourslash/server/BaseClass/Source.ts", + "start": { + "line": 1, + "offset": 7 + }, + "end": { + "line": 1, + "offset": 14 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 7, + "offset": 2 + } + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 29 + } + } + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/BaseClass/Source.d.ts.map: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/BaseClass/Source.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/buttonClass/tsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsbase.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/buttonClass/node_modules: + {} +/tests/cases/fourslash/server/buttonClass/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/buttonClass/Source.ts", + "line": 7, + "offset": 25 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 3, + "success": true, + "body": { + "definitions": [ + { + "file": "/tests/cases/fourslash/server/BaseClass/Source.ts", + "start": { + "line": 6, + "offset": 12 + }, + "end": { + "line": 6, + "offset": 17 + }, + "contextStart": { + "line": 6, + "offset": 12 + }, + "contextEnd": { + "line": 6, + "offset": 43 + } + } + ], + "textSpan": { + "start": { + "line": 7, + "offset": 25 + }, + "end": { + "line": 7, + "offset": 30 + } + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js new file mode 100644 index 00000000000..7f41a70406e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js @@ -0,0 +1,225 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { Foo } from "a"; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/a/dist/index.d.ts] +export declare class Foo { + bar: any; +} +//# sourceMappingURL=index.d.ts.map + +//// [/node_modules/a/dist/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qBAAa,GAAG;IACZ,GAAG,MAAC;CACP"} + +//// [/node_modules/a/package.json] +{ + "name": "a", + "version": "0.0.0", + "private": true, + "main": "dist", + "types": "dist" +} + +//// [/node_modules/a/src/index.ts] +export class Foo { +} + + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/a/dist/index.d.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/a/dist +Info seq [hh:mm:ss:mss] For info: /node_modules/a/dist/index.d.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/a/dist/index.d.ts SVC-1-0 "export declare class Foo {\n bar: any;\n}\n//# sourceMappingURL=index.d.ts.map" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/a/dist/index.d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/node_modules/a/dist/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/a/dist/index.d.ts SVC-1-0 "export declare class Foo {\n bar: any;\n}\n//# sourceMappingURL=index.d.ts.map" + /index.ts SVC-1-0 "import { Foo } from \"a\";" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/a/dist/index.d.ts + Imported via "a" from file 'index.ts' with packageId 'a/dist/index.d.ts@0.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /node_modules/a/dist/index.d.ts + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + index.d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /node_modules/a/dist/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/a/dist/index.d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive *deleted*:: +/node_modules/a/dist/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 13 + }, + "command": "definition" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/a/dist/index.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/a/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definition", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/node_modules/a/src/index.ts", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 17 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 1 + } + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/a/dist/index.d.ts.map: *new* + {"pollingInterval":500} +/node_modules/a/src/index.ts: *new* + {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/definition01.js b/tests/baselines/reference/tsserver/fourslashServer/definition01.js new file mode 100644 index 00000000000..8f7820e7de5 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/definition01.js @@ -0,0 +1,143 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +export class Foo {} + +//// [/tests/cases/fourslash/server/b.ts] +import n = require('./a'); +var x = new n.Foo(); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/b.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts Text-1 "export class Foo {}" + /tests/cases/fourslash/server/b.ts SVC-1-0 "import n = require('./a');\nvar x = new n.Foo();" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Imported via './a' from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/a.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "line": 1, + "offset": 24 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 1, + "success": true, + "body": { + "definitions": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + } + } + ], + "textSpan": { + "start": { + "line": 1, + "offset": 20 + }, + "end": { + "line": 1, + "offset": 25 + } + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/documentHighlights01.js b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights01.js new file mode 100644 index 00000000000..213caba0564 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights01.js @@ -0,0 +1,479 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +function f(x: typeof f) { + f(f); +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "function f(x: typeof f) {\n f(f);\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 1, + "offset": 10, + "filesToSearch": [ + "/tests/cases/fourslash/server/a.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 1, + "offset": 22, + "filesToSearch": [ + "/tests/cases/fourslash/server/a.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 2, + "offset": 5, + "filesToSearch": [ + "/tests/cases/fourslash/server/a.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 6, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 2, + "offset": 7, + "filesToSearch": [ + "/tests/cases/fourslash/server/a.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 8, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/documentHighlights02.js b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights02.js new file mode 100644 index 00000000000..eae36f49f20 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights02.js @@ -0,0 +1,505 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +function foo () { + return 1; +} +foo(); + +//// [/tests/cases/fourslash/server/b.ts] +/// +foo(); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "function foo () {\n\treturn 1;\n}\nfoo();" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/b.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "function foo () {\n\treturn 1;\n}\nfoo();" + /tests/cases/fourslash/server/b.ts SVC-1-0 "/// \nfoo();" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Referenced via 'a.ts' from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/a.ts + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} *new* +/tests/cases/fourslash/server/node_modules: + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} *new* + +watchedDirectoriesRecursive *deleted*:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 1, + "offset": 10, + "filesToSearch": [ + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 13 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 4 + }, + "kind": "reference" + } + ] + }, + { + "file": "/tests/cases/fourslash/server/b.ts", + "highlightSpans": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 4 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 4, + "offset": 1, + "filesToSearch": [ + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 6, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 13 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 4 + }, + "kind": "reference" + } + ] + }, + { + "file": "/tests/cases/fourslash/server/b.ts", + "highlightSpans": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 4 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "line": 2, + "offset": 1, + "filesToSearch": [ + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 8, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 13 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 4 + }, + "kind": "reference" + } + ] + }, + { + "file": "/tests/cases/fourslash/server/b.ts", + "highlightSpans": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 4 + }, + "kind": "reference" + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/documentHighlightsTypeParameterInHeritageClause01.js b/tests/baselines/reference/tsserver/fourslashServer/documentHighlightsTypeParameterInHeritageClause01.js new file mode 100644 index 00000000000..3b2a192221d --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/documentHighlightsTypeParameterInHeritageClause01.js @@ -0,0 +1,324 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts] +interface I extends I, T { +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts SVC-1-0 "interface I extends I, T {\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + documentHighlightsTypeParameterInHeritageClause01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", + "line": 1, + "offset": 13, + "filesToSearch": [ + "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 13 + }, + "end": { + "line": 1, + "offset": 14 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 26 + }, + "end": { + "line": 1, + "offset": 27 + }, + "kind": "reference" + }, + { + "start": { + "line": 1, + "offset": 30 + }, + "end": { + "line": 1, + "offset": 31 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", + "line": 1, + "offset": 26, + "filesToSearch": [ + "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 13 + }, + "end": { + "line": 1, + "offset": 14 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 26 + }, + "end": { + "line": 1, + "offset": 27 + }, + "kind": "reference" + }, + { + "start": { + "line": 1, + "offset": 30 + }, + "end": { + "line": 1, + "offset": 31 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", + "line": 1, + "offset": 30, + "filesToSearch": [ + "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 6, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 13 + }, + "end": { + "line": 1, + "offset": 14 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 26 + }, + "end": { + "line": 1, + "offset": 27 + }, + "kind": "reference" + }, + { + "start": { + "line": 1, + "offset": 30 + }, + "end": { + "line": 1, + "offset": 31 + }, + "kind": "reference" + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/fixExtractToInnerFunctionDuplicaton.js b/tests/baselines/reference/tsserver/fourslashServer/fixExtractToInnerFunctionDuplicaton.js new file mode 100644 index 00000000000..0fcedaa5956 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/fixExtractToInnerFunctionDuplicaton.js @@ -0,0 +1,629 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts] +function foo(): void { console.log('a'); } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts SVC-1-0 "function foo(): void { console.log('a'); }" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + fixExtractToInnerFunctionDuplicaton.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", + "startLine": 1, + "startOffset": 24, + "endLine": 1, + "endOffset": 41, + "triggerReason": "implicit" + }, + "command": "getApplicableRefactors" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getApplicableRefactors", + "request_seq": 2, + "success": true, + "body": [ + { + "name": "Extract Symbol", + "description": "Extract function", + "actions": [ + { + "description": "Extract to inner function in function 'foo'", + "name": "function_scope_0", + "kind": "refactor.extract.function" + }, + { + "description": "Extract to function in global scope", + "name": "function_scope_1", + "kind": "refactor.extract.function" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract constant", + "actions": [ + { + "description": "Extract to constant in enclosing scope", + "name": "constant_scope_0", + "kind": "refactor.extract.constant" + }, + { + "description": "Extract to constant in global scope", + "name": "constant_scope_1", + "kind": "refactor.extract.constant" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", + "startLine": 1, + "startOffset": 24, + "endLine": 1, + "endOffset": 41, + "triggerReason": "implicit" + }, + "command": "getApplicableRefactors" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getApplicableRefactors", + "request_seq": 5, + "success": true, + "body": [ + { + "name": "Extract Symbol", + "description": "Extract function", + "actions": [ + { + "description": "Extract to inner function in function 'foo'", + "name": "function_scope_0", + "kind": "refactor.extract.function" + }, + { + "description": "Extract to function in global scope", + "name": "function_scope_1", + "kind": "refactor.extract.function" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract constant", + "actions": [ + { + "description": "Extract to constant in enclosing scope", + "name": "constant_scope_0", + "kind": "refactor.extract.constant" + }, + { + "description": "Extract to constant in global scope", + "name": "constant_scope_1", + "kind": "refactor.extract.constant" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 7, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", + "startLine": 1, + "startOffset": 24, + "endLine": 1, + "endOffset": 41, + "triggerReason": "implicit" + }, + "command": "getApplicableRefactors" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getApplicableRefactors", + "request_seq": 8, + "success": true, + "body": [ + { + "name": "Extract Symbol", + "description": "Extract function", + "actions": [ + { + "description": "Extract to inner function in function 'foo'", + "name": "function_scope_0", + "kind": "refactor.extract.function" + }, + { + "description": "Extract to function in global scope", + "name": "function_scope_1", + "kind": "refactor.extract.function" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract constant", + "actions": [ + { + "description": "Extract to constant in enclosing scope", + "name": "constant_scope_0", + "kind": "refactor.extract.constant" + }, + { + "description": "Extract to constant in global scope", + "name": "constant_scope_1", + "kind": "refactor.extract.constant" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 9, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 10, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", + "startLine": 1, + "startOffset": 24, + "endLine": 1, + "endOffset": 41, + "triggerReason": "implicit" + }, + "command": "getApplicableRefactors" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getApplicableRefactors", + "request_seq": 11, + "success": true, + "body": [ + { + "name": "Extract Symbol", + "description": "Extract function", + "actions": [ + { + "description": "Extract to inner function in function 'foo'", + "name": "function_scope_0", + "kind": "refactor.extract.function" + }, + { + "description": "Extract to function in global scope", + "name": "function_scope_1", + "kind": "refactor.extract.function" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract constant", + "actions": [ + { + "description": "Extract to constant in enclosing scope", + "name": "constant_scope_0", + "kind": "refactor.extract.constant" + }, + { + "description": "Extract to constant in global scope", + "name": "constant_scope_1", + "kind": "refactor.extract.constant" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 12, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 13, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", + "startLine": 1, + "startOffset": 24, + "endLine": 1, + "endOffset": 41, + "triggerReason": "implicit" + }, + "command": "getApplicableRefactors" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getApplicableRefactors", + "request_seq": 14, + "success": true, + "body": [ + { + "name": "Extract Symbol", + "description": "Extract function", + "actions": [ + { + "description": "Extract to inner function in function 'foo'", + "name": "function_scope_0", + "kind": "refactor.extract.function" + }, + { + "description": "Extract to function in global scope", + "name": "function_scope_1", + "kind": "refactor.extract.function" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract constant", + "actions": [ + { + "description": "Extract to constant in enclosing scope", + "name": "constant_scope_0", + "kind": "refactor.extract.constant" + }, + { + "description": "Extract to constant in global scope", + "name": "constant_scope_1", + "kind": "refactor.extract.constant" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 15, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 16, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", + "startLine": 1, + "startOffset": 24, + "endLine": 1, + "endOffset": 41, + "triggerReason": "implicit" + }, + "command": "getApplicableRefactors" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getApplicableRefactors", + "request_seq": 17, + "success": true, + "body": [ + { + "name": "Extract Symbol", + "description": "Extract function", + "actions": [ + { + "description": "Extract to inner function in function 'foo'", + "name": "function_scope_0", + "kind": "refactor.extract.function" + }, + { + "description": "Extract to function in global scope", + "name": "function_scope_1", + "kind": "refactor.extract.function" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract constant", + "actions": [ + { + "description": "Extract to constant in enclosing scope", + "name": "constant_scope_0", + "kind": "refactor.extract.constant" + }, + { + "description": "Extract to constant in global scope", + "name": "constant_scope_1", + "kind": "refactor.extract.constant" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 18, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/format01.js b/tests/baselines/reference/tsserver/fourslashServer/format01.js new file mode 100644 index 00000000000..8bcf726c925 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/format01.js @@ -0,0 +1,312 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/format01.ts] +module Default{var x= ( { } ) ;} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/format01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/format01.ts SVC-1-0 "module Default{var x= ( { } ) ;}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + format01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/format01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 33 + }, + "command": "format" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "format", + "request_seq": 1, + "success": true, + "body": [ + { + "start": { + "line": 1, + "offset": 15 + }, + "end": { + "line": 1, + "offset": 15 + }, + "newText": " " + }, + { + "start": { + "line": 1, + "offset": 16 + }, + "end": { + "line": 1, + "offset": 16 + }, + "newText": " " + }, + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 21 + }, + "newText": " " + }, + { + "start": { + "line": 1, + "offset": 24 + }, + "end": { + "line": 1, + "offset": 25 + }, + "newText": "" + }, + { + "start": { + "line": 1, + "offset": 26 + }, + "end": { + "line": 1, + "offset": 27 + }, + "newText": "" + }, + { + "start": { + "line": 1, + "offset": 28 + }, + "end": { + "line": 1, + "offset": 29 + }, + "newText": "" + }, + { + "start": { + "line": 1, + "offset": 30 + }, + "end": { + "line": 1, + "offset": 31 + }, + "newText": "" + }, + { + "start": { + "line": 1, + "offset": 32 + }, + "end": { + "line": 1, + "offset": 32 + }, + "newText": " " + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 15, + "endLine": 1, + "endOffset": 15, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 17, + "endLine": 1, + "endOffset": 17, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 23, + "endLine": 1, + "endOffset": 23, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 27, + "endLine": 1, + "endOffset": 28, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 28, + "endLine": 1, + "endOffset": 29, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 29, + "endLine": 1, + "endOffset": 30, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 30, + "endLine": 1, + "endOffset": 31, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/format01.ts", + "line": 1, + "offset": 31, + "endLine": 1, + "endOffset": 31, + "insertString": " " + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatBracketInSwitchCase.js b/tests/baselines/reference/tsserver/fourslashServer/formatBracketInSwitchCase.js new file mode 100644 index 00000000000..cba3bd196c1 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/formatBracketInSwitchCase.js @@ -0,0 +1,139 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/formatBracketInSwitchCase.ts] +switch (x) { + case[]: +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatBracketInSwitchCase.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/formatBracketInSwitchCase.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/formatBracketInSwitchCase.ts SVC-1-0 "switch (x) {\n case[]:\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + formatBracketInSwitchCase.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/formatBracketInSwitchCase.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatBracketInSwitchCase.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 2 + }, + "command": "format" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "format", + "request_seq": 1, + "success": true, + "body": [ + { + "start": { + "line": 2, + "offset": 9 + }, + "end": { + "line": 2, + "offset": 9 + }, + "newText": " " + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatBracketInSwitchCase.ts", + "line": 2, + "offset": 9, + "endLine": 2, + "endOffset": 9, + "insertString": " " + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatOnEnter.js b/tests/baselines/reference/tsserver/fourslashServer/formatOnEnter.js new file mode 100644 index 00000000000..bd5bdaf5865 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/formatOnEnter.js @@ -0,0 +1,215 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/formatOnEnter.ts] +function listAPIFiles (path : string): string[] { + + +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatOnEnter.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/formatOnEnter.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/formatOnEnter.ts SVC-1-0 "function listAPIFiles (path : string): string[] {\n \n \n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + formatOnEnter.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/formatOnEnter.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatOnEnter.ts", + "line": 2, + "offset": 5, + "key": "\n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] getIndentationAtPosition: getCurrentSourceFile: * +Info seq [hh:mm:ss:mss] getIndentationAtPosition: computeIndentation: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 1, + "success": true, + "body": [ + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "newText": "" + }, + { + "start": { + "line": 1, + "offset": 28 + }, + "end": { + "line": 1, + "offset": 29 + }, + "newText": "" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatOnEnter.ts", + "line": 1, + "offset": 22, + "endLine": 1, + "endOffset": 23, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatOnEnter.ts", + "line": 1, + "offset": 27, + "endLine": 1, + "endOffset": 28, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatOnEnter.ts", + "line": 3, + "offset": 5, + "key": "\n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] getIndentationAtPosition: getCurrentSourceFile: * +Info seq [hh:mm:ss:mss] getIndentationAtPosition: computeIndentation: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 4, + "success": true, + "body": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 5 + }, + "newText": "" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatOnEnter.ts", + "line": 2, + "offset": 1, + "endLine": 2, + "endOffset": 5, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatSpaceBetweenFunctionAndArrayIndex.js b/tests/baselines/reference/tsserver/fourslashServer/formatSpaceBetweenFunctionAndArrayIndex.js new file mode 100644 index 00000000000..64b5dfedac7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/formatSpaceBetweenFunctionAndArrayIndex.js @@ -0,0 +1,143 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts] + +function test() { + return []; +} + +test() [0] + + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts SVC-1-0 "\nfunction test() {\n return [];\n}\n\ntest() [0]\n" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + formatSpaceBetweenFunctionAndArrayIndex.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts", + "line": 1, + "offset": 1, + "endLine": 7, + "endOffset": 1 + }, + "command": "format" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "format", + "request_seq": 1, + "success": true, + "body": [ + { + "start": { + "line": 6, + "offset": 7 + }, + "end": { + "line": 6, + "offset": 8 + }, + "newText": "" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts", + "line": 6, + "offset": 7, + "endLine": 6, + "endOffset": 8, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatonkey01.js b/tests/baselines/reference/tsserver/fourslashServer/formatonkey01.js new file mode 100644 index 00000000000..a9ebed8e31b --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/formatonkey01.js @@ -0,0 +1,169 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/formatonkey01.ts] +switch (1) { + case 1: + { + + break; +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatonkey01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/formatonkey01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/formatonkey01.ts SVC-1-0 "switch (1) {\n case 1:\n {\n \n break;\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + formatonkey01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/formatonkey01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatonkey01.ts", + "line": 4, + "offset": 13, + "endLine": 4, + "endOffset": 13, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatonkey01.ts", + "line": 4, + "offset": 13, + "endLine": 4, + "endOffset": 13, + "insertString": "}" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatonkey01.ts", + "line": 4, + "offset": 14, + "key": "}" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 3, + "success": true, + "body": [ + { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 13 + }, + "newText": " " + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatonkey01.ts", + "line": 4, + "offset": 1, + "endLine": 4, + "endOffset": 13, + "insertString": " " + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_deduplicate.js b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_deduplicate.js new file mode 100644 index 00000000000..22fb6796e50 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_deduplicate.js @@ -0,0 +1,433 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +export * from "./util"; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/test.ts] +import "./util"; + +//// [/tsconfig.build.json] +{ "compilerOptions": { "rootDir": "src", "outDir": "dist/build", "composite": true }, "files": ["index.ts"] } + +//// [/tsconfig.json] +{ "files": [], "references": [{ "path": "tsconfig.build.json" }, { "path": "tsconfig.test.json" }] } + +//// [/tsconfig.test.json] +{ "compilerOptions": { "rootDir": "src", "outDir": "dist/test", "composite": true }, "files": ["test.ts", "index.ts"] } + +//// [/util.ts] +export {} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [], + "options": { + "configFilePath": "/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/tsconfig.build.json", + "originalPath": "tsconfig.build.json" + }, + { + "path": "/tsconfig.test.json", + "originalPath": "tsconfig.test.json" + } + ] +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Config: /tsconfig.build.json : { + "rootNames": [ + "/index.ts" + ], + "options": { + "rootDir": "/src", + "outDir": "/dist/build", + "composite": true, + "configFilePath": "/tsconfig.build.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.build.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /tsconfig.test.json : { + "rootNames": [ + "/test.ts", + "/index.ts" + ], + "options": { + "rootDir": "/src", + "outDir": "/dist/test", + "composite": true, + "configFilePath": "/tsconfig.test.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.test.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.build.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.build.json", + "reason": "Creating project referenced in solution /tsconfig.json to find possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.build.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /util.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.build.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.build.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /util.ts Text-1 "export {}" + /index.ts Text-1 "export * from \"./util\";" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + util.ts + Imported via "./util" from file 'index.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.build.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.test.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.test.json", + "reason": "Creating project referenced in solution /tsconfig.json to find possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /test.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.test.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.test.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.test.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /util.ts Text-1 "export {}" + /test.ts Text-1 "import \"./util\";" + /index.ts Text-1 "export * from \"./util\";" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + util.ts + Imported via "./util" from file 'test.ts' + Imported via "./util" from file 'index.ts' + test.ts + Part of 'files' list in tsconfig.json + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.test.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.build.json", + "diagnostics": [ + { + "text": "File '/index.ts' is not under 'rootDir' '/src'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 97 + }, + "end": { + "line": 1, + "offset": 107 + }, + "file": "/tsconfig.build.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.test.json", + "diagnostics": [ + { + "text": "File '/index.ts' is not under 'rootDir' '/src'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 107 + }, + "end": { + "line": 1, + "offset": 117 + }, + "file": "/tsconfig.test.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "text": "File '/test.ts' is not under 'rootDir' '/src'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 96 + }, + "end": { + "line": 1, + "offset": 105 + }, + "file": "/tsconfig.test.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"files\": [], \"references\": [{ \"path\": \"tsconfig.build.json\" }, { \"path\": \"tsconfig.test.json\" }] }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.build.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.test.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/test.ts: *new* + {"pollingInterval":500} +/tsconfig.build.json: *new* + {"pollingInterval":2000} +/tsconfig.json: *new* + {"pollingInterval":2000} +/tsconfig.test.json: *new* + {"pollingInterval":2000} +/util.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/util.ts" + }, + "command": "fileReferences" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "fileReferences", + "request_seq": 1, + "success": true, + "body": { + "refs": [ + { + "file": "/index.ts", + "start": { + "line": 1, + "offset": 16 + }, + "end": { + "line": 1, + "offset": 22 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 24 + }, + "lineText": "export * from \"./util\";", + "isWriteAccess": false + }, + { + "file": "/test.ts", + "start": { + "line": 1, + "offset": 9 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 17 + }, + "lineText": "import \"./util\";", + "isWriteAccess": false + } + ], + "symbolName": "\"/util.ts\"" + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server1.js b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server1.js new file mode 100644 index 00000000000..3e41d73cda4 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server1.js @@ -0,0 +1,284 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/project/a.ts] +export const a = 0; + +//// [/project/b.ts] +import "./a"; + +//// [/project/c.ts] +import {} from "./a"; + +//// [/project/d.ts] +import { a } from "/project/a"; +type T = typeof import("./a").a; + +//// [/project/tsconfig.json] +{} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/project/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/tsconfig.json :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/tsconfig.json 2000 undefined Project: /project/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/project/tsconfig.json", + "reason": "Creating possible configured project for /project/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /project/tsconfig.json : { + "rootNames": [ + "/project/a.ts", + "/project/b.ts", + "/project/c.ts", + "/project/d.ts" + ], + "options": { + "configFilePath": "/project/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/c.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (7) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/a.ts Text-1 "export const a = 0;" + /project/b.ts Text-1 "import \"./a\";" + /project/c.ts Text-1 "import {} from \"./a\";" + /project/d.ts Text-1 "import { a } from \"/project/a\";\ntype T = typeof import(\"./a\").a;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + a.ts + Matched by default include pattern '**/*' + Imported via "./a" from file 'b.ts' + Imported via "./a" from file 'c.ts' + Imported via "/project/a" from file 'd.ts' + Imported via "./a" from file 'd.ts' + b.ts + Matched by default include pattern '**/*' + c.ts + Matched by default include pattern '**/*' + d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/project/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/project/tsconfig.json", + "configFile": "/project/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/tsconfig.json SVC-1-0 "{}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (7) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/project/a.ts: *new* + {"pollingInterval":500} +/project/b.ts: *new* + {"pollingInterval":500} +/project/c.ts: *new* + {"pollingInterval":500} +/project/d.ts: *new* + {"pollingInterval":500} +/project/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/project: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/a.ts" + }, + "command": "fileReferences" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "fileReferences", + "request_seq": 1, + "success": true, + "body": { + "refs": [ + { + "file": "/project/b.ts", + "start": { + "line": 1, + "offset": 9 + }, + "end": { + "line": 1, + "offset": 12 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 14 + }, + "lineText": "import \"./a\";", + "isWriteAccess": false + }, + { + "file": "/project/c.ts", + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 20 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + }, + "lineText": "import {} from \"./a\";", + "isWriteAccess": false + }, + { + "file": "/project/d.ts", + "start": { + "line": 1, + "offset": 20 + }, + "end": { + "line": 1, + "offset": 30 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 32 + }, + "lineText": "import { a } from \"/project/a\";", + "isWriteAccess": false + }, + { + "file": "/project/d.ts", + "start": { + "line": 2, + "offset": 25 + }, + "end": { + "line": 2, + "offset": 28 + }, + "contextStart": { + "line": 2, + "offset": 1 + }, + "contextEnd": { + "line": 2, + "offset": 33 + }, + "lineText": "type T = typeof import(\"./a\").a;", + "isWriteAccess": false + } + ], + "symbolName": "\"/project/a.ts\"" + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js new file mode 100644 index 00000000000..745781ae0ea --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js @@ -0,0 +1,503 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/client/index.ts] +import "@shared/referenced"; + +//// [/packages/client/tsconfig.json] +{ "compilerOptions": { "paths": { "@shared/*": ["../shared/src/*"] } }, "references": [{ "path": "../shared" }] } + +//// [/packages/server/index.js] +const mod = require("../shared/src/referenced"); + +//// [/packages/server/router.js] +const blah = require("../shared/dist/referenced"); + +//// [/packages/server/tsconfig.json] +{ "compilerOptions": { "checkJs": true }, "references": [{ "path": "../shared" }] } + +//// [/packages/shared/src/referenced.ts] +export {}; + +//// [/packages/shared/tsconfig.json] +{ "compilerOptions": { "rootDir": "src", "outDir": "dist", "composite": true } } + +//// [/tsconfig.json] +{ "files": [], "references": [{ "path": "packages/server" }, { "path": "packages/client" }] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [], + "options": { + "configFilePath": "/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/server", + "originalPath": "packages/server" + }, + { + "path": "/packages/client", + "originalPath": "packages/client" + } + ] +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/server/tsconfig.json : { + "rootNames": [ + "/packages/server/index.js", + "/packages/server/router.js" + ], + "options": { + "checkJs": true, + "configFilePath": "/packages/server/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/shared", + "originalPath": "../shared" + } + ] +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/server/tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/server 1 undefined Config: /packages/server/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/server 1 undefined Config: /packages/server/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Config: /packages/shared/tsconfig.json : { + "rootNames": [ + "/packages/shared/src/referenced.ts" + ], + "options": { + "rootDir": "/packages/shared/src", + "outDir": "/packages/shared/dist", + "composite": true, + "configFilePath": "/packages/shared/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/shared/tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/shared 1 undefined Config: /packages/shared/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/shared 1 undefined Config: /packages/shared/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Config: /packages/client/tsconfig.json : { + "rootNames": [ + "/packages/client/index.ts" + ], + "options": { + "paths": { + "@shared/*": [ + "../shared/src/*" + ] + }, + "pathsBasePath": "/packages/client", + "configFilePath": "/packages/client/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/shared", + "originalPath": "../shared" + } + ] +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/client/tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/client 1 undefined Config: /packages/client/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/client 1 undefined Config: /packages/client/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/server/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/server/tsconfig.json", + "reason": "Creating project referenced in solution /tsconfig.json to find possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/server/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/server/router.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/shared/src/referenced.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/shared/dist 1 undefined Project: /packages/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/shared/dist 1 undefined Project: /packages/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/shared/src/referenced.ts Text-1 "export {};" + /packages/server/index.js Text-1 "const mod = require(\"../shared/src/referenced\");" + /packages/server/router.js Text-1 "const blah = require(\"../shared/dist/referenced\");" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + ../shared/src/referenced.ts + Imported via "../shared/src/referenced" from file 'index.js' + Imported via "../shared/dist/referenced" from file 'router.js' + index.js + Matched by default include pattern '**/*' + router.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/shared/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/shared/tsconfig.json", + "reason": "Creating project referenced in solution /tsconfig.json to find possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/shared/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/shared/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/shared/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/shared/src/referenced.ts Text-1 "export {};" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/referenced.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/shared/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Creating configuration project /packages/client/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/client/tsconfig.json", + "reason": "Creating project referenced in solution /tsconfig.json to find possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/client/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/client/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/client/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/client/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/shared/src/referenced.ts Text-1 "export {};" + /packages/client/index.ts Text-1 "import \"@shared/referenced\";" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + ../shared/src/referenced.ts + Imported via "@shared/referenced" from file 'index.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/client/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/packages/server/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/packages/server/index.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "text": "Cannot write file '/packages/server/router.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/packages/shared/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/packages/client/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"files\": [], \"references\": [{ \"path\": \"packages/server\" }, { \"path\": \"packages/client\" }] }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/shared/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/client/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/packages/client/index.ts: *new* + {"pollingInterval":500} +/packages/client/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/server/index.js: *new* + {"pollingInterval":500} +/packages/server/router.js: *new* + {"pollingInterval":500} +/packages/server/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/shared/src/referenced.ts: *new* + {"pollingInterval":500} +/packages/shared/tsconfig.json: *new* + {"pollingInterval":2000} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/client: *new* + {} +/packages/server: *new* + {} +/packages/shared: *new* + {} +/packages/shared/dist: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/packages/shared/src/referenced.ts" + }, + "command": "fileReferences" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "fileReferences", + "request_seq": 1, + "success": true, + "body": { + "refs": [ + { + "file": "/packages/server/index.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 46 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 49 + }, + "lineText": "const mod = require(\"../shared/src/referenced\");", + "isWriteAccess": false + }, + { + "file": "/packages/server/router.js", + "start": { + "line": 1, + "offset": 23 + }, + "end": { + "line": 1, + "offset": 48 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 51 + }, + "lineText": "const blah = require(\"../shared/dist/referenced\");", + "isWriteAccess": false + }, + { + "file": "/packages/client/index.ts", + "start": { + "line": 1, + "offset": 9 + }, + "end": { + "line": 1, + "offset": 27 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 29 + }, + "lineText": "import \"@shared/referenced\";", + "isWriteAccess": false + } + ], + "symbolName": "\"/packages/shared/src/referenced.ts\"" + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics01.js b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics01.js new file mode 100644 index 00000000000..abd901f57d7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics01.js @@ -0,0 +1,158 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.js] +var ===; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.js SVC-1-0 "var ===;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 1, + "success": true, + "body": [ + { + "message": "Variable declaration expected.", + "start": 4, + "length": 3, + "category": "error", + "code": 1134, + "startLocation": { + "line": 1, + "offset": 5 + }, + "endLocation": { + "line": 1, + "offset": 8 + } + }, + { + "message": "Expression expected.", + "start": 7, + "length": 1, + "category": "error", + "code": 1109, + "startLocation": { + "line": 1, + "offset": 8 + }, + "endLocation": { + "line": 1, + "offset": 9 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.js", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics02.js b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics02.js new file mode 100644 index 00000000000..4c81eb09ae7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics02.js @@ -0,0 +1,206 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/b.js] +var a = "a"; +var b: boolean = true; +function foo(): string { } +var var = "c"; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/b.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/b.js SVC-1-0 "var a = \"a\";\nvar b: boolean = true;\nfunction foo(): string { }\nvar var = \"c\";" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + b.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.js", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 1, + "success": true, + "body": [ + { + "message": "Type annotations can only be used in TypeScript files.", + "start": 20, + "length": 7, + "category": "error", + "code": 8010, + "startLocation": { + "line": 2, + "offset": 8 + }, + "endLocation": { + "line": 2, + "offset": 15 + } + }, + { + "message": "Type annotations can only be used in TypeScript files.", + "start": 52, + "length": 6, + "category": "error", + "code": 8010, + "startLocation": { + "line": 3, + "offset": 17 + }, + "endLocation": { + "line": 3, + "offset": 23 + } + }, + { + "message": "'var' is not allowed as a variable declaration name.", + "start": 67, + "length": 3, + "category": "error", + "code": 1389, + "startLocation": { + "line": 4, + "offset": 5 + }, + "endLocation": { + "line": 4, + "offset": 8 + } + }, + { + "message": "Variable declaration expected.", + "start": 71, + "length": 1, + "category": "error", + "code": 1134, + "startLocation": { + "line": 4, + "offset": 9 + }, + "endLocation": { + "line": 4, + "offset": 10 + } + }, + { + "message": "Variable declaration expected.", + "start": 73, + "length": 3, + "category": "error", + "code": 1134, + "startLocation": { + "line": 4, + "offset": 11 + }, + "endLocation": { + "line": 4, + "offset": 14 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.js", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForComments.js b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForComments.js new file mode 100644 index 00000000000..5ec660302b4 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForComments.js @@ -0,0 +1,171 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/getOutliningSpansForComments.ts] +/* + Block comment at the beginning of the file before module: + line one of the comment + line two of the comment + line three + line four + line five +*/ +declare module "m"; +// Single line comments at the start of the file +// line 2 +// line 3 +// line 4 +declare module "n"; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/getOutliningSpansForComments.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/getOutliningSpansForComments.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/getOutliningSpansForComments.ts SVC-1-0 "/*\n Block comment at the beginning of the file before module:\n line one of the comment\n line two of the comment\n line three\n line four\n line five\n*/\ndeclare module \"m\";\n// Single line comments at the start of the file\n// line 2\n// line 3\n// line 4\ndeclare module \"n\";" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + getOutliningSpansForComments.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/getOutliningSpansForComments.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/getOutliningSpansForComments.ts" + }, + "command": "getOutliningSpans" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getOutliningSpans", + "request_seq": 1, + "success": true, + "body": [ + { + "textSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 8, + "offset": 3 + } + }, + "hintSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 8, + "offset": 3 + } + }, + "bannerText": "...", + "autoCollapse": false, + "kind": "comment" + }, + { + "textSpan": { + "start": { + "line": 10, + "offset": 1 + }, + "end": { + "line": 13, + "offset": 10 + } + }, + "hintSpan": { + "start": { + "line": 10, + "offset": 1 + }, + "end": { + "line": 13, + "offset": 10 + } + }, + "bannerText": "...", + "autoCollapse": false, + "kind": "comment" + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegions.js b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegions.js new file mode 100644 index 00000000000..4887e4971ae --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegions.js @@ -0,0 +1,379 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/getOutliningSpansForRegions.ts] +// region without label +// #region + +// #endregion + +// region without label with trailing spaces +// #region + +// #endregion + +// region with label +// #region label1 + +// #endregion + +// region with extra whitespace in all valid locations + // #region label2 label3 + + // #endregion + +// No space before directive +//#region label4 + +//#endregion + +// Nested regions +// #region outer + +// #region inner + +// #endregion inner + +// #endregion outer + +// region delimiters not valid when there is preceding text on line + test // #region invalid1 + +test // #endregion + +// region delimiters not valid when in multiline comment +/* +// #region invalid2 +*/ + +/* +// #endregion +*/ + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/getOutliningSpansForRegions.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/getOutliningSpansForRegions.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/getOutliningSpansForRegions.ts SVC-1-0 "// region without label\n// #region\n\n// #endregion\n\n// region without label with trailing spaces\n// #region\n\n// #endregion\n\n// region with label\n// #region label1\n\n// #endregion\n\n// region with extra whitespace in all valid locations\n // #region label2 label3\n\n // #endregion\n\n// No space before directive\n//#region label4\n\n//#endregion\n\n// Nested regions\n// #region outer\n\n// #region inner\n\n// #endregion inner\n\n// #endregion outer\n\n// region delimiters not valid when there is preceding text on line\n test // #region invalid1\n\ntest // #endregion\n\n// region delimiters not valid when in multiline comment\n/*\n// #region invalid2\n*/\n\n/*\n// #endregion\n*/" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + getOutliningSpansForRegions.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/getOutliningSpansForRegions.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/getOutliningSpansForRegions.ts" + }, + "command": "getOutliningSpans" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getOutliningSpans", + "request_seq": 1, + "success": true, + "body": [ + { + "textSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 14 + } + }, + "hintSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 14 + } + }, + "bannerText": "#region", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 7, + "offset": 1 + }, + "end": { + "line": 9, + "offset": 14 + } + }, + "hintSpan": { + "start": { + "line": 7, + "offset": 1 + }, + "end": { + "line": 9, + "offset": 14 + } + }, + "bannerText": "#region", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 12, + "offset": 1 + }, + "end": { + "line": 14, + "offset": 14 + } + }, + "hintSpan": { + "start": { + "line": 12, + "offset": 1 + }, + "end": { + "line": 14, + "offset": 14 + } + }, + "bannerText": "label1", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 17, + "offset": 14 + }, + "end": { + "line": 19, + "offset": 29 + } + }, + "hintSpan": { + "start": { + "line": 17, + "offset": 14 + }, + "end": { + "line": 19, + "offset": 29 + } + }, + "bannerText": "label2 label3", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 22, + "offset": 1 + }, + "end": { + "line": 24, + "offset": 13 + } + }, + "hintSpan": { + "start": { + "line": 22, + "offset": 1 + }, + "end": { + "line": 24, + "offset": 13 + } + }, + "bannerText": "label4", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 27, + "offset": 1 + }, + "end": { + "line": 33, + "offset": 20 + } + }, + "hintSpan": { + "start": { + "line": 27, + "offset": 1 + }, + "end": { + "line": 33, + "offset": 20 + } + }, + "bannerText": "outer", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 29, + "offset": 1 + }, + "end": { + "line": 31, + "offset": 20 + } + }, + "hintSpan": { + "start": { + "line": 29, + "offset": 1 + }, + "end": { + "line": 31, + "offset": 20 + } + }, + "bannerText": "inner", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 41, + "offset": 1 + }, + "end": { + "line": 43, + "offset": 3 + } + }, + "hintSpan": { + "start": { + "line": 41, + "offset": 1 + }, + "end": { + "line": 43, + "offset": 3 + } + }, + "bannerText": "...", + "autoCollapse": false, + "kind": "comment" + }, + { + "textSpan": { + "start": { + "line": 45, + "offset": 1 + }, + "end": { + "line": 47, + "offset": 3 + } + }, + "hintSpan": { + "start": { + "line": 45, + "offset": 1 + }, + "end": { + "line": 47, + "offset": 3 + } + }, + "bannerText": "...", + "autoCollapse": false, + "kind": "comment" + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegionsNoSingleLineFolds.js b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegionsNoSingleLineFolds.js new file mode 100644 index 00000000000..6be5e7096ed --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegionsNoSingleLineFolds.js @@ -0,0 +1,272 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts] +//#region +function foo() { + +} +//these +//should +//#endregion not you +// be +// together + +//#region bla bla bla + +function bar() { } + +//#endregion + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts SVC-1-0 "//#region\nfunction foo() {\n\n}\n//these\n//should\n//#endregion not you\n// be\n// together\n\n//#region bla bla bla\n\nfunction bar() { }\n\n//#endregion" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + getOutliningSpansForRegionsNoSingleLineFolds.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts" + }, + "command": "getOutliningSpans" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getOutliningSpans", + "request_seq": 1, + "success": true, + "body": [ + { + "textSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 7, + "offset": 21 + } + }, + "hintSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 7, + "offset": 21 + } + }, + "bannerText": "#region", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 2, + "offset": 15 + }, + "end": { + "line": 4, + "offset": 2 + } + }, + "hintSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 2 + } + }, + "bannerText": "...", + "autoCollapse": true, + "kind": "code" + }, + { + "textSpan": { + "start": { + "line": 5, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 9 + } + }, + "hintSpan": { + "start": { + "line": 5, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 9 + } + }, + "bannerText": "...", + "autoCollapse": false, + "kind": "comment" + }, + { + "textSpan": { + "start": { + "line": 8, + "offset": 1 + }, + "end": { + "line": 9, + "offset": 12 + } + }, + "hintSpan": { + "start": { + "line": 8, + "offset": 1 + }, + "end": { + "line": 9, + "offset": 12 + } + }, + "bannerText": "...", + "autoCollapse": false, + "kind": "comment" + }, + { + "textSpan": { + "start": { + "line": 11, + "offset": 1 + }, + "end": { + "line": 15, + "offset": 13 + } + }, + "hintSpan": { + "start": { + "line": 11, + "offset": 1 + }, + "end": { + "line": 15, + "offset": 13 + } + }, + "bannerText": "bla bla bla", + "autoCollapse": false, + "kind": "region" + }, + { + "textSpan": { + "start": { + "line": 13, + "offset": 15 + }, + "end": { + "line": 13, + "offset": 19 + } + }, + "hintSpan": { + "start": { + "line": 13, + "offset": 1 + }, + "end": { + "line": 13, + "offset": 19 + } + }, + "bannerText": "...", + "autoCollapse": true, + "kind": "code" + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToDefinitionScriptImportServer.js b/tests/baselines/reference/tsserver/fourslashServer/goToDefinitionScriptImportServer.js new file mode 100644 index 00000000000..547e20bc915 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToDefinitionScriptImportServer.js @@ -0,0 +1,271 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/moduleThing.ts] +import "./scriptThing"; +import "./stylez.css"; +import "./foo.txt"; + +//// [/scriptThing.ts] +console.log("woooo side effects") + +//// [/stylez.css] +div { + color: magenta; +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/scriptThing.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /scriptThing.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /scriptThing.ts SVC-1-0 "console.log(\"woooo side effects\")" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + scriptThing.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /scriptThing.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/moduleThing.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /moduleThing.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /scriptThing.ts SVC-1-0 "console.log(\"woooo side effects\")" + /moduleThing.ts SVC-1-0 "import \"./scriptThing\";\nimport \"./stylez.css\";\nimport \"./foo.txt\";" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + scriptThing.ts + Imported via "./scriptThing" from file 'moduleThing.ts' + moduleThing.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /scriptThing.ts + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + scriptThing.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /scriptThing.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /moduleThing.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/moduleThing.ts", + "line": 1, + "offset": 8 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 2, + "success": true, + "body": { + "definitions": [ + { + "file": "/scriptThing.ts", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + } + } + ], + "textSpan": { + "start": { + "line": 1, + "offset": 8 + }, + "end": { + "line": 1, + "offset": 23 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/moduleThing.ts", + "line": 2, + "offset": 8 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 3, + "success": true, + "body": { + "definitions": [ + { + "file": "/stylez.css", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "unverified": true + } + ], + "textSpan": { + "start": { + "line": 2, + "offset": 8 + }, + "end": { + "line": 2, + "offset": 22 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/moduleThing.ts", + "line": 3, + "offset": 8 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 4, + "success": true, + "body": { + "definitions": [ + { + "file": "/foo.txt", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "unverified": true + } + ], + "textSpan": { + "start": { + "line": 3, + "offset": 8 + }, + "end": { + "line": 3, + "offset": 19 + } + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToImplementation_inDifferentFiles.js b/tests/baselines/reference/tsserver/fourslashServer/goToImplementation_inDifferentFiles.js new file mode 100644 index 00000000000..7457624917c --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToImplementation_inDifferentFiles.js @@ -0,0 +1,177 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/bar.ts] +import {Foo} from './foo' + +class A implements Foo { + func() {} +} + +class B implements Foo { + func() {} +} + +//// [/foo.ts] +export interface Foo { + func(); +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/bar.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /bar.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /foo.ts Text-1 "export interface Foo {\n func();\n}" + /bar.ts SVC-1-0 "import {Foo} from './foo'\n\nclass A implements Foo {\n func() {}\n}\n\nclass B implements Foo {\n func() {}\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + foo.ts + Imported via './foo' from file 'bar.ts' + bar.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /bar.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/foo.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /foo.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /foo.ts :: No config files found. +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /bar.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/foo.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/foo.ts", + "line": 1, + "offset": 18 + }, + "command": "implementation" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "implementation", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/bar.ts", + "start": { + "line": 3, + "offset": 7 + }, + "end": { + "line": 3, + "offset": 8 + }, + "contextStart": { + "line": 3, + "offset": 1 + }, + "contextEnd": { + "line": 5, + "offset": 2 + } + }, + { + "file": "/bar.ts", + "start": { + "line": 7, + "offset": 7 + }, + "end": { + "line": 7, + "offset": 8 + }, + "contextStart": { + "line": 7, + "offset": 1 + }, + "contextEnd": { + "line": 9, + "offset": 2 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js new file mode 100644 index 00000000000..8cec496a4ea --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js @@ -0,0 +1,291 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { add } from 'lodash'; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/lodash/index.d.ts] +export = _; +export as namespace _; +declare const _: _.LoDashStatic; +declare namespace _ { + interface LoDashStatic {} +} + +//// [/node_modules/@types/lodash/package.json] +{ "name": "@types/lodash", "version": "4.14.97", "types": "index.d.ts" } + +//// [/node_modules/lodash/lodash.js] +;(function() { + /** + * Adds two numbers. + * + * @static + * @memberOf _ + * @since 3.4.0 + * @category Math + * @param {number} augend The first number in an addition. + * @param {number} addend The second number in an addition. + * @returns {number} Returns the total. + * @example + * + * _.add(6, 4); + * // => 10 + */ + var add = createMathOperation(function(augend, addend) { + return augend + addend; + }, 0); + + function lodash(value) {} + lodash.add = add; + + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); + /** Detect free variable `exports`. */ + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// + /** Detect free variable `module`. */ + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + if (freeModule) { + // Export for Node.js. + (freeModule.exports = _)._ = _; + // Export for CommonJS support. + freeExports._ = _; + } + else { + // Export to the global object. + root._ = _; + } +}.call(this)); + +//// [/node_modules/lodash/package.json] +{ "name": "lodash", "version": "4.17.15", "main": "./lodash.js" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/lodash/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/lodash +Info seq [hh:mm:ss:mss] For info: /node_modules/lodash/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" + /node_modules/@types/lodash/index.d.ts Text-1 "export = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + ../@types/lodash/index.d.ts + Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/lodash/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/lodash/index.d.ts Text-1 "export = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" + /index.ts SVC-1-0 "import { add } from 'lodash';" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/@types/lodash/index.d.ts + Imported via 'lodash' from file 'index.ts' with packageId '@types/lodash/index.d.ts@4.14.97' + Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/lodash/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 10 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/lodash/lodash.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/lodash/lodash.js Text-1 ";(function() {\n /**\n * Adds two numbers.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {number} augend The first number in an addition.\n * @param {number} addend The second number in an addition.\n * @returns {number} Returns the total.\n * @example\n *\n * _.add(6, 4);\n * // => 10\n */\n var add = createMathOperation(function(augend, addend) {\n return augend + addend;\n }, 0);\n\n function lodash(value) {}\n lodash.add = add;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// \n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = _)._ = _;\n // Export for CommonJS support.\n freeExports._ = _;\n }\n else {\n // Export to the global object.\n root._ = _;\n }\n}.call(this));" + /index.ts SVC-1-0 "import { add } from 'lodash';" + + + node_modules/lodash/lodash.js + Imported via 'lodash' from file 'index.ts' with packageId 'lodash/lodash.js@4.17.15' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/lodash/lodash.js", + "start": { + "line": 17, + "offset": 9 + }, + "end": { + "line": 17, + "offset": 12 + }, + "contextStart": { + "line": 17, + "offset": 5 + }, + "contextEnd": { + "line": 19, + "offset": 11 + }, + "unverified": true + }, + { + "file": "/node_modules/lodash/lodash.js", + "start": { + "line": 22, + "offset": 12 + }, + "end": { + "line": 22, + "offset": 15 + }, + "contextStart": { + "line": 22, + "offset": 5 + }, + "contextEnd": { + "line": 22, + "offset": 22 + }, + "unverified": true + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/lodash/lodash.js: *new* + {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource11_propertyOfAlias.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource11_propertyOfAlias.js new file mode 100644 index 00000000000..9b4105d8191 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource11_propertyOfAlias.js @@ -0,0 +1,188 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a.d.ts] +export declare const a: { a: string }; + +//// [/a.js] +export const a = { a: 'a' }; + +//// [/b.ts] +import { a } from './a'; +a.a + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /a.js :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.js SVC-1-0 "export const a = { a: 'a' };" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + a.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /b.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.d.ts Text-1 "export declare const a: { a: string };" + /b.ts SVC-1-0 "import { a } from './a';\na.a" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + a.d.ts + Imported via './a' from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/a.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/b.ts", + "line": 2, + "offset": 4 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /a.js SVC-1-0 "export const a = { a: 'a' };" + /b.ts SVC-1-0 "import { a } from './a';\na.a" + + + a.js + Imported via './a' from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/a.js", + "start": { + "line": 1, + "offset": 20 + }, + "end": { + "line": 1, + "offset": 21 + }, + "contextStart": { + "line": 1, + "offset": 20 + }, + "contextEnd": { + "line": 1, + "offset": 26 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js new file mode 100644 index 00000000000..b3be726a6af --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js @@ -0,0 +1,249 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { command } from "yargs"; +command("foo", yargs => { + yargs.positional(); +}); + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/yargs/index.d.ts] +export interface Yargs { positional(): Yargs; } +export declare function command(command: string, cb: (yargs: Yargs) => void): void; + +//// [/node_modules/@types/yargs/package.json] +{ + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" +} + +//// [/node_modules/yargs/index.js] +export function command(cmd, cb) { cb({ positional: "This is obviously not even close to realistic" }); } + +//// [/node_modules/yargs/package.json] +{ + "name": "yargs", + "version": "1.0.0", + "main": "index.js" +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/@types/yargs/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/@types/yargs +Info seq [hh:mm:ss:mss] For info: /node_modules/@types/yargs/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" + /node_modules/@types/yargs/index.d.ts Text-1 "export interface Yargs { positional(): Yargs; }\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + package.json + Root file specified for compilation + index.d.ts + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/index.d.ts Text-1 "export interface Yargs { positional(): Yargs; }\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + /index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/@types/yargs/index.d.ts + Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 3, + "offset": 11 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/yargs/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/yargs/index.js Text-1 "export function command(cmd, cb) { cb({ positional: \"This is obviously not even close to realistic\" }); }" + /index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/yargs/index.js", + "start": { + "line": 1, + "offset": 41 + }, + "end": { + "line": 1, + "offset": 51 + }, + "contextStart": { + "line": 1, + "offset": 41 + }, + "contextEnd": { + "line": 1, + "offset": 100 + }, + "unverified": true + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/yargs/index.js: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource13_nodenext.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource13_nodenext.js new file mode 100644 index 00000000000..f84b1b913e7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource13_nodenext.js @@ -0,0 +1,287 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.mts] +import leftPad = require("left-pad"); +leftPad("", 4); + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/left-pad/index.d.ts] +declare function leftPad(str: string|number, len: number, ch?: string|number): string; +declare namespace leftPad { } +export = leftPad; + +//// [/node_modules/left-pad/index.js] +module.exports = leftPad; +function leftPad(str, len, ch) {} + +//// [/node_modules/left-pad/package.json] +{ + "name": "left-pad", + "version": "1.3.0", + "description": "String left pad", + "main": "index.js", + "types": "index.d.ts" +} + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "node16", + "strict": true, + "outDir": "./out", + + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/left-pad/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/left-pad +Info seq [hh:mm:ss:mss] For info: /node_modules/left-pad/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/left-pad/package.json SVC-1-0 "{\n \"name\": \"left-pad\",\n \"version\": \"1.3.0\",\n \"description\": \"String left pad\",\n \"main\": \"index.js\",\n \"types\": \"index.d.ts\"\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/left-pad/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.mts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.mts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /index.mts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.mts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 100, + "strict": true, + "outDir": "/out", + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/left-pad/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/left-pad/index.d.ts Text-1 "declare function leftPad(str: string|number, len: number, ch?: string|number): string;\ndeclare namespace leftPad { }\nexport = leftPad;" + /index.mts SVC-1-0 "import leftPad = require(\"left-pad\");\nleftPad(\"\", 4);" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + node_modules/left-pad/index.d.ts + Imported via "left-pad" from file 'index.mts' with packageId 'left-pad/index.d.ts@1.3.0' + File is CommonJS module because 'node_modules/left-pad/package.json' does not have field "type" + index.mts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/index.mts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/left-pad/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.mts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/left-pad/index.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.mts", + "line": 2, + "offset": 1 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/left-pad/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/left-pad/index.js Text-1 "module.exports = leftPad;\nfunction leftPad(str, len, ch) {}" + /index.mts SVC-1-0 "import leftPad = require(\"left-pad\");\nleftPad(\"\", 4);" + + + node_modules/left-pad/index.js + Imported via "left-pad" from file 'index.mts' with packageId 'left-pad/index.js@1.3.0' + File is CommonJS module because 'node_modules/left-pad/package.json' does not have field "type" + index.mts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/left-pad/index.js", + "start": { + "line": 2, + "offset": 10 + }, + "end": { + "line": 2, + "offset": 17 + }, + "contextStart": { + "line": 2, + "offset": 1 + }, + "contextEnd": { + "line": 2, + "offset": 34 + } + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/left-pad/index.d.ts: + {"pollingInterval":500} +/node_modules/left-pad/index.js: *new* + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource14_unresolvedRequireDestructuring.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource14_unresolvedRequireDestructuring.js new file mode 100644 index 00000000000..e86ee400164 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource14_unresolvedRequireDestructuring.js @@ -0,0 +1,99 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.js] +const { blah } = require("unresolved"); + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/index.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.js :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.js SVC-1-0 "const { blah } = require(\"unresolved\");" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /index.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.js", + "line": 1, + "offset": 13 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (1) + /index.js SVC-1-0 "const { blah } = require(\"unresolved\");" + + + index.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js new file mode 100644 index 00000000000..aaa626ee696 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js @@ -0,0 +1,324 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { useState } from 'react'; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/react/cjs/react.development.js] +'use strict'; +if (process.env.NODE_ENV !== 'production') { + (function() { + function useState(initialState) {} + exports.useState = useState; + exports.version = '16.8.6'; + }()); +} + +//// [/node_modules/react/cjs/react.production.min.js] +'use strict';exports.useState=function(a){};exports.version='16.8.6'; + +//// [/node_modules/react/index.js] +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react.production.min.js'); +} else { + module.exports = require('./cjs/react.development.js'); +} + +//// [/node_modules/react/package.json] +{ "name": "react", "version": "16.8.6", "main": "index.js" } + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "esnext", "moduleResolution": "bundler" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 99, + "moduleResolution": 100, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "import { useState } from 'react';" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\", \"moduleResolution\": \"bundler\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 10 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.production.min.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.development.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (4) + /node_modules/react/cjs/react.production.min.js Text-1 "'use strict';exports.useState=function(a){};exports.version='16.8.6';" + /node_modules/react/cjs/react.development.js Text-1 "'use strict';\nif (process.env.NODE_ENV !== 'production') {\n (function() {\n function useState(initialState) {}\n exports.useState = useState;\n exports.version = '16.8.6';\n }());\n}" + /node_modules/react/index.js Text-1 "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}" + /index.ts Text-1 "import { useState } from 'react';" + + + node_modules/react/cjs/react.production.min.js + Imported via './cjs/react.production.min.js' from file 'node_modules/react/index.js' with packageId 'react/cjs/react.production.min.js@16.8.6' + node_modules/react/cjs/react.development.js + Imported via './cjs/react.development.js' from file 'node_modules/react/index.js' with packageId 'react/cjs/react.development.js@16.8.6' + node_modules/react/index.js + Imported via 'react' from file 'index.ts' with packageId 'react/index.js@16.8.6' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/react/cjs/react.production.min.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 30 + }, + "contextStart": { + "line": 1, + "offset": 14 + }, + "contextEnd": { + "line": 1, + "offset": 30 + } + }, + { + "file": "/node_modules/react/cjs/react.development.js", + "start": { + "line": 5, + "offset": 13 + }, + "end": { + "line": 5, + "offset": 21 + }, + "contextStart": { + "line": 5, + "offset": 5 + }, + "contextEnd": { + "line": 5, + "offset": 21 + } + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/react/cjs/react.development.js: *new* + {"pollingInterval":500} +/node_modules/react/cjs/react.production.min.js: *new* + {"pollingInterval":500} +/node_modules/react/index.js: *new* + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js new file mode 100644 index 00000000000..b7c0dcd8f0c --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js @@ -0,0 +1,275 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { command } from "yargs"; +command("foo", yargs => { + yargs.positional(); +}); + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/yargs/callback.d.ts] +export declare class Yargs { positional(): Yargs; } + +//// [/node_modules/@types/yargs/index.d.ts] +import { Yargs } from "./callback"; +export declare function command(command: string, cb: (yargs: Yargs) => void): void; + +//// [/node_modules/@types/yargs/package.json] +{ + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" +} + +//// [/node_modules/yargs/callback.js] +export class Yargs { positional() { } } + +//// [/node_modules/yargs/index.js] +import { Yargs } from "./callback"; +export function command(cmd, cb) { cb(Yargs) } + +//// [/node_modules/yargs/package.json] +{ + "name": "yargs", + "version": "1.0.0", + "main": "index.js" +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/@types/yargs/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/@types/yargs +Info seq [hh:mm:ss:mss] For info: /node_modules/@types/yargs/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" + /node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" + /node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + package.json + Root file specified for compilation + callback.d.ts + Imported via "./callback" from file 'index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + index.d.ts + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" + /node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + /index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/@types/yargs/callback.d.ts + Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + node_modules/@types/yargs/index.d.ts + Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 3, + "offset": 11 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/yargs/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/yargs/callback.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (3) + /node_modules/yargs/callback.js Text-1 "export class Yargs { positional() { } }" + /node_modules/yargs/index.js Text-1 "import { Yargs } from \"./callback\";\nexport function command(cmd, cb) { cb(Yargs) }" + /index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + node_modules/yargs/callback.js + Imported via "./callback" from file 'node_modules/yargs/index.js' with packageId 'yargs/callback.js@1.0.0' + node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/yargs/callback.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 32 + }, + "contextStart": { + "line": 1, + "offset": 22 + }, + "contextEnd": { + "line": 1, + "offset": 38 + }, + "unverified": true + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/yargs/callback.js: *new* + {"pollingInterval":500} +/node_modules/yargs/index.js: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js new file mode 100644 index 00000000000..28f402683e4 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js @@ -0,0 +1,289 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { command } from "yargs"; +command("foo", yargs => { + yargs.positional(); +}); + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/yargs/callback.d.ts] +export declare class Yargs { positional(): Yargs; } + +//// [/node_modules/@types/yargs/index.d.ts] +import { Yargs } from "./callback"; +export declare function command(command: string, cb: (yargs: Yargs) => void): void; + +//// [/node_modules/@types/yargs/package.json] +{ + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" +} + +//// [/node_modules/yargs/callback.js] +export class Yargs { positional() { } } + +//// [/node_modules/yargs/index.js] +// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage +export function command(cmd, cb) { cb(Yargs) } + +//// [/node_modules/yargs/package.json] +{ + "name": "yargs", + "version": "1.0.0", + "main": "index.js" +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/@types/yargs/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/@types/yargs +Info seq [hh:mm:ss:mss] For info: /node_modules/@types/yargs/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" + /node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" + /node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + package.json + Root file specified for compilation + callback.d.ts + Imported via "./callback" from file 'index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + index.d.ts + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" + /node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + /index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/@types/yargs/callback.d.ts + Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + node_modules/@types/yargs/index.d.ts + Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 3, + "offset": 11 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/yargs/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/yargs/index.js Text-1 "// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage\nexport function command(cmd, cb) { cb(Yargs) }" + /index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/yargs/callback.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (3) + /node_modules/yargs/index.js Text-1 "// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage\nexport function command(cmd, cb) { cb(Yargs) }" + /index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + /node_modules/yargs/callback.js Text-1 "export class Yargs { positional() { } }" + + + node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + node_modules/yargs/callback.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/yargs/callback.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 32 + }, + "contextStart": { + "line": 1, + "offset": 22 + }, + "contextEnd": { + "line": 1, + "offset": 38 + }, + "unverified": true + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/yargs/callback.js: *new* + {"pollingInterval":500} +/node_modules/yargs/index.js: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js new file mode 100644 index 00000000000..9b61ad67c13 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js @@ -0,0 +1,291 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/folder/random.ts] +import { Yargs } from "yargs/callback"; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/yargs/callback.d.ts] +export declare class Yargs { positional(): Yargs; } + +//// [/node_modules/@types/yargs/index.d.ts] +import { Yargs } from "./callback"; +export declare function command(command: string, cb: (yargs: Yargs) => void): void; + +//// [/node_modules/@types/yargs/package.json] +{ + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" +} + +//// [/node_modules/yargs/callback.js] +export class Yargs { positional() { } } + +//// [/node_modules/yargs/index.js] +// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage +export function command(cmd, cb) { cb(Yargs) } + +//// [/node_modules/yargs/package.json] +{ + "name": "yargs", + "version": "1.0.0", + "main": "index.js" +} + +//// [/some/index.ts] +import { random } from "../folder/random"; +import { command } from "yargs"; +command("foo", yargs => { + yargs.positional(); +}); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/@types/yargs/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/@types/yargs +Info seq [hh:mm:ss:mss] For info: /node_modules/@types/yargs/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" + /node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" + /node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + + + ../../../lib.d.ts + Default library for target 'es5' + ../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../lib.d.ts' + ../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../lib.d.ts' + package.json + Root file specified for compilation + callback.d.ts + Imported via "./callback" from file 'index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + index.d.ts + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/some/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /some +Info seq [hh:mm:ss:mss] For info: /some/index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /folder/random.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (7) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" + /folder/random.ts Text-1 "import { Yargs } from \"yargs/callback\";" + /node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" + /some/index.ts SVC-1-0 "import { random } from \"../folder/random\";\nimport { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../node_modules/@types/yargs/callback.d.ts + Imported via "yargs/callback" from file '../folder/random.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + Imported via "./callback" from file '../node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' + ../folder/random.ts + Imported via "../folder/random" from file 'index.ts' + ../node_modules/@types/yargs/index.d.ts + Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' + Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (7) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/@types/yargs/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /some/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/folder/random.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/some/index.ts", + "line": 4, + "offset": 11 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/yargs/callback.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/yargs/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (4) + /node_modules/yargs/callback.js Text-1 "export class Yargs { positional() { } }" + /folder/random.ts Text-1 "import { Yargs } from \"yargs/callback\";" + /node_modules/yargs/index.js Text-1 "// Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage\nexport function command(cmd, cb) { cb(Yargs) }" + /some/index.ts SVC-1-0 "import { random } from \"../folder/random\";\nimport { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" + + + ../node_modules/yargs/callback.js + Imported via "yargs/callback" from file '../folder/random.ts' with packageId 'yargs/callback.js@1.0.0' + ../folder/random.ts + Imported via "../folder/random" from file 'index.ts' + ../node_modules/yargs/index.js + Imported via "yargs" from file 'index.ts' with packageId 'yargs/index.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/yargs/callback.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 32 + }, + "contextStart": { + "line": 1, + "offset": 22 + }, + "contextEnd": { + "line": 1, + "offset": 38 + }, + "unverified": true + } + ] + } +After Request +watchedFiles:: +/folder/random.ts: + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/callback.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/yargs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/yargs/callback.js: *new* + {"pollingInterval":500} +/node_modules/yargs/index.js: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/node_modules/@types/yargs/node_modules/@types: + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource1_localJsBesideDts.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource1_localJsBesideDts.js new file mode 100644 index 00000000000..3f911319ab9 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource1_localJsBesideDts.js @@ -0,0 +1,220 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a.d.ts] +export declare const a: string; + +//// [/a.js] +export const a = "a"; + +//// [/index.ts] +import { a } from "./a"; +a + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /a.js :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.js SVC-1-0 "export const a = \"a\";" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + a.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.d.ts Text-1 "export declare const a: string;" + /index.ts SVC-1-0 "import { a } from \"./a\";\na" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + a.d.ts + Imported via "./a" from file 'index.ts' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/a.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 2, + "offset": 2 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /a.js SVC-1-0 "export const a = \"a\";" + /index.ts SVC-1-0 "import { a } from \"./a\";\na" + + + a.js + Imported via "./a" from file 'index.ts' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/a.js", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 24 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 3, + "success": true, + "body": [ + { + "file": "/a.js", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 22 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js new file mode 100644 index 00000000000..4efa0289ab7 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js @@ -0,0 +1,204 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { a } from "foo"; +a + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/foo/lib/main.js] +export const a = "a"; + +//// [/node_modules/foo/package.json] +{ "name": "foo", "version": "1.0.0", "main": "./lib/main.js", "types": "./types/main.d.ts" } + +//// [/node_modules/foo/types/main.d.ts] +export declare const a: string; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/foo/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/foo +Info seq [hh:mm:ss:mss] For info: /node_modules/foo/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/foo/package.json SVC-1-0 "{ \"name\": \"foo\", \"version\": \"1.0.0\", \"main\": \"./lib/main.js\", \"types\": \"./types/main.d.ts\" }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/foo/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/types/main.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/foo/types/main.d.ts Text-1 "export declare const a: string;" + /index.ts SVC-1-0 "import { a } from \"foo\";\na" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/foo/types/main.d.ts + Imported via "foo" from file 'index.ts' with packageId 'foo/types/main.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/foo/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/foo/types/main.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 2, + "offset": 2 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/lib/main.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/foo/lib/main.js Text-1 "export const a = \"a\";" + /index.ts SVC-1-0 "import { a } from \"foo\";\na" + + + node_modules/foo/lib/main.js + Imported via "foo" from file 'index.ts' with packageId 'foo/lib/main.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/foo/lib/main.js", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + } + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/foo/lib/main.js: *new* + {"pollingInterval":500} +/node_modules/foo/types/main.d.ts: + {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js new file mode 100644 index 00000000000..77fffda93ac --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js @@ -0,0 +1,223 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { a } from "foo"; +a + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/foo/index.d.ts] +export declare const a: string; + +//// [/node_modules/@types/foo/package.json] +{ "name": "@types/foo", "version": "1.0.0", "types": "./index.d.ts" } + +//// [/node_modules/foo/lib/main.js] +export const a = "a"; + +//// [/node_modules/foo/package.json] +{ "name": "foo", "version": "1.0.0", "main": "./lib/main.js" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/foo/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/foo +Info seq [hh:mm:ss:mss] For info: /node_modules/foo/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/foo/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/foo/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/foo/package.json SVC-1-0 "{ \"name\": \"foo\", \"version\": \"1.0.0\", \"main\": \"./lib/main.js\" }" + /node_modules/@types/foo/index.d.ts Text-1 "export declare const a: string;" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + ../@types/foo/index.d.ts + Entry point for implicit type library 'foo' with packageId '@types/foo/index.d.ts@1.0.0' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/foo/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/foo/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/foo/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/foo/index.d.ts Text-1 "export declare const a: string;" + /index.ts SVC-1-0 "import { a } from \"foo\";\na" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/@types/foo/index.d.ts + Imported via "foo" from file 'index.ts' with packageId '@types/foo/index.d.ts@1.0.0' + Entry point for implicit type library 'foo' with packageId '@types/foo/index.d.ts@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/foo/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/foo/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/foo/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 2, + "offset": 2 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/lib/main.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/foo/lib/main.js Text-1 "export const a = \"a\";" + /index.ts SVC-1-0 "import { a } from \"foo\";\na" + + + node_modules/foo/lib/main.js + Imported via "foo" from file 'index.ts' with packageId 'foo/lib/main.js@1.0.0' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/foo/lib/main.js", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + } + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/foo/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/foo/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/foo/lib/main.js: *new* + {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource5_sameAsGoToDef1.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource5_sameAsGoToDef1.js new file mode 100644 index 00000000000..244fa2c7f1f --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource5_sameAsGoToDef1.js @@ -0,0 +1,229 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a.d.ts] +export declare const a: string; + +//// [/a.js] +export const a = 'a'; + +//// [/a.ts] +export const a = 'a'; + +//// [/b.ts] +import { a } from './a'; +a + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /a.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.ts SVC-1-0 "export const a = 'a';" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + a.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /b.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.ts SVC-1-0 "export const a = 'a';" + /b.ts SVC-1-0 "import { a } from './a';\na" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + a.ts + Imported via './a' from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /a.ts + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + a.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/b.ts", + "line": 2, + "offset": 2 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/a.ts", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/b.ts", + "line": 2, + "offset": 2 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 3, + "success": true, + "body": { + "definitions": [ + { + "file": "/a.ts", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + } + } + ], + "textSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 2 + } + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js new file mode 100644 index 00000000000..e80b7550e46 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js @@ -0,0 +1,250 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/b.ts] +import { a } from 'foo/a'; +a + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/foo/dist/a.js] +export const a = 'a'; + +//// [/node_modules/foo/package.json] +{ "name": "foo", "version": "1.2.3", "typesVersions": { "*": { "*": ["./types/*"] } } } + +//// [/node_modules/foo/src/a.ts] +export const a = 'a'; + +//// [/node_modules/foo/types/a.d.ts] +export declare const a: string; +//# sourceMappingURL=a.d.ts.map + +//// [/node_modules/foo/types/a.d.ts.map] +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,OAAO,CAAC;;AACvB,wBAAsB"} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/foo/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/foo +Info seq [hh:mm:ss:mss] For info: /node_modules/foo/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/foo/package.json SVC-1-0 "{ \"name\": \"foo\", \"version\": \"1.2.3\", \"typesVersions\": { \"*\": { \"*\": [\"./types/*\"] } } }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/foo/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /b.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/types/a.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/foo/types/a.d.ts Text-1 "export declare const a: string;\n//# sourceMappingURL=a.d.ts.map" + /b.ts SVC-1-0 "import { a } from 'foo/a';\na" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/foo/types/a.d.ts + Imported via 'foo/a' from file 'b.ts' with packageId 'foo/types/a.d.ts@1.2.3' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/foo/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/foo/types/a.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/b.ts", + "line": 2, + "offset": 2 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/types/a.d.ts.map 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/foo/src/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/node_modules/foo/src/a.ts", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 16 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + } + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/foo/src/a.ts: *new* + {"pollingInterval":500} +/node_modules/foo/types/a.d.ts: + {"pollingInterval":500} +/node_modules/foo/types/a.d.ts.map: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/b.ts", + "line": 2, + "offset": 2 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 3, + "success": true, + "body": { + "definitions": [ + { + "file": "/node_modules/foo/src/a.ts", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 16 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 22 + } + } + ], + "textSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 2 + } + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js new file mode 100644 index 00000000000..4cfc68cda4c --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js @@ -0,0 +1,233 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { useState } from 'react'; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/react/cjs/react.development.js] +'use strict'; +if (process.env.NODE_ENV !== 'production') { + (function() { + function useState(initialState) {} + exports.useState = useState; + exports.version = '16.8.6'; + }()); +} + +//// [/node_modules/react/cjs/react.production.min.js] +'use strict';exports.useState=function(a){};exports.version='16.8.6'; + +//// [/node_modules/react/index.js] +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react.production.min.js'); +} else { + module.exports = require('./cjs/react.development.js'); +} + +//// [/node_modules/react/package.json] +{ "name": "react", "version": "16.8.6", "main": "index.js" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/react/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/react +Info seq [hh:mm:ss:mss] For info: /node_modules/react/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/react/package.json SVC-1-0 "{ \"name\": \"react\", \"version\": \"16.8.6\", \"main\": \"index.js\" }" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/react/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts SVC-1-0 "import { useState } from 'react';" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/react/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 10 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/index.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.production.min.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/react/cjs/react.development.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (4) + /node_modules/react/cjs/react.production.min.js Text-1 "'use strict';exports.useState=function(a){};exports.version='16.8.6';" + /node_modules/react/cjs/react.development.js Text-1 "'use strict';\nif (process.env.NODE_ENV !== 'production') {\n (function() {\n function useState(initialState) {}\n exports.useState = useState;\n exports.version = '16.8.6';\n }());\n}" + /node_modules/react/index.js Text-1 "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}" + /index.ts SVC-1-0 "import { useState } from 'react';" + + + node_modules/react/cjs/react.production.min.js + Imported via './cjs/react.production.min.js' from file 'node_modules/react/index.js' with packageId 'react/cjs/react.production.min.js@16.8.6' + node_modules/react/cjs/react.development.js + Imported via './cjs/react.development.js' from file 'node_modules/react/index.js' with packageId 'react/cjs/react.development.js@16.8.6' + node_modules/react/index.js + Imported via 'react' from file 'index.ts' with packageId 'react/index.js@16.8.6' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/react/cjs/react.production.min.js", + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 30 + }, + "contextStart": { + "line": 1, + "offset": 14 + }, + "contextEnd": { + "line": 1, + "offset": 30 + } + }, + { + "file": "/node_modules/react/cjs/react.development.js", + "start": { + "line": 5, + "offset": 13 + }, + "end": { + "line": 5, + "offset": 21 + }, + "contextStart": { + "line": 5, + "offset": 5 + }, + "contextEnd": { + "line": 5, + "offset": 21 + } + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/react/cjs/react.development.js: *new* + {"pollingInterval":500} +/node_modules/react/cjs/react.production.min.js: *new* + {"pollingInterval":500} +/node_modules/react/index.js: *new* + {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js new file mode 100644 index 00000000000..5aef4bc8610 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js @@ -0,0 +1,315 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { add } from 'lodash'; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/lodash/common/math.d.ts] +import _ = require("../index"); +declare module "../index" { + interface LoDashStatic { + add(augend: number, addend: number): number; + } +} + +//// [/node_modules/@types/lodash/index.d.ts] +/// +export = _; +export as namespace _; +declare const _: _.LoDashStatic; +declare namespace _ { + interface LoDashStatic {} +} + +//// [/node_modules/@types/lodash/package.json] +{ "name": "@types/lodash", "version": "4.14.97", "types": "index.d.ts" } + +//// [/node_modules/lodash/lodash.js] +;(function() { + /** + * Adds two numbers. + * + * @static + * @memberOf _ + * @since 3.4.0 + * @category Math + * @param {number} augend The first number in an addition. + * @param {number} addend The second number in an addition. + * @returns {number} Returns the total. + * @example + * + * _.add(6, 4); + * // => 10 + */ + var add = createMathOperation(function(augend, addend) { + return augend + addend; + }, 0); + + function lodash(value) {} + lodash.add = add; + + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); + /** Detect free variable `exports`. */ + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// + /** Detect free variable `module`. */ + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + if (freeModule) { + // Export for Node.js. + (freeModule.exports = _)._ = _; + // Export for CommonJS support. + freeExports._ = _; + } + else { + // Export to the global object. + root._ = _; + } +}.call(this)); + +//// [/node_modules/lodash/package.json] +{ "name": "lodash", "version": "4.17.15", "main": "./lodash.js" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/lodash/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/lodash +Info seq [hh:mm:ss:mss] For info: /node_modules/lodash/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" + /node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" + /node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + ../@types/lodash/common/math.d.ts + Referenced via './common/math.d.ts' from file '../@types/lodash/index.d.ts' + ../@types/lodash/index.d.ts + Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' + Imported via "../index" from file '../@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/lodash/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/common/math.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" + /node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" + /index.ts SVC-1-0 "import { add } from 'lodash';" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/@types/lodash/common/math.d.ts + Referenced via './common/math.d.ts' from file 'node_modules/@types/lodash/index.d.ts' + node_modules/@types/lodash/index.d.ts + Imported via 'lodash' from file 'index.ts' with packageId '@types/lodash/index.d.ts@4.14.97' + Imported via "../index" from file 'node_modules/@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' + Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/lodash/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/common/math.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 10 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/lodash/lodash.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/lodash/lodash.js Text-1 ";(function() {\n /**\n * Adds two numbers.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {number} augend The first number in an addition.\n * @param {number} addend The second number in an addition.\n * @returns {number} Returns the total.\n * @example\n *\n * _.add(6, 4);\n * // => 10\n */\n var add = createMathOperation(function(augend, addend) {\n return augend + addend;\n }, 0);\n\n function lodash(value) {}\n lodash.add = add;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// \n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = _)._ = _;\n // Export for CommonJS support.\n freeExports._ = _;\n }\n else {\n // Export to the global object.\n root._ = _;\n }\n}.call(this));" + /index.ts SVC-1-0 "import { add } from 'lodash';" + + + node_modules/lodash/lodash.js + Imported via 'lodash' from file 'index.ts' with packageId 'lodash/lodash.js@4.17.15' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/lodash/lodash.js", + "start": { + "line": 17, + "offset": 9 + }, + "end": { + "line": 17, + "offset": 12 + }, + "contextStart": { + "line": 17, + "offset": 5 + }, + "contextEnd": { + "line": 19, + "offset": 11 + }, + "unverified": true + }, + { + "file": "/node_modules/lodash/lodash.js", + "start": { + "line": 22, + "offset": 12 + }, + "end": { + "line": 22, + "offset": 15 + }, + "contextStart": { + "line": 22, + "offset": 5 + }, + "contextEnd": { + "line": 22, + "offset": 22 + }, + "unverified": true + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/common/math.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/lodash/lodash.js: *new* + {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js new file mode 100644 index 00000000000..be8997e0362 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js @@ -0,0 +1,354 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import _, { foo } from 'lodash'; +_.add + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/lodash/common/math.d.ts] +import _ = require("../index"); +declare module "../index" { + interface LoDashStatic { + add(augend: number, addend: number): number; + } +} + +//// [/node_modules/@types/lodash/index.d.ts] +/// +export = _; +export as namespace _; +declare const _: _.LoDashStatic; +declare namespace _ { + interface LoDashStatic {} +} + +//// [/node_modules/@types/lodash/package.json] +{ "name": "@types/lodash", "version": "4.14.97", "types": "index.d.ts" } + +//// [/node_modules/lodash/lodash.js] +;(function() { + /** + * Adds two numbers. + * + * @static + * @memberOf _ + * @since 3.4.0 + * @category Math + * @param {number} augend The first number in an addition. + * @param {number} addend The second number in an addition. + * @returns {number} Returns the total. + * @example + * + * _.add(6, 4); + * // => 10 + */ + var add = createMathOperation(function(augend, addend) { + return augend + addend; + }, 0); + + function lodash(value) {} + lodash.add = add; + + /** Detect free variable `global` from Node.js. */ + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + /** Detect free variable `self`. */ + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + /** Used as a reference to the global object. */ + var root = freeGlobal || freeSelf || Function('return this')(); + /** Detect free variable `exports`. */ + var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// + /** Detect free variable `module`. */ + var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + if (freeModule) { + // Export for Node.js. + (freeModule.exports = _)._ = _; + // Export for CommonJS support. + freeExports._ = _; + } + else { + // Export to the global object. + root._ = _; + } +}.call(this)); + +//// [/node_modules/lodash/package.json] +{ "name": "lodash", "version": "4.17.15", "main": "./lodash.js" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/lodash/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/lodash +Info seq [hh:mm:ss:mss] For info: /node_modules/lodash/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" + /node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" + /node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + ../@types/lodash/common/math.d.ts + Referenced via './common/math.d.ts' from file '../@types/lodash/index.d.ts' + ../@types/lodash/index.d.ts + Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' + Imported via "../index" from file '../@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/lodash/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/common/math.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" + /node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" + /index.ts SVC-1-0 "import _, { foo } from 'lodash';\n_.add" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + node_modules/@types/lodash/common/math.d.ts + Referenced via './common/math.d.ts' from file 'node_modules/@types/lodash/index.d.ts' + node_modules/@types/lodash/index.d.ts + Imported via 'lodash' from file 'index.ts' with packageId '@types/lodash/index.d.ts@4.14.97' + Imported via "../index" from file 'node_modules/@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' + Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/lodash/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/common/math.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 8 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/auxiliaryProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/lodash/lodash.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/auxiliaryProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/auxiliaryProject1*' (Auxiliary) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/lodash/lodash.js Text-1 ";(function() {\n /**\n * Adds two numbers.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {number} augend The first number in an addition.\n * @param {number} addend The second number in an addition.\n * @returns {number} Returns the total.\n * @example\n *\n * _.add(6, 4);\n * // => 10\n */\n var add = createMathOperation(function(augend, addend) {\n return augend + addend;\n }, 0);\n\n function lodash(value) {}\n lodash.add = add;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// \n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = _)._ = _;\n // Export for CommonJS support.\n freeExports._ = _;\n }\n else {\n // Export to the global object.\n root._ = _;\n }\n}.call(this));" + /index.ts SVC-1-0 "import _, { foo } from 'lodash';\n_.add" + + + node_modules/lodash/lodash.js + Imported via 'lodash' from file 'index.ts' with packageId 'lodash/lodash.js@4.17.15' + index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "file": "/node_modules/lodash/lodash.js", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "unverified": true + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/common/math.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/index.d.ts: + {"pollingInterval":500} +/node_modules/@types/lodash/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/node_modules/lodash/lodash.js: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 13 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 3, + "success": true, + "body": [ + { + "file": "/node_modules/lodash/lodash.js", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "unverified": true + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 24 + }, + "command": "findSourceDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "findSourceDefinition", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/node_modules/lodash/lodash.js", + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/implementation01.js b/tests/baselines/reference/tsserver/fourslashServer/implementation01.js new file mode 100644 index 00000000000..b528ffa1e5a --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/implementation01.js @@ -0,0 +1,130 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/implementation01.ts] +interface Foo {} +class Bar implements Foo {} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/implementation01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/implementation01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/implementation01.ts SVC-1-0 "interface Foo {}\nclass Bar implements Foo {}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + implementation01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/implementation01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/implementation01.ts", + "line": 1, + "offset": 13 + }, + "command": "implementation" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "implementation", + "request_seq": 1, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/implementation01.ts", + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 10 + }, + "contextStart": { + "line": 2, + "offset": 1 + }, + "contextEnd": { + "line": 2, + "offset": 28 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/impliedNodeFormat.js b/tests/baselines/reference/tsserver/fourslashServer/impliedNodeFormat.js new file mode 100644 index 00000000000..4dc9db6e83d --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/impliedNodeFormat.js @@ -0,0 +1,444 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import {} from "foo"; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/main.ts] +export {}; + +//// [/package.json] +{ "name": "foo", "type": "module", "exports": { ".": "./main.js" } } + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "nodenext" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/main.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /main.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /main.ts Text-1 "export {};" + /index.ts Text-1 "import {} from \"foo\";" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + main.ts + Imported via "foo" from file 'index.ts' + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'package.json' has field "type" with value "module" + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"nodenext\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/main.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/main.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/main.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/main.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "\n\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\";" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1, + "endLine": 2, + "endOffset": 260 + }, + "command": "format" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "format", + "request_seq": 7, + "success": true, + "body": [ + { + "start": { + "line": 2, + "offset": 260 + }, + "end": { + "line": 2, + "offset": 260 + }, + "newText": " " + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 2, + "offset": 260, + "endLine": 2, + "endOffset": 260, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/main.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /main.ts Text-1 "export {};" + /index.ts SVC-2-2 "\n\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"; import {} from \"foo\";" + /lib.d.ts Text-1 lib.d.ts-Text + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 9, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/main.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 10, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 12, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js new file mode 100644 index 00000000000..ff62bff02a8 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js @@ -0,0 +1,995 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/apps/app1/src/app.ts] +utils + +//// [/apps/app1/src/index.ts] +shared + +//// [/apps/app1/src/utils.ts] +export const utils = 0; + +//// [/apps/app1/tsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + "paths": { + "shared/*": ["../../shared/*"] + } + }, + "include": ["src", "../../shared"] +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/shared/constants.ts] +export const shared = 0; + +//// [/shared/data.ts] +shared + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/apps/app1/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /apps/app1 +Info seq [hh:mm:ss:mss] For info: /apps/app1/tsconfig.json :: Config file name: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /apps/app1/tsconfig.json 2000 undefined Project: /apps/app1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/apps/app1/tsconfig.json", + "reason": "Creating possible configured project for /apps/app1/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /apps/app1/tsconfig.json : { + "rootNames": [ + "/apps/app1/src/app.ts", + "/apps/app1/src/index.ts", + "/apps/app1/src/utils.ts", + "/shared/constants.ts", + "/shared/data.ts" + ], + "options": { + "module": 1, + "paths": { + "shared/*": [ + "../../shared/*" + ] + }, + "pathsBasePath": "/apps/app1", + "configFilePath": "/apps/app1/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /apps/app1/src 1 undefined Config: /apps/app1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /apps/app1/src 1 undefined Config: /apps/app1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /shared 1 undefined Config: /apps/app1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /shared 1 undefined Config: /apps/app1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /apps/app1/src/app.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /apps/app1/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /apps/app1/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /shared/constants.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /shared/data.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /apps/app1/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /apps/app1/src/app.ts Text-1 "utils" + /apps/app1/src/index.ts Text-1 "shared" + /apps/app1/src/utils.ts Text-1 "export const utils = 0;" + /shared/constants.ts Text-1 "export const shared = 0;" + /shared/data.ts Text-1 "shared" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/app.ts + Matched by include pattern 'src' in 'tsconfig.json' + src/index.ts + Matched by include pattern 'src' in 'tsconfig.json' + src/utils.ts + Matched by include pattern 'src' in 'tsconfig.json' + ../../shared/constants.ts + Matched by include pattern '../../shared' in 'tsconfig.json' + ../../shared/data.ts + Matched by include pattern '../../shared' in 'tsconfig.json' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/apps/app1/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/apps/app1/tsconfig.json", + "configFile": "/apps/app1/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /apps/app1/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"paths\": {\n \"shared/*\": [\"../../shared/*\"]\n }\n },\n \"include\": [\"src\", \"../../shared\"]\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /apps/app1/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/apps/app1/src/app.ts: *new* + {"pollingInterval":500} +/apps/app1/src/index.ts: *new* + {"pollingInterval":500} +/apps/app1/src/utils.ts: *new* + {"pollingInterval":500} +/apps/app1/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/shared/constants.ts: *new* + {"pollingInterval":500} +/shared/data.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/apps/app1/src: *new* + {} +/shared: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true, + "newline": "\n" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/apps/app1/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /apps/app1/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /apps/app1/src +Info seq [hh:mm:ss:mss] For info: /apps/app1/src/index.ts :: Config file name: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /apps/app1/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /apps/app1/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json +After Request +watchedFiles:: +/apps/app1/src/app.ts: + {"pollingInterval":500} +/apps/app1/src/utils.ts: + {"pollingInterval":500} +/apps/app1/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/shared/constants.ts: + {"pollingInterval":500} +/shared/data.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/apps/app1/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/apps/app1/src: + {} +/shared: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/apps/app1/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/apps/app1/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 6, + "success": true, + "body": [ + { + "message": "Cannot find name 'shared'.", + "start": 0, + "length": 6, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 7 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/apps/app1/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 7, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/apps/app1/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 7, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 8, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"shared/constants\"", + "changes": [ + { + "fileName": "/apps/app1/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { shared } from \"shared/constants\";\n\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/apps/app1/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { shared } from \"shared/constants\";\n\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/apps/app1/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/apps/app1/src/app.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /apps/app1/src/app.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /apps/app1/src +Info seq [hh:mm:ss:mss] For info: /apps/app1/src/app.ts :: Config file name: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /apps/app1/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /apps/app1/src/app.ts Text-1 "utils" + /apps/app1/src/index.ts SVC-2-2 "shared" + /apps/app1/src/utils.ts Text-1 "export const utils = 0;" + /shared/constants.ts Text-1 "export const shared = 0;" + /shared/data.ts Text-1 "shared" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /apps/app1/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /apps/app1/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /apps/app1/src/app.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json +After Request +watchedFiles:: +/apps/app1/src/utils.ts: + {"pollingInterval":500} +/apps/app1/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/shared/constants.ts: + {"pollingInterval":500} +/shared/data.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/apps/app1/src/app.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/apps/app1/src: + {} +/shared: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 12, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 13, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/apps/app1/src/app.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 14, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/apps/app1/src/app.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 15, + "success": true, + "body": [ + { + "message": "Cannot find name 'utils'.", + "start": 0, + "length": 5, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 6 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/apps/app1/src/app.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 16, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/apps/app1/src/app.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 6, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 17, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"./utils\"", + "changes": [ + { + "fileName": "/apps/app1/src/app.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { utils } from \"./utils\";\n\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/apps/app1/src/app.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { utils } from \"./utils\";\n\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/apps/app1/src/app.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/shared/data.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /shared/data.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /shared +Info seq [hh:mm:ss:mss] For info: /shared/data.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /apps/app1/tsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /apps/app1/src/app.ts SVC-2-2 "utils" + /apps/app1/src/index.ts SVC-2-2 "shared" + /apps/app1/src/utils.ts Text-1 "export const utils = 0;" + /shared/constants.ts Text-1 "export const shared = 0;" + /shared/data.ts Text-1 "shared" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/apps/app1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (8) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /apps/app1/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /apps/app1/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /apps/app1/src/app.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /shared/data.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /apps/app1/tsconfig.json +After Request +watchedFiles:: +/apps/app1/src/utils.ts: + {"pollingInterval":500} +/apps/app1/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/shared/constants.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/shared/data.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/apps/app1/src: + {} +/shared: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 21, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 22, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/shared/data.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 23, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/shared/data.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 24, + "success": true, + "body": [ + { + "message": "Cannot find name 'shared'.", + "start": 0, + "length": 6, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 7 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/shared/data.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 25, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/shared/data.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 7, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 26, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"./constants\"", + "changes": [ + { + "fileName": "/shared/data.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { shared } from \"./constants\";\n\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/shared/data.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { shared } from \"./constants\";\n\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/shared/data.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js new file mode 100644 index 00000000000..e3abc921296 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js @@ -0,0 +1,858 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/packages/pkg-1/node_modules/pkg-2] symlink(/packages/pkg-2) +//// [/packages/pkg-1/package.json] +{ "dependencies": { "pkg-2": "*" } } + +//// [/packages/pkg-1/src/index.ts] +Pkg2 + +//// [/packages/pkg-1/tsconfig.json] +{ + "extends": "../../tsconfig.base.json", + "references": [ + { "path": "../pkg-2" } + ] +} + +//// [/packages/pkg-2/package.json] +{ "types": "dist/index.d.ts" } + +//// [/packages/pkg-2/src/blah/foo/data.ts] +Pkg2 + +//// [/packages/pkg-2/src/index.ts] +import "./utils"; + +//// [/packages/pkg-2/src/utils.ts] +export const Pkg2 = {}; + +//// [/packages/pkg-2/tsconfig.json] +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { "outDir": "dist", "rootDir": "src", "composite": true } +} + +//// [/tsconfig.base.json] +{ + "compilerOptions": { + "module": "commonjs", + "paths": { + "pkg-1/*": ["./packages/pkg-1/src/*"], + "pkg-2/*": ["./packages/pkg-2/src/*"] + } + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.base.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.base.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"paths\": {\n \"pkg-1/*\": [\"./packages/pkg-1/src/*\"],\n \"pkg-2/*\": [\"./packages/pkg-2/src/*\"]\n }\n }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.base.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.base.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "formatOptions": { + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true, + "newline": "\n" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] Format host information updated +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/packages/pkg-1/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/pkg-1/src +Info seq [hh:mm:ss:mss] For info: /packages/pkg-1/src/index.ts :: Config file name: /packages/pkg-1/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/pkg-1/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-1/tsconfig.json 2000 undefined Project: /packages/pkg-1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/pkg-1/tsconfig.json", + "reason": "Creating possible configured project for /packages/pkg-1/src/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /packages/pkg-1/tsconfig.json : { + "rootNames": [ + "/packages/pkg-1/src/index.ts" + ], + "options": { + "module": 1, + "paths": { + "pkg-1/*": [ + "./packages/pkg-1/src/*" + ], + "pkg-2/*": [ + "./packages/pkg-2/src/*" + ] + }, + "pathsBasePath": "/", + "configFilePath": "/packages/pkg-1/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/packages/pkg-2", + "originalPath": "../pkg-2" + } + ] +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.base.json 2000 undefined Config: /packages/pkg-1/tsconfig.json WatchType: Extended config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/pkg-1 1 undefined Config: /packages/pkg-1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/pkg-1 1 undefined Config: /packages/pkg-1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/pkg-1/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /packages/pkg-2/tsconfig.json : { + "rootNames": [ + "/packages/pkg-2/src/index.ts", + "/packages/pkg-2/src/utils.ts", + "/packages/pkg-2/src/blah/foo/data.ts" + ], + "options": { + "module": 1, + "paths": { + "pkg-1/*": [ + "./packages/pkg-1/src/*" + ], + "pkg-2/*": [ + "./packages/pkg-2/src/*" + ] + }, + "pathsBasePath": "/", + "outDir": "/packages/pkg-2/dist", + "rootDir": "/packages/pkg-2/src", + "composite": true, + "configFilePath": "/packages/pkg-2/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/tsconfig.json 2000 undefined Project: /packages/pkg-1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/pkg-2 1 undefined Config: /packages/pkg-2/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/pkg-2 1 undefined Config: /packages/pkg-2/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/pkg-1/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/pkg-1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/pkg-1/src/index.ts SVC-1-0 "Pkg2" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-1/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/src/utils.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /packages/pkg-2/src/utils.ts Text-1 "export const Pkg2 = {};" + /packages/pkg-2/src/index.ts Text-1 "import \"./utils\";" + + + ../pkg-2/src/utils.ts + Imported via "./utils" from file '../pkg-2/src/index.ts' + ../pkg-2/src/index.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/pkg-1/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/pkg-1/src/index.ts", + "configFile": "/packages/pkg-1/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/packages/pkg-1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.base.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/pkg-1/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/pkg-1/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/pkg-1/package.json: *new* + {"pollingInterval":250} +/packages/pkg-1/tsconfig.json: *new* + {"pollingInterval":2000} +/packages/pkg-2/src/index.ts: *new* + {"pollingInterval":500} +/packages/pkg-2/src/utils.ts: *new* + {"pollingInterval":500} +/packages/pkg-2/tsconfig.json: *new* + {"pollingInterval":2000} +/tsconfig.base.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/pkg-1: *new* + {} +/packages/pkg-2: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/packages/pkg-1/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/packages/pkg-1/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 6, + "success": true, + "body": [ + { + "message": "Cannot find name 'Pkg2'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/packages/pkg-1/src/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 7, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/packages/pkg-1/src/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /packages/pkg-1/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /packages/pkg-1/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 8, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"pkg-2/utils\"", + "changes": [ + { + "fileName": "/packages/pkg-1/src/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { Pkg2 } from \"pkg-2/utils\";\n\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/pkg-1/package.json: + {"pollingInterval":250} +/packages/pkg-1/tsconfig.json: + {"pollingInterval":2000} +/packages/pkg-2/src/index.ts: + {"pollingInterval":500} +/packages/pkg-2/src/utils.ts: + {"pollingInterval":500} +/packages/pkg-2/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.base.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/pkg-1: + {} +/packages/pkg-1/node_modules: *new* + {} +/packages/pkg-2: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/packages/pkg-1/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { Pkg2 } from \"pkg-2/utils\";\n\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/packages/pkg-1/src/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/packages/pkg-2/src/blah/foo/data.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /packages/pkg-2/src/blah/foo +Info seq [hh:mm:ss:mss] For info: /packages/pkg-2/src/blah/foo/data.ts :: Config file name: /packages/pkg-2/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /packages/pkg-2/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/packages/pkg-2/tsconfig.json", + "reason": "Creating possible configured project for /packages/pkg-2/src/blah/foo/data.ts to open" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /packages/pkg-2/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /packages/pkg-2/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/packages/pkg-2/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /packages/pkg-2/src/utils.ts Text-1 "export const Pkg2 = {};" + /packages/pkg-2/src/index.ts Text-1 "import \"./utils\";" + /packages/pkg-2/src/blah/foo/data.ts SVC-1-0 "Pkg2" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + src/utils.ts + Imported via "./utils" from file 'src/index.ts' + Matched by default include pattern '**/*' + src/index.ts + Matched by default include pattern '**/*' + src/blah/foo/data.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /packages/pkg-2/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/packages/pkg-2/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/packages/pkg-2/src/blah/foo/data.ts", + "configFile": "/packages/pkg-2/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Search path: /packages/pkg-2 +Info seq [hh:mm:ss:mss] For info: /packages/pkg-2/tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/packages/pkg-1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/packages/pkg-2/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.base.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /packages/pkg-1/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/pkg-1/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /packages/pkg-2/src/blah/foo/data.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /packages/pkg-2/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/packages/pkg-1/package.json: + {"pollingInterval":250} +/packages/pkg-1/tsconfig.json: + {"pollingInterval":2000} +/packages/pkg-2/package.json: *new* + {"pollingInterval":250} +/packages/pkg-2/src/index.ts: + {"pollingInterval":500} +/packages/pkg-2/src/utils.ts: + {"pollingInterval":500} +/packages/pkg-2/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.base.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/packages/pkg-1: + {} +/packages/pkg-1/node_modules: + {} +/packages/pkg-2: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 12, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "preferences": { + "importModuleSpecifierPreference": "project-relative" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 13, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/packages/pkg-2/src/blah/foo/data.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 14, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/packages/pkg-2/src/blah/foo/data.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 15, + "success": true, + "body": [ + { + "message": "Cannot find name 'Pkg2'.", + "start": 0, + "length": 4, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 5 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/packages/pkg-2/src/blah/foo/data.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 16, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/packages/pkg-2/src/blah/foo/data.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 5, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 17, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"../../utils\"", + "changes": [ + { + "fileName": "/packages/pkg-2/src/blah/foo/data.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { Pkg2 } from \"../../utils\";\n\n" + } + ] + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/packages/pkg-2/src/blah/foo/data.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { Pkg2 } from \"../../utils\";\n\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/packages/pkg-2/src/blah/foo/data.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js new file mode 100644 index 00000000000..0769181f4ad --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js @@ -0,0 +1,390 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/project/index.ts] +Component + +//// [/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts] +export declare function Component(): void; + +//// [/project/node_modules/@types/react] symlink(/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) +//// [/project/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/project/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/tsconfig.json :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/tsconfig.json 2000 undefined Project: /project/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/project/tsconfig.json", + "reason": "Creating possible configured project for /project/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /project/tsconfig.json : { + "rootNames": [ + "/project/index.ts" + ], + "options": { + "module": 1, + "configFilePath": "/project/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/index.ts Text-1 "Component" + /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/project/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/project/tsconfig.json", + "configFile": "/project/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/project/index.ts: *new* + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* + {"pollingInterval":500} +/project/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/project: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/index.ts :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /project/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /project/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: + {"pollingInterval":500} +/project/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/project/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/project: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 4, + "success": true, + "body": [ + { + "message": "Cannot find name 'Component'.", + "start": 0, + "length": 9, + "category": "error", + "code": 2304, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 10 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "includeLinePosition": true + }, + "command": "suggestionDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "suggestionDiagnosticsSync", + "request_seq": 5, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 10, + "errorCodes": [ + 2304 + ] + }, + "command": "getCodeFixes" + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getCodeFixes", + "request_seq": 6, + "success": true, + "body": [ + { + "fixName": "import", + "description": "Add import from \"react\"", + "changes": [ + { + "fileName": "/project/index.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { Component } from \"react\";\r\n\r\n" + } + ] + } + ] + } + ] + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: + {"pollingInterval":500} +/project/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/project: + {} +/project/node_modules: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "import { Component } from \"react\";\r\n\r\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "line": 1, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js new file mode 100644 index 00000000000..506d1913b0c --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js @@ -0,0 +1,329 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/project/index.ts] +import Com + +//// [/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts] +export declare function Component(): void; + +//// [/project/node_modules/@types/react] symlink(/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) +//// [/project/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/project/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/tsconfig.json :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/tsconfig.json 2000 undefined Project: /project/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/project/tsconfig.json", + "reason": "Creating possible configured project for /project/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /project/tsconfig.json : { + "rootNames": [ + "/project/index.ts" + ], + "options": { + "module": 1, + "configFilePath": "/project/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/index.ts Text-1 "import Com" + /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/project/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/project/tsconfig.json", + "configFile": "/project/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/project/index.ts: *new* + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* + {"pollingInterval":500} +/project/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/project: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/index.ts :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /project/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /project/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: + {"pollingInterval":500} +/project/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/project/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/project: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForImportStatements": true, + "includeCompletionsWithInsertText": true, + "includeCompletionsWithSnippetText": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "line": 1, + "offset": 11 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 1 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 11, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 8 + }, + "end": { + "line": 1, + "offset": 11 + } + }, + "entries": [ + { + "name": "Component", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "11", + "insertText": "import { Component$1 } from \"react\";", + "replacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 11 + } + }, + "isSnippet": true, + "source": "react", + "sourceDisplay": [ + { + "text": "react", + "kind": "text" + } + ], + "isImportStatementCompletion": true, + "data": { + "exportName": "Component", + "exportMapKey": "9 * Component ", + "moduleSpecifier": "react", + "fileName": "/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: + {"pollingInterval":500} +/project/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/project: + {} +/project/node_modules: *new* + {} diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js new file mode 100644 index 00000000000..e0a604a9d6a --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js @@ -0,0 +1,293 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/project/index.ts] +import SvgProp + +//// [/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts] +import "csstype"; +export declare function Component(): void; + +//// [/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype] symlink(/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype) +//// [/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts] +export interface SvgProperties {} + +//// [/project/node_modules/@types/react] symlink(/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) +//// [/project/tsconfig.json] +{ "compilerOptions": { "module": "commonjs" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/project/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/tsconfig.json :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/tsconfig.json 2000 undefined Project: /project/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/project/tsconfig.json", + "reason": "Creating possible configured project for /project/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /project/tsconfig.json : { + "rootNames": [ + "/project/index.ts" + ], + "options": { + "module": 1, + "configFilePath": "/project/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /project 1 undefined Config: /project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/index.ts Text-1 "import SvgProp" + /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts Text-1 "export interface SvgProperties {}" + /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "import \"csstype\";\nexport declare function Component(): void;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts + Imported via "csstype" from file 'node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts' + node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/project/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/project/tsconfig.json", + "configFile": "/project/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts Text-1 "export interface SvgProperties {}" + /project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "import \"csstype\";\nexport declare function Component(): void;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts + Imported via "csstype" from file 'node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts' + node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/project/index.ts: *new* + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* + {"pollingInterval":500} +/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts: *new* + {"pollingInterval":500} +/project/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/project: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/index.ts :: Config file name: /project/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /project/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /project/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: + {"pollingInterval":500} +/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts: + {"pollingInterval":500} +/project/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/project/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/project: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForImportStatements": true, + "includeCompletionsWithInsertText": true, + "includeCompletionsWithSnippetText": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/project/index.ts", + "line": 1, + "offset": 15 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 3, + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 8 + }, + "end": { + "line": 1, + "offset": 15 + } + }, + "entries": [ + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_ambient.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_ambient.js new file mode 100644 index 00000000000..ea3043ffba9 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_ambient.js @@ -0,0 +1,5144 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/ambient.d.ts] +declare module 'ambient' { + export const ambient = 0; +} +a + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "esnext" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/ambient.d.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 99, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /ambient.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /ambient.d.ts Text-1 "declare module 'ambient' {\n export const ambient = 0;\n}\na" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + ambient.d.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/ambient.d.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/ambient.d.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /ambient.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /ambient.d.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /ambient.d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/ambient.d.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 4, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 1 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ambient", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "ambient", + "sourceDisplay": [ + { + "text": "ambient", + "kind": "text" + } + ], + "data": { + "exportName": "ambient", + "exportMapKey": "7 * ambient ambient", + "moduleSpecifier": "ambient", + "ambientModuleName": "ambient" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 1, + "offset": 1, + "endLine": 4, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /ambient.d.ts SVC-2-1 "a" + /lib.d.ts Text-1 lib.d.ts-Text + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 1, + "endLine": 2, + "endOffset": 1, + "insertString": "d" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 2, + "endLine": 2, + "endOffset": 2, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 3, + "endLine": 2, + "endOffset": 3, + "insertString": "c" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 4, + "endLine": 2, + "endOffset": 4, + "insertString": "l" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 5, + "endLine": 2, + "endOffset": 5, + "insertString": "a" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 6, + "endLine": 2, + "endOffset": 6, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 7, + "endLine": 2, + "endOffset": 7, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 8, + "endLine": 2, + "endOffset": 8, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 9, + "endLine": 2, + "endOffset": 9, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 10, + "endLine": 2, + "endOffset": 10, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 11, + "endLine": 2, + "endOffset": 11, + "insertString": "d" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 12, + "endLine": 2, + "endOffset": 12, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 13, + "endLine": 2, + "endOffset": 13, + "insertString": "l" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 14, + "endLine": 2, + "endOffset": 14, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 15, + "endLine": 2, + "endOffset": 15, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 16, + "endLine": 2, + "endOffset": 16, + "insertString": "'" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 17, + "endLine": 2, + "endOffset": 17, + "insertString": "a" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 18, + "endLine": 2, + "endOffset": 18, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 19, + "endLine": 2, + "endOffset": 19, + "insertString": "b" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 20, + "endLine": 2, + "endOffset": 20, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 21, + "endLine": 2, + "endOffset": 21, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 22, + "endLine": 2, + "endOffset": 22, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 23, + "endLine": 2, + "endOffset": 23, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 24, + "endLine": 2, + "endOffset": 24, + "insertString": "'" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 25, + "endLine": 2, + "endOffset": 25, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 34, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 26, + "endLine": 2, + "endOffset": 26, + "insertString": "{" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 35, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 2, + "offset": 27, + "endLine": 2, + "endOffset": 27, + "insertString": "\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 36, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 37, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 2, + "endLine": 3, + "endOffset": 2, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 38, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 3, + "endLine": 3, + "endOffset": 3, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 39, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 4, + "endLine": 3, + "endOffset": 4, + "insertString": "x" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 40, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 5, + "endLine": 3, + "endOffset": 5, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 41, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 6, + "endLine": 3, + "endOffset": 6, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 42, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 7, + "endLine": 3, + "endOffset": 7, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 43, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 8, + "endLine": 3, + "endOffset": 8, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 44, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 9, + "endLine": 3, + "endOffset": 9, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 45, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 10, + "endLine": 3, + "endOffset": 10, + "insertString": "c" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 46, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 11, + "endLine": 3, + "endOffset": 11, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 47, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 12, + "endLine": 3, + "endOffset": 12, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 48, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 13, + "endLine": 3, + "endOffset": 13, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 49, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 14, + "endLine": 3, + "endOffset": 14, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 50, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 15, + "endLine": 3, + "endOffset": 15, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 51, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 16, + "endLine": 3, + "endOffset": 16, + "insertString": "a" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 52, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 17, + "endLine": 3, + "endOffset": 17, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 53, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 18, + "endLine": 3, + "endOffset": 18, + "insertString": "b" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 54, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 19, + "endLine": 3, + "endOffset": 19, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 55, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 20, + "endLine": 3, + "endOffset": 20, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 56, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 21, + "endLine": 3, + "endOffset": 21, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 57, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 22, + "endLine": 3, + "endOffset": 22, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 58, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 23, + "endLine": 3, + "endOffset": 23, + "insertString": "2" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 59, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 24, + "endLine": 3, + "endOffset": 24, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 60, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 25, + "endLine": 3, + "endOffset": 25, + "insertString": "=" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 61, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 26, + "endLine": 3, + "endOffset": 26, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 62, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 27, + "endLine": 3, + "endOffset": 27, + "insertString": "0" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 63, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 28, + "endLine": 3, + "endOffset": 28, + "insertString": ";" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 64, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 29, + "endLine": 3, + "endOffset": 29, + "insertString": "\n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 65, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 4, + "offset": 1, + "endLine": 4, + "endOffset": 1, + "insertString": "}" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 66, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 66, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 67, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /ambient.d.ts SVC-2-60 "a\ndeclare module 'ambient' {\n export const ambient2 = 0;\n}" + /lib.d.ts Text-1 lib.d.ts-Text + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 1 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 67, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ambient2", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "ambient", + "sourceDisplay": [ + { + "text": "ambient", + "kind": "text" + } + ], + "data": { + "exportName": "ambient2", + "exportMapKey": "8 * ambient2 ambient", + "moduleSpecifier": "ambient", + "ambientModuleName": "ambient" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 68, + "type": "request", + "arguments": { + "file": "/ambient.d.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /ambient.d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 69, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 29, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 70, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 71, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 2, + "endLine": 3, + "endOffset": 2, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 72, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 3, + "endLine": 3, + "endOffset": 3, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 73, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 4, + "endLine": 3, + "endOffset": 4, + "insertString": "x" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 74, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 5, + "endLine": 3, + "endOffset": 5, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 75, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 6, + "endLine": 3, + "endOffset": 6, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 76, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 7, + "endLine": 3, + "endOffset": 7, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 77, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 8, + "endLine": 3, + "endOffset": 8, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 78, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 9, + "endLine": 3, + "endOffset": 9, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 79, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 10, + "endLine": 3, + "endOffset": 10, + "insertString": "c" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 80, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 11, + "endLine": 3, + "endOffset": 11, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 81, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 12, + "endLine": 3, + "endOffset": 12, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 82, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 13, + "endLine": 3, + "endOffset": 13, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 83, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 14, + "endLine": 3, + "endOffset": 14, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 84, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 15, + "endLine": 3, + "endOffset": 15, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 85, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 16, + "endLine": 3, + "endOffset": 16, + "insertString": "a" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 86, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 17, + "endLine": 3, + "endOffset": 17, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 87, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 18, + "endLine": 3, + "endOffset": 18, + "insertString": "b" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 88, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 19, + "endLine": 3, + "endOffset": 19, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 89, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 20, + "endLine": 3, + "endOffset": 20, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 90, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 21, + "endLine": 3, + "endOffset": 21, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 91, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 22, + "endLine": 3, + "endOffset": 22, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 92, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 23, + "endLine": 3, + "endOffset": 23, + "insertString": "3" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 93, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 24, + "endLine": 3, + "endOffset": 24, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 94, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 25, + "endLine": 3, + "endOffset": 25, + "insertString": "=" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 95, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 26, + "endLine": 3, + "endOffset": 26, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 96, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 3, + "offset": 27, + "endLine": 3, + "endOffset": 27, + "insertString": "0" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 97, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 97, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 98, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 4 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /ambient.d.ts SVC-2-88 "a\ndeclare module 'ambient' {\n export const ambient3 = 0\n}" + /lib.d.ts Text-1 lib.d.ts-Text + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 1 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 98, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ambient3", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "ambient", + "sourceDisplay": [ + { + "text": "ambient", + "kind": "text" + } + ], + "data": { + "exportName": "ambient3", + "exportMapKey": "8 * ambient3 ambient", + "moduleSpecifier": "ambient", + "ambientModuleName": "ambient" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 99, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 99, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 100, + "type": "request", + "arguments": { + "file": "/ambient.d.ts", + "line": 1, + "offset": 2 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 1 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 100, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ambient3", + "kind": "const", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "ambient", + "sourceDisplay": [ + { + "text": "ambient", + "kind": "text" + } + ], + "data": { + "exportName": "ambient3", + "exportMapKey": "8 * ambient3 ambient", + "moduleSpecifier": "ambient", + "ambientModuleName": "ambient" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js new file mode 100644 index 00000000000..889899df92e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js @@ -0,0 +1,3278 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a.js] + +readF + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/node/index.d.ts] +declare module 'fs' { + export function readFile(): void; +} +declare module 'util' { + export function promisify(): void; +} + +//// [/package.json] +{} + +//// [/tsconfig.json] +{ + "compilerOptions": { + "module": "esnext", + "allowJs": true, + "checkJs": true, + "typeRoots": [ + "node_modules/@types" + ] + }, + "include": ["**/*"], + "typeAcquisition": { + "enable": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/a.js", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 99, + "allowJs": true, + "checkJs": true, + "typeRoots": [ + "/node_modules/@types" + ], + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types 1 undefined Project: /tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@types 1 undefined Project: /tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.js Text-1 "\nreadF" + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by include pattern '**/*' in 'tsconfig.json' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by include pattern '**/*' in 'tsconfig.json' + a.js + Matched by include pattern '**/*' in 'tsconfig.json' + lib.d.ts + Matched by include pattern '**/*' in 'tsconfig.json' + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/a.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"esnext\",\n \"allowJs\": true,\n \"checkJs\": true,\n \"typeRoots\": [\n \"node_modules/@types\"\n ]\n },\n \"include\": [\"**/*\"],\n \"typeAcquisition\": {\n \"enable\": true\n }\n}" + /node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/a.js: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} +/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /a.js :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/a.js: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} +/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 2, + "offset": 6 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 6 + } + }, + "entries": [ + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 2, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 7, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 3, + "key": "m" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 9, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 3, + "endLine": 1, + "endOffset": 3, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 4, + "key": "p" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 4, + "endLine": 1, + "endOffset": 4, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 5, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 5, + "endLine": 1, + "endOffset": 5, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 6, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 15, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 6, + "endLine": 1, + "endOffset": 6, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 7, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 17, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 7, + "endLine": 1, + "endOffset": 7, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 8, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 19, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 8, + "endLine": 1, + "endOffset": 8, + "insertString": "{" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 9, + "key": "{" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 21, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 9, + "endLine": 1, + "endOffset": 9, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 10, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 23, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 10, + "endLine": 1, + "endOffset": 10, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 11, + "key": "p" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 25, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 11, + "endLine": 1, + "endOffset": 11, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 12, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 27, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 12, + "endLine": 1, + "endOffset": 12, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 13, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 29, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 13, + "endLine": 1, + "endOffset": 13, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 14, + "key": "m" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 31, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 14, + "endLine": 1, + "endOffset": 14, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 15, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 33, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 34, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 15, + "endLine": 1, + "endOffset": 15, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 35, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 16, + "key": "s" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 35, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 36, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 16, + "endLine": 1, + "endOffset": 16, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 37, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 17, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 37, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 38, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 17, + "endLine": 1, + "endOffset": 17, + "insertString": "f" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 39, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 18, + "key": "f" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 39, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 40, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 18, + "endLine": 1, + "endOffset": 18, + "insertString": "y" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 41, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 19, + "key": "y" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 41, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 42, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 19, + "endLine": 1, + "endOffset": 19, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 43, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 20, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 43, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 44, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 20, + "endLine": 1, + "endOffset": 20, + "insertString": "}" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 45, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 21, + "key": "}" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 45, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 46, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 21, + "endLine": 1, + "endOffset": 21, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 47, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 22, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 47, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 48, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 22, + "endLine": 1, + "endOffset": 22, + "insertString": "f" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 49, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 23, + "key": "f" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 49, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 50, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 23, + "endLine": 1, + "endOffset": 23, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 51, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 24, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 51, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 52, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 24, + "endLine": 1, + "endOffset": 24, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 53, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 25, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 53, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 54, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 25, + "endLine": 1, + "endOffset": 25, + "insertString": "m" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 55, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 26, + "key": "m" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 55, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 56, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 26, + "endLine": 1, + "endOffset": 26, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 57, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 27, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 57, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 58, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 27, + "endLine": 1, + "endOffset": 27, + "insertString": "'" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 59, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 28, + "key": "'" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 59, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 60, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 28, + "endLine": 1, + "endOffset": 28, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 61, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 29, + "key": "u" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 61, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 62, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 29, + "endLine": 1, + "endOffset": 29, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 63, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 30, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 63, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 64, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 30, + "endLine": 1, + "endOffset": 30, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 65, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 31, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 65, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 66, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 31, + "endLine": 1, + "endOffset": 31, + "insertString": "l" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 67, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 32, + "key": "l" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 67, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 68, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 32, + "endLine": 1, + "endOffset": 32, + "insertString": "'" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 69, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 33, + "key": "'" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 69, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 70, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 33, + "endLine": 1, + "endOffset": 33, + "insertString": ";" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 71, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 34, + "key": ";" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 71, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 72, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 72, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 73, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 2, + "offset": 6 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.js SVC-2-34 "import { promisify } from 'util';\nreadF" + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 1 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 73, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 6 + } + }, + "entries": [ + { + "name": "promisify", + "kind": "alias", + "kindModifiers": "export,declare", + "sortText": "11" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "readFile", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "fs", + "sourceDisplay": [ + { + "text": "fs", + "kind": "text" + } + ], + "data": { + "exportName": "readFile", + "exportMapKey": "8 * readFile fs", + "moduleSpecifier": "fs", + "ambientModuleName": "fs" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 74, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 1, + "endLine": 2, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 75, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 75, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 76, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 1, + "offset": 6 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.js SVC-2-35 "readF" + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 76, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 6 + } + }, + "entries": [ + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js new file mode 100644 index 00000000000..485a49ee9c2 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js @@ -0,0 +1,1653 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] + + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "esnext" } } + +//// [/undefined.ts] +export = undefined; + +//// [/undefinedAlias.ts] +const x = undefined; +export = x; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/undefined.ts", + "/undefinedAlias.ts" + ], + "options": { + "module": 99, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /undefined.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /undefinedAlias.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /index.ts Text-1 "" + /lib.d.ts Text-1 lib.d.ts-Text + /undefined.ts Text-1 "export = undefined;" + /undefinedAlias.ts Text-1 "const x = undefined;\nexport = x;" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + undefined.ts + Matched by default include pattern '**/*' + undefinedAlias.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\" } }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} +/undefined.ts: *new* + {"pollingInterval":500} +/undefinedAlias.ts: *new* + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/undefined.ts: + {"pollingInterval":500} +/undefinedAlias.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "x", + "kind": "const", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/undefinedAlias", + "data": { + "exportName": "export=", + "exportMapKey": "1 * x ", + "fileName": "/undefinedAlias.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/index.ts", + "line": 1, + "offset": 1 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 1 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 5, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "x", + "kind": "const", + "kindModifiers": "", + "sortText": "16", + "hasAction": true, + "source": "/undefinedAlias", + "data": { + "exportName": "export=", + "exportMapKey": "1 * x ", + "fileName": "/undefinedAlias.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js new file mode 100644 index 00000000000..d761486092f --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js @@ -0,0 +1,839 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a.js] + +readF + +//// [/jsconfig.json] +{ + "compilerOptions": { + "module": "commonjs", + }, +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/node/index.d.ts] +declare module 'fs' { + export function readFile(): void; +} +declare module 'util' { + export function promisify(): void; +} + +//// [/package.json] +{ "mod" } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/jsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /jsconfig.json :: Config file name: /jsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /jsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { + "rootNames": [ + "/a.js", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "configFilePath": "/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a.js Text-1 "\nreadF" + /lib.d.ts Text-1 lib.d.ts-Text + /node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + a.js + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/jsconfig.json", + "configFile": "/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /jsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n },\n}" + /node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + jsconfig.json + Root file specified for compilation + node_modules/@types/node/index.d.ts + Entry point for implicit type library 'node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /jsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/a.js: *new* + {"pollingInterval":500} +/jsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /a.js :: Config file name: /jsconfig.json +Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /jsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /jsconfig.json +After Request +watchedFiles:: +/jsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/node/index.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} + +watchedFiles *deleted*:: +/a.js: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/a.js", + "line": 2, + "offset": 6 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 1 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 6 + } + }, + "entries": [ + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "readFile", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "fs", + "sourceDisplay": [ + { + "text": "fs", + "kind": "text" + } + ], + "data": { + "exportName": "readFile", + "exportMapKey": "8 * readFile fs", + "moduleSpecifier": "fs", + "ambientModuleName": "fs" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js new file mode 100644 index 00000000000..4279ad1cc54 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js @@ -0,0 +1,4349 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a.ts] +import 'react'; +declare module 'react' { + export function useBlah(): void; +} +0; +use + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/@types/react/index.d.ts] +export function useState(): void; + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "esnext" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/a.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "module": 99, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" + /a.ts Text-1 "import 'react';\ndeclare module 'react' {\n export function useBlah(): void; \n}\n0;\nuse" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + node_modules/@types/react/index.d.ts + Imported via 'react' from file 'a.ts' + Entry point for implicit type library 'react' + a.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\" } }" + /node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + node_modules/@types/react/index.d.ts + Entry point for implicit type library 'react' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/a.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/@types/react/index.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /a.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/node_modules/@types/react/index.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/a.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 6, + "offset": 4 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 6, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "useBlah", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useBlah", + "exportMapKey": "7 * useBlah ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "useState", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useState", + "exportMapKey": "8 * useState ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 6, + "offset": 4 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 5, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 6, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "useBlah", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useBlah", + "exportMapKey": "7 * useBlah ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "useState", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useState", + "exportMapKey": "8 * useState ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 37, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 1, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 2, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 9, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 2, + "endLine": 3, + "endOffset": 2, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 3, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 11, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 3, + "endLine": 3, + "endOffset": 3, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 4, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 4, + "endLine": 3, + "endOffset": 4, + "insertString": "x" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 5, + "key": "x" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 15, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 5, + "endLine": 3, + "endOffset": 5, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 6, + "key": "p" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 17, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 6, + "endLine": 3, + "endOffset": 6, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 7, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 19, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 7, + "endLine": 3, + "endOffset": 7, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 8, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 21, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 8, + "endLine": 3, + "endOffset": 8, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 9, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 23, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 9, + "endLine": 3, + "endOffset": 9, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 10, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 25, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 10, + "endLine": 3, + "endOffset": 10, + "insertString": "f" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 11, + "key": "f" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 27, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 11, + "endLine": 3, + "endOffset": 11, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 12, + "key": "u" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 29, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 12, + "endLine": 3, + "endOffset": 12, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 13, + "key": "n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 31, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 13, + "endLine": 3, + "endOffset": 13, + "insertString": "c" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 14, + "key": "c" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 33, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 34, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 14, + "endLine": 3, + "endOffset": 14, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 35, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 15, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 35, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 36, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 15, + "endLine": 3, + "endOffset": 15, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 37, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 16, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 37, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 38, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 16, + "endLine": 3, + "endOffset": 16, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 39, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 17, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 39, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 40, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 17, + "endLine": 3, + "endOffset": 17, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 41, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 18, + "key": "n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 41, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 42, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 18, + "endLine": 3, + "endOffset": 18, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 43, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 19, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 43, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 44, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 19, + "endLine": 3, + "endOffset": 19, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 45, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 20, + "key": "u" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 45, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 46, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 20, + "endLine": 3, + "endOffset": 20, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 47, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 21, + "key": "s" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 47, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 48, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 21, + "endLine": 3, + "endOffset": 21, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 49, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 22, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 49, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 50, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 22, + "endLine": 3, + "endOffset": 22, + "insertString": "Y" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 51, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 23, + "key": "Y" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 51, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 52, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 23, + "endLine": 3, + "endOffset": 23, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 53, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 24, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 53, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 54, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 24, + "endLine": 3, + "endOffset": 24, + "insertString": "s" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 55, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 25, + "key": "s" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 55, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 56, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 25, + "endLine": 3, + "endOffset": 25, + "insertString": "(" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 57, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 26, + "key": "(" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 57, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 58, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 26, + "endLine": 3, + "endOffset": 26, + "insertString": ")" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 59, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 27, + "key": ")" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 59, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 60, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 27, + "endLine": 3, + "endOffset": 27, + "insertString": ":" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 61, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 28, + "key": ":" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 61, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 62, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 28, + "endLine": 3, + "endOffset": 28, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 63, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 29, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 63, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 64, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 29, + "endLine": 3, + "endOffset": 29, + "insertString": "t" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 65, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 30, + "key": "t" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 65, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 66, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 30, + "endLine": 3, + "endOffset": 30, + "insertString": "r" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 67, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 31, + "key": "r" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 67, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 68, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 31, + "endLine": 3, + "endOffset": 31, + "insertString": "u" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 69, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 32, + "key": "u" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 69, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 70, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 32, + "endLine": 3, + "endOffset": 32, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 71, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 3, + "offset": 33, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 71, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 72, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 72, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 73, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 6, + "offset": 4 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" + /a.ts SVC-2-33 "import 'react';\ndeclare module 'react' {\n export function useYes(): true\n}\n0;\nuse" + /lib.d.ts Text-1 lib.d.ts-Text + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 73, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 6, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "useState", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useState", + "exportMapKey": "8 * useState ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "useYes", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useYes", + "exportMapKey": "6 * useYes ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 74, + "type": "request", + "arguments": { + "preferences": { + "includeCompletionsForModuleExports": true, + "includeInsertTextCompletions": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 74, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 75, + "type": "request", + "arguments": { + "file": "/a.ts", + "line": 6, + "offset": 4 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 2 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is incomplete +Info seq [hh:mm:ss:mss] collectAutoImports: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 75, + "success": true, + "body": { + "flags": 1, + "isGlobalCompletion": true, + "isMemberCompletion": false, + "isNewIdentifierLocation": false, + "optionalReplacementSpan": { + "start": { + "line": 6, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 4 + } + }, + "entries": [ + { + "name": "abstract", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "any", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "as", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "asserts", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "async", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "await", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "bigint", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "boolean", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "break", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "case", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "catch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "class", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "const", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "continue", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "debugger", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "declare", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "default", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "delete", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "do", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "else", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "enum", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "export", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "extends", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "false", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "finally", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "for", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "function", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "globalThis", + "kind": "module", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "if", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "implements", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "import", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "in", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "infer", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "instanceof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "interface", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "keyof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "let", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "module", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "namespace", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "never", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "new", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "null", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "number", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "object", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "package", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "readonly", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "return", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "satisfies", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "string", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "super", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "switch", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "symbol", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "this", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "throw", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "true", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "try", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "type", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "typeof", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "undefined", + "kind": "var", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unique", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "unknown", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "var", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "void", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "while", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "with", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "yield", + "kind": "keyword", + "kindModifiers": "", + "sortText": "15" + }, + { + "name": "useState", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useState", + "exportMapKey": "8 * useState ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "useYes", + "kind": "function", + "kindModifiers": "export,declare", + "sortText": "16", + "hasAction": true, + "source": "/node_modules/@types/react/index", + "data": { + "exportName": "useYes", + "exportMapKey": "6 * useYes ", + "fileName": "/node_modules/@types/react/index.d.ts" + } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js new file mode 100644 index 00000000000..44ae7b6e1f0 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js @@ -0,0 +1,1741 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a/index.ts] +namespace NS { + export function FA() { + FB(); + } +} + +interface I { + FA(); +} + +const ia: I = { + FA() { }, + FB() { }, + FC() { }, + }; + +//// [/a/tsconfig.json] +{ + "extends": "../tsconfig.settings.json", + "references": [ + { "path": "../b" }, + { "path": "../c" }, + ], + "files": [ + "index.ts", + ], +} + +//// [/b/index.ts] +namespace NS { + export function FB() {} +} + +interface I { + FB(); +} + +const ib: I = { FB() {} }; + +//// [/b/tsconfig.json] +{ + "extends": "../tsconfig.settings.json", + "files": [ + "index.ts", + ], +} + +//// [/c/index.ts] +namespace NS { + export function FC() {} +} + +interface I { + FC(); +} + +const ic: I = { FC() {} }; + +//// [/c/tsconfig.json] +{ + "extends": "../tsconfig.settings.json", + "files": [ + "index.ts", + ], +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "a" }, + ], + "files": [] +} + +//// [/tsconfig.settings.json] +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": "none", + "emitDeclarationOnly": true, + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/index.ts :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { + "rootNames": [ + "/a/index.ts" + ], + "options": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": 0, + "emitDeclarationOnly": true, + "configFilePath": "/a/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/b", + "originalPath": "../b" + }, + { + "path": "/c", + "originalPath": "../c" + } + ] +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.settings.json 2000 undefined Config: /a/tsconfig.json WatchType: Extended config file +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /b/tsconfig.json : { + "rootNames": [ + "/b/index.ts" + ], + "options": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": 0, + "emitDeclarationOnly": true, + "configFilePath": "/b/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /c/tsconfig.json : { + "rootNames": [ + "/c/index.ts" + ], + "options": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": 0, + "emitDeclarationOnly": true, + "configFilePath": "/c/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/index.ts Text-1 "namespace NS {\n export function FB() {}\n}\n\ninterface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" + /c/index.ts Text-1 "namespace NS {\n export function FC() {}\n}\n\ninterface I {\n FC();\n}\n\nconst ic: I = { FC() {} };" + /a/index.ts SVC-1-0 "namespace NS {\n export function FA() {\n FB();\n }\n}\n\ninterface I {\n FA();\n}\n\nconst ia: I = {\n FA() { },\n FB() { },\n FC() { },\n };" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../b/index.ts + Source from referenced project '../b/tsconfig.json' included because '--module' is specified as 'none' + ../c/index.ts + Source from referenced project '../c/tsconfig.json' included because '--module' is specified as 'none' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/index.ts", + "configFile": "/a/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) InitialLoadPending + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +After Request +watchedFiles:: +/a/tsconfig.json: *new* + {"pollingInterval":2000} +/b/index.ts: *new* + {"pollingInterval":500} +/b/tsconfig.json: *new* + {"pollingInterval":2000} +/c/index.ts: *new* + {"pollingInterval":500} +/c/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} +/tsconfig.settings.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 2, + "offset": 21 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/index.ts position 35 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Loading configured project /tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating project possibly referencing default composite project /a/tsconfig.json of open file /a/index.ts" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [], + "options": { + "composite": true, + "configFilePath": "/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/a", + "originalPath": "a" + } + ] +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/index.d.ts 2000 undefined Project: /a/tsconfig.json WatchType: Missing generated file +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "function", + "name": "function NS.FA(): void", + "textSpan": { + "start": 35, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NS", + "kind": "moduleName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FA", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 19, + "length": 42 + } + }, + "references": [ + { + "textSpan": { + "start": 35, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 19, + "length": 42 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: *new* + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/index.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 7, + "offset": 11 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/index.ts position 75 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /b/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/b/tsconfig.json", + "reason": "Creating project for original file: /b/index.ts" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /b/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/index.ts Text-1 "namespace NS {\n export function FB() {}\n}\n\ninterface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/b/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /c/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/c/tsconfig.json", + "reason": "Creating project for original file: /c/index.ts" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /c/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /c/index.ts Text-1 "namespace NS {\n export function FC() {}\n}\n\ninterface I {\n FC();\n}\n\nconst ic: I = { FC() {} };" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/c/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 56 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 56 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 56, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 46, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 56, + "length": 1 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 46, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 83, + "length": 1 + }, + "fileName": "/b/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 56, + "length": 1 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 46, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 83, + "length": 1 + }, + "fileName": "/c/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 75, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 65, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 102, + "length": 1 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 8, + "offset": 5 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/index.ts position 83 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 3, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "method", + "name": "(method) I.FA(): any", + "textSpan": { + "start": 83, + "length": 2 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FA", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 83, + "length": 5 + } + }, + "references": [ + { + "textSpan": { + "start": 83, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 83, + "length": 5 + }, + "isWriteAccess": false, + "isDefinition": true + }, + { + "textSpan": { + "start": 112, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 112, + "length": 8 + }, + "isWriteAccess": true, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/b/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /b/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/b/tsconfig.json +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/b/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/b/index.ts", + "line": 2, + "offset": 21 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 35 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 35 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/index.d.ts 2000 undefined Project: /b/tsconfig.json WatchType: Missing generated file +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 5, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "function", + "name": "function NS.FB(): void", + "textSpan": { + "start": 35, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NS", + "kind": "moduleName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FB", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 19, + "length": 23 + } + }, + "references": [ + { + "textSpan": { + "start": 35, + "length": 2 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 19, + "length": 23 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 50, + "length": 2 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/index.d.ts: *new* + {"pollingInterval":2000} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/b/index.ts", + "line": 5, + "offset": 11 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 56 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 56 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 56 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 6, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 56, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 46, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 56, + "length": 1 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 46, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 83, + "length": 1 + }, + "fileName": "/b/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 56, + "length": 1 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 46, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 83, + "length": 1 + }, + "fileName": "/c/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 75, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 65, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 102, + "length": 1 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/b/index.ts", + "line": 6, + "offset": 5 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 64 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 64 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 7, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "method", + "name": "(method) I.FB(): any", + "textSpan": { + "start": 64, + "length": 2 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FB", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 64, + "length": 5 + } + }, + "references": [ + { + "textSpan": { + "start": 64, + "length": 2 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 64, + "length": 5 + }, + "isWriteAccess": false, + "isDefinition": true + }, + { + "textSpan": { + "start": 89, + "length": 2 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 89, + "length": 7 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 126, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 126, + "length": 8 + }, + "isWriteAccess": true, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/c/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /c/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /b/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/b/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /c/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/c/tsconfig.json +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/index.d.ts: + {"pollingInterval":2000} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/c/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/c/index.ts", + "line": 2, + "offset": 21 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 35 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 35 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/index.d.ts 2000 undefined Project: /c/tsconfig.json WatchType: Missing generated file +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 9, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "function", + "name": "function NS.FC(): void", + "textSpan": { + "start": 35, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NS", + "kind": "moduleName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FC", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 19, + "length": 23 + } + }, + "references": [ + { + "textSpan": { + "start": 35, + "length": 2 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 19, + "length": 23 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/b/index.d.ts: + {"pollingInterval":2000} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.d.ts: *new* + {"pollingInterval":2000} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/c/index.ts", + "line": 5, + "offset": 11 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 56 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 56 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 56 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 10, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 56, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 46, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 56, + "length": 1 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 46, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 83, + "length": 1 + }, + "fileName": "/c/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + }, + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 56, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 46, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 56, + "length": 1 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 46, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 83, + "length": 1 + }, + "fileName": "/b/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 75, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 65, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 102, + "length": 1 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/c/index.ts", + "line": 6, + "offset": 5 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 64 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 64 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 11, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "method", + "name": "(method) I.FC(): any", + "textSpan": { + "start": 64, + "length": 2 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FC", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 64, + "length": 5 + } + }, + "references": [ + { + "textSpan": { + "start": 64, + "length": 2 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 64, + "length": 5 + }, + "isWriteAccess": false, + "isDefinition": true + }, + { + "textSpan": { + "start": 89, + "length": 2 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 89, + "length": 7 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 140, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 140, + "length": 8 + }, + "isWriteAccess": true, + "isDefinition": false + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossModuleProjects.js b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossModuleProjects.js new file mode 100644 index 00000000000..f9cfcb23de6 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossModuleProjects.js @@ -0,0 +1,2817 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a/index.ts] +import { NS } from "../b"; +import { I } from "../c"; + +declare module "../b" { + export namespace NS { + export function FA(); + } +} + +declare module "../c" { + export interface I { + FA(); + } +} + +const ia: I = { + FA: NS.FA, + FC() { }, +}; + +//// [/a/tsconfig.json] +{ + "extends": "../tsconfig.settings.json", + "references": [ + { "path": "../b" }, + { "path": "../c" }, + ], + "files": [ + "index.ts", + ], +} + +//// [/a2/index.ts] +import { NS } from "../b"; +import { I } from "../c"; + +declare module "../b" { + export namespace NS { + export function FA(); + } +} + +declare module "../c" { + export interface I { + FA(); + } +} + +const ia: I = { + FA: NS.FA, + FC() { }, +}; + +//// [/a2/tsconfig.json] +{ + "extends": "../tsconfig.settings.json", + "references": [ + { "path": "../b" }, + { "path": "../c" }, + ], + "files": [ + "index.ts", + ], +} + +//// [/b/index.ts] +export namespace NS { + export function FB() {} +} + +export interface I { + FB(); +} + +const ib: I = { FB() {} }; + +//// [/b/other.ts] +export const Other = 1; + +//// [/b/tsconfig.json] +{ + "extends": "../tsconfig.settings.json", + "files": [ + "index.ts", + "other.ts", + ], +} + +//// [/c/index.ts] +export namespace NS { + export function FC() {} +} + +export interface I { + FC(); +} + +const ic: I = { FC() {} }; + +//// [/c/tsconfig.json] +{ + "extends": "../tsconfig.settings.json", + "files": [ + "index.ts", + ], +} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + }, + "references": [ + { "path": "a" }, + { "path": "a2" }, + ], + "files": [] +} + +//// [/tsconfig.settings.json] +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": "CommonJS", + "emitDeclarationOnly": true, + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/index.ts :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { + "rootNames": [ + "/a/index.ts" + ], + "options": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": 1, + "emitDeclarationOnly": true, + "configFilePath": "/a/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/b", + "originalPath": "../b" + }, + { + "path": "/c", + "originalPath": "../c" + } + ] +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.settings.json 2000 undefined Config: /a/tsconfig.json WatchType: Extended config file +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /b/tsconfig.json : { + "rootNames": [ + "/b/index.ts", + "/b/other.ts" + ], + "options": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": 1, + "emitDeclarationOnly": true, + "configFilePath": "/b/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /c/tsconfig.json : { + "rootNames": [ + "/c/index.ts" + ], + "options": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": 1, + "emitDeclarationOnly": true, + "configFilePath": "/c/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/index.ts Text-1 "export namespace NS {\n export function FB() {}\n}\n\nexport interface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" + /c/index.ts Text-1 "export namespace NS {\n export function FC() {}\n}\n\nexport interface I {\n FC();\n}\n\nconst ic: I = { FC() {} };" + /a/index.ts SVC-1-0 "import { NS } from \"../b\";\nimport { I } from \"../c\";\n\ndeclare module \"../b\" {\n export namespace NS {\n export function FA();\n }\n}\n\ndeclare module \"../c\" {\n export interface I {\n FA();\n }\n}\n\nconst ia: I = {\n FA: NS.FA,\n FC() { },\n};" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../b/index.ts + Imported via "../b" from file 'index.ts' + ../c/index.ts + Imported via "../c" from file 'index.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/index.ts", + "configFile": "/a/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) InitialLoadPending + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +After Request +watchedFiles:: +/a/tsconfig.json: *new* + {"pollingInterval":2000} +/b/index.ts: *new* + {"pollingInterval":500} +/b/tsconfig.json: *new* + {"pollingInterval":2000} +/c/index.ts: *new* + {"pollingInterval":500} +/c/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} +/tsconfig.settings.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 6, + "offset": 25 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/index.ts position 128 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Loading configured project /tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating project possibly referencing default composite project /a/tsconfig.json of open file /a/index.ts" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [], + "options": { + "composite": true, + "configFilePath": "/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/a", + "originalPath": "a" + }, + { + "path": "/a2", + "originalPath": "a2" + } + ] +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Config: /a2/tsconfig.json : { + "rootNames": [ + "/a2/index.ts" + ], + "options": { + "composite": true, + "skipLibCheck": true, + "declarationMap": true, + "module": 1, + "emitDeclarationOnly": true, + "configFilePath": "/a2/tsconfig.json" + }, + "projectReferences": [ + { + "path": "/b", + "originalPath": "../b" + }, + { + "path": "/c", + "originalPath": "../c" + } + ] +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a2/tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/index.d.ts 2000 undefined Project: /a/tsconfig.json WatchType: Missing generated file +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "function", + "name": "function NS.FA(): any", + "textSpan": { + "start": 128, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NS", + "kind": "moduleName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FA", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 112, + "length": 21 + } + }, + "references": [ + { + "textSpan": { + "start": 128, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 112, + "length": 21 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 242, + "length": 2 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: *new* + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/tsconfig.json: *new* + {"pollingInterval":2000} +/b/index.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 11, + "offset": 22 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/index.ts position 188 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /c/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/c/tsconfig.json", + "reason": "Creating project for original file: /c/index.ts" + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /c/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /c/index.ts Text-1 "export namespace NS {\n export function FC() {}\n}\n\nexport interface I {\n FC();\n}\n\nconst ic: I = { FC() {} };" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/c/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 70 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a2/tsconfig.json", + "reason": "Creating project referenced by : /tsconfig.json as it references project /c/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a2/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a2/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/a2/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/index.ts Text-1 "export namespace NS {\n export function FB() {}\n}\n\nexport interface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" + /c/index.ts Text-1 "export namespace NS {\n export function FC() {}\n}\n\nexport interface I {\n FC();\n}\n\nconst ic: I = { FC() {} };" + /a2/index.ts Text-1 "import { NS } from \"../b\";\nimport { I } from \"../c\";\n\ndeclare module \"../b\" {\n export namespace NS {\n export function FA();\n }\n}\n\ndeclare module \"../c\" {\n export interface I {\n FA();\n }\n}\n\nconst ia: I = {\n FA: NS.FA,\n FC() { },\n};" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../b/index.ts + Imported via "../b" from file 'index.ts' + ../c/index.ts + Imported via "../c" from file 'index.ts' + index.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a2/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 70 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 70, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 53, + "length": 32 + } + }, + "references": [ + { + "textSpan": { + "start": 70, + "length": 1 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 53, + "length": 32 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 188, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 171, + "length": 40 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 97, + "length": 1 + }, + "fileName": "/c/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 188, + "length": 1 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 171, + "length": 40 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + }, + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "alias", + "name": "(alias) interface I\nimport I", + "textSpan": { + "start": 36, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 27, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 36, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 27, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 225, + "length": 1 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + }, + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a2/index.ts", + "kind": "alias", + "name": "(alias) interface I\nimport I", + "textSpan": { + "start": 36, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 27, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 36, + "length": 1 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 27, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 225, + "length": 1 + }, + "fileName": "/a2/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/index.ts: *new* + {"pollingInterval":500} +/a2/tsconfig.json: + {"pollingInterval":2000} +/b/index.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/a/index.ts", + "line": 12, + "offset": 9 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/index.ts position 200 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 3, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "method", + "name": "(method) I.FA(): any", + "textSpan": { + "start": 200, + "length": 2 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FA", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 200, + "length": 5 + } + }, + "references": [ + { + "textSpan": { + "start": 200, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 200, + "length": 5 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 235, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 235, + "length": 9 + }, + "isWriteAccess": true, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/a2/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a2/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /a2 +Info seq [hh:mm:ss:mss] For info: /a2/index.ts :: Config file name: /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /a2 +Info seq [hh:mm:ss:mss] For info: /a2/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/a2/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /a2/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a2/tsconfig.json +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/tsconfig.json: + {"pollingInterval":2000} +/b/index.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/a2/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/a2/index.ts", + "line": 6, + "offset": 25 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a2/index.ts position 128 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a2/index.d.ts 2000 undefined Project: /a2/tsconfig.json WatchType: Missing generated file +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 5, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a2/index.ts", + "kind": "function", + "name": "function NS.FA(): any", + "textSpan": { + "start": 128, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NS", + "kind": "moduleName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FA", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 112, + "length": 21 + } + }, + "references": [ + { + "textSpan": { + "start": 128, + "length": 2 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 112, + "length": 21 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 242, + "length": 2 + }, + "fileName": "/a2/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/index.d.ts: *new* + {"pollingInterval":2000} +/a2/tsconfig.json: + {"pollingInterval":2000} +/b/index.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/a2/index.ts", + "line": 11, + "offset": 22 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a2/index.ts position 188 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 70 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 70 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 6, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 70, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 53, + "length": 32 + } + }, + "references": [ + { + "textSpan": { + "start": 70, + "length": 1 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 53, + "length": 32 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 188, + "length": 1 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 171, + "length": 40 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 97, + "length": 1 + }, + "fileName": "/c/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 188, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 171, + "length": 40 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + }, + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a2/index.ts", + "kind": "alias", + "name": "(alias) interface I\nimport I", + "textSpan": { + "start": 36, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 27, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 36, + "length": 1 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 27, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 225, + "length": 1 + }, + "fileName": "/a2/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + }, + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "alias", + "name": "(alias) interface I\nimport I", + "textSpan": { + "start": 36, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 27, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 36, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 27, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 225, + "length": 1 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/a2/index.ts", + "line": 12, + "offset": 9 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a2/index.ts position 200 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 7, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a2/index.ts", + "kind": "method", + "name": "(method) I.FA(): any", + "textSpan": { + "start": 200, + "length": 2 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FA", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 200, + "length": 5 + } + }, + "references": [ + { + "textSpan": { + "start": 200, + "length": 2 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 200, + "length": 5 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 235, + "length": 2 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 235, + "length": 9 + }, + "isWriteAccess": true, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/b/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /b/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /b/tsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/b/tsconfig.json", + "reason": "Creating possible configured project for /b/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/other.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /b/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/index.ts Text-1 "export namespace NS {\n export function FB() {}\n}\n\nexport interface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" + /b/other.ts Text-1 "export const Other = 1;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Part of 'files' list in tsconfig.json + other.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/b/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/b/index.ts", + "configFile": "/b/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/a2/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /a2/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a2/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /b/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/a2/tsconfig.json,/b/tsconfig.json +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/index.d.ts: + {"pollingInterval":2000} +/a2/tsconfig.json: + {"pollingInterval":2000} +/b/other.ts: *new* + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/b/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/b/index.ts", + "line": 2, + "offset": 21 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 42 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 42 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 42 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/index.d.ts 2000 undefined Project: /b/tsconfig.json WatchType: Missing generated file +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 9, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "function", + "name": "function NS.FB(): void", + "textSpan": { + "start": 42, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NS", + "kind": "moduleName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FB", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 26, + "length": 23 + } + }, + "references": [ + { + "textSpan": { + "start": 42, + "length": 2 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 26, + "length": 23 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/index.d.ts: + {"pollingInterval":2000} +/a2/tsconfig.json: + {"pollingInterval":2000} +/b/index.d.ts: *new* + {"pollingInterval":2000} +/b/other.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.ts: + {"pollingInterval":500} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/b/index.ts", + "line": 5, + "offset": 18 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 70 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 70 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 70 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 10, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 70, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 53, + "length": 32 + } + }, + "references": [ + { + "textSpan": { + "start": 70, + "length": 1 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 53, + "length": 32 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 97, + "length": 1 + }, + "fileName": "/b/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/b/index.ts", + "line": 6, + "offset": 5 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 78 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 78 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/index.ts position 78 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/index.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 11, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/b/index.ts", + "kind": "method", + "name": "(method) I.FB(): any", + "textSpan": { + "start": 78, + "length": 2 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FB", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 78, + "length": 5 + } + }, + "references": [ + { + "textSpan": { + "start": 78, + "length": 2 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 78, + "length": 5 + }, + "isWriteAccess": false, + "isDefinition": true + }, + { + "textSpan": { + "start": 103, + "length": 2 + }, + "fileName": "/b/index.ts", + "contextSpan": { + "start": 103, + "length": 7 + }, + "isWriteAccess": true, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/c/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /c/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (0) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/c/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/a2/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /a2/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a2/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /b/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/a2/tsconfig.json,/b/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /c/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/c/tsconfig.json,/a2/tsconfig.json +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/index.d.ts: + {"pollingInterval":2000} +/a2/tsconfig.json: + {"pollingInterval":2000} +/b/index.d.ts: + {"pollingInterval":2000} +/b/other.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/c/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/c/index.ts", + "line": 2, + "offset": 21 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 42 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 42 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 42 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /c/index.d.ts 2000 undefined Project: /c/tsconfig.json WatchType: Missing generated file +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 13, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "function", + "name": "function NS.FC(): void", + "textSpan": { + "start": 42, + "length": 2 + }, + "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "NS", + "kind": "moduleName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FC", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 26, + "length": 23 + } + }, + "references": [ + { + "textSpan": { + "start": 42, + "length": 2 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 26, + "length": 23 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + } + ] + } +After Request +watchedFiles:: +/a/index.d.ts: + {"pollingInterval":2000} +/a/tsconfig.json: + {"pollingInterval":2000} +/a2/index.d.ts: + {"pollingInterval":2000} +/a2/tsconfig.json: + {"pollingInterval":2000} +/b/index.d.ts: + {"pollingInterval":2000} +/b/other.ts: + {"pollingInterval":500} +/b/tsconfig.json: + {"pollingInterval":2000} +/c/index.d.ts: *new* + {"pollingInterval":2000} +/c/tsconfig.json: + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} +/tsconfig.settings.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/c/index.ts", + "line": 5, + "offset": 18 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 70 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 70 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 70 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 14, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "interface", + "name": "interface I", + "textSpan": { + "start": 70, + "length": 1 + }, + "displayParts": [ + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + } + ], + "contextSpan": { + "start": 53, + "length": 32 + } + }, + "references": [ + { + "textSpan": { + "start": 70, + "length": 1 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 53, + "length": 32 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 97, + "length": 1 + }, + "fileName": "/c/index.ts", + "isWriteAccess": false, + "isDefinition": false + }, + { + "textSpan": { + "start": 188, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 171, + "length": 40 + }, + "isWriteAccess": true, + "isDefinition": true + }, + { + "textSpan": { + "start": 188, + "length": 1 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 171, + "length": 40 + }, + "isWriteAccess": true, + "isDefinition": true + } + ] + }, + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/index.ts", + "kind": "alias", + "name": "(alias) interface I\nimport I", + "textSpan": { + "start": 36, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 27, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 36, + "length": 1 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 27, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 225, + "length": 1 + }, + "fileName": "/a/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + }, + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a2/index.ts", + "kind": "alias", + "name": "(alias) interface I\nimport I", + "textSpan": { + "start": 36, + "length": 1 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "alias", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "interface", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "import", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "aliasName" + } + ], + "contextSpan": { + "start": 27, + "length": 25 + } + }, + "references": [ + { + "textSpan": { + "start": 36, + "length": 1 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 27, + "length": 25 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 225, + "length": 1 + }, + "fileName": "/a2/index.ts", + "isWriteAccess": false, + "isDefinition": false + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/c/index.ts", + "line": 6, + "offset": 5 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 78 in project /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 78 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /c/index.ts position 78 in project /a2/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] Search path: /c +Info seq [hh:mm:ss:mss] For info: /c/index.ts :: Config file name: /c/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 15, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/c/index.ts", + "kind": "method", + "name": "(method) I.FC(): any", + "textSpan": { + "start": 78, + "length": 2 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "method", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "I", + "kind": "interfaceName" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "FC", + "kind": "methodName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "contextSpan": { + "start": 78, + "length": 5 + } + }, + "references": [ + { + "textSpan": { + "start": 78, + "length": 2 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 78, + "length": 5 + }, + "isWriteAccess": false, + "isDefinition": true + }, + { + "textSpan": { + "start": 103, + "length": 2 + }, + "fileName": "/c/index.ts", + "contextSpan": { + "start": 103, + "length": 7 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 250, + "length": 2 + }, + "fileName": "/a/index.ts", + "contextSpan": { + "start": 250, + "length": 8 + }, + "isWriteAccess": true, + "isDefinition": false + }, + { + "textSpan": { + "start": 250, + "length": 2 + }, + "fileName": "/a2/index.ts", + "contextSpan": { + "start": 250, + "length": 8 + }, + "isWriteAccess": true, + "isDefinition": false + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTag.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTag.js new file mode 100644 index 00000000000..5c8ae50abaa --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTag.js @@ -0,0 +1,256 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsdocCallbackTag.js] +/** + * @callback FooHandler - A kind of magic + * @param {string} eventName - So many words + * @param eventName2 {number | string} - Silence is golden + * @param eventName3 - Osterreich mos def + * @return {number} - DIVEKICK + */ +/** + * @type {FooHandler} callback + */ +var t; + +/** + * @callback FooHandler2 - What, another one? + * @param {string=} eventName - it keeps happening + * @param {string} [eventName2] - i WARNED you dog + */ +/** + * @type {FooHandler2} callback + */ +var t2; +t("!", 12, false); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsdocCallbackTag.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsdocCallbackTag.js SVC-1-0 "/**\n * @callback FooHandler - A kind of magic\n * @param {string} eventName - So many words\n * @param eventName2 {number | string} - Silence is golden\n * @param eventName3 - Osterreich mos def\n * @return {number} - DIVEKICK\n */\n/**\n * @type {FooHandler} callback\n */\nvar t;\n\n/**\n * @callback FooHandler2 - What, another one?\n * @param {string=} eventName - it keeps happening\n * @param {string} [eventName2] - i WARNED you dog\n */\n/**\n * @type {FooHandler2} callback\n */\nvar t2;\nt(\"!\", 12, false);" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsdocCallbackTag.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsdocCallbackTag.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", + "line": 11, + "offset": 6 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 1, + "success": true, + "body": { + "kind": "var", + "kindModifiers": "", + "start": { + "line": 11, + "offset": 5 + }, + "end": { + "line": 11, + "offset": 6 + }, + "displayString": "var t: FooHandler", + "documentation": "", + "tags": [ + { + "name": "type", + "text": "{FooHandler} callback" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", + "line": 21, + "offset": 7 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 2, + "success": true, + "body": { + "kind": "var", + "kindModifiers": "", + "start": { + "line": 21, + "offset": 5 + }, + "end": { + "line": 21, + "offset": 7 + }, + "displayString": "var t2: FooHandler2", + "documentation": "", + "tags": [ + { + "name": "type", + "text": "{FooHandler2} callback" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", + "line": 19, + "offset": 15 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 3, + "success": true, + "body": { + "kind": "type", + "kindModifiers": "", + "start": { + "line": 19, + "offset": 11 + }, + "end": { + "line": 19, + "offset": 22 + }, + "displayString": "type FooHandler2 = (eventName?: string | undefined, eventName2?: string) => any", + "documentation": "- What, another one?", + "tags": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", + "line": 9, + "offset": 16 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 4, + "success": true, + "body": { + "kind": "type", + "kindModifiers": "", + "start": { + "line": 9, + "offset": 11 + }, + "end": { + "line": 9, + "offset": 21 + }, + "displayString": "type FooHandler = (eventName: string, eventName2: number | string, eventName3: any) => number", + "documentation": "- A kind of magic", + "tags": [] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagNavigateTo.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagNavigateTo.js new file mode 100644 index 00000000000..a09dff619e1 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagNavigateTo.js @@ -0,0 +1,190 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsDocCallback.js] +/** + * @callback FooCallback + * @param {string} eventName - What even is the navigation bar? + */ +/** @type {FooCallback} */ +var t; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocCallback.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsDocCallback.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocCallback.js SVC-1-0 "/**\n * @callback FooCallback\n * @param {string} eventName - What even is the navigation bar?\n */\n/** @type {FooCallback} */\nvar t;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsDocCallback.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocCallback.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocCallback.js" + }, + "command": "navbar" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navbar", + "request_seq": 1, + "success": true, + "body": [ + { + "text": "", + "kind": "script", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 6, + "offset": 7 + } + } + ], + "childItems": [ + { + "text": "FooCallback", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 4 + }, + "end": { + "line": 4, + "offset": 2 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "t", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 6 + } + } + ], + "childItems": [], + "indent": 0 + } + ], + "indent": 0 + }, + { + "text": "FooCallback", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 4 + }, + "end": { + "line": 4, + "offset": 2 + } + } + ], + "childItems": [], + "indent": 1 + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagRename01.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagRename01.js new file mode 100644 index 00000000000..cf06eb59db3 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagRename01.js @@ -0,0 +1,208 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsDocCallback.js] + +/** + * @callback FooCallback + * @param {string} eventName - Rename should work + */ + +/** @type {FooCallback} */ +var t; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocCallback.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsDocCallback.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocCallback.js SVC-1-0 "\n/**\n * @callback FooCallback\n * @param {string} eventName - Rename should work\n */\n\n/** @type {FooCallback} */\nvar t;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsDocCallback.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocCallback.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocCallback.js", + "line": 3, + "offset": 14, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 2, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "FooCallback", + "fullDisplayName": "FooCallback", + "kind": "type", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 3, + "offset": 14 + }, + "end": { + "line": 3, + "offset": 25 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocCallback.js", + "locs": [ + { + "start": { + "line": 3, + "offset": 14 + }, + "end": { + "line": 3, + "offset": 25 + }, + "contextStart": { + "line": 3, + "offset": 4 + }, + "contextEnd": { + "line": 5, + "offset": 2 + } + }, + { + "start": { + "line": 7, + "offset": 12 + }, + "end": { + "line": 7, + "offset": 23 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocParamTagSpecialKeywords.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocParamTagSpecialKeywords.js new file mode 100644 index 00000000000..27b8c015e72 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocParamTagSpecialKeywords.js @@ -0,0 +1,282 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/test.js] +/** + * @param {string} type + */ +function test(type) { + type. +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/test.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/test.js SVC-1-0 "/**\n * @param {string} type\n */\nfunction test(type) {\n type.\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + test.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test.js", + "line": 5, + "offset": 10 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "test", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "type", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag.js new file mode 100644 index 00000000000..a5bd2311869 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag.js @@ -0,0 +1,3021 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] +/** @typedef {(string | number)} NumberLike */ + +/** + * @typedef Animal - think Giraffes + * @type {Object} + * @property {string} animalName + * @property {number} animalAge + */ + +/** + * @typedef {Object} Person + * @property {string} personName + * @property {number} personAge + */ + +/** + * @typedef {Object} + * @property {string} catName + * @property {number} catAge + */ +var Cat; + +/** @typedef {{ dogName: string, dogAge: number }} */ +var Dog; + +/** @type {NumberLike} */ +var numberLike; numberLike. + +/** @type {Person} */ +var p;p.; +p.personName.; +p.personAge.; + +/** @type {Animal} */ +var a;a.; +a.animalName.; +a.animalAge.; + +/** @type {Cat} */ +var c;c.; +c.catName.; +c.catAge.; + +/** @type {Dog} */ +var d;d.; +d.dogName.; +d.dogAge.; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsdocCompletion_typedef.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/** @typedef {(string | number)} NumberLike */\n\n/**\n * @typedef Animal - think Giraffes\n * @type {Object}\n * @property {string} animalName\n * @property {number} animalAge\n */\n\n/**\n * @typedef {Object} Person\n * @property {string} personName\n * @property {number} personAge\n */\n\n/**\n * @typedef {Object}\n * @property {string} catName\n * @property {number} catAge\n */\nvar Cat;\n\n/** @typedef {{ dogName: string, dogAge: number }} */\nvar Dog;\n\n/** @type {NumberLike} */\nvar numberLike; numberLike.\n\n/** @type {Person} */\nvar p;p.;\np.personName.;\np.personAge.;\n\n/** @type {Animal} */\nvar a;a.;\na.animalName.;\na.animalAge.;\n\n/** @type {Cat} */\nvar c;c.;\nc.catName.;\nc.catAge.;\n\n/** @type {Dog} */\nvar d;d.;\nd.dogName.;\nd.dogAge.;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsdocCompletion_typedef.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsdocCompletion_typedef.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 27, + "offset": 28 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 30, + "offset": 9 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "personAge", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "personName", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 31, + "offset": 14 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 6, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 7, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 32, + "offset": 13 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 8, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 9, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 35, + "offset": 9 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 10, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "animalAge", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "animalName", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 11, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 36, + "offset": 14 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 12, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 13, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 37, + "offset": 13 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 14, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 15, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 45, + "offset": 9 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 16, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "dogAge", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "dogName", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 17, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 46, + "offset": 11 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 18, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 19, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 47, + "offset": 10 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 20, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 21, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 40, + "offset": 9 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 22, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "catAge", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "catName", + "kind": "property", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 23, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 41, + "offset": 11 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 24, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 25, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 42, + "offset": 10 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 26, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Animal", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "animalName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "c", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Cat", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "catName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "d", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Dog", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "dogName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "numberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "p", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Person", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personAge", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "personName", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 34, + "offset": 12 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 27, + "success": true, + "body": { + "kind": "type", + "kindModifiers": "", + "start": { + "line": 34, + "offset": 12 + }, + "end": { + "line": 34, + "offset": 18 + }, + "displayString": "type Animal = {\n animalName: string;\n animalAge: number;\n}", + "documentation": "- think Giraffes", + "tags": [] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag1.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag1.js new file mode 100644 index 00000000000..133f959e5c3 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag1.js @@ -0,0 +1,305 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] +/** + * @typedef {Object} MyType + * @property {string} yes + */ +function foo() { } +/** + * @param {MyType} my + */ +function a(my) { + my.yes. +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsdocCompletion_typedef.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {Object} MyType\n * @property {string} yes\n */\nfunction foo() { }\n/**\n * @param {MyType} my\n */\nfunction a(my) {\n my.yes.\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsdocCompletion_typedef.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsdocCompletion_typedef.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 10, + "offset": 12 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "foo", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "my", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "MyType", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "yes", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag2.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag2.js new file mode 100644 index 00000000000..961e3115680 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag2.js @@ -0,0 +1,427 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] +/** + * @typedef {Object} A.B.MyType + * @property {string} yes + */ +function foo() {} +/** + * @param {A.B.MyType} my2 + */ +function a(my2) { + my2.yes. +} +/** + * @param {MyType} my2 + */ +function b(my2) { + my2.yes. +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsdocCompletion_typedef.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {Object} A.B.MyType\n * @property {string} yes\n */\nfunction foo() {}\n/**\n * @param {A.B.MyType} my2\n */\nfunction a(my2) {\n my2.yes.\n}\n/**\n * @param {MyType} my2\n */\nfunction b(my2) {\n my2.yes.\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsdocCompletion_typedef.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsdocCompletion_typedef.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 10, + "offset": 13 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "A", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "b", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "B", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "foo", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "my2", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "MyType", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "yes", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 16, + "offset": 13 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "a", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "A", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "b", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "B", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "foo", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "my2", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "MyType", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "yes", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagGoToDefinition.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagGoToDefinition.js new file mode 100644 index 00000000000..3288a859fe1 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagGoToDefinition.js @@ -0,0 +1,207 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] +/** + * @typedef {Object} Person + * @property {string} personName + * @property {number} personAge + */ + +/** + * @typedef {{ animalName: string, animalAge: number }} Animal + */ + +/** @type {Person} */ +var person; person.personName + +/** @type {Animal} */ +var animal; animal.animalName + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsdocCompletion_typedef.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {Object} Person\n * @property {string} personName\n * @property {number} personAge\n */\n\n/**\n * @typedef {{ animalName: string, animalAge: number }} Animal\n */\n\n/** @type {Person} */\nvar person; person.personName\n\n/** @type {Animal} */\nvar animal; animal.animalName" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsdocCompletion_typedef.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsdocCompletion_typedef.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 12, + "offset": 30 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 1, + "success": true, + "body": { + "definitions": [ + { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "start": { + "line": 3, + "offset": 23 + }, + "end": { + "line": 3, + "offset": 33 + }, + "contextStart": { + "line": 3, + "offset": 4 + }, + "contextEnd": { + "line": 4, + "offset": 4 + } + } + ], + "textSpan": { + "start": { + "line": 12, + "offset": 20 + }, + "end": { + "line": 12, + "offset": 30 + } + } + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 15, + "offset": 30 + }, + "command": "definitionAndBoundSpan" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "definitionAndBoundSpan", + "request_seq": 2, + "success": true, + "body": { + "definitions": [ + { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "start": { + "line": 8, + "offset": 16 + }, + "end": { + "line": 8, + "offset": 26 + }, + "contextStart": { + "line": 8, + "offset": 16 + }, + "contextEnd": { + "line": 8, + "offset": 35 + } + } + ], + "textSpan": { + "start": { + "line": 15, + "offset": 20 + }, + "end": { + "line": 15, + "offset": 30 + } + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNamespace.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNamespace.js new file mode 100644 index 00000000000..c13e6f0a3e6 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNamespace.js @@ -0,0 +1,843 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] +/** + * @typedef {string | number} T.NumberLike + * @typedef {{age: number}} T.People + * @typedef {string | number} T.O.Q.NumberLike + * @type {T.NumberLike} + */ +var x; x.; +/** @type {T.O.Q.NumberLike} */ +var x1; x1.; +/** @type {T.People} */ +var x1; x1.; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsdocCompletion_typedef.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {string | number} T.NumberLike\n * @typedef {{age: number}} T.People\n * @typedef {string | number} T.O.Q.NumberLike\n * @type {T.NumberLike}\n */\nvar x; x.;\n/** @type {T.O.Q.NumberLike} */\nvar x1; x1.;\n/** @type {T.People} */\nvar x1; x1.;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsdocCompletion_typedef.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsdocCompletion_typedef.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 7, + "offset": 10 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "age", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "O", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "People", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Q", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "T", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "x", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "x1", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 11, + "offset": 12 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "age", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "O", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "People", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Q", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "T", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "x", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "x1", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", + "line": 9, + "offset": 12 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 6, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "charAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "charCodeAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "concat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "indexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "lastIndexOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "length", + "kind": "property", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "localeCompare", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "match", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "replace", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "search", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "slice", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "split", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "substring", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLowerCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toUpperCase", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "trim", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "age", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "NumberLike", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "O", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "People", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "Q", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "T", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "x", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "x1", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + }, + { + "name": "substr", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNavigateTo.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNavigateTo.js new file mode 100644 index 00000000000..c4a21c051d4 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNavigateTo.js @@ -0,0 +1,392 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsDocTypedef_form2.js] + +/** @typedef {(string | number)} NumberLike */ +/** @typedef {(string | number | string[])} */ +var NumberLike2; + +/** @type {NumberLike} */ +var numberLike; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsDocTypedef_form2.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-0 "\n/** @typedef {(string | number)} NumberLike */\n/** @typedef {(string | number | string[])} */\nvar NumberLike2;\n\n/** @type {NumberLike} */\nvar numberLike;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsDocTypedef_form2.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocTypedef_form2.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" + }, + "command": "navtree" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navtree", + "request_seq": 1, + "success": true, + "body": { + "text": "", + "kind": "script", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 7, + "offset": 16 + } + } + ], + "childItems": [ + { + "text": "numberLike", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 15 + } + } + ], + "nameSpan": { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 15 + } + } + }, + { + "text": "NumberLike", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 44 + } + } + ], + "nameSpan": { + "start": { + "line": 2, + "offset": 34 + }, + "end": { + "line": 2, + "offset": 44 + } + } + }, + { + "text": "NumberLike2", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 16 + } + } + ], + "nameSpan": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 16 + } + } + }, + { + "text": "NumberLike2", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 44 + } + } + ], + "nameSpan": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 16 + } + } + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" + }, + "command": "navbar" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navbar", + "request_seq": 2, + "success": true, + "body": [ + { + "text": "", + "kind": "script", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 7, + "offset": 16 + } + } + ], + "childItems": [ + { + "text": "numberLike", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 15 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "NumberLike", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 44 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "NumberLike2", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 16 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "NumberLike2", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 44 + } + } + ], + "childItems": [], + "indent": 0 + } + ], + "indent": 0 + }, + { + "text": "NumberLike", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 44 + } + } + ], + "childItems": [], + "indent": 1 + }, + { + "text": "NumberLike2", + "kind": "type", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 44 + } + } + ], + "childItems": [], + "indent": 1 + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename01.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename01.js new file mode 100644 index 00000000000..29d43c3173d --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename01.js @@ -0,0 +1,462 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsDocTypedef_form1.js] + +/** @typedef {(string | number)} */ +var NumberLike; + +NumberLike = 10; + +/** @type {NumberLike} */ +var numberLike; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsDocTypedef_form1.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocTypedef_form1.js SVC-1-0 "\n/** @typedef {(string | number)} */\nvar NumberLike;\n\nNumberLike = 10;\n\n/** @type {NumberLike} */\nvar numberLike;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsDocTypedef_form1.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocTypedef_form1.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", + "line": 3, + "offset": 5, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 2, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "NumberLike", + "fullDisplayName": "NumberLike", + "kind": "var", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", + "locs": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 16 + } + }, + { + "start": { + "line": 5, + "offset": 1 + }, + "end": { + "line": 5, + "offset": 11 + } + }, + { + "start": { + "line": 7, + "offset": 12 + }, + "end": { + "line": 7, + "offset": 22 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", + "line": 5, + "offset": 1, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 5, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "NumberLike", + "fullDisplayName": "NumberLike", + "kind": "var", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 5, + "offset": 1 + }, + "end": { + "line": 5, + "offset": 11 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", + "locs": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 16 + } + }, + { + "start": { + "line": 5, + "offset": 1 + }, + "end": { + "line": 5, + "offset": 11 + } + }, + { + "start": { + "line": 7, + "offset": 12 + }, + "end": { + "line": 7, + "offset": 22 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 7, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", + "line": 7, + "offset": 12, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 8, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "NumberLike", + "fullDisplayName": "NumberLike", + "kind": "var", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 7, + "offset": 12 + }, + "end": { + "line": 7, + "offset": 22 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", + "locs": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 15 + }, + "contextStart": { + "line": 3, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 16 + } + }, + { + "start": { + "line": 5, + "offset": 1 + }, + "end": { + "line": 5, + "offset": 11 + } + }, + { + "start": { + "line": 7, + "offset": 12 + }, + "end": { + "line": 7, + "offset": 22 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 9, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename02.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename02.js new file mode 100644 index 00000000000..18cb2171db8 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename02.js @@ -0,0 +1,317 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsDocTypedef_form2.js] + +/** @typedef {(string | number)} NumberLike */ + +/** @type {NumberLike} */ +var numberLike; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsDocTypedef_form2.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-0 "\n/** @typedef {(string | number)} NumberLike */\n\n/** @type {NumberLike} */\nvar numberLike;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsDocTypedef_form2.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocTypedef_form2.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 2, + "offset": 34, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 2, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "NumberLike", + "fullDisplayName": "NumberLike", + "kind": "type", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 2, + "offset": 34 + }, + "end": { + "line": 2, + "offset": 44 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "locs": [ + { + "start": { + "line": 2, + "offset": 34 + }, + "end": { + "line": 2, + "offset": 44 + }, + "contextStart": { + "line": 2, + "offset": 5 + }, + "contextEnd": { + "line": 2, + "offset": 44 + } + }, + { + "start": { + "line": 4, + "offset": 12 + }, + "end": { + "line": 4, + "offset": 22 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 4, + "offset": 12, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 5, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "NumberLike", + "fullDisplayName": "NumberLike", + "kind": "type", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 4, + "offset": 12 + }, + "end": { + "line": 4, + "offset": 22 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "locs": [ + { + "start": { + "line": 2, + "offset": 34 + }, + "end": { + "line": 2, + "offset": 44 + }, + "contextStart": { + "line": 2, + "offset": 5 + }, + "contextEnd": { + "line": 2, + "offset": 44 + } + }, + { + "start": { + "line": 4, + "offset": 12 + }, + "end": { + "line": 4, + "offset": 22 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename03.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename03.js new file mode 100644 index 00000000000..7b733768157 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename03.js @@ -0,0 +1,338 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsDocTypedef_form3.js] + +/** + * @typedef Person + * @type {Object} + * @property {number} age + * @property {string} name + */ + +/** @type {Person} */ +var person; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsDocTypedef_form3.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocTypedef_form3.js SVC-1-0 "\n/**\n * @typedef Person\n * @type {Object}\n * @property {number} age\n * @property {string} name\n */\n\n/** @type {Person} */\nvar person;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsDocTypedef_form3.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocTypedef_form3.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocTypedef_form3.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js", + "line": 3, + "offset": 13, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 3, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "Person", + "fullDisplayName": "Person", + "kind": "type", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 3, + "offset": 13 + }, + "end": { + "line": 3, + "offset": 19 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js", + "locs": [ + { + "start": { + "line": 3, + "offset": 13 + }, + "end": { + "line": 3, + "offset": 19 + }, + "contextStart": { + "line": 3, + "offset": 4 + }, + "contextEnd": { + "line": 7, + "offset": 2 + } + }, + { + "start": { + "line": 9, + "offset": 12 + }, + "end": { + "line": 9, + "offset": 18 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js", + "line": 9, + "offset": 12, + "findInStrings": false, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 6, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "Person", + "fullDisplayName": "Person", + "kind": "type", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 9, + "offset": 12 + }, + "end": { + "line": 9, + "offset": 18 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js", + "locs": [ + { + "start": { + "line": 3, + "offset": 13 + }, + "end": { + "line": 3, + "offset": 19 + }, + "contextStart": { + "line": 3, + "offset": 4 + }, + "contextEnd": { + "line": 7, + "offset": 2 + } + }, + { + "start": { + "line": 9, + "offset": 12 + }, + "end": { + "line": 9, + "offset": 18 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 7, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename04.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename04.js new file mode 100644 index 00000000000..c11150f9766 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename04.js @@ -0,0 +1,311 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsDocTypedef_form2.js] + +function test1() { + /** @typedef {(string | number)} NumberLike */ + + /** @type {NumberLike} */ + var numberLike; +} +function test2() { + /** @typedef {(string | number)} NumberLike2 */ + + /** @type {NumberLike2} */ + var numberLike2; +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsDocTypedef_form2.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-0 "\nfunction test1() {\n /** @typedef {(string | number)} NumberLike */\n\n /** @type {NumberLike} */\n var numberLike;\n}\nfunction test2() {\n /** @typedef {(string | number)} NumberLike2 */\n\n /** @type {NumberLike2} */\n var numberLike2;\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsDocTypedef_form2.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsDocTypedef_form2.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 12, + "offset": 9 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 1, + "success": true, + "body": { + "kind": "local var", + "kindModifiers": "", + "start": { + "line": 12, + "offset": 8 + }, + "end": { + "line": 12, + "offset": 19 + }, + "displayString": "(local var) numberLike2: NumberLike2", + "documentation": "", + "tags": [ + { + "name": "type", + "text": "{NumberLike2}" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 5, + "offset": 15, + "endLine": 5, + "endOffset": 15, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 5, + "offset": 15, + "endLine": 5, + "endOffset": 15, + "insertString": "1" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 5, + "offset": 16, + "key": "1" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 4, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 5, + "offset": 16, + "endLine": 5, + "endOffset": 16, + "insertString": "1" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 5, + "offset": 17, + "key": "1" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 5, + "offset": 17, + "endLine": 5, + "endOffset": 17, + "insertString": "1" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 5, + "offset": 18, + "key": "1" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 8, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", + "line": 12, + "offset": 9 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-4 "\nfunction test1() {\n /** @typedef {(string | number)} NumberLike */\n\n /** @type {111NumberLike} */\n var numberLike;\n}\nfunction test2() {\n /** @typedef {(string | number)} NumberLike2 */\n\n /** @type {NumberLike2} */\n var numberLike2;\n}" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 9, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "kind": "local var", + "kindModifiers": "", + "start": { + "line": 12, + "offset": 8 + }, + "end": { + "line": 12, + "offset": 19 + }, + "displayString": "(local var) numberLike2: NumberLike2", + "documentation": "", + "tags": [ + { + "name": "type", + "text": "{NumberLike2}" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/moveToFile_emptyTargetFile.js b/tests/baselines/reference/tsserver/fourslashServer/moveToFile_emptyTargetFile.js new file mode 100644 index 00000000000..ade05d87033 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/moveToFile_emptyTargetFile.js @@ -0,0 +1,386 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/source.ts] +export const a = 1; +const b = 2; +console.log(a, b); + +//// [/target.ts] +/** empty */ + +//// [/tsconfig.json] +/ { "compilerOptions": { "newLine": "lf" } } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/source.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /source.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /source.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/source.ts", + "/target.ts" + ], + "options": { + "newLine": 1, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /target.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib.d.ts Text-1 lib.d.ts-Text + /source.ts SVC-1-0 "export const a = 1;\nconst b = 2;\nconsole.log(a, b);" + /target.ts Text-1 "/** empty */" + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + source.ts + Matched by default include pattern '**/*' + target.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/source.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 2 + }, + "text": "'{' expected.", + "code": 1005, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 3 + }, + "end": { + "line": 1, + "offset": 4 + }, + "text": "Property assignment expected.", + "code": 1136, + "category": "error", + "fileName": "/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /source.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/target.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": { + "allowTextChangesInNewFiles": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/source.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 20, + "triggerReason": "implicit", + "includeInteractiveActions": true + }, + "command": "getApplicableRefactors" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getApplicableRefactors", + "request_seq": 2, + "success": true, + "body": [ + { + "name": "Convert export", + "description": "Convert named export to default export", + "actions": [ + { + "name": "Convert named export to default export", + "description": "Convert named export to default export", + "kind": "refactor.rewrite.export.default" + } + ] + }, + { + "name": "Move to a new file", + "description": "Move to a new file", + "actions": [ + { + "name": "Move to a new file", + "description": "Move to a new file", + "kind": "refactor.move.newFile" + } + ] + }, + { + "name": "Move to file", + "description": "Move to file", + "actions": [ + { + "name": "Move to file", + "description": "Move to file", + "kind": "refactor.move.file" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract function", + "actions": [ + { + "description": "Extract to function in module scope", + "name": "function_scope_0", + "kind": "refactor.extract.function" + } + ] + }, + { + "name": "Extract Symbol", + "description": "Extract constant", + "actions": [ + { + "description": "Extract to constant in enclosing scope", + "name": "constant_scope_0", + "kind": "refactor.extract.constant" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/source.ts", + "startLine": 1, + "startOffset": 1, + "endLine": 1, + "endOffset": 20, + "refactor": "Move to file", + "action": "Move to file", + "interactiveRefactorArguments": { + "targetFile": "/target.ts" + } + }, + "command": "getEditsForRefactor" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "getEditsForRefactor", + "request_seq": 5, + "success": true, + "body": { + "edits": [ + { + "fileName": "/source.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 1 + }, + "newText": "import { a } from \"./target\";\n\n" + }, + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 1 + }, + "newText": "" + } + ] + }, + { + "fileName": "/target.ts", + "textChanges": [ + { + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 14 + }, + "newText": "\nexport const a = 1;\n" + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/navbar01.js b/tests/baselines/reference/tsserver/fourslashServer/navbar01.js new file mode 100644 index 00000000000..9751b3d7e26 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/navbar01.js @@ -0,0 +1,1260 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/navbar01.ts] +// Interface +interface IPoint { + getDist(): number; + new(): IPoint; + (): any; + [x:string]: number; + prop: string; +} + +/// Module +module Shapes { + // Class + export class Point implements IPoint { + constructor (public x: number, public y: number) { } + + // Instance member + getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); } + + // Getter + get value(): number { return 0; } + + // Setter + set value(newValue: number) { return; } + + // Static member + static origin = new Point(0, 0); + + // Static method + private static getOrigin() { return Point.origin;} + } + + enum Values { value1, value2, value3 } +} + +// Local variables +var p: IPoint = new Shapes.Point(3, 4); +var dist = p.getDist(); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/navbar01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/navbar01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/navbar01.ts SVC-1-0 "// Interface\ninterface IPoint {\n getDist(): number;\n new(): IPoint;\n (): any;\n [x:string]: number;\n prop: string;\n}\n\n/// Module\nmodule Shapes {\n // Class\n export class Point implements IPoint {\n constructor (public x: number, public y: number) { }\n\n // Instance member\n getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }\n\n // Getter\n get value(): number { return 0; }\n\n // Setter\n set value(newValue: number) { return; }\n\n // Static member\n static origin = new Point(0, 0);\n\n // Static method\n private static getOrigin() { return Point.origin;}\n }\n\n enum Values { value1, value2, value3 }\n}\n\n// Local variables\nvar p: IPoint = new Shapes.Point(3, 4);\nvar dist = p.getDist();" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + navbar01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/navbar01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/navbar01.ts" + }, + "command": "navtree" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navtree", + "request_seq": 1, + "success": true, + "body": { + "text": "", + "kind": "script", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 37, + "offset": 24 + } + } + ], + "childItems": [ + { + "text": "dist", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 37, + "offset": 5 + }, + "end": { + "line": 37, + "offset": 23 + } + } + ], + "nameSpan": { + "start": { + "line": 37, + "offset": 5 + }, + "end": { + "line": 37, + "offset": 9 + } + } + }, + { + "text": "IPoint", + "kind": "interface", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 8, + "offset": 2 + } + } + ], + "nameSpan": { + "start": { + "line": 2, + "offset": 11 + }, + "end": { + "line": 2, + "offset": 17 + } + }, + "childItems": [ + { + "text": "()", + "kind": "call", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 5, + "offset": 5 + }, + "end": { + "line": 5, + "offset": 13 + } + } + ] + }, + { + "text": "new()", + "kind": "construct", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 19 + } + } + ] + }, + { + "text": "[]", + "kind": "index", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 24 + } + } + ] + }, + { + "text": "getDist", + "kind": "method", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 23 + } + } + ], + "nameSpan": { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 12 + } + } + }, + { + "text": "prop", + "kind": "property", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 18 + } + } + ], + "nameSpan": { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 9 + } + } + } + ] + }, + { + "text": "p", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 36, + "offset": 5 + }, + "end": { + "line": 36, + "offset": 39 + } + } + ], + "nameSpan": { + "start": { + "line": 36, + "offset": 5 + }, + "end": { + "line": 36, + "offset": 6 + } + } + }, + { + "text": "Shapes", + "kind": "module", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 11, + "offset": 1 + }, + "end": { + "line": 33, + "offset": 2 + } + } + ], + "nameSpan": { + "start": { + "line": 11, + "offset": 8 + }, + "end": { + "line": 11, + "offset": 14 + } + }, + "childItems": [ + { + "text": "Point", + "kind": "class", + "kindModifiers": "export", + "spans": [ + { + "start": { + "line": 13, + "offset": 5 + }, + "end": { + "line": 30, + "offset": 6 + } + } + ], + "nameSpan": { + "start": { + "line": 13, + "offset": 18 + }, + "end": { + "line": 13, + "offset": 23 + } + }, + "childItems": [ + { + "text": "constructor", + "kind": "constructor", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 14, + "offset": 9 + }, + "end": { + "line": 14, + "offset": 61 + } + } + ] + }, + { + "text": "getDist", + "kind": "method", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 17, + "offset": 9 + }, + "end": { + "line": 17, + "offset": 75 + } + } + ], + "nameSpan": { + "start": { + "line": 17, + "offset": 9 + }, + "end": { + "line": 17, + "offset": 16 + } + } + }, + { + "text": "getOrigin", + "kind": "method", + "kindModifiers": "private,static", + "spans": [ + { + "start": { + "line": 29, + "offset": 9 + }, + "end": { + "line": 29, + "offset": 59 + } + } + ], + "nameSpan": { + "start": { + "line": 29, + "offset": 24 + }, + "end": { + "line": 29, + "offset": 33 + } + } + }, + { + "text": "origin", + "kind": "property", + "kindModifiers": "static", + "spans": [ + { + "start": { + "line": 26, + "offset": 9 + }, + "end": { + "line": 26, + "offset": 41 + } + } + ], + "nameSpan": { + "start": { + "line": 26, + "offset": 16 + }, + "end": { + "line": 26, + "offset": 22 + } + } + }, + { + "text": "value", + "kind": "getter", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 20, + "offset": 9 + }, + "end": { + "line": 20, + "offset": 42 + } + } + ], + "nameSpan": { + "start": { + "line": 20, + "offset": 13 + }, + "end": { + "line": 20, + "offset": 18 + } + } + }, + { + "text": "value", + "kind": "setter", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 23, + "offset": 9 + }, + "end": { + "line": 23, + "offset": 48 + } + } + ], + "nameSpan": { + "start": { + "line": 23, + "offset": 13 + }, + "end": { + "line": 23, + "offset": 18 + } + } + }, + { + "text": "x", + "kind": "property", + "kindModifiers": "public", + "spans": [ + { + "start": { + "line": 14, + "offset": 22 + }, + "end": { + "line": 14, + "offset": 38 + } + } + ], + "nameSpan": { + "start": { + "line": 14, + "offset": 29 + }, + "end": { + "line": 14, + "offset": 30 + } + } + }, + { + "text": "y", + "kind": "property", + "kindModifiers": "public", + "spans": [ + { + "start": { + "line": 14, + "offset": 40 + }, + "end": { + "line": 14, + "offset": 56 + } + } + ], + "nameSpan": { + "start": { + "line": 14, + "offset": 47 + }, + "end": { + "line": 14, + "offset": 48 + } + } + } + ] + }, + { + "text": "Values", + "kind": "enum", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 5 + }, + "end": { + "line": 32, + "offset": 43 + } + } + ], + "nameSpan": { + "start": { + "line": 32, + "offset": 10 + }, + "end": { + "line": 32, + "offset": 16 + } + }, + "childItems": [ + { + "text": "value1", + "kind": "enum member", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 19 + }, + "end": { + "line": 32, + "offset": 25 + } + } + ], + "nameSpan": { + "start": { + "line": 32, + "offset": 19 + }, + "end": { + "line": 32, + "offset": 25 + } + } + }, + { + "text": "value2", + "kind": "enum member", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 27 + }, + "end": { + "line": 32, + "offset": 33 + } + } + ], + "nameSpan": { + "start": { + "line": 32, + "offset": 27 + }, + "end": { + "line": 32, + "offset": 33 + } + } + }, + { + "text": "value3", + "kind": "enum member", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 35 + }, + "end": { + "line": 32, + "offset": 41 + } + } + ], + "nameSpan": { + "start": { + "line": 32, + "offset": 35 + }, + "end": { + "line": 32, + "offset": 41 + } + } + } + ] + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/navbar01.ts" + }, + "command": "navbar" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navbar", + "request_seq": 2, + "success": true, + "body": [ + { + "text": "", + "kind": "script", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 37, + "offset": 24 + } + } + ], + "childItems": [ + { + "text": "dist", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 37, + "offset": 5 + }, + "end": { + "line": 37, + "offset": 23 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "IPoint", + "kind": "interface", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 8, + "offset": 2 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "p", + "kind": "var", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 36, + "offset": 5 + }, + "end": { + "line": 36, + "offset": 39 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "Shapes", + "kind": "module", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 11, + "offset": 1 + }, + "end": { + "line": 33, + "offset": 2 + } + } + ], + "childItems": [], + "indent": 0 + } + ], + "indent": 0 + }, + { + "text": "IPoint", + "kind": "interface", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 8, + "offset": 2 + } + } + ], + "childItems": [ + { + "text": "()", + "kind": "call", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 5, + "offset": 5 + }, + "end": { + "line": 5, + "offset": 13 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "new()", + "kind": "construct", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 19 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "[]", + "kind": "index", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 24 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "getDist", + "kind": "method", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 23 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "prop", + "kind": "property", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 18 + } + } + ], + "childItems": [], + "indent": 0 + } + ], + "indent": 1 + }, + { + "text": "Shapes", + "kind": "module", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 11, + "offset": 1 + }, + "end": { + "line": 33, + "offset": 2 + } + } + ], + "childItems": [ + { + "text": "Point", + "kind": "class", + "kindModifiers": "export", + "spans": [ + { + "start": { + "line": 13, + "offset": 5 + }, + "end": { + "line": 30, + "offset": 6 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "Values", + "kind": "enum", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 5 + }, + "end": { + "line": 32, + "offset": 43 + } + } + ], + "childItems": [], + "indent": 0 + } + ], + "indent": 1 + }, + { + "text": "Point", + "kind": "class", + "kindModifiers": "export", + "spans": [ + { + "start": { + "line": 13, + "offset": 5 + }, + "end": { + "line": 30, + "offset": 6 + } + } + ], + "childItems": [ + { + "text": "constructor", + "kind": "constructor", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 14, + "offset": 9 + }, + "end": { + "line": 14, + "offset": 61 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "getDist", + "kind": "method", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 17, + "offset": 9 + }, + "end": { + "line": 17, + "offset": 75 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "getOrigin", + "kind": "method", + "kindModifiers": "private,static", + "spans": [ + { + "start": { + "line": 29, + "offset": 9 + }, + "end": { + "line": 29, + "offset": 59 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "origin", + "kind": "property", + "kindModifiers": "static", + "spans": [ + { + "start": { + "line": 26, + "offset": 9 + }, + "end": { + "line": 26, + "offset": 41 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "value", + "kind": "getter", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 20, + "offset": 9 + }, + "end": { + "line": 20, + "offset": 42 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "value", + "kind": "setter", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 23, + "offset": 9 + }, + "end": { + "line": 23, + "offset": 48 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "x", + "kind": "property", + "kindModifiers": "public", + "spans": [ + { + "start": { + "line": 14, + "offset": 22 + }, + "end": { + "line": 14, + "offset": 38 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "y", + "kind": "property", + "kindModifiers": "public", + "spans": [ + { + "start": { + "line": 14, + "offset": 40 + }, + "end": { + "line": 14, + "offset": 56 + } + } + ], + "childItems": [], + "indent": 0 + } + ], + "indent": 2 + }, + { + "text": "Values", + "kind": "enum", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 5 + }, + "end": { + "line": 32, + "offset": 43 + } + } + ], + "childItems": [ + { + "text": "value1", + "kind": "enum member", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 19 + }, + "end": { + "line": 32, + "offset": 25 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "value2", + "kind": "enum member", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 27 + }, + "end": { + "line": 32, + "offset": 33 + } + } + ], + "childItems": [], + "indent": 0 + }, + { + "text": "value3", + "kind": "enum member", + "kindModifiers": "", + "spans": [ + { + "start": { + "line": 32, + "offset": 35 + }, + "end": { + "line": 32, + "offset": 41 + } + } + ], + "childItems": [], + "indent": 0 + } + ], + "indent": 2 + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/navto01.js b/tests/baselines/reference/tsserver/fourslashServer/navto01.js new file mode 100644 index 00000000000..7b993109bb3 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/navto01.js @@ -0,0 +1,289 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/navto01.ts] +/// Module +module MyShapes { + + // Class + export class MyPoint { + // Instance member + private MyoriginAttheHorizon = 0.0; + + // Getter + get MydistanceFromOrigin(): number { return 0; } + } +} + +// Local variables +var myXyz = new Shapes.Point(); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/navto01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/navto01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/navto01.ts SVC-1-0 "/// Module\nmodule MyShapes {\n\n // Class\n export class MyPoint {\n // Instance member\n private MyoriginAttheHorizon = 0.0;\n\n // Getter\n get MydistanceFromOrigin(): number { return 0; }\n }\n}\n\n// Local variables\nvar myXyz = new Shapes.Point();" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + navto01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/navto01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "searchValue": "Shapes", + "currentFileOnly": false + }, + "command": "navto" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navto", + "request_seq": 1, + "success": true, + "body": [ + { + "name": "MyShapes", + "kind": "module", + "kindModifiers": "", + "isCaseSensitive": true, + "matchKind": "substring", + "file": "/tests/cases/fourslash/server/navto01.ts", + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 12, + "offset": 2 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "searchValue": "Point", + "currentFileOnly": false + }, + "command": "navto" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navto", + "request_seq": 2, + "success": true, + "body": [ + { + "name": "MyPoint", + "kind": "class", + "kindModifiers": "export", + "isCaseSensitive": true, + "matchKind": "substring", + "file": "/tests/cases/fourslash/server/navto01.ts", + "start": { + "line": 5, + "offset": 5 + }, + "end": { + "line": 11, + "offset": 6 + }, + "containerName": "MyShapes", + "containerKind": "module" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "searchValue": "originAttheHorizon", + "currentFileOnly": false + }, + "command": "navto" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navto", + "request_seq": 3, + "success": true, + "body": [ + { + "name": "MyoriginAttheHorizon", + "kind": "property", + "kindModifiers": "private", + "isCaseSensitive": true, + "matchKind": "substring", + "file": "/tests/cases/fourslash/server/navto01.ts", + "start": { + "line": 7, + "offset": 9 + }, + "end": { + "line": 7, + "offset": 44 + }, + "containerName": "MyPoint", + "containerKind": "class" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "searchValue": "distanceFromOrigin", + "currentFileOnly": false + }, + "command": "navto" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navto", + "request_seq": 4, + "success": true, + "body": [ + { + "name": "MydistanceFromOrigin", + "kind": "getter", + "kindModifiers": "", + "isCaseSensitive": true, + "matchKind": "substring", + "file": "/tests/cases/fourslash/server/navto01.ts", + "start": { + "line": 10, + "offset": 9 + }, + "end": { + "line": 10, + "offset": 57 + }, + "containerName": "MyPoint", + "containerKind": "class" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "searchValue": "Xyz", + "currentFileOnly": false + }, + "command": "navto" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navto", + "request_seq": 5, + "success": true, + "body": [ + { + "name": "myXyz", + "kind": "var", + "kindModifiers": "", + "isCaseSensitive": true, + "matchKind": "substring", + "file": "/tests/cases/fourslash/server/navto01.ts", + "start": { + "line": 15, + "offset": 5 + }, + "end": { + "line": 15, + "offset": 31 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/navto_serverExcludeLib.js b/tests/baselines/reference/tsserver/fourslashServer/navto_serverExcludeLib.js new file mode 100644 index 00000000000..fbd244ccbdc --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/navto_serverExcludeLib.js @@ -0,0 +1,258 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +import { weirdName as otherName } from "bar"; +const weirdName: number = 1; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/bar/index.d.ts] +export const weirdName: number; + +//// [/node_modules/bar/package.json] +{} + +//// [/tsconfig.json] +{} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts", + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts" + ], + "options": { + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/bar/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/bar/index.d.ts Text-1 "export const weirdName: number;" + /index.ts SVC-1-0 "import { weirdName as otherName } from \"bar\";\nconst weirdName: number = 1;" + /lib.d.ts Text-1 lib.d.ts-Text + + + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + Matched by default include pattern '**/*' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + Matched by default include pattern '**/*' + node_modules/bar/index.d.ts + Imported via "bar" from file 'index.ts' + index.ts + Matched by default include pattern '**/*' + lib.d.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/index.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/node_modules/bar/index.d.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "searchValue": "weirdName", + "currentFileOnly": false + }, + "command": "navto" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navto", + "request_seq": 1, + "success": true, + "body": [ + { + "name": "weirdName", + "kind": "const", + "kindModifiers": "export,declare", + "isCaseSensitive": true, + "matchKind": "exact", + "file": "/node_modules/bar/index.d.ts", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 31 + } + }, + { + "name": "weirdName", + "kind": "const", + "kindModifiers": "", + "isCaseSensitive": true, + "matchKind": "exact", + "file": "/index.ts", + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 28 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": { + "excludeLibrarySymbolsInNavTo": true + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "searchValue": "weirdName", + "currentFileOnly": false + }, + "command": "navto" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "navto", + "request_seq": 3, + "success": true, + "body": [ + { + "name": "weirdName", + "kind": "const", + "kindModifiers": "", + "isCaseSensitive": true, + "matchKind": "exact", + "file": "/index.ts", + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 28 + } + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy1.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy1.js new file mode 100644 index 00000000000..78b7dbd7585 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy1.js @@ -0,0 +1,278 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +let x = [1, 2]; +x + + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ + "compilerOptions": { + "plugins": [ + { "name": "quickinfo-augmeneter", "message": "hello world" } + ] + }, + "files": ["a.ts"] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/a.ts" + ], + "options": { + "plugins": [ + { + "name": "quickinfo-augmeneter", + "message": "hello world" + } + ], + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Enabling plugin quickinfo-augmeneter from candidate paths: /../../.. +Info seq [hh:mm:ss:mss] Loading quickinfo-augmeneter from /../../.. (resolved to /../../../node_modules) +Info seq [hh:mm:ss:mss] Plugin validation succeeded +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"quickinfo-augmeneter\", \"message\": \"hello world\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/a.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/node_modules: *new* + {} + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/a.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 2, + "offset": 2 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 2, + "success": true, + "body": { + "kind": "let", + "kindModifiers": "", + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 2 + }, + "displayString": "Proxied x: number[]hello world", + "documentation": "", + "tags": [] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy2.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy2.js new file mode 100644 index 00000000000..7366dceb61c --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy2.js @@ -0,0 +1,278 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +let x = [1, 2]; +x + + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ + "compilerOptions": { + "plugins": [ + { "name": "invalidmodulename" } + ] + }, + "files": ["a.ts"] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/a.ts" + ], + "options": { + "plugins": [ + { + "name": "invalidmodulename" + } + ], + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Enabling plugin invalidmodulename from candidate paths: /../../.. +Info seq [hh:mm:ss:mss] Loading invalidmodulename from /../../.. (resolved to /../../../node_modules) +Info seq [hh:mm:ss:mss] Failed to load module 'invalidmodulename' from /../../../node_modules: Error: HarnessLanguageService:: Could not resolve module +Info seq [hh:mm:ss:mss] Couldn't find invalidmodulename +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"invalidmodulename\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/a.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/node_modules: *new* + {} + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/a.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 2, + "offset": 2 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 2, + "success": true, + "body": { + "kind": "let", + "kindModifiers": "", + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 2 + }, + "displayString": "let x: number[]", + "documentation": "", + "tags": [] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy3.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy3.js new file mode 100644 index 00000000000..b166147ed74 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy3.js @@ -0,0 +1,277 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +let x = [1, 2]; +x + + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ + "compilerOptions": { + "plugins": [ + { "name": "create-thrower" } + ] + }, + "files": ["a.ts"] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/a.ts" + ], + "options": { + "plugins": [ + { + "name": "create-thrower" + } + ], + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Enabling plugin create-thrower from candidate paths: /../../.. +Info seq [hh:mm:ss:mss] Loading create-thrower from /../../.. (resolved to /../../../node_modules) +Info seq [hh:mm:ss:mss] Plugin activation failed: Error: I am not a well-behaved plugin +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"create-thrower\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/a.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/node_modules: *new* + {} + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/a.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "line": 2, + "offset": 2 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 2, + "success": true, + "body": { + "kind": "let", + "kindModifiers": "", + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 2 + }, + "displayString": "let x: number[]", + "documentation": "", + "tags": [] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy4.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy4.js new file mode 100644 index 00000000000..b959383a2c1 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy4.js @@ -0,0 +1,297 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +let x = [1, 2]; +x + + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ + "compilerOptions": { + "plugins": [ + { "name": "diagnostic-adder" } + ] + }, + "files": ["a.ts"] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/a.ts" + ], + "options": { + "plugins": [ + { + "name": "diagnostic-adder" + } + ], + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Enabling plugin diagnostic-adder from candidate paths: /../../.. +Info seq [hh:mm:ss:mss] Loading diagnostic-adder from /../../.. (resolved to /../../../node_modules) +Info seq [hh:mm:ss:mss] Plugin validation succeeded +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"diagnostic-adder\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/a.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/node_modules: *new* + {} + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/a.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [ + { + "message": "Plugin diagnostic", + "start": 0, + "length": 3, + "category": "warning", + "code": 9999, + "startLocation": { + "line": 1, + "offset": 1 + }, + "endLocation": { + "line": 1, + "offset": 4 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/nodeNextModuleKindCaching1.js b/tests/baselines/reference/tsserver/fourslashServer/nodeNextModuleKindCaching1.js new file mode 100644 index 00000000000..267e94d6dc3 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/nodeNextModuleKindCaching1.js @@ -0,0 +1,384 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/package.json] +{ + "type": "module", + "private": true +} + +//// [/tests/cases/fourslash/server/src/example.ts] +export function helloWorld() { + console.log('Hello, world!') +} + +//// [/tests/cases/fourslash/server/src/index.ts] +// The line below should show a "Relative import paths need explicit file +// extensions..." error in VS Code, but it doesn't. The error is only picked up +// by `tsc` which seems to properly infer the module type. +import { helloWorld } from './example' + +helloWorld() + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ + "compilerOptions": { + "rootDir": "src", + "outDir": "dist", + "target": "ES2020", + "module": "NodeNext", + "strict": true + }, + "include": ["src\\**\\*.ts"] +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/src/example.ts", + "/tests/cases/fourslash/server/src/index.ts" + ], + "options": { + "rootDir": "/tests/cases/fourslash/server/src", + "outDir": "/tests/cases/fourslash/server/dist", + "target": 7, + "module": 199, + "strict": true, + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src 1 undefined Config: /tests/cases/fourslash/server/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src 1 undefined Config: /tests/cases/fourslash/server/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/example.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.es2020.full.d.ts 500 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + /tests/cases/fourslash/server/src/example.ts Text-1 "export function helloWorld() {\n console.log('Hello, world!')\n}" + /tests/cases/fourslash/server/src/index.ts Text-1 "// The line below should show a \"Relative import paths need explicit file\n// extensions...\" error in VS Code, but it doesn't. The error is only picked up\n// by `tsc` which seems to properly infer the module type.\nimport { helloWorld } from './example'\n\nhelloWorld()" + + + src/example.ts + Matched by include pattern 'src\**\*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" + src/index.ts + Matched by include pattern 'src\**\*.ts' in 'tsconfig.json' + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [ + { + "text": "File '/lib.es2020.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'es2020'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'CallableFunction'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'NewableFunction'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"target\": \"ES2020\",\n \"module\": \"NodeNext\",\n \"strict\": true\n },\n \"include\": [\"src\\\\**\\\\*.ts\"]\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/lib.es2020.full.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":250} +/tests/cases/fourslash/server/src/example.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/src/index.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/src/package.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/src/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server/src +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/src/index.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.es2020.full.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/package.json: + {"pollingInterval":2000} + {"pollingInterval":250} +/tests/cases/fourslash/server/src/example.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/src/package.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/src/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + {} +/tests/cases/fourslash/server/src: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/src/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/src/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [ + { + "message": "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './example.js'?", + "start": 240, + "length": 11, + "category": "error", + "code": 2835, + "startLocation": { + "line": 4, + "offset": 28 + }, + "endLocation": { + "line": 4, + "offset": 39 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/nodeNextPathCompletions.js b/tests/baselines/reference/tsserver/fourslashServer/nodeNextPathCompletions.js new file mode 100644 index 00000000000..c17f8c0da5e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/nodeNextPathCompletions.js @@ -0,0 +1,980 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/dependency/lib/index.d.ts] +export function fooFromIndex(): void; + +//// [/node_modules/dependency/lib/lol.d.ts] +export function fooFromLol(): void; + +//// [/node_modules/dependency/package.json] +{ + "type": "module", + "name": "dependency", + "version": "1.0.0", + "exports": { + ".": { + "types": "./lib/index.d.ts" + }, + "./lol": { + "types": "./lib/lol.d.ts" + }, + "./dir/*": "./lib/*" + } +} + +//// [/package.json] +{ + "type": "module", + "dependencies": { + "dependency": "^1.0.0" + } +} + +//// [/src/foo.ts] +import { fooFromIndex } from ""; + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "nodenext" }, "files": ["./src/foo.ts"] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/node_modules/dependency/package.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /node_modules/dependency +Info seq [hh:mm:ss:mss] For info: /node_modules/dependency/package.json :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /node_modules/dependency/package.json SVC-1-0 "{\n \"type\": \"module\",\n \"name\": \"dependency\",\n \"version\": \"1.0.0\",\n \"exports\": {\n \".\": {\n \"types\": \"./lib/index.d.ts\"\n },\n \"./lol\": {\n \"types\": \"./lib/lol.d.ts\"\n },\n \"./dir/*\": \"./lib/*\"\n }\n}" + + + ../../lib.d.ts + Default library for target 'es5' + ../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../lib.d.ts' + ../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../lib.d.ts' + package.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/dependency/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/src/foo.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/foo.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /src/foo.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/src/foo.ts" + ], + "options": { + "module": 199, + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.esnext.full.d.ts 500 undefined Project: /tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + /src/foo.ts SVC-1-0 "import { fooFromIndex } from \"\";" + + + src/foo.ts + Part of 'files' list in tsconfig.json + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies in * ms +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + /node_modules/dependency/lib/lol.d.ts Text-1 "export function fooFromLol(): void;" + + + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + node_modules/dependency/lib/lol.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/src/foo.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "File '/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /node_modules/dependency/package.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /src/foo.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.esnext.full.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: *new* + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: *new* + {"pollingInterval":2000} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 31 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "entries": [ + { + "name": "dependency", + "kind": "external module name", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 31, + "entryNames": [ + { + "name": "dependency" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 3, + "success": true, + "body": [ + { + "name": "dependency", + "kindModifiers": "", + "kind": "external module name", + "displayParts": [ + { + "text": "dependency", + "kind": "text" + } + ], + "tags": [] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 31, + "endLine": 1, + "endOffset": 31, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 31, + "endLine": 1, + "endOffset": 31, + "insertString": "d" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 32, + "key": "d" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 32, + "endLine": 1, + "endOffset": 32, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 33, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 8, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 33, + "endLine": 1, + "endOffset": 33, + "insertString": "p" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 34, + "key": "p" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 10, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 34, + "endLine": 1, + "endOffset": 34, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 35, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 12, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 35, + "endLine": 1, + "endOffset": 35, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 36, + "key": "n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 14, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 36, + "endLine": 1, + "endOffset": 36, + "insertString": "d" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 37, + "key": "d" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 16, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 37, + "endLine": 1, + "endOffset": 37, + "insertString": "e" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 38, + "key": "e" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 18, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 38, + "endLine": 1, + "endOffset": 38, + "insertString": "n" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 39, + "key": "n" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 20, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 39, + "endLine": 1, + "endOffset": 39, + "insertString": "c" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 40, + "key": "c" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 22, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 40, + "endLine": 1, + "endOffset": 40, + "insertString": "y" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 41, + "key": "y" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 24, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 41, + "endLine": 1, + "endOffset": 41, + "insertString": "/" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 42, + "key": "/" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 26, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 27, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 42 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" + /src/foo.ts SVC-1-12 "import { fooFromIndex } from \"dependency/\";" + + + node_modules/dependency/lib/index.d.ts + Imported via "dependency/" from file 'src/foo.ts' with packageId 'dependency/ib/index.d.ts@1.0.0' + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" + src/foo.ts + Part of 'files' list in tsconfig.json + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 28, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "entries": [ + { + "name": "lol", + "kind": "script", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "dir", + "kind": "directory", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.esnext.full.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 42, + "endLine": 1, + "endOffset": 42, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 42, + "endLine": 1, + "endOffset": 42, + "insertString": "l" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 43, + "key": "l" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 31, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 32, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/src/foo.ts", + "line": 1, + "offset": 43 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /node_modules/dependency/lib/package.json 2000 undefined Project: /tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (1) + /src/foo.ts SVC-1-14 "import { fooFromIndex } from \"dependency/l\";" + + + src/foo.ts + Part of 'files' list in tsconfig.json + File is ECMAScript module because 'package.json' has field "type" with value "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 33, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, + "body": { + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "entries": [ + { + "name": "lol", + "kind": "script", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.esnext.full.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/index.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/lol.d.ts: + {"pollingInterval":500} +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/node_modules/dependency/lib/package.json: + {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/nonJsDeclarationFilePathCompletions.js b/tests/baselines/reference/tsserver/fourslashServer/nonJsDeclarationFilePathCompletions.js new file mode 100644 index 00000000000..63f18bf9628 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/nonJsDeclarationFilePathCompletions.js @@ -0,0 +1,300 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/project/mod.d.html.ts] +export declare class HtmlModuleThing {} + +//// [/project/node_modules/package/mod.d.html.ts] +export declare class PackageHtmlModuleThing {} + +//// [/project/usage.ts] +import { HtmlModuleThing } from "./"; +import { PackageHtmlModuleThing } from "package/"; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/project/mod.d.html.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/mod.d.html.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/mod.d.html.ts SVC-1-0 "export declare class HtmlModuleThing {}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + mod.d.html.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/mod.d.html.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/project/usage.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /project +Info seq [hh:mm:ss:mss] For info: /project/usage.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /project/usage.ts SVC-1-0 "import { HtmlModuleThing } from \"./\";\nimport { PackageHtmlModuleThing } from \"package/\";" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + usage.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /project/mod.d.html.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /project/usage.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/project/usage.ts", + "line": 1, + "offset": 36 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "entries": [ + { + "name": "mod.html", + "kind": "script", + "kindModifiers": "", + "sortText": "11" + }, + { + "name": "node_modules", + "kind": "directory", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/project/usage.ts", + "line": 1, + "offset": 36, + "entryNames": [ + { + "name": "mod.html" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 3, + "success": true, + "body": [ + { + "name": "mod.html", + "kindModifiers": "", + "kind": "script", + "displayParts": [ + { + "text": "mod.html", + "kind": "text" + } + ], + "tags": [] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/project/usage.ts", + "line": 1, + "offset": 36, + "entryNames": [ + { + "name": "node_modules" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 4, + "success": true, + "body": [ + { + "name": "node_modules", + "kindModifiers": "", + "kind": "directory", + "displayParts": [ + { + "text": "node_modules", + "kind": "text" + } + ], + "tags": [] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/project/usage.ts", + "line": 2, + "offset": 49 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 5, + "success": true, + "body": { + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "entries": [ + { + "name": "mod.html", + "kind": "script", + "kindModifiers": "", + "sortText": "11" + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/project/usage.ts", + "line": 2, + "offset": 49, + "entryNames": [ + { + "name": "mod.html" + } + ] + }, + "command": "completionEntryDetails-full" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionEntryDetails-full", + "request_seq": 6, + "success": true, + "body": [ + { + "name": "mod.html", + "kindModifiers": "", + "kind": "script", + "displayParts": [ + { + "text": "mod.html", + "kind": "text" + } + ], + "tags": [] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/occurrences01.js b/tests/baselines/reference/tsserver/fourslashServer/occurrences01.js new file mode 100644 index 00000000000..35636fb604e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/occurrences01.js @@ -0,0 +1,763 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/occurrences01.ts] +foo: switch (10) { + case 1: + case 2: + case 3: + break; + break foo; + continue; + continue foo; +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/occurrences01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/occurrences01.ts SVC-1-0 "foo: switch (10) {\n case 1:\n case 2:\n case 3:\n break;\n break foo;\n continue;\n continue foo;\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + occurrences01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "line": 1, + "offset": 6, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 6 + }, + "end": { + "line": 1, + "offset": 12 + }, + "kind": "none" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 14 + }, + "kind": "none" + }, + { + "start": { + "line": 6, + "offset": 9 + }, + "end": { + "line": 6, + "offset": 14 + }, + "kind": "none" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "line": 2, + "offset": 5, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 6 + }, + "end": { + "line": 1, + "offset": 12 + }, + "kind": "none" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 14 + }, + "kind": "none" + }, + { + "start": { + "line": 6, + "offset": 9 + }, + "end": { + "line": 6, + "offset": 14 + }, + "kind": "none" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "line": 3, + "offset": 5, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 6, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 6 + }, + "end": { + "line": 1, + "offset": 12 + }, + "kind": "none" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 14 + }, + "kind": "none" + }, + { + "start": { + "line": 6, + "offset": 9 + }, + "end": { + "line": 6, + "offset": 14 + }, + "kind": "none" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "line": 4, + "offset": 5, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 8, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 6 + }, + "end": { + "line": 1, + "offset": 12 + }, + "kind": "none" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 14 + }, + "kind": "none" + }, + { + "start": { + "line": 6, + "offset": 9 + }, + "end": { + "line": 6, + "offset": 14 + }, + "kind": "none" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "line": 5, + "offset": 9, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 10, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 6 + }, + "end": { + "line": 1, + "offset": 12 + }, + "kind": "none" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 14 + }, + "kind": "none" + }, + { + "start": { + "line": 6, + "offset": 9 + }, + "end": { + "line": 6, + "offset": 14 + }, + "kind": "none" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "line": 6, + "offset": 9, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences01.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 12, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences01.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 6 + }, + "end": { + "line": 1, + "offset": 12 + }, + "kind": "none" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 9 + }, + "kind": "none" + }, + { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 14 + }, + "kind": "none" + }, + { + "start": { + "line": 6, + "offset": 9 + }, + "end": { + "line": 6, + "offset": 14 + }, + "kind": "none" + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/occurrences02.js b/tests/baselines/reference/tsserver/fourslashServer/occurrences02.js new file mode 100644 index 00000000000..c750a232c11 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/occurrences02.js @@ -0,0 +1,479 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/occurrences02.ts] +function f(x: typeof f) { + f(f); +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/occurrences02.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/occurrences02.ts SVC-1-0 "function f(x: typeof f) {\n f(f);\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + occurrences02.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences02.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences02.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "line": 1, + "offset": 10, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences02.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 2, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences02.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "line": 1, + "offset": 22, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences02.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 4, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences02.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "line": 2, + "offset": 5, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences02.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 6, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/occurrences02.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "line": 2, + "offset": 7, + "filesToSearch": [ + "/tests/cases/fourslash/server/occurrences02.ts" + ] + }, + "command": "documentHighlights" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "documentHighlights", + "request_seq": 8, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/occurrences02.ts", + "highlightSpans": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 11 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 3, + "offset": 2 + }, + "kind": "writtenReference" + }, + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 23 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 6 + }, + "kind": "reference" + }, + { + "start": { + "line": 2, + "offset": 7 + }, + "end": { + "line": 2, + "offset": 8 + }, + "kind": "reference" + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/openFile.js b/tests/baselines/reference/tsserver/fourslashServer/openFile.js new file mode 100644 index 00000000000..9c324e3cb06 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/openFile.js @@ -0,0 +1,300 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/test.ts] +var t = '10'; + +//// [/tests/cases/fourslash/server/test1.ts] +t. + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ "files": ["test.ts", "test1.ts"] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test1.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/test1.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/test1.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/test.ts", + "/tests/cases/fourslash/server/test1.ts" + ], + "options": { + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/test.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/test.ts Text-1 "var t = '10';" + /tests/cases/fourslash/server/test1.ts SVC-1-0 "t." + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + test.ts + Part of 'files' list in tsconfig.json + test1.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/test1.ts", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/test.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test.ts", + "fileContent": "var t = 10; t." + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/test.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/test.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/test.ts SVC-2-0 "var t = 10; t." + /tests/cases/fourslash/server/test1.ts SVC-1-0 "t." + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/tests/cases/fourslash/server/test.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test1.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test1.ts", + "line": 1, + "offset": 3 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 4, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/openFileWithSyntaxKind.js b/tests/baselines/reference/tsserver/fourslashServer/openFileWithSyntaxKind.js new file mode 100644 index 00000000000..c265eae0510 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/openFileWithSyntaxKind.js @@ -0,0 +1,268 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/dumbFile.ts] +var x; + +//// [/tests/cases/fourslash/server/test.ts] +/** + * @type {number} + */ +var t; +t. + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/dumbFile.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/dumbFile.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/dumbFile.ts SVC-1-0 "var x;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + dumbFile.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/dumbFile.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test.ts", + "scriptKindName": "JS" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/test.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/test.ts SVC-1-0 "/**\n * @type {number}\n */\nvar t;\nt." + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + test.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/dumbFile.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/test.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} + {} *new* +/tests/cases/fourslash/server/node_modules: + {} + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} + {} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/test.ts", + "line": 5, + "offset": 3 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 3, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "t", + "kind": "warning", + "kindModifiers": "", + "sortText": "18" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js b/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js new file mode 100644 index 00000000000..e254cbcc612 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js @@ -0,0 +1,544 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +export var test = "test String" + +//// [/tests/cases/fourslash/server/b.ts] +import test from "./a" + +//// [/tests/cases/fourslash/server/c.ts] +/// +/// + +//// [/tests/cases/fourslash/server/d.ts] +console.log("nothing"); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "needFileNameList": true + }, + "command": "projectInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "projectInfo", + "request_seq": 2, + "success": true, + "body": { + "configFileName": "/dev/null/inferredProject1*", + "languageServiceDisabled": false, + "fileNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/tests/cases/fourslash/server/a.ts" + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/b.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" + /tests/cases/fourslash/server/b.ts SVC-1-0 "import test from \"./a\"" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Imported via "./a" from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/a.ts + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} *new* +/tests/cases/fourslash/server/node_modules: + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} *new* + +watchedDirectoriesRecursive *deleted*:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "needFileNameList": true + }, + "command": "projectInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "projectInfo", + "request_seq": 4, + "success": true, + "body": { + "configFileName": "/dev/null/inferredProject2*", + "languageServiceDisabled": false, + "fileNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts" + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/c.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/c.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject3* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject3* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject3* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" + /tests/cases/fourslash/server/b.ts SVC-1-0 "import test from \"./a\"" + /tests/cases/fourslash/server/c.ts SVC-1-0 "/// \n/// " + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Referenced via 'a.ts' from file 'c.ts' + Imported via "./a" from file 'b.ts' + b.ts + Referenced via 'b.ts' from file 'c.ts' + c.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/a.ts + /tests/cases/fourslash/server/b.ts + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Imported via "./a" from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject3* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject3* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/c.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject3* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} *new* +/tests/cases/fourslash/server/node_modules: + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} *new* + +watchedDirectoriesRecursive *deleted*:: +/tests/cases/fourslash/node_modules: + {} +/tests/cases/fourslash/node_modules/@types: + {} +/tests/cases/fourslash/server/node_modules: + {} +/tests/cases/fourslash/server/node_modules/@types: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/c.ts", + "needFileNameList": true + }, + "command": "projectInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "projectInfo", + "request_seq": 6, + "success": true, + "body": { + "configFileName": "/dev/null/inferredProject3*", + "languageServiceDisabled": false, + "fileNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts", + "/tests/cases/fourslash/server/c.ts" + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/d.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/d.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject4* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject4* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject4* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject4* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject4* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject4* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject4*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/d.ts SVC-1-0 "console.log(\"nothing\");" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + d.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) +Info seq [hh:mm:ss:mss] Files (6) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject4*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject3* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject3* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/c.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject3* +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject4* +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: + {} + {} *new* +/tests/cases/fourslash/node_modules/@types: + {} + {} *new* +/tests/cases/fourslash/server/node_modules: + {} + {} *new* +/tests/cases/fourslash/server/node_modules/@types: + {} + {} *new* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/d.ts", + "needFileNameList": true + }, + "command": "projectInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "projectInfo", + "request_seq": 8, + "success": true, + "body": { + "configFileName": "/dev/null/inferredProject4*", + "languageServiceDisabled": false, + "fileNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/tests/cases/fourslash/server/d.ts" + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js b/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js new file mode 100644 index 00000000000..25c7b498578 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js @@ -0,0 +1,184 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +export var test = "test String" + +//// [/tests/cases/fourslash/server/b.ts] +export var test2 = "test String" + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ "files": ["a.ts", "b.ts"] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/a.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts" + ], + "options": { + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" + /tests/cases/fourslash/server/b.ts Text-1 "export var test2 = \"test String\"" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Part of 'files' list in tsconfig.json + b.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/a.ts", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/b.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "needFileNameList": true + }, + "command": "projectInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "projectInfo", + "request_seq": 2, + "success": true, + "body": { + "configFileName": "/tests/cases/fourslash/server/tsconfig.json", + "languageServiceDisabled": false, + "fileNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts", + "/tests/cases/fourslash/server/tsconfig.json" + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js b/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js new file mode 100644 index 00000000000..408a65a56ee --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js @@ -0,0 +1,212 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +export var test = "test String" + +//// [/tests/cases/fourslash/server/b.ts] +export var test2 = "test String" + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ "files": ["a.ts", "c.ts", "b.ts"] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/a.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/a.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/c.ts", + "/tests/cases/fourslash/server/b.ts" + ], + "options": { + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/c.ts 500 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" + /tests/cases/fourslash/server/b.ts Text-1 "export var test2 = \"test String\"" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Part of 'files' list in tsconfig.json + b.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/a.ts", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [ + { + "text": "File '/tests/cases/fourslash/server/c.ts' not found.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6053, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 27 + }, + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/b.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/c.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/a.ts", + "needFileNameList": true + }, + "command": "projectInfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "projectInfo", + "request_seq": 2, + "success": true, + "body": { + "configFileName": "/tests/cases/fourslash/server/tsconfig.json", + "languageServiceDisabled": false, + "fileNames": [ + "/lib.d.ts", + "/lib.decorators.d.ts", + "/lib.decorators.legacy.d.ts", + "/tests/cases/fourslash/server/a.ts", + "/tests/cases/fourslash/server/b.ts", + "/tests/cases/fourslash/server/tsconfig.json" + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/quickinfo01.js b/tests/baselines/reference/tsserver/fourslashServer/quickinfo01.js new file mode 100644 index 00000000000..75bac0c74b5 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/quickinfo01.js @@ -0,0 +1,204 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/quickinfo01.ts] +interface One { + commonProperty: number; + commonFunction(): number; +} + +interface Two { + commonProperty: string + commonFunction(): number; +} + +var x : One | Two; + +x.commonProperty; +x.commonFunction; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/quickinfo01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/quickinfo01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/quickinfo01.ts SVC-1-0 "interface One {\n commonProperty: number;\n commonFunction(): number;\n}\n\ninterface Two {\n commonProperty: string\n commonFunction(): number;\n}\n\nvar x : One | Two;\n\nx.commonProperty;\nx.commonFunction;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + quickinfo01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/quickinfo01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/quickinfo01.ts", + "line": 11, + "offset": 5 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 1, + "success": true, + "body": { + "kind": "var", + "kindModifiers": "", + "start": { + "line": 11, + "offset": 5 + }, + "end": { + "line": 11, + "offset": 6 + }, + "displayString": "var x: One | Two", + "documentation": "", + "tags": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/quickinfo01.ts", + "line": 13, + "offset": 3 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 2, + "success": true, + "body": { + "kind": "property", + "kindModifiers": "", + "start": { + "line": 13, + "offset": 3 + }, + "end": { + "line": 13, + "offset": 17 + }, + "displayString": "(property) commonProperty: string | number", + "documentation": "", + "tags": [] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/quickinfo01.ts", + "line": 14, + "offset": 3 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 3, + "success": true, + "body": { + "kind": "method", + "kindModifiers": "", + "start": { + "line": 14, + "offset": 3 + }, + "end": { + "line": 14, + "offset": 17 + }, + "displayString": "(method) commonFunction(): number", + "documentation": "", + "tags": [] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/quickinfoWrongComment.js b/tests/baselines/reference/tsserver/fourslashServer/quickinfoWrongComment.js new file mode 100644 index 00000000000..4fc2091a071 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/quickinfoWrongComment.js @@ -0,0 +1,135 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/quickinfoWrongComment.ts] +interface I { + /** The colour */ + readonly colour: string +} +interface A extends I { + readonly colour: "red" | "green"; +} +interface B extends I { + readonly colour: "yellow" | "green"; +} +type F = A | B +const f: F = { colour: "green" } +f.colour + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/quickinfoWrongComment.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/quickinfoWrongComment.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/quickinfoWrongComment.ts SVC-1-0 "interface I {\n /** The colour */\n readonly colour: string\n}\ninterface A extends I {\n readonly colour: \"red\" | \"green\";\n}\ninterface B extends I {\n readonly colour: \"yellow\" | \"green\";\n}\ntype F = A | B\nconst f: F = { colour: \"green\" }\nf.colour" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + quickinfoWrongComment.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/quickinfoWrongComment.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/quickinfoWrongComment.ts", + "line": 13, + "offset": 9 + }, + "command": "quickinfo" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "quickinfo", + "request_seq": 1, + "success": true, + "body": { + "kind": "property", + "kindModifiers": "", + "start": { + "line": 13, + "offset": 3 + }, + "end": { + "line": 13, + "offset": 9 + }, + "displayString": "(property) colour: \"red\" | \"green\" | \"yellow\"", + "documentation": "The colour", + "tags": [] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referenceToEmptyObject.js b/tests/baselines/reference/tsserver/fourslashServer/referenceToEmptyObject.js new file mode 100644 index 00000000000..d918d18cdcf --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/referenceToEmptyObject.js @@ -0,0 +1,110 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/referenceToEmptyObject.ts] +const obj = {}; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referenceToEmptyObject.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/referenceToEmptyObject.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/referenceToEmptyObject.ts SVC-1-0 "const obj = {};" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + referenceToEmptyObject.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/referenceToEmptyObject.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referenceToEmptyObject.ts", + "line": 1, + "offset": 15 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /tests/cases/fourslash/server/referenceToEmptyObject.ts position 14 in project /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 1, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/references01.js b/tests/baselines/reference/tsserver/fourslashServer/references01.js new file mode 100644 index 00000000000..96355422405 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/references01.js @@ -0,0 +1,208 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/referencesForGlobals_1.ts] +class globalClass { + public f() { } +} + +//// [/referencesForGlobals_2.ts] +/// +var c = globalClass(); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/referencesForGlobals_1.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /referencesForGlobals_1.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /referencesForGlobals_1.ts SVC-1-0 "class globalClass {\n public f() { }\n}" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + referencesForGlobals_1.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /referencesForGlobals_1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/referencesForGlobals_2.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /referencesForGlobals_2.ts :: No config files found. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /referencesForGlobals_1.ts SVC-1-0 "class globalClass {\n public f() { }\n}" + /referencesForGlobals_2.ts SVC-1-0 "///\nvar c = globalClass();" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + referencesForGlobals_1.ts + Referenced via 'referencesForGlobals_1.ts' from file 'referencesForGlobals_2.ts' + referencesForGlobals_2.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] `remove Project:: +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts + /lib.decorators.d.ts + /lib.decorators.legacy.d.ts + /referencesForGlobals_1.ts + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + referencesForGlobals_1.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /referencesForGlobals_1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /referencesForGlobals_2.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/referencesForGlobals_2.ts", + "line": 2, + "offset": 9 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /referencesForGlobals_2.ts position 58 in project /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 2, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/referencesForGlobals_1.ts", + "kind": "class", + "name": "class globalClass", + "textSpan": { + "start": 6, + "length": 11 + }, + "displayParts": [ + { + "text": "class", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalClass", + "kind": "className" + } + ], + "contextSpan": { + "start": 0, + "length": 40 + } + }, + "references": [ + { + "textSpan": { + "start": 6, + "length": 11 + }, + "fileName": "/referencesForGlobals_1.ts", + "contextSpan": { + "start": 0, + "length": 40 + }, + "isWriteAccess": true + }, + { + "textSpan": { + "start": 58, + "length": 11 + }, + "fileName": "/referencesForGlobals_2.ts", + "isWriteAccess": false + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInConfiguredProject.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInConfiguredProject.js new file mode 100644 index 00000000000..01b5923fb2f --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInConfiguredProject.js @@ -0,0 +1,233 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/referencesForGlobals_1.ts] +class globalClass { + public f() { } +} + +//// [/referencesForGlobals_2.ts] +var c = globalClass(); + +//// [/tsconfig.json] +{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/referencesForGlobals_1.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /referencesForGlobals_1.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /referencesForGlobals_1.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/referencesForGlobals_1.ts", + "/referencesForGlobals_2.ts" + ], + "options": { + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /referencesForGlobals_2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /referencesForGlobals_1.ts SVC-1-0 "class globalClass {\n public f() { }\n}" + /referencesForGlobals_2.ts Text-1 "var c = globalClass();" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + referencesForGlobals_1.ts + Part of 'files' list in tsconfig.json + referencesForGlobals_2.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/referencesForGlobals_1.ts", + "configFile": "/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /referencesForGlobals_1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/referencesForGlobals_2.ts: *new* + {"pollingInterval":500} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/referencesForGlobals_2.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /referencesForGlobals_2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /referencesForGlobals_2.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /referencesForGlobals_1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /referencesForGlobals_2.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/referencesForGlobals_2.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/referencesForGlobals_2.ts", + "line": 1, + "offset": 9 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /referencesForGlobals_2.ts position 8 in project /tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 2, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/referencesForGlobals_1.ts", + "kind": "class", + "name": "class globalClass", + "textSpan": { + "start": 6, + "length": 11 + }, + "displayParts": [ + { + "text": "class", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalClass", + "kind": "className" + } + ], + "contextSpan": { + "start": 0, + "length": 40 + } + }, + "references": [ + { + "textSpan": { + "start": 6, + "length": 11 + }, + "fileName": "/referencesForGlobals_1.ts", + "contextSpan": { + "start": 0, + "length": 40 + }, + "isWriteAccess": true + }, + { + "textSpan": { + "start": 8, + "length": 11 + }, + "fileName": "/referencesForGlobals_2.ts", + "isWriteAccess": false + } + ] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFile.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFile.js new file mode 100644 index 00000000000..97c1e4d833b --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFile.js @@ -0,0 +1,110 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/referencesInEmptyFile.ts] + + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesInEmptyFile.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/referencesInEmptyFile.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/referencesInEmptyFile.ts SVC-1-0 "" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + referencesInEmptyFile.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/referencesInEmptyFile.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesInEmptyFile.ts", + "line": 1, + "offset": 1 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /tests/cases/fourslash/server/referencesInEmptyFile.ts position 0 in project /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 1, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFileWithMultipleProjects.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFileWithMultipleProjects.js new file mode 100644 index 00000000000..808016795b8 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFileWithMultipleProjects.js @@ -0,0 +1,343 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a/a.ts] +/// +; + +//// [/a/tsconfig.json] +{ "files": ["a.ts"] } + +//// [/b/b.ts] +; + +//// [/b/tsconfig.json] +{ "files": ["b.ts"] } + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/tsconfig.json :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { + "rootNames": [ + "/a/a.ts" + ], + "options": { + "configFilePath": "/a/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/b.ts Text-1 ";" + /a/a.ts Text-1 "/// \n;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../b/b.ts + Referenced via '../b/b.ts' from file 'a.ts' + a.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/tsconfig.json", + "configFile": "/a/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a/tsconfig.json SVC-1-0 "{ \"files\": [\"a.ts\"] }" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/a/a.ts: *new* + {"pollingInterval":500} +/a/tsconfig.json: *new* + {"pollingInterval":2000} +/b/b.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/a.ts :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +After Request +watchedFiles:: +/a/tsconfig.json: + {"pollingInterval":2000} +/b/b.ts: + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/a/a.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/a/a.ts", + "line": 2, + "offset": 1 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/a.ts position 35 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 2, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/b/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /b/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/b.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/tsconfig.json 2000 undefined Project: /b/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/b/tsconfig.json", + "reason": "Creating possible configured project for /b/b.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /b/tsconfig.json : { + "rootNames": [ + "/b/b.ts" + ], + "options": { + "configFilePath": "/b/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /b/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/b.ts Text-1 ";" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + b.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/b/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/b/b.ts", + "configFile": "/b/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /b/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/b/tsconfig.json +After Request +watchedFiles:: +/a/tsconfig.json: + {"pollingInterval":2000} +/b/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/b/b.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/b/b.ts", + "line": 1, + "offset": 1 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/b.ts position 0 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/b.ts position 0 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 4, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInStringLiteralValueWithMultipleProjects.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInStringLiteralValueWithMultipleProjects.js new file mode 100644 index 00000000000..9967850d2f0 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInStringLiteralValueWithMultipleProjects.js @@ -0,0 +1,364 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/a/a.ts] +/// +const str: string = "hello"; + +//// [/a/tsconfig.json] +{ "files": ["a.ts"] } + +//// [/b/b.ts] +const str2: string = "hello"; + +//// [/b/tsconfig.json] +{ "files": ["b.ts"] } + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/a/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/tsconfig.json :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { + "rootNames": [ + "/a/a.ts" + ], + "options": { + "configFilePath": "/a/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/b.ts Text-1 "const str2: string = \"hello\";" + /a/a.ts Text-1 "/// \nconst str: string = \"hello\";" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../b/b.ts + Referenced via '../b/b.ts' from file 'a.ts' + a.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/tsconfig.json", + "configFile": "/a/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /a/tsconfig.json SVC-1-0 "{ \"files\": [\"a.ts\"] }" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/a/a.ts: *new* + {"pollingInterval":500} +/a/tsconfig.json: *new* + {"pollingInterval":2000} +/b/b.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/a/a.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /a +Info seq [hh:mm:ss:mss] For info: /a/a.ts :: Config file name: /a/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +After Request +watchedFiles:: +/a/tsconfig.json: + {"pollingInterval":2000} +/b/b.ts: + {"pollingInterval":500} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/a/a.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/a/a.ts", + "line": 2, + "offset": 27 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /a/a.ts position 61 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 2, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/a/a.ts", + "kind": "var", + "name": "hello", + "textSpan": { + "start": 56, + "length": 5 + }, + "displayParts": [ + { + "text": "\"hello\"", + "kind": "stringLiteral" + } + ] + }, + "references": [] + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/b/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /b/b.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /b +Info seq [hh:mm:ss:mss] For info: /b/b.ts :: Config file name: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /b/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /b/tsconfig.json 2000 undefined Project: /b/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/b/tsconfig.json", + "reason": "Creating possible configured project for /b/b.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /b/tsconfig.json : { + "rootNames": [ + "/b/b.ts" + ], + "options": { + "configFilePath": "/b/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /b/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /b/b.ts Text-1 "const str2: string = \"hello\";" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + b.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/b/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/b/b.ts", + "configFile": "/b/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/b/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /a/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /a/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /b/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /a/tsconfig.json,/b/tsconfig.json +After Request +watchedFiles:: +/a/tsconfig.json: + {"pollingInterval":2000} +/b/tsconfig.json: *new* + {"pollingInterval":2000} +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} + +watchedFiles *deleted*:: +/b/b.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/b/b.ts", + "line": 1, + "offset": 28 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /b/b.ts position 27 in project /b/tsconfig.json +Info seq [hh:mm:ss:mss] Finding references to /b/b.ts position 27 in project /a/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 4, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesToNonPropertyNameStringLiteral.js b/tests/baselines/reference/tsserver/fourslashServer/referencesToNonPropertyNameStringLiteral.js new file mode 100644 index 00000000000..a682f66c916 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesToNonPropertyNameStringLiteral.js @@ -0,0 +1,131 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts] +const str: string = "hello"; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts SVC-1-0 "const str: string = \"hello\";" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + referencesToNonPropertyNameStringLiteral.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts", + "line": 1, + "offset": 27 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts position 26 in project /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 1, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts", + "kind": "var", + "name": "hello", + "textSpan": { + "start": 21, + "length": 5 + }, + "displayParts": [ + { + "text": "\"hello\"", + "kind": "stringLiteral" + } + ] + }, + "references": [] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesToStringLiteralValue.js b/tests/baselines/reference/tsserver/fourslashServer/referencesToStringLiteralValue.js new file mode 100644 index 00000000000..16d2fbad779 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesToStringLiteralValue.js @@ -0,0 +1,131 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/referencesToStringLiteralValue.ts] +const s: string = "some string"; + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesToStringLiteralValue.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/referencesToStringLiteralValue.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/referencesToStringLiteralValue.ts SVC-1-0 "const s: string = \"some string\";" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + referencesToStringLiteralValue.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/referencesToStringLiteralValue.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesToStringLiteralValue.ts", + "line": 1, + "offset": 25 + }, + "command": "references-full" + } +Info seq [hh:mm:ss:mss] Finding references to /tests/cases/fourslash/server/referencesToStringLiteralValue.ts position 24 in project /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "references-full", + "request_seq": 1, + "success": true, + "body": [ + { + "definition": { + "containerKind": "", + "containerName": "", + "fileName": "/tests/cases/fourslash/server/referencesToStringLiteralValue.ts", + "kind": "var", + "name": "some string", + "textSpan": { + "start": 19, + "length": 12 + }, + "displayParts": [ + { + "text": "\"some string\"", + "kind": "stringLiteral" + } + ] + }, + "references": [] + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/rename01.js b/tests/baselines/reference/tsserver/fourslashServer/rename01.js new file mode 100644 index 00000000000..9d41daad5ce --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/rename01.js @@ -0,0 +1,218 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/rename01.ts] +/// +function Bar() { + // This is a reference to Bar in a comment. + "this is a reference to Bar in a string" +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/rename01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/rename01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/bar.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/rename01.ts SVC-1-0 "///\nfunction Bar() {\n // This is a reference to Bar in a comment.\n \"this is a reference to Bar in a string\"\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + rename01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/rename01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/bar.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/rename01.ts", + "line": 2, + "offset": 10, + "findInStrings": true, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 2, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "Bar", + "fullDisplayName": "Bar", + "kind": "function", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 2, + "offset": 10 + }, + "end": { + "line": 2, + "offset": 13 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/rename01.ts", + "locs": [ + { + "start": { + "line": 2, + "offset": 10 + }, + "end": { + "line": 2, + "offset": 13 + }, + "contextStart": { + "line": 2, + "offset": 1 + }, + "contextEnd": { + "line": 5, + "offset": 2 + } + }, + { + "start": { + "line": 3, + "offset": 31 + }, + "end": { + "line": 3, + "offset": 34 + } + }, + { + "start": { + "line": 4, + "offset": 29 + }, + "end": { + "line": 4, + "offset": 32 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/renameInConfiguredProject.js b/tests/baselines/reference/tsserver/fourslashServer/renameInConfiguredProject.js new file mode 100644 index 00000000000..ffe0c841cfb --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/renameInConfiguredProject.js @@ -0,0 +1,372 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/referencesForGlobals_1.ts] +var globalName = 0; + +//// [/tests/cases/fourslash/server/referencesForGlobals_2.ts] +var y = globalName; + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesForGlobals_1.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/referencesForGlobals_1.ts :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/referencesForGlobals_1.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/referencesForGlobals_1.ts", + "/tests/cases/fourslash/server/referencesForGlobals_2.ts" + ], + "options": { + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/referencesForGlobals_2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/referencesForGlobals_1.ts SVC-1-0 "var globalName = 0;" + /tests/cases/fourslash/server/referencesForGlobals_2.ts Text-1 "var y = globalName;" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + referencesForGlobals_1.ts + Part of 'files' list in tsconfig.json + referencesForGlobals_2.ts + Part of 'files' list in tsconfig.json + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/referencesForGlobals_1.ts", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/referencesForGlobals_1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tests/cases/fourslash/server/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/referencesForGlobals_2.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesForGlobals_1.ts", + "line": 1, + "offset": 5, + "findInStrings": true, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 2, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "globalName", + "fullDisplayName": "globalName", + "kind": "var", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 1, + "offset": 5 + }, + "end": { + "line": 1, + "offset": 15 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/referencesForGlobals_1.ts", + "locs": [ + { + "start": { + "line": 1, + "offset": 5 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 20 + } + } + ] + }, + { + "file": "/tests/cases/fourslash/server/referencesForGlobals_2.ts", + "locs": [ + { + "start": { + "line": 1, + "offset": 9 + }, + "end": { + "line": 1, + "offset": 19 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/referencesForGlobals_2.ts", + "line": 1, + "offset": 9, + "findInStrings": true, + "findInComments": true + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 5, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "globalName", + "fullDisplayName": "globalName", + "kind": "var", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 1, + "offset": 9 + }, + "end": { + "line": 1, + "offset": 19 + } + } + }, + "locs": [ + { + "file": "/tests/cases/fourslash/server/referencesForGlobals_1.ts", + "locs": [ + { + "start": { + "line": 1, + "offset": 5 + }, + "end": { + "line": 1, + "offset": 15 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 20 + } + } + ] + }, + { + "file": "/tests/cases/fourslash/server/referencesForGlobals_2.ts", + "locs": [ + { + "start": { + "line": 1, + "offset": 9 + }, + "end": { + "line": 1, + "offset": 19 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/renameNamedImport.js b/tests/baselines/reference/tsserver/fourslashServer/renameNamedImport.js new file mode 100644 index 00000000000..37040cc40de --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/renameNamedImport.js @@ -0,0 +1,425 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib/index.ts] +const unrelatedLocalVariable = 123; +export const someExportedVariable = unrelatedLocalVariable; + +//// [/lib/tsconfig.json] +{} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/src/index.ts] +import { someExportedVariable } from '../lib/index'; +someExportedVariable; + +//// [/src/tsconfig.json] +{} + +//// [/tsconfig.json] +{} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/lib/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /lib +Info seq [hh:mm:ss:mss] For info: /lib/tsconfig.json :: Config file name: /lib/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /lib/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib/tsconfig.json 2000 undefined Project: /lib/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/lib/tsconfig.json", + "reason": "Creating possible configured project for /lib/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /lib/tsconfig.json : { + "rootNames": [ + "/lib/index.ts" + ], + "options": { + "configFilePath": "/lib/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /lib 1 undefined Config: /lib/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /lib 1 undefined Config: /lib/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /lib/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /lib/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/lib/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/lib/tsconfig.json", + "configFile": "/lib/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib/tsconfig.json SVC-1-0 "{}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /lib/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/lib/index.ts: *new* + {"pollingInterval":500} +/lib/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/lib: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/lib/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /lib/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /lib +Info seq [hh:mm:ss:mss] For info: /lib/index.ts :: Config file name: /lib/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /lib/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /lib/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /lib/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/lib/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/lib: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/index.ts :: Config file name: /src/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /src/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/tsconfig.json 2000 undefined Project: /src/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/src/tsconfig.json", + "reason": "Creating possible configured project for /src/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /src/tsconfig.json : { + "rootNames": [ + "/src/index.ts" + ], + "options": { + "configFilePath": "/src/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /src 1 undefined Config: /src/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src 1 undefined Config: /src/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /src/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/src/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" + /src/index.ts SVC-1-0 "import { someExportedVariable } from '../lib/index';\nsomeExportedVariable;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../lib/index.ts + Imported via '../lib/index' from file 'index.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/src/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/src/index.ts", + "configFile": "/src/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/src/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /lib/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /lib/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /lib/tsconfig.json,/src/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /src/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib/tsconfig.json: + {"pollingInterval":2000} +/src/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/lib: + {} +/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 10, + "findInStrings": false, + "findInComments": false + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 4, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "someExportedVariable", + "fullDisplayName": "someExportedVariable", + "kind": "alias", + "kindModifiers": "export", + "triggerSpan": { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 30 + } + } + }, + "locs": [ + { + "file": "/src/index.ts", + "locs": [ + { + "start": { + "line": 1, + "offset": 10 + }, + "end": { + "line": 1, + "offset": 30 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 53 + }, + "prefixText": "someExportedVariable as " + }, + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 21 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/renameNamespaceImport.js b/tests/baselines/reference/tsserver/fourslashServer/renameNamespaceImport.js new file mode 100644 index 00000000000..a352966f524 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/renameNamespaceImport.js @@ -0,0 +1,424 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib/index.ts] +const unrelatedLocalVariable = 123; +export const someExportedVariable = unrelatedLocalVariable; + +//// [/lib/tsconfig.json] +{} + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/src/index.ts] +import * as lib from '../lib/index'; +lib.someExportedVariable; + +//// [/src/tsconfig.json] +{} + +//// [/tsconfig.json] +{} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/lib/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /lib +Info seq [hh:mm:ss:mss] For info: /lib/tsconfig.json :: Config file name: /lib/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /lib/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib/tsconfig.json 2000 undefined Project: /lib/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/lib/tsconfig.json", + "reason": "Creating possible configured project for /lib/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /lib/tsconfig.json : { + "rootNames": [ + "/lib/index.ts" + ], + "options": { + "configFilePath": "/lib/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /lib 1 undefined Config: /lib/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /lib 1 undefined Config: /lib/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /lib/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /lib/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/lib/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/lib/tsconfig.json", + "configFile": "/lib/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib/tsconfig.json SVC-1-0 "{}" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /lib/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/lib/index.ts: *new* + {"pollingInterval":500} +/lib/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/lib: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/lib/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /lib/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: /lib +Info seq [hh:mm:ss:mss] For info: /lib/index.ts :: Config file name: /lib/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /lib/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /lib/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /lib/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/lib/index.ts: + {"pollingInterval":500} + +watchedDirectoriesRecursive:: +/lib: + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/src/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /src +Info seq [hh:mm:ss:mss] For info: /src/index.ts :: Config file name: /src/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /src/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /src/tsconfig.json 2000 undefined Project: /src/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/src/tsconfig.json", + "reason": "Creating possible configured project for /src/index.ts to open" + } + } +Info seq [hh:mm:ss:mss] Config: /src/tsconfig.json : { + "rootNames": [ + "/src/index.ts" + ], + "options": { + "configFilePath": "/src/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /src 1 undefined Config: /src/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src 1 undefined Config: /src/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /src/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/src/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" + /src/index.ts SVC-1-0 "import * as lib from '../lib/index';\nlib.someExportedVariable;" + + + ../lib.d.ts + Default library for target 'es5' + ../lib.decorators.d.ts + Library referenced via 'decorators' from file '../lib.d.ts' + ../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../lib.d.ts' + ../lib/index.ts + Imported via '../lib/index' from file 'index.ts' + index.ts + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/src/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/src/index.ts", + "configFile": "/src/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/lib/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/src/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /lib/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /lib/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /lib/tsconfig.json,/src/tsconfig.json +Info seq [hh:mm:ss:mss] FileName: /src/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /src/tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib/tsconfig.json: + {"pollingInterval":2000} +/src/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/lib: + {} +/src: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "preferences": { + "providePrefixAndSuffixTextForRename": true, + "quotePreference": "double" + } + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/src/index.ts", + "line": 1, + "offset": 13, + "findInStrings": false, + "findInComments": false + }, + "command": "rename" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "rename", + "request_seq": 4, + "success": true, + "body": { + "info": { + "canRename": true, + "displayName": "lib", + "fullDisplayName": "lib", + "kind": "alias", + "kindModifiers": "", + "triggerSpan": { + "start": { + "line": 1, + "offset": 13 + }, + "end": { + "line": 1, + "offset": 16 + } + } + }, + "locs": [ + { + "file": "/src/index.ts", + "locs": [ + { + "start": { + "line": 1, + "offset": 13 + }, + "end": { + "line": 1, + "offset": 16 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 37 + } + }, + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 4 + } + } + ] + } + ] + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/semanticClassificationJs1.js b/tests/baselines/reference/tsserver/fourslashServer/semanticClassificationJs1.js new file mode 100644 index 00000000000..c1f0c03670b --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/semanticClassificationJs1.js @@ -0,0 +1,126 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/semanticClassificationJs1.ts] +@Filename: index.js + +var Thing = 0; +Thing.toExponential(); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/semanticClassificationJs1.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/semanticClassificationJs1.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/semanticClassificationJs1.ts SVC-1-0 "@Filename: index.js\n\nvar Thing = 0;\nThing.toExponential();" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + semanticClassificationJs1.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/semanticClassificationJs1.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/semanticClassificationJs1.ts", + "start": 0, + "length": 58, + "format": "2020" + }, + "command": "encodedSemanticClassifications-full" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "encodedSemanticClassifications-full", + "request_seq": 1, + "success": true, + "body": { + "spans": [ + 25, + 5, + 2049, + 36, + 5, + 2048, + 42, + 13, + 3088 + ], + "endOfLineState": 0 + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/signatureHelp01.js b/tests/baselines/reference/tsserver/fourslashServer/signatureHelp01.js new file mode 100644 index 00000000000..ea7b14752fd --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/signatureHelp01.js @@ -0,0 +1,199 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/signatureHelp01.ts] +function foo(data: number) { +} + +function bar { + foo() +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/signatureHelp01.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/signatureHelp01.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/signatureHelp01.ts SVC-1-0 "function foo(data: number) {\n}\n\nfunction bar {\n foo()\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + signatureHelp01.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/signatureHelp01.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/signatureHelp01.ts", + "line": 5, + "offset": 9 + }, + "command": "signatureHelp" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "signatureHelp", + "request_seq": 1, + "success": true, + "body": { + "items": [ + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "foo", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "void", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "data", + "documentation": [], + "displayParts": [ + { + "text": "data", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [], + "tags": [] + } + ], + "applicableSpan": { + "start": { + "line": 5, + "offset": 9 + }, + "end": { + "line": 5, + "offset": 9 + } + }, + "selectedItemIndex": 0, + "argumentIndex": 0, + "argumentCount": 0 + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/signatureHelpJSDocCallbackTag.js b/tests/baselines/reference/tsserver/fourslashServer/signatureHelpJSDocCallbackTag.js new file mode 100644 index 00000000000..7b46ebf6995 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/signatureHelpJSDocCallbackTag.js @@ -0,0 +1,677 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/jsdocCallbackTag.js] +/** + * @callback FooHandler - A kind of magic + * @param {string} eventName - So many words + * @param eventName2 {number | string} - Silence is golden + * @param eventName3 - Osterreich mos def + * @return {number} - DIVEKICK + */ +/** + * @type {FooHandler} callback + */ +var t; + +/** + * @callback FooHandler2 - What, another one? + * @param {string=} eventName - it keeps happening + * @param {string} [eventName2] - i WARNED you dog + */ +/** + * @type {FooHandler2} callback + */ +var t2; +t("!", 12, false); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/jsdocCallbackTag.js :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/jsdocCallbackTag.js SVC-1-0 "/**\n * @callback FooHandler - A kind of magic\n * @param {string} eventName - So many words\n * @param eventName2 {number | string} - Silence is golden\n * @param eventName3 - Osterreich mos def\n * @return {number} - DIVEKICK\n */\n/**\n * @type {FooHandler} callback\n */\nvar t;\n\n/**\n * @callback FooHandler2 - What, another one?\n * @param {string=} eventName - it keeps happening\n * @param {string} [eventName2] - i WARNED you dog\n */\n/**\n * @type {FooHandler2} callback\n */\nvar t2;\nt(\"!\", 12, false);" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + jsdocCallbackTag.js + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/jsdocCallbackTag.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", + "line": 22, + "offset": 3 + }, + "command": "signatureHelp" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "signatureHelp", + "request_seq": 1, + "success": true, + "body": { + "items": [ + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "t", + "kind": "localName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "eventName", + "documentation": [ + { + "text": "- So many words", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + }, + { + "name": "eventName2", + "documentation": [ + { + "text": "- Silence is golden", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName2", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "|", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + }, + { + "name": "eventName3", + "documentation": [ + { + "text": "- Osterreich mos def", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName3", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [], + "tags": [ + { + "name": "type", + "text": "{FooHandler} callback" + } + ] + } + ], + "applicableSpan": { + "start": { + "line": 22, + "offset": 3 + }, + "end": { + "line": 22, + "offset": 17 + } + }, + "selectedItemIndex": 0, + "argumentIndex": 0, + "argumentCount": 3 + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", + "line": 22, + "offset": 8 + }, + "command": "signatureHelp" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "signatureHelp", + "request_seq": 2, + "success": true, + "body": { + "items": [ + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "t", + "kind": "localName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "eventName", + "documentation": [ + { + "text": "- So many words", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + }, + { + "name": "eventName2", + "documentation": [ + { + "text": "- Silence is golden", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName2", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "|", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + }, + { + "name": "eventName3", + "documentation": [ + { + "text": "- Osterreich mos def", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName3", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [], + "tags": [ + { + "name": "type", + "text": "{FooHandler} callback" + } + ] + } + ], + "applicableSpan": { + "start": { + "line": 22, + "offset": 3 + }, + "end": { + "line": 22, + "offset": 17 + } + }, + "selectedItemIndex": 0, + "argumentIndex": 1, + "argumentCount": 3 + } + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", + "line": 22, + "offset": 12 + }, + "command": "signatureHelp" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "signatureHelp", + "request_seq": 3, + "success": true, + "body": { + "items": [ + { + "isVariadic": false, + "prefixDisplayParts": [ + { + "text": "t", + "kind": "localName" + }, + { + "text": "(", + "kind": "punctuation" + } + ], + "suffixDisplayParts": [ + { + "text": ")", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "separatorDisplayParts": [ + { + "text": ",", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + } + ], + "parameters": [ + { + "name": "eventName", + "documentation": [ + { + "text": "- So many words", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + }, + { + "name": "eventName2", + "documentation": [ + { + "text": "- Silence is golden", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName2", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "|", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + }, + { + "name": "eventName3", + "documentation": [ + { + "text": "- Osterreich mos def", + "kind": "text" + } + ], + "displayParts": [ + { + "text": "eventName3", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "any", + "kind": "keyword" + } + ], + "isOptional": false, + "isRest": false + } + ], + "documentation": [], + "tags": [ + { + "name": "type", + "text": "{FooHandler} callback" + } + ] + } + ], + "applicableSpan": { + "start": { + "line": 22, + "offset": 3 + }, + "end": { + "line": 22, + "offset": 17 + } + }, + "selectedItemIndex": 0, + "argumentIndex": 2, + "argumentCount": 3 + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/tripleSlashReferenceResolutionMode.js b/tests/baselines/reference/tsserver/fourslashServer/tripleSlashReferenceResolutionMode.js new file mode 100644 index 00000000000..4ac1d227cc4 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/tripleSlashReferenceResolutionMode.js @@ -0,0 +1,304 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/index.ts] +/// +pkgImportGlobal; +export {}; + +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/node_modules/pkg/import.d.ts] +export {}; +export interface PkgImportInterface { field: any; } +declare global { const pkgImportGlobal: PkgImportInterface; } + +//// [/node_modules/pkg/package.json] +{ "name": "pkg", "version": "0.0.1", "exports": { "require": "./require.cjs", "default": "./import.js" }, "type": "module" } + +//// [/node_modules/pkg/require.d.cts] +export {}; +export interface PkgRequireInterface { member: any; } +declare global { const pkgRequireGlobal: PkgRequireInterface; } + +//// [/package.json] +{ "private": true, "type": "commonjs" } + +//// [/tsconfig.json] +{ "compilerOptions": { "module": "nodenext", "declaration": true, "strict": true, "outDir": "out" }, "files": ["./index.ts"] } + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /tsconfig.json :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { + "rootNames": [ + "/index.ts" + ], + "options": { + "module": 199, + "declaration": true, + "strict": true, + "outDir": "/out", + "configFilePath": "/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/pkg/import.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.esnext.full.d.ts 500 undefined Project: /tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + /node_modules/pkg/import.d.ts Text-1 "export {};\nexport interface PkgImportInterface { field: any; }\ndeclare global { const pkgImportGlobal: PkgImportInterface; }" + /index.ts Text-1 "/// \npkgImportGlobal;\nexport {};" + + + node_modules/pkg/import.d.ts + Type library referenced via 'pkg' from file 'index.ts' with packageId 'pkg/import.d.ts@0.0.1' + File is ECMAScript module because 'node_modules/pkg/package.json' has field "type" with value "module" + index.ts + Part of 'files' list in tsconfig.json + File is CommonJS module because 'package.json' has field "type" whose value is not "module" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tsconfig.json", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "File '/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'CallableFunction'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'NewableFunction'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } + } +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"nodenext\", \"declaration\": true, \"strict\": true, \"outDir\": \"out\" }, \"files\": [\"./index.ts\"] }" + + + lib.d.ts + Default library for target 'es5' + lib.decorators.d.ts + Library referenced via 'decorators' from file 'lib.d.ts' + lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file 'lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/index.ts: *new* + {"pollingInterval":500} +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/lib.esnext.full.d.ts: *new* + {"pollingInterval":500} +/node_modules/pkg/import.d.ts: *new* + {"pollingInterval":500} +/package.json: *new* + {"pollingInterval":250} +/tsconfig.json: *new* + {"pollingInterval":2000} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/index.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Search path: / +Info seq [hh:mm:ss:mss] For info: /index.ts :: Config file name: /tsconfig.json +Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (2) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileName: /index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /tsconfig.json +After Request +watchedFiles:: +/lib.d.ts: + {"pollingInterval":500} +/lib.decorators.d.ts: + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/lib.esnext.full.d.ts: + {"pollingInterval":500} +/node_modules/pkg/import.d.ts: + {"pollingInterval":500} +/package.json: + {"pollingInterval":250} +/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/index.ts: + {"pollingInterval":500} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "syntacticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "syntacticDiagnosticsSync", + "request_seq": 2, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/index.ts", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 3, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/tsconfigComputedPropertyError.js b/tests/baselines/reference/tsserver/fourslashServer/tsconfigComputedPropertyError.js new file mode 100644 index 00000000000..d3bbb78704e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/tsconfigComputedPropertyError.js @@ -0,0 +1,227 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/tsconfig.json] +{ + ["oops!" + 42]: "true", + "files": [ + "nonexistentfile.ts" + ], + "compileOnSave": true +} + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsconfig.json :: Config file name: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json", + "reason": "Creating possible configured project for /tests/cases/fourslash/server/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { + "rootNames": [ + "/tests/cases/fourslash/server/nonexistentfile.ts" + ], + "options": { + "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/nonexistentfile.ts 500 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tests/cases/fourslash/server/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", + "configFile": "/tests/cases/fourslash/server/tsconfig.json", + "diagnostics": [ + { + "text": "File '/tests/cases/fourslash/server/nonexistentfile.ts' not found.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6053, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 4, + "offset": 9 + }, + "end": { + "line": 4, + "offset": 29 + }, + "file": "/tests/cases/fourslash/server/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "start": { + "line": 2, + "offset": 5 + }, + "end": { + "line": 2, + "offset": 19 + }, + "text": "String literal with double quotes expected.", + "code": 1327, + "category": "error", + "fileName": "/tests/cases/fourslash/server/tsconfig.json" + } + ] + } + } +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n [\"oops!\" + 42]: \"true\",\n \"files\": [\n \"nonexistentfile.ts\"\n ],\n \"compileOnSave\": true\n}" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsconfig.json + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/nonexistentfile.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} + {} +/tests/cases/fourslash/server/node_modules: *new* + {} + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsconfig.json", + "includeLinePosition": true + }, + "command": "semanticDiagnosticsSync" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "semanticDiagnosticsSync", + "request_seq": 1, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/tsxIncrementalServer.js b/tests/baselines/reference/tsserver/fourslashServer/tsxIncrementalServer.js new file mode 100644 index 00000000000..2d4c9ede99e --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/tsxIncrementalServer.js @@ -0,0 +1,726 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/tsxIncrementalServer.ts] + + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/tsxIncrementalServer.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/tsxIncrementalServer.ts SVC-1-0 "" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + tsxIncrementalServer.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/tsxIncrementalServer.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 1, + "insertString": "<" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 2, + "key": "<" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 3, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 2, + "endLine": 1, + "endOffset": 2, + "insertString": "d" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 6, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 3, + "key": "d" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 6, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 7, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 3, + "endLine": 1, + "endOffset": 3, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 8, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 4, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 8, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 9, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 4, + "endLine": 1, + "endOffset": 4, + "insertString": "v" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 10, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 5, + "key": "v" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 10, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 11, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 5, + "endLine": 1, + "endOffset": 5, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 12, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 5, + "endLine": 1, + "endOffset": 5, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 13, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 6, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 13, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 14, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 6, + "endLine": 1, + "endOffset": 6, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 15, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 6, + "endLine": 1, + "endOffset": 6, + "insertString": " " + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 16, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 7, + "key": " " + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 16, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 17, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 7, + "endLine": 1, + "endOffset": 7, + "insertString": "i" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 18, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 8, + "key": "i" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 18, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 19, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 8, + "endLine": 1, + "endOffset": 8, + "insertString": "d" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 20, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 9, + "key": "d" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 20, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 21, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 9, + "endLine": 1, + "endOffset": 9, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 22, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 9, + "endLine": 1, + "endOffset": 9, + "insertString": "=" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 23, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 10, + "key": "=" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 23, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 24, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 10, + "endLine": 1, + "endOffset": 10, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 25, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 10, + "endLine": 1, + "endOffset": 10, + "insertString": "\"" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 26, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 11, + "key": "\"" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 26, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 27, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 11, + "endLine": 1, + "endOffset": 11, + "insertString": "f" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 28, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 12, + "key": "f" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 28, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 29, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 12, + "endLine": 1, + "endOffset": 12, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 30, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 13, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 30, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 31, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 13, + "endLine": 1, + "endOffset": 13, + "insertString": "o" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 32, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 14, + "key": "o" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 32, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 33, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 14, + "endLine": 1, + "endOffset": 14, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 34, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 14, + "endLine": 1, + "endOffset": 14, + "insertString": "\"" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 35, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 15, + "key": "\"" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 35, + "success": true, + "body": [] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 36, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 15, + "endLine": 1, + "endOffset": 15, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 37, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 15, + "endLine": 1, + "endOffset": 15, + "insertString": ">" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 38, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", + "line": 1, + "offset": 16, + "key": ">" + }, + "command": "formatonkey" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "formatonkey", + "request_seq": 38, + "success": true, + "body": [] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/typeReferenceOnServer.js b/tests/baselines/reference/tsserver/fourslashServer/typeReferenceOnServer.js new file mode 100644 index 00000000000..ba8f3086862 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/typeReferenceOnServer.js @@ -0,0 +1,177 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/typeReferenceOnServer.ts] +/// +var x: number; +x. + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/typeReferenceOnServer.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/typeReferenceOnServer.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/typeReferenceOnServer.ts SVC-1-0 "/// \nvar x: number;\nx." + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + typeReferenceOnServer.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/typeReferenceOnServer.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "preferences": {} + }, + "command": "configure" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/typeReferenceOnServer.ts", + "line": 3, + "offset": 3 + }, + "command": "completionInfo" + } +Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * +Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * +Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: isCompletionListBlocker: * +Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * +Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "completionInfo", + "request_seq": 2, + "success": true, + "body": { + "flags": 0, + "isGlobalCompletion": false, + "isMemberCompletion": true, + "isNewIdentifierLocation": false, + "entries": [ + { + "name": "toExponential", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toFixed", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toLocaleString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toPrecision", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "toString", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "valueOf", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + } + ] + } + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js b/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js new file mode 100644 index 00000000000..9a58e8bac30 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js @@ -0,0 +1,139 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist +//// [/lib.d.ts] +lib.d.ts-Text + +//// [/lib.decorators.d.ts] +lib.decorators.d.ts-Text + +//// [/lib.decorators.legacy.d.ts] +lib.decorators.legacy.d.ts-Text + +//// [/tests/cases/fourslash/server/a.ts] +export class Foo {} + +//// [/tests/cases/fourslash/server/b.ts] +import n = require('./a'); +var x = new n.Foo(); + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] Search path: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] For info: /tests/cases/fourslash/server/b.ts :: No config files found. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + /lib.d.ts Text-1 lib.d.ts-Text + /lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/a.ts Text-1 "export class Foo {}" + /tests/cases/fourslash/server/b.ts SVC-1-0 "import n = require('./a');\nvar x = new n.Foo();" + + + ../../../../lib.d.ts + Default library for target 'es5' + ../../../../lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../lib.d.ts' + ../../../../lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../lib.d.ts' + a.ts + Imported via './a' from file 'b.ts' + b.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/b.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +After Request +watchedFiles:: +/lib.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/a.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules: *new* + {} +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/b.ts", + "line": 2, + "offset": 6 + }, + "command": "typeDefinition" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "typeDefinition", + "request_seq": 1, + "success": true, + "body": [ + { + "file": "/tests/cases/fourslash/server/a.ts", + "start": { + "line": 1, + "offset": 14 + }, + "end": { + "line": 1, + "offset": 17 + }, + "contextStart": { + "line": 1, + "offset": 1 + }, + "contextEnd": { + "line": 1, + "offset": 20 + } + } + ] + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js index a494f0ed30a..6b32f34a5db 100644 --- a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js +++ b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js @@ -8,7 +8,12 @@ import {} from "./b"; export {}; //// [/tsconfig.json] -{"files":["./a.ts","./b.ts"]} +{ + "files": [ + "./a.ts", + "./b.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -133,12 +138,12 @@ Info seq [hh:mm:ss:mss] response: "textChanges": [ { "start": { - "line": 1, - "offset": 21 + "line": 4, + "offset": 6 }, "end": { - "line": 1, - "offset": 27 + "line": 4, + "offset": 12 }, "newText": "c.ts" } diff --git a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js index b803c3c6e07..098d0225299 100644 --- a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js +++ b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js @@ -8,7 +8,12 @@ import { x } from "./old"; export const x = 0; //// [/a/tsconfig.json] -{"files":["./old.ts","./user.ts"]} +{ + "files": [ + "./old.ts", + "./user.ts" + ] +} //// [/b/user.ts] import { x } from "../a/old"; @@ -174,12 +179,12 @@ Info seq [hh:mm:ss:mss] response: "textChanges": [ { "start": { - "line": 1, - "offset": 12 + "line": 3, + "offset": 6 }, "end": { - "line": 1, - "offset": 20 + "line": 3, + "offset": 14 }, "newText": "new.ts" } diff --git a/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js b/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js index b73d3d8635e..7355241ef09 100644 --- a/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js +++ b/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js @@ -265,14 +265,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 5, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js index 71a12d6f0d4..29f5f7bf68f 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js @@ -14,7 +14,14 @@ class C {} //// [/tsconfig.json] -{"files":["./file1.d.ts","./a/lib.d.ts","./a/file3.d.ts","/a/lib.es6.d.ts"]} +{ + "files": [ + "./file1.d.ts", + "./a/lib.d.ts", + "./a/file3.d.ts", + "/a/lib.es6.d.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js index 3655214ca85..44c30aeb0cd 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js @@ -17,7 +17,15 @@ class C {} //// [/tsconfig.json] -{"files":["./file1.js","./file2.js","./file3.mts","./file4.ts","./file5.js"]} +{ + "files": [ + "./file1.js", + "./file2.js", + "./file3.mts", + "./file4.ts", + "./file5.js" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js index 9e157c24677..d06af40b1f5 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js @@ -26,7 +26,17 @@ interface ka { //// [/tsconfig.json] -{"files":["./file1.ts","./file2.tsx","./file3.mts","./file4.cts","./file5.js","./file6.d.ts","./file7.ts"]} +{ + "files": [ + "./file1.ts", + "./file2.tsx", + "./file3.mts", + "./file4.cts", + "./file5.js", + "./file6.d.ts", + "./file7.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js b/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js index 27c53fce2ec..8142c60a4c6 100644 --- a/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js +++ b/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js @@ -134,13 +134,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -149,13 +149,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -165,36 +165,36 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [ - { - "start": { - "line": 9, - "offset": 5 - }, - "end": { - "line": 9, - "offset": 6 - }, - "text": "'x' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [ + { + "start": { + "line": 9, + "offset": 5 + }, + "end": { + "line": 9, + "offset": 6 + }, + "text": "'x' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js b/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js index 74c20336ea2..791ee1b59b9 100644 --- a/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js +++ b/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js @@ -119,13 +119,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -134,13 +134,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -150,21 +150,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js index 46a5f6f22b1..5b2ebb17ed2 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js @@ -89,10 +89,10 @@ PolledWatches:: /a/lib/lib.es6.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -104,27 +104,80 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -177,18 +230,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -233,22 +336,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -312,22 +468,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject3*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject3*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject3*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject3*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -638,18 +847,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) @@ -663,7 +921,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject3*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer @@ -682,7 +944,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject2*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer @@ -765,18 +1031,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -821,22 +1137,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject4*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject4*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject4*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject4*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -900,22 +1269,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject5*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject5*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject5*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject5*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject5*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1251,18 +1673,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject5*' (Inferred) @@ -1276,7 +1747,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject5*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer @@ -1295,7 +1770,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject4*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer @@ -1380,18 +1859,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1436,22 +1965,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject6*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject6*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject6*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject6*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1515,22 +2097,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject7*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject7*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject7*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject7*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject7*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1841,18 +2476,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject7*' (Inferred) @@ -1866,7 +2550,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject7*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer @@ -1885,7 +2573,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject6*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer @@ -1968,18 +2660,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -2024,22 +2766,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject8*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject8*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject8*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject8*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject8*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject8*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -2103,22 +2898,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject9*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject9*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject9*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject9*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject9*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject9*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject9*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js index 490da24a08e..f214faafc62 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js @@ -89,10 +89,10 @@ PolledWatches:: /a/lib/lib.es6.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -104,27 +104,80 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -177,18 +230,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -233,22 +336,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -312,22 +468,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject3*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject3*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject3*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject3*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -638,18 +847,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) @@ -663,7 +921,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject3*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer @@ -682,7 +944,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject2*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer @@ -763,22 +1029,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject4*","fileNames":["/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/A","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject4*", + "fileNames": [ + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/A", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/A/bower_components", + "/A/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":["/A/bower_components","/A/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [ + "/A/bower_components", + "/A/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject4*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject4*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -841,22 +1160,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject5*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject5*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject5*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject5*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -928,22 +1300,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject6*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject6*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject6*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject6*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject6*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1309,18 +1734,67 @@ Info seq [hh:mm:ss:mss] For info: /a/file1.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 4 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject6*' (Inferred) @@ -1334,7 +1808,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject6*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer @@ -1353,7 +1831,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject4*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer @@ -1372,7 +1854,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject5*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer @@ -1459,18 +1945,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1515,22 +2051,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject7*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject7*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject7*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject7*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1594,22 +2183,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject8*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject8*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject8*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject8*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject8*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject8*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject8*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1920,18 +2562,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject8*' (Inferred) @@ -1945,7 +2636,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject8*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject8*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject8*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer @@ -1964,7 +2659,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject7*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer @@ -2045,22 +2744,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject9*","fileNames":["/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/A","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject9*", + "fileNames": [ + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/A", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/A/bower_components", + "/A/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject9*","files":["/A/bower_components","/A/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject9*", + "files": [ + "/A/bower_components", + "/A/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject9*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject9*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -2123,22 +2875,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject10*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject10*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject10*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject10*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject10*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject10*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -2212,22 +3017,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject11*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject11*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject11*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject11*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject11*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject11*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject11*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js index b76b239fec4..271b95e7a12 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js @@ -89,10 +89,10 @@ PolledWatches:: /a/lib/lib.esnext.full.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -104,27 +104,80 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -177,18 +230,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/a/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/a/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -233,22 +336,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -312,22 +468,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject3*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject3*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject3*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject3*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js b/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js index 70ac4dc18b8..c1ad06d23ef 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js +++ b/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js @@ -28,7 +28,7 @@ Info seq [hh:mm:ss:mss] FileName: /a/file1.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* typeAcquisition : setting to undefined typeAcquisition should be inferred for inferred projects: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js b/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js index 670c41435d8..eca010dc52d 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js +++ b/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js @@ -111,10 +111,10 @@ FsWatchesRecursive:: /user/username/projects/myproject: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -126,27 +126,83 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/jsFile1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/jsFile1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -273,18 +329,70 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/jsFile2.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/jsFile2.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/jsFile1.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -363,22 +471,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/jsFile1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/jsFile1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js b/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js index ae364ca6b5a..49ca2cf32b3 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js +++ b/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js @@ -56,10 +56,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -71,27 +71,78 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/compile"],"compilerOptions":{"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/compile" + ], + "compilerOptions": { + "allowJs": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js index bf6ef4cb446..1498c7749ce 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js +++ b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js @@ -17,7 +17,10 @@ export const y = 10; //// [/user/username/projects/myproject/node_modules/module3/package.json] -{"name":"module3","version":"1.0.0"} +{ + "name": "module3", + "version": "1.0.0" +} //// [/user/username/projects/myproject/node_modules/module3/index.d.ts] export const a = 10; @@ -238,10 +241,10 @@ FsWatchesRecursive:: /user/username/projects/myproject/node_modules: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -253,23 +256,59 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":[],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/myproject/node_modules; all files: ["/user/username/projects/myproject/node_modules/module3/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["module3"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "module3" + ], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -278,7 +317,24 @@ TI:: [hh:mm:ss:mss] Installing typings ["module3"] TI:: [hh:mm:ss:mss] 'module3':: Entry for package 'module3' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* @@ -306,23 +362,76 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/module2.d.ts","/user/username/projects/myproject/module.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/module2.d.ts", + "/user/username/projects/myproject/module.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/myproject/node_modules; all files: ["/user/username/projects/myproject/node_modules/module3/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["module3"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "module3" + ], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["module3"] TI:: [hh:mm:ss:mss] 'module3':: Entry for package 'module3' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/app.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) diff --git a/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js b/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js index a5fab562b50..f26ba74f69a 100644 --- a/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js +++ b/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js @@ -118,14 +118,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js index 44a0808d26b..ebd6aff4fc2 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js index dfc023938f7..19da292534c 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js index c562e7d3b04..9c059b21dde 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js index ede0efbbcea..f77125796aa 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js index 18038c3b0e2..858613ce381 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js index ea8443db1a1..f16a83dc61f 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js index 095b1ae2145..abe17343a00 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js index 98cf7ed95f5..e5cb36dd1aa 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js index 86037f2b322..449ebdfef4b 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js index 3513bc92fb9..4ec1a1f253f 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js index c950d90beb7..19ef45bfee7 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js index 6e360cb6195..b9623a7a876 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js index dc6568e2d21..d91e1f7b6b3 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js index 8970ac21b0a..854adc95426 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js index f64ac00c48f..7d85cac0d58 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js index d5c46aa48a8..218cb62e259 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js index ae8695d5f84..ccec0420236 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js @@ -20,7 +20,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -32,7 +44,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -41,7 +62,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -50,7 +80,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -737,7 +777,20 @@ Before running Timeout callback:: count: 2 13: /home/src/projects/project1/tsconfig.json 14: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json @@ -855,7 +908,19 @@ Before running Timeout callback:: count: 3 18: /home/src/projects/project1/tsconfig.json 19: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js index 7df3226f097..764d094fb73 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js @@ -20,7 +20,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -32,7 +44,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -41,7 +62,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -50,7 +80,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -734,7 +774,20 @@ Before running Timeout callback:: count: 2 14: /home/src/projects/project1/tsconfig.json 15: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json @@ -854,7 +907,19 @@ Before running Timeout callback:: count: 3 17: *ensureProjectForOpenFiles* 18: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] interface DOMInterface { } diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js index 3b86c2be283..00de9da8077 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js @@ -100,10 +100,10 @@ FsWatchesRecursive:: /user/username/projects/project1/src/node_modules: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -115,23 +115,73 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project1/src/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["glob","minimatch","path"],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project1/src/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "glob", + "minimatch", + "path" + ], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project1/src/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["glob","minimatch","node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["glob","minimatch","node"],"filesToWatch":["/user/username/projects/project1/src/bower_components","/user/username/projects/project1/src/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["glob","minimatch","node"],"filesToWatch":["/user/username/projects/project1/src/bower_components","/user/username/projects/project1/src/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "glob", + "minimatch", + "node" + ], + "filesToWatch": [ + "/user/username/projects/project1/src/bower_components", + "/user/username/projects/project1/src/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/project1/src/bower_components","/user/username/projects/project1/src/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/project1/src/bower_components", + "/user/username/projects/project1/src/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -144,7 +194,29 @@ TI:: [hh:mm:ss:mss] 'minimatch':: Entry for package 'minimatch' does not exist i TI:: [hh:mm:ss:mss] 'node':: Entry for package 'node' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["glob","minimatch","path"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "glob", + "minimatch", + "path" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js index 2982d33e80a..93ea729df4c 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js @@ -46,10 +46,10 @@ FsWatchesRecursive:: /a/b/node_modules: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -61,23 +61,64 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["test"],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "test" + ], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["test"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["test"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["test"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "test" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -86,7 +127,27 @@ TI:: [hh:mm:ss:mss] Installing typings ["test"] TI:: [hh:mm:ss:mss] 'test':: Entry for package 'test' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["test"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "test" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js index b29c6ddba7e..0b2baee5eb7 100644 --- a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js +++ b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js index 0a76f7a08c5..cc1c4e0ee16 100644 --- a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js +++ b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js b/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js index 701a8775305..3d55c530579 100644 --- a/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js +++ b/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { const x = 0; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js index 7c0dca9ec6f..ac2ed1b8b71 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js @@ -3,14 +3,14 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] @@ -18,15 +18,15 @@ export declare const bar: number; //// [/home/src/projects/project/node_modules/bar/package.json] { - "name": "bar", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar/index.js] @@ -37,16 +37,16 @@ export const bar = 1; //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo/index.js] @@ -60,15 +60,15 @@ export declare const foo: number; //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] @@ -76,15 +76,15 @@ export declare const bar2: number; //// [/home/src/projects/project/node_modules/bar2/package.json] { - "name": "bar2", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar2", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar2/index.js] @@ -95,17 +95,17 @@ export const bar2 = 1; //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo2/index.js] @@ -125,7 +125,18 @@ import { bar2 } from "bar2"; //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{ + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "files": [ + "index.mts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -156,13 +167,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/proje Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/tsconfig.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/home/src/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /home/src/projects/project/index.mts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/home/src/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /home/src/projects/project/index.mts to open" + } } Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/tsconfig.json : { "rootNames": [ @@ -387,76 +398,76 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/home/src/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "1097a5f82e8323ba7aba7567ec06402f7ad4ea74abce44ec5efd223ac77ff169", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 112, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 402, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "moduleResolution": "node16", - "traceResolution": true, - "incremental": true, - "strict": true, - "types": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/home/src/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/home/src/projects/project/index.mts", - "configFile": "/home/src/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.", - "code": 5110, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "1097a5f82e8323ba7aba7567ec06402f7ad4ea74abce44ec5efd223ac77ff169", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 112, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 402, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/index.mts", + "configFile": "/home/src/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.", + "code": 5110, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -526,13 +537,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -541,40 +552,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -584,79 +595,79 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 1 - }, - "end": { - "line": 1, - "offset": 27 - }, - "text": "'foo' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 2, - "offset": 1 - }, - "end": { - "line": 2, - "offset": 27 - }, - "text": "'bar' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 29 - }, - "text": "'foo2' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 4, - "offset": 1 - }, - "end": { - "line": 4, - "offset": 29 - }, - "text": "'bar2' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 27 + }, + "text": "'foo' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 27 + }, + "text": "'bar' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 29 + }, + "text": "'foo2' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 29 + }, + "text": "'bar2' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -829,23 +840,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 6: checkOne @@ -955,13 +966,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 8: *ensureProjectForOpenFiles* @@ -971,40 +982,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';`", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';`", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -1053,23 +1064,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 10: checkOne @@ -1187,13 +1198,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 12: *ensureProjectForOpenFiles* @@ -1203,40 +1214,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -1285,23 +1296,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 14: checkOne @@ -1400,13 +1411,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 16: *ensureProjectForOpenFiles* @@ -1416,40 +1427,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -1498,23 +1509,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 18: checkOne @@ -1535,15 +1546,15 @@ Before running Timeout callback:: count: 2 19: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } @@ -1619,13 +1630,13 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 20: *ensureProjectForOpenFiles* @@ -1635,27 +1646,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -1704,23 +1715,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 22: checkOne @@ -1741,17 +1752,17 @@ Before running Timeout callback:: count: 2 23: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1825,13 +1836,13 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 24: *ensureProjectForOpenFiles* @@ -1871,13 +1882,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 12: suggestionCheck @@ -1926,23 +1937,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 8 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 8 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 26: checkOne @@ -1963,14 +1974,14 @@ Before running Timeout callback:: count: 2 27: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } @@ -2089,13 +2100,13 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 28: *ensureProjectForOpenFiles* @@ -2135,27 +2146,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 14: suggestionCheck @@ -2204,23 +2215,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 9 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 9 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 30: checkOne @@ -2241,16 +2252,16 @@ Before running Timeout callback:: count: 2 31: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -2341,13 +2352,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 32: *ensureProjectForOpenFiles* @@ -2357,40 +2368,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 16: suggestionCheck @@ -2439,23 +2450,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 10 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 10 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 34: checkOne @@ -2584,13 +2595,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 36: *ensureProjectForOpenFiles* @@ -2600,40 +2611,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 18: suggestionCheck @@ -2682,23 +2693,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 11 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 11 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 38: checkOne @@ -2808,13 +2819,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 40: *ensureProjectForOpenFiles* @@ -2824,40 +2835,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 20: suggestionCheck @@ -2906,23 +2917,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 12 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 12 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 42: checkOne @@ -3040,13 +3051,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 44: *ensureProjectForOpenFiles* @@ -3056,40 +3067,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 22: suggestionCheck @@ -3138,23 +3149,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 13 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 13 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 46: checkOne @@ -3253,13 +3264,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 48: *ensureProjectForOpenFiles* @@ -3269,40 +3280,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 24: suggestionCheck @@ -3351,23 +3362,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 14 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 14 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 50: checkOne diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js index e5daa9d3bc4..d5be29550fd 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -2,7 +2,14 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out","traceResolution":true}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out", + "traceResolution": true + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -15,7 +22,11 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -46,13 +57,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/src/tsconfig.json : { "rootNames": [ @@ -113,69 +124,69 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 68, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "target": "es2016", - "module": "node16", - "outDir": "", - "traceResolution": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/fileA.ts", - "configFile": "/user/username/projects/myproject/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 68, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "target": "es2016", + "module": "node16", + "outDir": "", + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/fileA.ts", + "configFile": "/user/username/projects/myproject/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -223,7 +234,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 1: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -284,14 +298,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -321,13 +335,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -336,27 +350,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -366,22 +380,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -394,7 +408,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 6: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -455,14 +473,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne @@ -492,13 +510,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -507,13 +525,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -523,22 +541,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -620,14 +638,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 14: checkOne @@ -683,13 +701,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -698,27 +716,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -728,22 +746,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -754,7 +772,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 16: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -810,14 +831,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 19: checkOne @@ -875,13 +896,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -890,27 +911,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -920,22 +941,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -1008,14 +1029,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 24: checkOne @@ -1071,13 +1092,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -1086,27 +1107,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -1116,21 +1137,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js index 6705d7ae7bb..5e6c498b0e1 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js @@ -2,7 +2,14 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out","traceResolution":true}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out", + "traceResolution": true + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -15,7 +22,10 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -46,13 +56,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/src/tsconfig.json : { "rootNames": [ @@ -113,69 +123,69 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 68, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "target": "es2016", - "module": "node16", - "outDir": "", - "traceResolution": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/fileA.ts", - "configFile": "/user/username/projects/myproject/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 68, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "target": "es2016", + "module": "node16", + "outDir": "", + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/fileA.ts", + "configFile": "/user/username/projects/myproject/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -223,7 +233,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 1: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -284,14 +298,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -321,13 +335,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -336,13 +350,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -352,22 +366,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -380,7 +394,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 6: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -441,14 +458,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne @@ -478,13 +495,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -493,27 +510,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -523,22 +540,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -614,14 +631,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 14: checkOne @@ -677,13 +694,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -692,27 +709,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -722,22 +739,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -748,7 +765,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 16: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -810,14 +831,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 19: checkOne @@ -875,13 +896,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -890,13 +911,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -906,22 +927,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -1000,14 +1021,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 24: checkOne @@ -1063,13 +1084,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -1078,27 +1099,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -1108,21 +1129,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js index 58888bd75d4..2adee6dfeac 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js @@ -3,22 +3,43 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/home/src/projects/project/packages/package-a/package.json] { - "name": "package-a", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-a", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-a/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ] +} //// [/home/src/projects/project/packages/package-a/src/index.ts] export * from "./subfolder"; @@ -28,22 +49,48 @@ export const FOO = "bar"; //// [/home/src/projects/project/packages/package-b/package.json] { - "name": "package-b", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-b", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-b/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"],"references":[{"path":"../package-a"}]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ], + "references": [ + { + "path": "../package-a" + } + ] +} //// [/home/src/projects/project/packages/package-b/src/index.ts] import { FOO } from "package-a"; @@ -291,13 +338,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/proje Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/tsconfig.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", - "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", + "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/packages/package-b/tsconfig.json : { "rootNames": [ @@ -476,80 +523,80 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 413, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "baseUrl": "", - "composite": true, - "declarationMap": true, - "esModuleInterop": true, - "lib": [ - "es2021" - ], - "module": "esnext", - "moduleResolution": "bundler", - "outDir": "", - "rootDir": "", - "target": "es2021", - "traceResolution": true, - "tsBuildInfoFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", - "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "", + "rootDir": "", + "target": "es2021", + "traceResolution": true, + "tsBuildInfoFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", + "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project/packages/package-b Info seq [hh:mm:ss:mss] For info: /home/src/projects/project/packages/package-b/tsconfig.json :: No config files found. @@ -637,13 +684,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -652,13 +699,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -668,22 +715,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -807,13 +854,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -876,27 +923,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 33 - }, - "text": "Cannot find module 'package-aX' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 33 + }, + "text": "Cannot find module 'package-aX' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -906,22 +953,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -1053,13 +1100,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -1118,13 +1165,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -1134,21 +1181,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js index d74e5133064..9acfd286501 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js @@ -3,22 +3,43 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/home/src/projects/project/packages/package-a/package.json] { - "name": "package-a", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-a", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-a/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ] +} //// [/home/src/projects/project/packages/package-a/src/index.ts] export * from "./subfolder"; @@ -28,22 +49,48 @@ export const FOO = "bar"; //// [/home/src/projects/project/packages/package-b/package.json] { - "name": "package-b", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-b", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-b/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"],"references":[{"path":"../package-a"}]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ], + "references": [ + { + "path": "../package-a" + } + ] +} //// [/home/src/projects/project/packages/package-b/src/index.ts] import { FOO } from "package-a"; @@ -83,13 +130,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/proje Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/tsconfig.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", - "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", + "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/packages/package-b/tsconfig.json : { "rootNames": [ @@ -268,80 +315,80 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 413, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "baseUrl": "", - "composite": true, - "declarationMap": true, - "esModuleInterop": true, - "lib": [ - "es2021" - ], - "module": "esnext", - "moduleResolution": "bundler", - "outDir": "", - "rootDir": "", - "target": "es2021", - "traceResolution": true, - "tsBuildInfoFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", - "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "", + "rootDir": "", + "target": "es2021", + "traceResolution": true, + "tsBuildInfoFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", + "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project/packages/package-b Info seq [hh:mm:ss:mss] For info: /home/src/projects/project/packages/package-b/tsconfig.json :: No config files found. @@ -429,13 +476,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -444,13 +491,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -460,22 +507,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -599,13 +646,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -668,27 +715,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 33 - }, - "text": "Cannot find module 'package-aX' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 33 + }, + "text": "Cannot find module 'package-aX' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -698,22 +745,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -845,13 +892,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -910,13 +957,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -926,21 +973,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js index 593908078ee..dcdc9e9821a 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js index 526d3080409..d345eacb9f7 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -858,15 +861,15 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] mobxCache: { - "modulePaths": [ - { - "path": "/node_modules/mobx/index.d.ts", - "isRedirect": false, - "isInNodeModules": true - } - ], - "moduleSpecifiers": [ - "mobx" - ], - "isBlockedByPackageJsonDependencies": false + "modulePaths": [ + { + "path": "/node_modules/mobx/index.d.ts", + "isRedirect": false, + "isInNodeModules": true + } + ], + "moduleSpecifiers": [ + "mobx" + ], + "isBlockedByPackageJsonDependencies": false } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js index 14b7754ce6e..8d48c91ae38 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js index 5c00c5f38ff..ac59785154e 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js index 5debf8ba507..ef3bcf2d5ba 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js index c9a8c7dc6e4..05b45b165e6 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js index 87cef3ef3e9..dd5e7d54564 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js index 32e2dfe016e..4e124c2ae7a 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -274,15 +277,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -748,7 +751,7 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] moduleSpecifierCache for {} (/src/b.ts -> /src/a.ts) { - "isBlockedByPackageJsonDependencies": false + "isBlockedByPackageJsonDependencies": false } Before request @@ -765,15 +768,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 6, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -782,9 +785,11 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] moduleSpecifierCache for {} (/src/b.ts -> /src/a.ts) { - "isBlockedByPackageJsonDependencies": false + "isBlockedByPackageJsonDependencies": false } -Info seq [hh:mm:ss:mss] moduleSpecifierCache for {"importModuleSpecifierPreference":"project-relative"} (/src/b.ts -> /src/a.ts) undefined +Info seq [hh:mm:ss:mss] moduleSpecifierCache for { + "importModuleSpecifierPreference": "project-relative" +} (/src/b.ts -> /src/a.ts) undefined Before request Info seq [hh:mm:ss:mss] request: @@ -1241,8 +1246,10 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] moduleSpecifierCache for {} (/src/b.ts -> /src/a.ts) undefined -Info seq [hh:mm:ss:mss] moduleSpecifierCache for {"importModuleSpecifierPreference":"project-relative"} (/src/b.ts -> /src/a.ts) { - "isBlockedByPackageJsonDependencies": false +Info seq [hh:mm:ss:mss] moduleSpecifierCache for { + "importModuleSpecifierPreference": "project-relative" +} (/src/b.ts -> /src/a.ts) { + "isBlockedByPackageJsonDependencies": false } Before request @@ -1259,15 +1266,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 8, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 8, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -1730,4 +1737,6 @@ Info seq [hh:mm:ss:mss] response: } After request -Info seq [hh:mm:ss:mss] moduleSpecifierCache for {"importModuleSpecifierPreference":"project-relative"} (/src/b.ts -> /src/a.ts) undefined \ No newline at end of file +Info seq [hh:mm:ss:mss] moduleSpecifierCache for { + "importModuleSpecifierPreference": "project-relative" +} (/src/b.ts -> /src/a.ts) undefined \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js b/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js index 90bc923eac5..3074eff7a3e 100644 --- a/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js +++ b/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js @@ -26,7 +26,17 @@ import a = require("../a"); export const ghijkl = a.abcdef; //// [/tsconfig.json] -{"references":[{"path":"./a"},{"path":"./b"}],"files":[]} +{ + "references": [ + { + "path": "./a" + }, + { + "path": "./b" + } + ], + "files": [] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js b/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js index a385469fa01..ffcd5b6e572 100644 --- a/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js +++ b/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js @@ -76,10 +76,10 @@ FsWatchesRecursive:: /a/b: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -91,27 +91,85 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/jsconfig.json","fileNames":["/a/lib/lib.d.ts","/a/b/file1.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/jsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/jsconfig.json","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/jsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/a/b/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js b/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js index 60fe176191c..9bd955cfb17 100644 --- a/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js +++ b/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js @@ -77,10 +77,10 @@ FsWatchesRecursive:: /a/b: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -92,27 +92,85 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/jsconfig.json","fileNames":["/a/lib/lib.d.ts","/a/b/file1.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/jsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/jsconfig.json","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/jsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/a/b/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js b/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js index f6933c9ad37..7578943b09c 100644 --- a/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js +++ b/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js @@ -114,13 +114,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -129,13 +129,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -145,22 +145,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -232,13 +232,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -247,27 +247,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 9 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 9 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -277,22 +277,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -364,13 +364,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -379,13 +379,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -395,21 +395,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js b/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js index b6a592c6671..5e47065e740 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js @@ -58,10 +58,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -97,7 +97,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -115,23 +115,76 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -215,5 +268,15 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInf Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file Edit package.json //// [/package.json] -{"peerDependencies":{"react":"*"},"optionalDependencies":{"typescript":"*"},"devDependencies":{"webpack":"*"}} +{ + "peerDependencies": { + "react": "*" + }, + "optionalDependencies": { + "typescript": "*" + }, + "devDependencies": { + "webpack": "*" + } +} diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js b/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js index 96414fb8952..f7c6b7af50e 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js @@ -74,10 +74,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -113,7 +113,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -131,18 +131,61 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -155,7 +198,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js b/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js index fc19d798ee3..ea8152920ba 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js @@ -74,10 +74,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -113,7 +113,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -131,18 +131,61 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -155,7 +198,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -195,19 +255,72 @@ FsWatchesRecursive:: {} Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 2:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 2:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 2:: WatchInfo: /package.json 250 undefined WatchType: package.json file diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js b/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js index 2796e34c7f8..22a4a3bcb25 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js @@ -61,10 +61,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -100,7 +100,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -118,25 +118,80 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) @@ -177,17 +232,55 @@ FsWatchesRecursive:: {} Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] 'redux':: Entry for package 'redux' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] 'webpack':: Entry for package 'webpack' does not exist in local types registry - skipping... @@ -195,7 +288,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js b/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js index 27bc19a3239..2433b769909 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js @@ -61,10 +61,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -100,7 +100,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -118,25 +118,80 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) @@ -177,17 +232,55 @@ FsWatchesRecursive:: {} Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] 'redux':: Entry for package 'redux' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] 'webpack':: Entry for package 'webpack' does not exist in local types registry - skipping... @@ -195,7 +288,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file diff --git a/tests/baselines/reference/tsserver/plugins/With-local-plugins.js b/tests/baselines/reference/tsserver/plugins/With-local-plugins.js index 4c56513bd01..7b1d72a3999 100644 --- a/tests/baselines/reference/tsserver/plugins/With-local-plugins.js +++ b/tests/baselines/reference/tsserver/plugins/With-local-plugins.js @@ -5,7 +5,27 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"@myscoped/plugin"},{"name":"unscopedPlugin"},{"name":"../myPlugin"},{"name":"myPlugin/../malicious"},{"transform":"some-transform"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "@myscoped/plugin" + }, + { + "name": "unscopedPlugin" + }, + { + "name": "../myPlugin" + }, + { + "name": "myPlugin/../malicious" + }, + { + "transform": "some-transform" + } + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js b/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js index 4fca84fb405..71f666964cd 100644 --- a/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js +++ b/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"some-plugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "some-plugin" + } + ] + } +} //// [/a/lib/lib.d.ts] /// @@ -102,10 +110,10 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } addProtocolHandler: { - "command": "testProtocolCommand", - "arguments": "testProtocolCommandRequest", - "seq": 2, - "type": "request" + "command": "testProtocolCommand", + "arguments": "testProtocolCommandRequest", + "seq": 2, + "type": "request" } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js index 43673497c51..0257f29c67b 100644 --- a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js +++ b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js @@ -11,7 +11,15 @@ class c { prop = "hello"; foo() { const x = 0; } } class c { prop = "hello"; foo() { const x = 0; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js b/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js index caded600ff4..5fed4982f5a 100644 --- a/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js +++ b/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js @@ -5,7 +5,15 @@ Before request export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"some-plugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "some-plugin" + } + ] + } +} //// [/a/lib/lib.d.ts] /// @@ -105,7 +113,9 @@ FsWatchesRecursive:: /user/username/projects/myproject: *new* {} -ExternalFiles:: ["someFile.txt"] +ExternalFiles:: [ + "someFile.txt" +] Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /user/username/projects/myproject/tsconfig.json 1:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* @@ -114,7 +124,15 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"some-other-plugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "some-other-plugin" + } + ] + } +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json @@ -188,4 +206,6 @@ FsWatchesRecursive:: /user/username/projects/myproject: {} -ExternalFiles:: ["someOtherFile.txt"] \ No newline at end of file +ExternalFiles:: [ + "someOtherFile.txt" +] \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js b/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js index d8ff142f281..46e0cdab403 100644 --- a/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js +++ b/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js @@ -4,18 +4,21 @@ Before request //// [/user/username/projects/myproject/a.ts] export const a = 10; +//// [/user/username/projects/myproject/d.ts] +export const d = 10; + //// [/user/username/projects/myproject/b.vue] bVue file //// [/user/username/projects/myproject/tsconfig.json] { - "compilerOptions": { - "composite": true - }, - "include": [ - "*.ts", - "*.vue" - ] + "compilerOptions": { + "composite": true + }, + "include": [ + "*.ts", + "*.vue" + ] } //// [/a/lib/lib.d.ts] @@ -47,7 +50,8 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ - "/user/username/projects/myproject/a.ts" + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/d.ts" ], "options": { "composite": true, @@ -60,6 +64,8 @@ Info seq [hh:mm:ss:mss] Loading global plugin myplugin Info seq [hh:mm:ss:mss] Enabling plugin myplugin from candidate paths: /a/lib/tsc.js/../../.. Info seq [hh:mm:ss:mss] Loading myplugin from /a/lib/tsc.js/../../.. (resolved to /a/lib/tsc.js/../../../node_modules) Info seq [hh:mm:ss:mss] Plugin validation succeeded +getExternalFiles:: Getting new list of .vue files +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.vue 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info @@ -67,11 +73,13 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots +getExternalFiles:: Returning cached .vue files Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (4) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" /user/username/projects/myproject/a.ts SVC-1-0 "export const a = 10;" + /user/username/projects/myproject/d.ts Text-1 "export const d = 10;" /user/username/projects/myproject/b.vue Text-1 "export const y = \"bVue file\";" @@ -79,6 +87,8 @@ Info seq [hh:mm:ss:mss] Files (3) Default library for target 'es5' a.ts Matched by include pattern '*.ts' in 'tsconfig.json' + d.ts + Matched by include pattern '*.ts' in 'tsconfig.json' b.vue Matched by include pattern '*.vue' in 'tsconfig.json' @@ -86,7 +96,7 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/tsconfig.json :: No config files found. Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -111,6 +121,8 @@ FsWatches:: {} /user/username/projects/myproject/b.vue: *new* {} +/user/username/projects/myproject/d.ts: *new* + {} /user/username/projects/myproject/tsconfig.json: *new* {} @@ -126,13 +138,16 @@ cVue file Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json +getExternalFiles:: Getting new list of .vue files Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c.vue 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +getExternalFiles:: Returning cached .vue files Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" /user/username/projects/myproject/a.ts SVC-1-0 "export const a = 10;" + /user/username/projects/myproject/d.ts Text-1 "export const d = 10;" /user/username/projects/myproject/b.vue Text-1 "export const y = \"bVue file\";" /user/username/projects/myproject/c.vue Text-1 "export const y = \"cVue file\";" @@ -141,6 +156,8 @@ Info seq [hh:mm:ss:mss] Files (4) Default library for target 'es5' a.ts Matched by include pattern '*.ts' in 'tsconfig.json' + d.ts + Matched by include pattern '*.ts' in 'tsconfig.json' b.vue Matched by include pattern '*.vue' in 'tsconfig.json' c.vue @@ -150,7 +167,7 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -158,7 +175,7 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/a.ts Proje Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -181,5 +198,50 @@ FsWatches:: {} /user/username/projects/myproject/c.vue: *new* {} +/user/username/projects/myproject/d.ts: + {} /user/username/projects/myproject/tsconfig.json: {} + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /user/username/projects/myproject/d.ts 1:: WatchInfo: /user/username/projects/myproject/d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/d.ts 1:: WatchInfo: /user/username/projects/myproject/d.ts 500 undefined WatchType: Closed Script info +Before running Timeout callback:: count: 2 +3: /user/username/projects/myproject/tsconfig.json +4: *ensureProjectForOpenFiles* +//// [/user/username/projects/myproject/d.ts] +export const d = 10;export const x = 10; + + +Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json +getExternalFiles:: Returning cached .vue files +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" + /user/username/projects/myproject/a.ts SVC-1-0 "export const a = 10;" + /user/username/projects/myproject/d.ts Text-2 "export const d = 10;export const x = 10;" + /user/username/projects/myproject/b.vue Text-1 "export const y = \"bVue file\";" + /user/username/projects/myproject/c.vue Text-1 "export const y = \"cVue file\";" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/a.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig.json +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js b/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js index b780f5f11ea..42f7696009d 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js @@ -68,14 +68,14 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* @@ -87,13 +87,13 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferre Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "^memfs:/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "^memfs:/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js b/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js index b60f0f193ff..c6515ed96e0 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js @@ -73,14 +73,14 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } at this point all plugin modules should have been instantiated and all plugins should have been invoked pluginModuleInstantiated:: true diff --git a/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js b/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js index 3519584133e..41504f18355 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js @@ -77,12 +77,12 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js b/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js index bf6f6366a07..9e20e8a02e5 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js @@ -67,12 +67,12 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js index 59e6d3ccf6b..f91c5c910ca 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js @@ -38,13 +38,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -73,64 +73,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -174,13 +174,13 @@ Info seq [hh:mm:ss:mss] Running: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -200,38 +200,38 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/tsconfig.json", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 21 - }, - "end": { - "line": 3, - "offset": 27 - }, - "text": "Unknown compiler option 'haha'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/tsconfig.json", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 21 + }, + "end": { + "line": 3, + "offset": 27 + }, + "text": "Unknown compiler option 'haha'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -253,14 +253,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/app.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/app.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/app.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -282,13 +282,13 @@ Before running Timeout callback:: count: 3 Info seq [hh:mm:ss:mss] Reloading configured project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -308,33 +308,33 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/tsconfig.json", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/tsconfig.json", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -357,14 +357,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/app.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/app.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/app.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js index 5c88f423647..f46e35f172b 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js @@ -38,13 +38,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -73,64 +73,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js index cb44461a4b2..7f16014fffb 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -76,93 +76,93 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 25 - }, - "end": { - "line": 3, - "offset": 30 - }, - "text": "Unknown compiler option 'foo'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 25 - }, - "end": { - "line": 4, - "offset": 34 - }, - "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 25 + }, + "end": { + "line": 3, + "offset": 30 + }, + "text": "Unknown compiler option 'foo'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js index c45fb6e86d4..885d9cd2adc 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -76,93 +76,93 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 25 - }, - "end": { - "line": 3, - "offset": 30 - }, - "text": "Unknown compiler option 'foo'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 25 - }, - "end": { - "line": 4, - "offset": 34 - }, - "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 25 + }, + "end": { + "line": 3, + "offset": 30 + }, + "text": "Unknown compiler option 'foo'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -261,43 +261,43 @@ Info seq [hh:mm:ss:mss] Search path: /a/b Info seq [hh:mm:ss:mss] For info: /a/b/test2.ts :: Config file name: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test2.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 25 - }, - "end": { - "line": 3, - "offset": 30 - }, - "text": "Unknown compiler option 'foo'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 25 - }, - "end": { - "line": 4, - "offset": 34 - }, - "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test2.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 25 + }, + "end": { + "line": 3, + "offset": 30 + }, + "text": "Unknown compiler option 'foo'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js index 0a10984cbc0..aece93461d5 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js @@ -44,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -78,64 +78,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -234,14 +234,14 @@ Info seq [hh:mm:ss:mss] Search path: /a/b Info seq [hh:mm:ss:mss] For info: /a/b/test2.ts :: Config file name: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test2.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test2.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js index a95b2c735be..5d883d041be 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -76,53 +76,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js index 8af1e664ad8..5f31dcf0d1c 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -87,79 +87,79 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 36 - }, - "end": { - "line": 3, - "offset": 70 - }, - "text": "File '/a/b/no-such-tsconfig.json' not found.", - "code": 6053, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 36 + }, + "end": { + "line": 3, + "offset": 70 + }, + "text": "File '/a/b/no-such-tsconfig.json' not found.", + "code": 6053, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js index 51e53eba4b2..8962c8147c7 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js +++ b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js @@ -8,7 +8,12 @@ Before request //// [/a/b/tsconfig.json] -"files":["app.ts","lib.ts"]} + + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -126,12 +131,12 @@ Info seq [hh:mm:ss:mss] response: "response": [ { "start": { - "line": 1, - "offset": 1 + "line": 2, + "offset": 3 }, "end": { - "line": 1, - "offset": 8 + "line": 2, + "offset": 10 }, "text": "'{' expected.", "code": 1005, @@ -148,7 +153,12 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/tsconfig.json 1:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Before request //// [/a/b/tsconfig.json] -{"files":["app.ts","lib.ts"]} +{ + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js index 89f73ce69fc..2a1d3aeb1ee 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js +++ b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js @@ -8,7 +8,12 @@ Before request //// [/a/b/tsconfig.json] -{"files":["app.ts","lib.ts"]} +{ + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -134,7 +139,12 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/tsconfig.json 1:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Before request //// [/a/b/tsconfig.json] -"files":["app.ts","lib.ts"]} + + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -207,12 +217,12 @@ Info seq [hh:mm:ss:mss] response: "response": [ { "start": { - "line": 1, - "offset": 1 + "line": 2, + "offset": 3 }, "end": { - "line": 1, - "offset": 8 + "line": 2, + "offset": 10 }, "text": "'{' expected.", "code": 1005, diff --git a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js index 34cb45f734f..63b4e48ced3 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js +++ b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js @@ -5,7 +5,12 @@ Before request //// [/a/b/tsconfig.json] -{"files":["app.ts","applib.ts"]} +{ + "files": [ + "app.ts", + "applib.ts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -104,12 +109,12 @@ Info seq [hh:mm:ss:mss] response: { "span": { "start": { - "line": 1, - "offset": 20 + "line": 4, + "offset": 5 }, "end": { - "line": 1, - "offset": 31 + "line": 4, + "offset": 16 }, "file": "/a/b/tsconfig.json" }, diff --git a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js index 5ed1a030f62..1afd8ed75b9 100644 --- a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js +++ b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js @@ -21,7 +21,11 @@ function foo() { } //// [/users/username/projects/myproject/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/node_modules/@custom/plugin/index.d.ts] import './proposed'; @@ -50,13 +54,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/src/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/src/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -99,64 +103,64 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "49814c247d0e4666719ac54e31c3f19091be4020c5ac046c86474826dc7e4ede", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 73, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 486, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/src/a.ts", - "configFile": "/users/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "49814c247d0e4666719ac54e31c3f19091be4020c5ac046c86474826dc7e4ede", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 73, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 486, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/src/a.ts", + "configFile": "/users/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -214,13 +218,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -229,13 +233,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -245,51 +249,51 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 1 - }, - "end": { - "line": 1, - "offset": 44 - }, - "text": "'myModule' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 2, - "offset": 10 - }, - "end": { - "line": 2, - "offset": 13 - }, - "text": "'foo' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 44 + }, + "text": "'myModule' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 2, + "offset": 10 + }, + "end": { + "line": 2, + "offset": 13 + }, + "text": "'foo' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -350,13 +354,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -365,13 +369,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -381,50 +385,50 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 1 - }, - "end": { - "line": 1, - "offset": 44 - }, - "text": "'myModule' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 2, - "offset": 10 - }, - "end": { - "line": 2, - "offset": 13 - }, - "text": "'foo' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 44 + }, + "text": "'myModule' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 2, + "offset": 10 + }, + "end": { + "line": 2, + "offset": 13 + }, + "text": "'foo' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js index cfc72c3b513..e67a75cb8f4 100644 --- a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js @@ -8,7 +8,15 @@ class Bar implements foo.Foo { getFoo() { return ''; } get2() { return 1; } } declare namespace foo { interface Foo { get2(): number; getFoo(): string; } } //// [/a/b/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"none","targer":"es5"},"exclude":["node_modules"]} +{ + "compilerOptions": { + "module": "none", + "targer": "es5" + }, + "exclude": [ + "node_modules" + ] +} Info seq [hh:mm:ss:mss] request: @@ -26,13 +34,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/projects/myproject/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/myproject/tsconfig.json 2000 undefined Project: /a/b/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /a/b/projects/myproject/bar/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /a/b/projects/myproject/bar/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/projects/myproject/tsconfig.json : { "rootNames": [ @@ -68,126 +76,126 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "c56abb8c7c51bef5953613f05226da8e72cd9eafe09ab58ca2ccd81b65ba193a", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 154, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "none" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/projects/myproject/bar/app.ts", - "configFile": "/a/b/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 37 - }, - "end": { - "line": 1, - "offset": 45 - }, - "text": "Unknown compiler option 'targer'. Did you mean 'target'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/projects/myproject/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "c56abb8c7c51bef5953613f05226da8e72cd9eafe09ab58ca2ccd81b65ba193a", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 154, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "none" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/projects/myproject/bar/app.ts", + "configFile": "/a/b/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 13 + }, + "text": "Unknown compiler option 'targer'. Did you mean 'target'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/projects/myproject/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/b/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -245,13 +253,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -260,13 +268,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -276,22 +284,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -380,14 +388,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/projects/myproject/bar/app.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/projects/myproject/bar/app.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/projects/myproject/bar/app.ts" + ] + } } After running Timeout callback:: count: 1 12: checkOne @@ -415,13 +423,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -450,13 +458,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -465,13 +473,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 5: suggestionCheck @@ -481,21 +489,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js index 629fc405515..bf7ecbac27c 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js @@ -57,10 +57,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -72,27 +72,75 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/project.csproj","fileNames":["/a/lib/lib.d.ts","/a/b/f1.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/project.csproj", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/f1.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/project.csproj","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/project.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/project.csproj","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/project.csproj", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js index 35bb143272d..6fca59ad372 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js @@ -50,10 +50,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -65,27 +65,83 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/a/b/f1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/f1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js b/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js index 3c6b17f42fc..ddabe04445a 100644 --- a/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js +++ b/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js @@ -41,11 +41,11 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js index c1f9c989ed5..33a870e52bf 100644 --- a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js +++ b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -82,64 +82,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 36, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 36, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -201,13 +201,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -216,27 +216,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -246,22 +246,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -367,13 +367,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 7: /user/username/projects/myproject/tsconfig.json @@ -384,27 +384,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -414,22 +414,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -507,13 +507,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 11:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 7: /user/username/projects/myproject/tsconfig.json @@ -524,27 +524,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -554,22 +554,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -609,13 +609,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 12:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 7: /user/username/projects/myproject/tsconfig.json @@ -626,27 +626,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -656,22 +656,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -792,14 +792,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig. Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/main.ts" + ] + } } After running Timeout callback:: count: 1 18: checkOne @@ -853,13 +853,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -868,13 +868,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -884,21 +884,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js index 98794d34a4a..a124169edc0 100644 --- a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js +++ b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -82,64 +82,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 36, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 36, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -201,13 +201,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -216,27 +216,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -246,22 +246,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -368,14 +368,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig. Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/main.ts" + ] + } } After running Timeout callback:: count: 1 11: checkOne @@ -405,13 +405,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -420,27 +420,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -450,22 +450,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -543,13 +543,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -558,27 +558,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -588,22 +588,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -643,13 +643,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -658,27 +658,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -688,22 +688,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -824,14 +824,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig. Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/main.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne @@ -885,13 +885,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -900,13 +900,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -916,21 +916,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js index 7a370ceafb1..7e4a8481505 100644 --- a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js +++ b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js @@ -85,10 +85,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -100,21 +100,63 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -122,7 +164,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -208,20 +268,90 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js","/user/username/projects/myproject/src/server/utilities.js","/user/username/projects/myproject/test/backend/index.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js", + "/user/username/projects/myproject/src/server/utilities.js", + "/user/username/projects/myproject/test/backend/index.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/test/backend/bower_components","/user/username/projects/myproject/test/backend/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/test/backend/bower_components","/user/username/projects/myproject/test/backend/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/test/backend/bower_components", + "/user/username/projects/myproject/test/backend/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/test/backend/bower_components","/user/username/projects/myproject/test/backend/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/test/backend/bower_components", + "/user/username/projects/myproject/test/backend/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) @@ -306,13 +436,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/test/backend/index.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/test/backend/index.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -321,13 +451,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/test/backend/index.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/test/backend/index.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -337,13 +467,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/test/backend/index.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/test/backend/index.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -352,13 +482,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -367,13 +497,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -383,22 +513,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -508,20 +638,80 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -542,18 +732,83 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js","/user/username/projects/myproject/src/server/utilities.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js", + "/user/username/projects/myproject/src/server/utilities.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test/backend/index.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -641,13 +896,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/server/utilities.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/server/utilities.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -656,13 +911,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/server/utilities.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/server/utilities.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -672,13 +927,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/server/utilities.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/server/utilities.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -687,13 +942,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -702,13 +957,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -718,21 +973,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js index a04dca8b3f1..f6dd5ef4d3a 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js @@ -23,7 +23,17 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"resolveJsonModule":true,"composite":true,"outDir":"dist"},"include":["./src/*.ts","./src/*.json"]} +{ + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "dist" + }, + "include": [ + "./src/*.ts", + "./src/*.json" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +51,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -91,68 +101,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 87, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "resolveJsonModule": true, - "composite": true, - "outDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/test.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 87, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/test.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/tsconfig.json :: No config files found. @@ -214,13 +224,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -229,13 +239,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -245,21 +255,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js index 29b7bb50eea..bbd5b672b62 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js @@ -23,7 +23,16 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"resolveJsonModule":true,"composite":true,"outDir":"dist"},"include":["./src/*.ts"]} +{ + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "dist" + }, + "include": [ + "./src/*.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -41,13 +50,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -89,68 +98,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 87, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "resolveJsonModule": true, - "composite": true, - "outDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/test.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 87, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/test.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/tsconfig.json :: No config files found. @@ -212,13 +221,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -227,27 +236,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 25 - }, - "end": { - "line": 1, - "offset": 40 - }, - "text": "File '/user/username/projects/myproject/src/blabla.json' is not listed within the file list of project '/user/username/projects/myproject/tsconfig.json'. Projects must list all files or use an 'include' pattern.", - "code": 6307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 25 + }, + "end": { + "line": 1, + "offset": 40 + }, + "text": "File '/user/username/projects/myproject/src/blabla.json' is not listed within the file list of project '/user/username/projects/myproject/tsconfig.json'. Projects must list all files or use an 'include' pattern.", + "code": 6307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -257,21 +266,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js index 3d587f2d96d..7f707cd7fae 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js @@ -113,13 +113,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -128,40 +128,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 22 - }, - "end": { - "line": 1, - "offset": 63 - }, - "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", - "code": 6053, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 22 - }, - "end": { - "line": 2, - "offset": 41 - }, - "text": "File 'src/somefile.d.ts' not found.", - "code": 6053, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 63 + }, + "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", + "code": 6053, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 22 + }, + "end": { + "line": 2, + "offset": 41 + }, + "text": "File 'src/somefile.d.ts' not found.", + "code": 6053, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -171,21 +171,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js index 92db74307b3..3ff9cab5540 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js @@ -104,13 +104,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -119,40 +119,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 22 - }, - "end": { - "line": 1, - "offset": 63 - }, - "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", - "code": 6053, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 22 - }, - "end": { - "line": 2, - "offset": 41 - }, - "text": "File 'src/somefile.d.ts' not found.", - "code": 6053, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 63 + }, + "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", + "code": 6053, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 22 + }, + "end": { + "line": 2, + "offset": 41 + }, + "text": "File 'src/somefile.d.ts' not found.", + "code": 6053, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -162,21 +162,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js index 7d92245ba31..3aecc8eb53b 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -76,64 +76,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 41, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/ui.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 41, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/ui.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -189,13 +189,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -204,27 +204,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 11 - }, - "end": { - "line": 1, - "offset": 39 - }, - "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", - "code": 2697, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 11 + }, + "end": { + "line": 1, + "offset": 39 + }, + "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", + "code": 2697, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -234,21 +234,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js index 6b1913dfdfa..86cb19ff923 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -76,64 +76,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 41, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/ui.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 41, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/ui.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -187,13 +187,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -202,27 +202,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 11 - }, - "end": { - "line": 1, - "offset": 39 - }, - "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", - "code": 2697, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 11 + }, + "end": { + "line": 1, + "offset": 39 + }, + "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", + "code": 2697, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -232,21 +232,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js index b6ef95475cd..b0969a920db 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js @@ -15,10 +15,24 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsbase.json] -{"compileOnSave":true,"compilerOptions":{"module":"none","composite":true}} +{ + "compileOnSave": true, + "compilerOptions": { + "module": "none", + "composite": true + } +} //// [/user/username/projects/myproject/buttonClass/tsconfig.json] -{"extends":"../tsbase.json","compilerOptions":{"outFile":"Source.js"},"files":["Source.ts"]} +{ + "extends": "../tsbase.json", + "compilerOptions": { + "outFile": "Source.js" + }, + "files": [ + "Source.ts" + ] +} //// [/user/username/projects/myproject/buttonClass/Source.ts] module Hmi { @@ -29,7 +43,20 @@ module Hmi { } //// [/user/username/projects/myproject/SiblingClass/tsconfig.json] -{"extends":"../tsbase.json","references":[{"path":"../buttonClass/"}],"compilerOptions":{"outFile":"Source.js"},"files":["Source.ts"]} +{ + "extends": "../tsbase.json", + "references": [ + { + "path": "../buttonClass/" + } + ], + "compilerOptions": { + "outFile": "Source.js" + }, + "files": [ + "Source.ts" + ] +} //// [/user/username/projects/myproject/SiblingClass/Source.ts] module Hmi { diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js index f27335432e6..5f49707bfef 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js index 3db859cd9a9..3fd0e4e3ea3 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js index 3fdc8ce8507..bc1c4e1f6ef 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js index 852acc53970..23e26842ade 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js index e69ebbd04d0..fe2f110ddf5 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js index 43937a9e203..ce1aa45df7b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js index 5f1dabfceb7..4d300257368 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js index 7ebc47f9c4e..d415543e792 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js index 3b7ddc93d7e..5313468ab61 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js index 46c738264c6..87938fce91b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js index 77d150c508a..fa11bb4b740 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js index e70f44f327e..1db3772aad5 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js index 62574484f70..55262de0976 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js index aa5779ca895..3c72a45e24c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js index f1956c4dbf2..a41230395f5 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js index 579f4c609f8..54eee026e6e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js index f16d16c2e2d..33da286cad0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js index 49ad6108d40..af810adb09a 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js index 49f44051661..21bd96cca52 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js index f339e5e2763..6d2a34d2553 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js index 08bdda298b2..cbd7187fbb7 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js index 5db9ed20e45..9a769204299 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js index 8a126faf291..8ba3c57f428 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js index 4b57b014573..beaaf7710c2 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js index 56dab2a5032..a1c319021b2 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js index f290b4e9a28..fd7621c616b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js index 0ce2f9c8bb0..8a4298582e0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js index b4d740b7b78..2c5438e2937 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js index 6f8de10d9d0..e5063749e00 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js index a3b68a9a1ea..8a4040a9f37 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js index 28439937de7..39bd11075e8 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js index 3773eccd8f5..34fb8bec496 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js index e6dda077c24..4d2a84d1ee6 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js index 7627b8e46d6..a953bd3896f 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js index 15ecd0db476..8d19abf30f3 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js index a4b96073c6e..c6ef5158d01 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js index b0fc7985f6a..ac1c0a78b78 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js index 9af67efbea3..db26ef3527c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js index 12944085890..6f60c20e533 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js index 5c28b493179..7459f716692 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js index 0328a35bfa5..4316e137de1 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js index d07ea30b8aa..d29fdfef6c8 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js index dc048f56dca..117d70c278e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js index 5b94c1ed491..ca0b51188a0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js index 9a08bbf7023..694a27665df 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js index ed6e5d0b3be..69095764822 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js index 9bb0526bc13..6e7fa87ed6d 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -55,13 +69,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +136,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -249,13 +263,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -264,27 +278,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -294,21 +308,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js index 62c46acb7c5..3a1d8029713 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -55,13 +69,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +136,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -247,13 +261,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -262,27 +276,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -292,13 +306,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -307,13 +321,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -322,13 +336,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -338,22 +352,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -380,13 +394,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -395,13 +409,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -411,13 +425,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -426,13 +440,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -441,27 +455,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -471,21 +485,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js index ab0409fd00d..868184a0677 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js index d710a867c0b..2656ba20240 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -55,13 +69,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +136,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -241,13 +255,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -271,67 +285,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 184, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "declarationDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 184, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "declarationDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -410,13 +424,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -425,27 +439,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -455,13 +469,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -470,13 +484,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -485,27 +499,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 12 - }, - "end": { - "line": 6, - "offset": 13 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 12 + }, + "end": { + "line": 6, + "offset": 13 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -515,21 +529,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js index 78b284733bd..67734aaabb2 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -55,13 +69,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +136,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -241,13 +255,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -271,67 +285,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 184, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "declarationDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 184, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "declarationDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -407,13 +421,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -422,27 +436,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -452,13 +466,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -467,13 +481,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -482,13 +496,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -498,22 +512,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -540,13 +554,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -555,27 +569,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 12 - }, - "end": { - "line": 6, - "offset": 13 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 12 + }, + "end": { + "line": 6, + "offset": 13 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -585,21 +599,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js index 50cd06105f8..fe6697be711 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js index d1ef4e6ee39..ee2bb2931a0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -50,13 +65,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +131,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -242,13 +257,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -257,27 +272,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -287,21 +302,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js index a6c4487b9ed..854c5ccf268 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -50,13 +65,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +131,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -240,13 +255,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -255,27 +270,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -285,13 +300,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -300,13 +315,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -315,13 +330,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -331,22 +346,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -373,13 +388,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -388,13 +403,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -404,13 +419,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -419,13 +434,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -434,27 +449,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -464,21 +479,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js index bd89f9098fc..dcc77db898c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js index aa52b9bb0dc..f409648bf51 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -50,13 +65,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +131,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -234,13 +249,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -264,67 +279,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 156, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 156, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -401,13 +416,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -416,27 +431,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -446,13 +461,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -461,13 +476,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -476,27 +491,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 5 - }, - "end": { - "line": 6, - "offset": 6 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 6 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -506,21 +521,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js index 33379a42736..6cef3186e3b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -50,13 +65,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +131,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -234,13 +249,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -264,67 +279,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 156, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 156, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -398,13 +413,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -413,27 +428,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -443,13 +458,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -458,13 +473,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -473,13 +488,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -489,22 +504,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -531,13 +546,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -546,27 +561,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 5 - }, - "end": { - "line": 6, - "offset": 6 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 6 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -576,21 +591,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js b/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js index 568ab062e98..dc737d48c4f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js +++ b/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js @@ -15,78 +15,88 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/container/lib/tsconfig.json] -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] +{ + "compilerOptions": { + "outFile": "../built/local/lib.js", + "composite": true, + "declarationMap": true + }, + "references": [], + "files": [ + "index.ts" + ] } - //// [/user/username/projects/container/lib/index.ts] -namespace container { - export const myConst = 30; -} +namespace container { + export const myConst = 30; +} + //// [/user/username/projects/container/exec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/exec.js" + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/exec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/compositeExec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/compositeExec.js", + "composite": true, + "declarationMap": true + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/compositeExec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/tsconfig.json] -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] +{ + "files": [], + "include": [], + "references": [ + { + "path": "./exec" + }, + { + "path": "./compositeExec" + } + ] } //// [/user/username/projects/temp/temp.ts] @@ -109,7 +119,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","-7311945748-namespace container {\r\n export const myConst = 30;\r\n}"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","-14968179652-namespace container {\n export const myConst = 30;\n}\n"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/lib.tsbuildinfo.readable.baseline.txt] { @@ -147,7 +157,7 @@ declare namespace container { ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "../../lib/index.ts": "-7311945748-namespace container {\r\n export const myConst = 30;\r\n}" + "../../lib/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" }, "root": [ [ @@ -164,7 +174,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1402 + "size": 1401 } //// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] @@ -229,7 +239,7 @@ declare namespace container { //# sourceMappingURL=compositeExec.d.ts.map //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.readable.baseline.txt] { @@ -295,7 +305,7 @@ declare namespace container { "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "./lib.d.ts": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", - "../../compositeexec/index.ts": "-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + "../../compositeexec/index.ts": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" }, "root": [ [ @@ -312,7 +322,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 2207 + "size": 2201 } //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.baseline.txt] @@ -414,8 +424,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/compositeExec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -578,7 +588,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" ../../../../../a/lib/lib.d.ts @@ -645,8 +655,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/exec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/exec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/exec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js index dde43d7f928..9c67d29f2b4 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js @@ -2,19 +2,50 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"shared/src/library"},{"path":"app/src/program"}]} +{ + "files": [], + "references": [ + { + "path": "shared/src/library" + }, + { + "path": "app/src/program" + } + ] +} //// [/user/username/projects/myproject/shared/src/library/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/library"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/library" + } +} //// [/user/username/projects/myproject/shared/src/library/index.ts] export function foo() {} //// [/user/username/projects/myproject/shared/package.json] -{"name":"shared","version":"1.0.0","main":"bld/library/index.js","types":"bld/library/index.d.ts"} +{ + "name": "shared", + "version": "1.0.0", + "main": "bld/library/index.js", + "types": "bld/library/index.d.ts" +} //// [/user/username/projects/myproject/app/src/program/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/program","disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../../../shared/src/library"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/program", + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../../../shared/src/library" + } + ] +} //// [/user/username/projects/myproject/app/src/program/bar.ts] import {foo} from "shared"; diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js index ac6f2d4953d..ed38ede8a0e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js @@ -2,19 +2,49 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"shared/src/library"},{"path":"app/src/program"}]} +{ + "files": [], + "references": [ + { + "path": "shared/src/library" + }, + { + "path": "app/src/program" + } + ] +} //// [/user/username/projects/myproject/shared/src/library/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/library"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/library" + } +} //// [/user/username/projects/myproject/shared/src/library/index.ts] export function foo() {} //// [/user/username/projects/myproject/shared/package.json] -{"name":"shared","version":"1.0.0","main":"bld/library/index.js","types":"bld/library/index.d.ts"} +{ + "name": "shared", + "version": "1.0.0", + "main": "bld/library/index.js", + "types": "bld/library/index.d.ts" +} //// [/user/username/projects/myproject/app/src/program/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/program"},"references":[{"path":"../../../shared/src/library"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/program" + }, + "references": [ + { + "path": "../../../shared/src/library" + } + ] +} //// [/user/username/projects/myproject/app/src/program/bar.ts] import {foo} from "shared"; diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js index 85a7906f9a6..b838e6da58a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js @@ -2,19 +2,49 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"shared/src/library"},{"path":"app/src/program"}]} +{ + "files": [], + "references": [ + { + "path": "shared/src/library" + }, + { + "path": "app/src/program" + } + ] +} //// [/user/username/projects/myproject/shared/src/library/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/library"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/library" + } +} //// [/user/username/projects/myproject/shared/src/library/index.ts] export function foo() {} //// [/user/username/projects/myproject/shared/package.json] -{"name":"shared","version":"1.0.0","main":"bld/library/index.js","types":"bld/library/index.d.ts"} +{ + "name": "shared", + "version": "1.0.0", + "main": "bld/library/index.js", + "types": "bld/library/index.d.ts" +} //// [/user/username/projects/myproject/app/src/program/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/program"},"references":[{"path":"../../../shared/src/library"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/program" + }, + "references": [ + { + "path": "../../../shared/src/library" + } + ] +} //// [/user/username/projects/myproject/app/src/program/bar.ts] import {foo} from "shared"; diff --git a/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js b/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js index 7b082efba13..2a5716ed25a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js +++ b/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js @@ -15,78 +15,88 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/container/lib/tsconfig.json] -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] +{ + "compilerOptions": { + "outFile": "../built/local/lib.js", + "composite": true, + "declarationMap": true + }, + "references": [], + "files": [ + "index.ts" + ] } - //// [/user/username/projects/container/lib/index.ts] -namespace container { - export const myConst = 30; -} +namespace container { + export const myConst = 30; +} + //// [/user/username/projects/container/exec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/exec.js" + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/exec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/compositeExec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/compositeExec.js", + "composite": true, + "declarationMap": true + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/compositeExec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/tsconfig.json] -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] +{ + "files": [], + "include": [], + "references": [ + { + "path": "./exec" + }, + { + "path": "./compositeExec" + } + ] } //// [/user/username/projects/container/built/local/lib.js] @@ -106,7 +116,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","-7311945748-namespace container {\r\n export const myConst = 30;\r\n}"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","-14968179652-namespace container {\n export const myConst = 30;\n}\n"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/lib.tsbuildinfo.readable.baseline.txt] { @@ -144,7 +154,7 @@ declare namespace container { ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "../../lib/index.ts": "-7311945748-namespace container {\r\n export const myConst = 30;\r\n}" + "../../lib/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" }, "root": [ [ @@ -161,7 +171,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1402 + "size": 1401 } //// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] @@ -226,7 +236,7 @@ declare namespace container { //# sourceMappingURL=compositeExec.d.ts.map //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.readable.baseline.txt] { @@ -292,7 +302,7 @@ declare namespace container { "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "./lib.d.ts": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", - "../../compositeexec/index.ts": "-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + "../../compositeexec/index.ts": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" }, "root": [ [ @@ -309,7 +319,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 2207 + "size": 2201 } //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.baseline.txt] @@ -411,8 +421,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/compositeExec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -493,7 +503,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" ../../../../../a/lib/lib.d.ts @@ -560,8 +570,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/exec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/exec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/exec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js index 493f32113f2..0e7bfaf8878 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -94,64 +94,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -179,68 +179,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -377,13 +377,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -465,23 +465,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -508,23 +508,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -560,13 +560,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -643,23 +643,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -668,13 +668,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -700,23 +700,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js index 01665527da7..1c4c86e42bb 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -72,64 +72,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -160,69 +160,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "", - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "", + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -361,13 +361,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -427,23 +427,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -473,23 +473,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -527,13 +527,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -589,23 +589,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -614,13 +614,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -648,23 +648,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js index 006ec9ff044..6c29d2b3dee 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -54,66 +54,66 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -272,13 +272,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -320,23 +320,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -399,13 +399,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -444,23 +444,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations diff --git a/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js b/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js index 84c2996b864..d6f10a93843 100644 --- a/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js @@ -47,8 +47,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/compositeExec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/compositeExec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/compositeExec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -90,8 +90,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/exec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/exec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/exec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -114,7 +114,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" ../../../../../a/lib/lib.d.ts @@ -166,78 +166,88 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/container/lib/tsconfig.json] -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] +{ + "compilerOptions": { + "outFile": "../built/local/lib.js", + "composite": true, + "declarationMap": true + }, + "references": [], + "files": [ + "index.ts" + ] } - //// [/user/username/projects/container/lib/index.ts] -namespace container { - export const myConst = 30; -} +namespace container { + export const myConst = 30; +} + //// [/user/username/projects/container/exec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/exec.js" + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/exec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/compositeExec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/compositeExec.js", + "composite": true, + "declarationMap": true + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/compositeExec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/tsconfig.json] -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] +{ + "files": [], + "include": [], + "references": [ + { + "path": "./exec" + }, + { + "path": "./compositeExec" + } + ] } //// [/user/username/projects/container/built/local/lib.js] @@ -257,7 +267,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","-7311945748-namespace container {\r\n export const myConst = 30;\r\n}"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","-14968179652-namespace container {\n export const myConst = 30;\n}\n"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/lib.tsbuildinfo.readable.baseline.txt] { @@ -295,7 +305,7 @@ declare namespace container { ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", - "../../lib/index.ts": "-7311945748-namespace container {\r\n export const myConst = 30;\r\n}" + "../../lib/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" }, "root": [ [ @@ -312,7 +322,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1402 + "size": 1401 } //// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] @@ -377,7 +387,7 @@ declare namespace container { //# sourceMappingURL=compositeExec.d.ts.map //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.readable.baseline.txt] { @@ -443,7 +453,7 @@ declare namespace container { "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "./lib.d.ts": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", - "../../compositeexec/index.ts": "-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + "../../compositeexec/index.ts": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" }, "root": [ [ @@ -460,7 +470,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 2207 + "size": 2201 } //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 961188867af..1610c2ec7c9 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 73d389faac1..03b8dd2ef25 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index d5b0b67ade0..515e95978b7 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index b2f41d3a292..b17a5a9539b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index aec82c48bef..c4a7fe0e020 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index c32f98b6718..8f63e0e4180 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index 4ea91605e6b..2abdde57013 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index c2a2e34480c..c0906bddba6 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 1d82aaea6d6..cee10058949 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 32f1a6fc8d4..21076fe9fac 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index 5e83bf3f1e8..d2b9063cdf4 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index 547dad3a2bc..e38ac5d0fd6 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 6b665be4d5c..5c691316bdb 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 6e1e44da910..fb16eb947aa 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index d8f2f016817..0aa3e1d9b6c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index c76de4b8e74..0ac96c33fdc 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js index 7101f27da95..9952921457d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js @@ -15,10 +15,30 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./compiler"},{"path":"./services"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./compiler" + }, + { + "path": "./services" + } + ] +} //// [/user/username/projects/solution/compiler/tsconfig.json] -{"compilerOptions":{"composite":true,"module":"none"},"files":["./types.ts","./program.ts"]} +{ + "compilerOptions": { + "composite": true, + "module": "none" + }, + "files": [ + "./types.ts", + "./program.ts" + ] +} //// [/user/username/projects/solution/compiler/types.ts] @@ -38,7 +58,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/services/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./services.ts"],"references":[{"path":"../compiler"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./services.ts" + ], + "references": [ + { + "path": "../compiler" + } + ] +} //// [/user/username/projects/solution/services/services.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js index 97b6eef9fee..e2a3d1eb90a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js @@ -15,10 +15,35 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./a"},{"path":"./b"},{"path":"./c"},{"path":"./d"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./a" + }, + { + "path": "./b" + }, + { + "path": "./c" + }, + { + "path": "./d" + } + ] +} //// [/user/username/projects/solution/a/tsconfig.json] -{"compilerOptions":{"composite":true,"module":"none"},"files":["./index.ts"]} +{ + "compilerOptions": { + "composite": true, + "module": "none" + }, + "files": [ + "./index.ts" + ] +} //// [/user/username/projects/solution/a/index.ts] @@ -27,7 +52,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/b/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/solution/b/index.ts] @@ -38,7 +75,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/c/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/solution/c/index.ts] @@ -49,7 +98,19 @@ interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/d/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./index.ts"],"references":[{"path":"../c"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../c" + } + ] +} //// [/user/username/projects/solution/d/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js index 469198a62fb..c00bcc484de 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -231,13 +259,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +345,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +485,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +500,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +516,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +605,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +620,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +636,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js index 27fd9698d2f..e723f27d8af 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -231,13 +257,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +341,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +480,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +495,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +511,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +600,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +615,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +631,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js index 51a77fff538..b9d9256b599 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -53,13 +81,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +167,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +307,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +322,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +338,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +427,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +442,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +458,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js index 8e9c2fd28d7..f45340535a9 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -53,13 +79,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +163,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +302,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +317,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +333,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +422,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +437,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +453,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index bb1c8e64c3a..5d73a05763a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -231,13 +259,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +345,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +485,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +500,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +516,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +605,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +620,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +636,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js index f2f190702c1..18bb3491fc1 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -231,13 +257,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +341,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +480,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +495,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +511,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +600,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +615,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +631,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index b9a2415a99d..fe24a2ec0ae 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -53,13 +81,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +167,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +307,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +322,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +338,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +427,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +442,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +458,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js index 9e1301edbe2..bc482c63d25 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -53,13 +79,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +163,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +302,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +317,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +333,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +422,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +437,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +453,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js index f5e779d4584..4bf624d5881 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -231,13 +256,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +342,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +482,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +497,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +513,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +602,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +617,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +633,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js index 61727588c65..0e4e63c8bc7 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -231,13 +254,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +338,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +477,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +492,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +508,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +597,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +612,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +628,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js index efe70ae85f3..4bded6b84ea 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -53,13 +78,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +164,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +304,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +319,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +335,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +424,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +439,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +455,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js index c42639e43e7..d66e7c2ccfb 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -53,13 +76,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +160,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +299,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +314,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +330,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +419,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +434,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +450,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index 3a0972953b7..bb92fd1cfeb 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -231,13 +256,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +342,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +482,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +497,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +513,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +602,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +617,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +633,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js index 9d69e916afb..3b8b38cb50d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -231,13 +254,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +338,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +477,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +492,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +508,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +597,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +612,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +628,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index 643b1b76d75..31346344e66 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -53,13 +78,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +164,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +304,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +319,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +335,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +424,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +439,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +455,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js index a0c01753688..16aa9a93266 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -53,13 +76,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +160,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +299,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +314,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +330,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +419,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +434,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +450,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js index a17304fa196..40f7cc58ead 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,18 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js index c2e1f83efe9..521adfaab20 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js index 5055cf58afc..116f2e6c5dc 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,18 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js index 037299a5c67..8278eb6c11a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js index ff084bf395a..4595dd193c2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -53,64 +53,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -138,68 +138,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -216,10 +216,26 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./tsconfig-src.json"}],"files":[]} +{ + "references": [ + { + "path": "./tsconfig-src.json" + } + ], + "files": [] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -250,17 +266,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; @@ -311,13 +349,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +364,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,22 +380,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -481,13 +519,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -528,23 +566,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -571,23 +609,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -660,13 +698,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -704,23 +742,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -729,13 +767,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -761,23 +799,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1024,13 +1062,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1074,66 +1112,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1253,13 +1291,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -1300,23 +1338,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1342,12 +1380,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js index e73da1642f5..e669e3f30ee 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -93,64 +93,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -178,68 +178,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -256,10 +256,29 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./tsconfig-indirect1.json"},{"path":"./tsconfig-indirect2.json"}],"files":[]} +{ + "references": [ + { + "path": "./tsconfig-indirect1.json" + }, + { + "path": "./tsconfig-indirect2.json" + } + ], + "files": [] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -290,17 +309,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; @@ -308,7 +349,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect1.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect1/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect1/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect1/main.ts] import { foo } from 'main'; @@ -316,7 +371,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect2.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect2/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect2/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect2/main.ts] import { foo } from 'main'; @@ -371,13 +440,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -386,13 +455,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -402,22 +471,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -543,13 +612,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -630,23 +699,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -673,23 +742,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -762,13 +831,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -844,23 +913,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -869,13 +938,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -901,23 +970,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1034,13 +1103,13 @@ Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -1069,68 +1138,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -1159,57 +1228,57 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts.map 500 undefined WatchType: Closed Script info @@ -1470,13 +1539,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1520,66 +1589,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1757,13 +1826,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -1844,23 +1913,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1886,12 +1955,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -1905,13 +1974,13 @@ Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -1940,23 +2009,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -1985,12 +2054,12 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject/src/helpers/functions.ts position 13 in project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/helpers diff --git a/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js b/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js index f8dd4d3f993..01e613ad13b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js @@ -21,7 +21,19 @@ import { b } from "@ref/compositeb/b"; export const x = 10; //// [/user/username/projects/myproject/compositea/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../dist/","rootDir":"../","baseUrl":"../","paths":{"@ref/*":["./dist/*"]}}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../dist/", + "rootDir": "../", + "baseUrl": "../", + "paths": { + "@ref/*": [ + "./dist/*" + ] + } + } +} //// [/user/username/projects/myproject/dist/compositeb/b.d.ts] export declare function b(): void; @@ -30,13 +42,42 @@ export declare function b(): void; export function b() {} //// [/user/username/projects/myproject/compositeb/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../dist/","rootDir":"../","baseUrl":"../","paths":{"@ref/*":["./dist/*"]}}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../dist/", + "rootDir": "../", + "baseUrl": "../", + "paths": { + "@ref/*": [ + "./dist/*" + ] + } + } +} //// [/user/username/projects/myproject/compositec/c.ts] import { b } from "@ref/compositeb/b"; //// [/user/username/projects/myproject/compositec/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../dist/","rootDir":"../","baseUrl":"../","paths":{"@ref/*":["./*"]}},"references":[{"path":"../compositeb"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../dist/", + "rootDir": "../", + "baseUrl": "../", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "references": [ + { + "path": "../compositeb" + } + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/compositea diff --git a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js index a59fb56c503..97d3f6ec7dc 100644 --- a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js +++ b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js @@ -2,7 +2,18 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/project/src/common/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../../out","baseUrl":"..","disableSourceOfProjectReferenceRedirect":true},"include":["./**/*"]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../../out", + "baseUrl": "..", + "disableSourceOfProjectReferenceRedirect": true + }, + "include": [ + "./**/*" + ] +} //// [/user/username/projects/project/src/common/input/keyboard.ts] function bar() { return "just a random function so .d.ts location doesnt match"; } @@ -16,7 +27,29 @@ function testEvaluateKeyboardEvent() { //// [/user/username/projects/project/src/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../out","baseUrl":".","paths":{"common/*":["./common/*"]},"tsBuildInfoFile":"../out/src.tsconfig.tsbuildinfo","disableSourceOfProjectReferenceRedirect":true},"include":["./**/*"],"references":[{"path":"./common"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../out", + "baseUrl": ".", + "paths": { + "common/*": [ + "./common/*" + ] + }, + "tsBuildInfoFile": "../out/src.tsconfig.tsbuildinfo", + "disableSourceOfProjectReferenceRedirect": true + }, + "include": [ + "./**/*" + ], + "references": [ + { + "path": "./common" + } + ] +} //// [/user/username/projects/project/src/terminal.ts] import { evaluateKeyboardEvent } from 'common/input/keyboard'; diff --git a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js index e2ed889512f..cbf0d998a7f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js @@ -2,7 +2,18 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/project/src/common/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../../out","baseUrl":"..","disableSourceOfProjectReferenceRedirect":false},"include":["./**/*"]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../../out", + "baseUrl": "..", + "disableSourceOfProjectReferenceRedirect": false + }, + "include": [ + "./**/*" + ] +} //// [/user/username/projects/project/src/common/input/keyboard.ts] function bar() { return "just a random function so .d.ts location doesnt match"; } @@ -16,7 +27,29 @@ function testEvaluateKeyboardEvent() { //// [/user/username/projects/project/src/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../out","baseUrl":".","paths":{"common/*":["./common/*"]},"tsBuildInfoFile":"../out/src.tsconfig.tsbuildinfo","disableSourceOfProjectReferenceRedirect":false},"include":["./**/*"],"references":[{"path":"./common"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../out", + "baseUrl": ".", + "paths": { + "common/*": [ + "./common/*" + ] + }, + "tsBuildInfoFile": "../out/src.tsconfig.tsbuildinfo", + "disableSourceOfProjectReferenceRedirect": false + }, + "include": [ + "./**/*" + ], + "references": [ + { + "path": "./common" + } + ] +} //// [/user/username/projects/project/src/terminal.ts] import { evaluateKeyboardEvent } from 'common/input/keyboard'; diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js index 5669183a4e1..0e3edcaf07a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -119,67 +119,67 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 4, - "tsSize": 166, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 4, + "tsSize": 166, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -205,68 +205,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -420,13 +420,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -532,23 +532,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -574,23 +574,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -632,13 +632,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -736,23 +736,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -761,13 +761,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -793,23 +793,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js index 36ed3640cc5..795ee020471 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -97,67 +97,67 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 4, - "tsSize": 166, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 4, + "tsSize": 166, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -185,69 +185,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "", - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "", + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -402,13 +402,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -492,23 +492,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -536,23 +536,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -595,13 +595,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -678,23 +678,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -703,13 +703,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -737,23 +737,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js index e197695966e..6208a3a688d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -75,68 +75,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "", - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "", + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -247,13 +247,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -315,23 +315,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -365,13 +365,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -428,23 +428,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js index 5e123b84f29..764f35adedc 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -74,67 +74,67 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -160,68 +160,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -238,10 +238,32 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"./target/","baseUrl":"./src/"},"references":[{"path":"./tsconfig-src.json"}],"files":["./own/main.ts"]} +{ + "compilerOptions": { + "outDir": "./target/", + "baseUrl": "./src/" + }, + "references": [ + { + "path": "./tsconfig-src.json" + } + ], + "files": [ + "./own/main.ts" + ] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -272,17 +294,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; @@ -340,13 +384,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -355,13 +399,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -371,22 +415,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -523,13 +567,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -590,23 +634,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -632,23 +676,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -725,13 +769,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -787,23 +831,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -812,13 +856,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -844,23 +888,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1160,13 +1204,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1210,66 +1254,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1404,13 +1448,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -1470,23 +1514,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1512,12 +1556,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js index a50344bcdf0..bedfb99f768 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -118,67 +118,67 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 4, - "tsSize": 166, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 4, + "tsSize": 166, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -204,68 +204,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -282,10 +282,35 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"./target/","baseUrl":"./indirect1/"},"references":[{"path":"./tsconfig-indirect1.json"},{"path":"./tsconfig-indirect2.json"}],"files":["./own/main.ts"]} +{ + "compilerOptions": { + "outDir": "./target/", + "baseUrl": "./indirect1/" + }, + "references": [ + { + "path": "./tsconfig-indirect1.json" + }, + { + "path": "./tsconfig-indirect2.json" + } + ], + "files": [ + "./own/main.ts" + ] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -316,17 +341,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; @@ -334,7 +381,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect1.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect1/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect1/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect1/main.ts] import { foo } from 'main'; @@ -342,7 +403,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect2.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect2/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect2/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect2/main.ts] import { foo } from 'main'; @@ -405,13 +480,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -420,13 +495,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -436,22 +511,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -594,13 +669,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -705,23 +780,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -747,23 +822,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -842,13 +917,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -945,23 +1020,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -970,13 +1045,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1002,23 +1077,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1156,13 +1231,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/m Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1190,57 +1265,57 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/indirect1 Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -1260,13 +1335,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/helpers Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -1295,57 +1370,57 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts.map 500 undefined WatchType: Closed Script info @@ -1597,13 +1672,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1647,66 +1722,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1902,13 +1977,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -2012,23 +2087,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2054,12 +2129,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -2085,13 +2160,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/m Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -2119,12 +2194,12 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/indirect1 Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -2145,13 +2220,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/helpers Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -2180,12 +2255,12 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject/src/helpers/functions.ts position 13 in project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/helpers diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js index 77c6f884cc3..7e1677ce368 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const foo = { bar: () => { } }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js index 13d5350b441..6faee38d62b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] const local = { bar: () => { } }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js index 0dfceea734f..01e95481525 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.dog(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.dog(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const dog = () => { }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js index cd6adfcf267..5a25f36c597 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js @@ -15,10 +15,34 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; @@ -26,7 +50,21 @@ const instance = new shared.foo(); instance.fly(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; @@ -34,7 +72,16 @@ const instance = new shared.foo(); instance.fly(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const foo = class { fly() {} }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js index 0a2ce0d39fd..42595b5cd4f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.foo.baz; //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.foo.baz; //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const foo = { baz: "BAZ" }; diff --git a/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js b/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js index 8db312d103d..351ec8d95ae 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js @@ -18,73 +18,186 @@ interface Array { length: number; [n: number]: T; } export const mainConst = 10; //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"},{"path":"../indirect"},{"path":"../noCoreRef1"},{"path":"../indirectDisabledChildLoad1"},{"path":"../indirectDisabledChildLoad2"},{"path":"../refToCoreRef3"},{"path":"../indirectNoCoreRef"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + }, + { + "path": "../indirect" + }, + { + "path": "../noCoreRef1" + }, + { + "path": "../indirectDisabledChildLoad1" + }, + { + "path": "../indirectDisabledChildLoad2" + }, + { + "path": "../refToCoreRef3" + }, + { + "path": "../indirectNoCoreRef" + } + ] +} //// [/user/username/projects/myproject/core/src/file1.ts] export const coreConst = 10; //// [/user/username/projects/myproject/core/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/noCoreRef1/src/file1.ts] export const noCoreRef1Const = 10; //// [/user/username/projects/myproject/noCoreRef1/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/indirect/src/file1.ts] export const indirectConst = 10; //// [/user/username/projects/myproject/indirect/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../coreRef1"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../coreRef1" + } + ] +} //// [/user/username/projects/myproject/coreRef1/src/file1.ts] export const coreRef1Const = 10; //// [/user/username/projects/myproject/coreRef1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/myproject/indirectDisabledChildLoad1/src/file1.ts] export const indirectDisabledChildLoad1Const = 10; //// [/user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json] -{"compilerOptions":{"composite":true,"disableReferencedProjectLoad":true},"references":[{"path":"../coreRef2"}]} +{ + "compilerOptions": { + "composite": true, + "disableReferencedProjectLoad": true + }, + "references": [ + { + "path": "../coreRef2" + } + ] +} //// [/user/username/projects/myproject/coreRef2/src/file1.ts] export const coreRef2Const = 10; //// [/user/username/projects/myproject/coreRef2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/myproject/indirectDisabledChildLoad2/src/file1.ts] export const indirectDisabledChildLoad2Const = 10; //// [/user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json] -{"compilerOptions":{"composite":true,"disableReferencedProjectLoad":true},"references":[{"path":"../coreRef3"}]} +{ + "compilerOptions": { + "composite": true, + "disableReferencedProjectLoad": true + }, + "references": [ + { + "path": "../coreRef3" + } + ] +} //// [/user/username/projects/myproject/coreRef3/src/file1.ts] export const coreRef3Const = 10; //// [/user/username/projects/myproject/coreRef3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/myproject/refToCoreRef3/src/file1.ts] export const refToCoreRef3Const = 10; //// [/user/username/projects/myproject/refToCoreRef3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../coreRef3"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../coreRef3" + } + ] +} //// [/user/username/projects/myproject/indirectNoCoreRef/src/file1.ts] export const indirectNoCoreRefConst = 10; //// [/user/username/projects/myproject/indirectNoCoreRef/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../noCoreRef2"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../noCoreRef2" + } + ] +} //// [/user/username/projects/myproject/noCoreRef2/src/file1.ts] export const noCoreRef2Const = 10; //// [/user/username/projects/myproject/noCoreRef2/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js index 7c55da7450f..8f25e7fdb85 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js @@ -15,10 +15,26 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/emit-composite/tsconfig.json] -{"compilerOptions":{"composite":true,"allowJs":true,"emitDeclarationOnly":true,"outDir":"lib","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "allowJs": true, + "emitDeclarationOnly": true, + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/emit-composite/package.json] -{"name":"emit-composite","version":"1.0.0","main":"src/index.js","typings":"lib/index.d.ts"} +{ + "name": "emit-composite", + "version": "1.0.0", + "main": "src/index.js", + "typings": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/emit-composite/src/index.js] const testModule = require('./testModule'); @@ -37,7 +53,16 @@ module.exports = { } //// [/user/username/projects/myproject/packages/consumer/tsconfig.json] -{"include":["src"],"references":[{"path":"../emit-composite"}]} +{ + "include": [ + "src" + ], + "references": [ + { + "path": "../emit-composite" + } + ] +} //// [/user/username/projects/myproject/packages/consumer/src/index.ts] import { testCompositeFunction } from 'emit-composite'; @@ -61,13 +86,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/consumer/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/consumer/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/consumer/tsconfig.json : { "rootNames": [ @@ -146,64 +171,64 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "f6f890b868ee990140855d3b392e7be25cc511c224e307bfaf73c9f27a024a79", - "fileStats": { - "js": 2, - "jsSize": 203, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 143, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/consumer/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "f6f890b868ee990140855d3b392e7be25cc511c224e307bfaf73c9f27a024a79", + "fileStats": { + "js": 2, + "jsSize": 203, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 143, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/consumer/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/packages/consumer/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -281,13 +306,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -296,27 +321,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 42 - }, - "end": { - "line": 3, - "offset": 44 - }, - "text": "Expected 1 arguments, but got 2.", - "code": 2554, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 42 + }, + "end": { + "line": 3, + "offset": 44 + }, + "text": "Expected 1 arguments, but got 2.", + "code": 2554, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -326,21 +351,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js index a39eddba21b..eec14d0e47d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js +++ b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js @@ -15,10 +15,31 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./compiler"},{"path":"./services"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./compiler" + }, + { + "path": "./services" + } + ] +} //// [/user/username/projects/solution/compiler/tsconfig.json] -{"compilerOptions":{"composite":true,"module":"none","disableSolutionSearching":true},"files":["./types.ts","./program.ts"]} +{ + "compilerOptions": { + "composite": true, + "module": "none", + "disableSolutionSearching": true + }, + "files": [ + "./types.ts", + "./program.ts" + ] +} //// [/user/username/projects/solution/compiler/types.ts] @@ -38,7 +59,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/services/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./services.ts"],"references":[{"path":"../compiler"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./services.ts" + ], + "references": [ + { + "path": "../compiler" + } + ] +} //// [/user/username/projects/solution/services/services.ts] diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index 87658c04c78..648671b1504 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js index eb6a06d54a8..85963140621 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js index 50bb9102cb4..f483030d423 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js index 295dadc5d75..0eb4b43fd13 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js index 122f0b5aca1..6ffddda0e43 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index 836253988a4..c81faffbad1 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -483,7 +494,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/dependency/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js index c7983e6a2d5..84bd987c329 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -481,7 +492,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js index 01c45d1b647..18a1d08c90d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js index b36dbcf5922..96ed7027052 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js index 85addf92cd1..5fe20c97836 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js index d7a188edf98..9683549fafd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js index 620eed69b97..859af9d702b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js index d87ea6be246..79548c38be0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 3647e344588..4bf4ac86b81 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js index fdf5eb16294..0864b09b1b7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js index 27939cccd38..118aa862d58 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js index 3c553e67e1d..df9ca248222 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js index c4a94213fb9..faa517ce49d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index fd8cf36166b..93fa64f692b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -483,7 +499,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/dependency/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js index f9153936106..9523a4656e1 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -481,7 +497,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js index d994a917edf..df3e0ad6b28 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js index 2035514e856..96387661c79 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js index 8c99713e89d..06d4a27c06d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js index 6ef48555277..fb4ab59f9de 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js index b72c979d16d..290c506bb4d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js index c718f09d975..f2979b60e4c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js index e9f7a5a5d94..44706b7ba84 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js index 9a7417fb458..d7b39e8c88e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js index 1d74358f7e7..49d520e0bd8 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index eca3ab55ef5..fe3b1e08177 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js index 014f682163e..3043ed43ecd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js index 535766645fc..5356c1b6dbf 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js index 6266dc34b37..ad2a8e67911 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js index bbeb1b27806..4354b8f504d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index cee83530e17..3f2b45abbc0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -483,7 +500,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/dependency/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js index 4257984fd93..2853d6a8520 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -481,7 +498,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js index 35ad38bee52..aad429654a5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js index 5ea8f1c0e0e..6341c8c847b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js index 882b64b341a..a00be36bd0c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js index 9238cecad32..a6c19b5b48b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 12999e91770..83229700db7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js index 6b5afc270ca..7f15ad0f0f2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index a111888b7db..e5ac01aaea0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js index 65493ff3452..fe409be336e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js index 910a43f856e..82417698cd6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js index 428c8ca22cb..3ab7a7d5e48 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js index bf4fce8fe6b..35b2f9d153f 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index eab2643f242..e3f6c37a61a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -702,7 +713,16 @@ Before running Timeout callback:: count: 3 3: /user/username/projects/myproject/main/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js index 7f1636e0483..900151ceac0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -699,7 +710,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js index 5d9fce5ac05..9c204610c9a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js index a9bd0207982..a84f7e0922d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js index 56f58afabb6..305d001c90e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js index ddafe0823de..050c1656fe0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js index 8057660a5c6..b6c8825623d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js index cbdec532101..f9f1a18d204 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 437853e4bb0..caaef819aa0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js index 8f314a0ee39..465c414732a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js index ce3574c2a73..9eaa2a7ffa8 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js index f54d06a40af..610c607a520 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js index 08d5de0cd47..d15d402573c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index a176f9bc6bd..ac73e3c778b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -713,7 +729,16 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/dependency/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/main/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js index 8053d0a56fe..71fb8ccf47b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -710,7 +726,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js index 05b2d015273..0301809d4c7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js index 0d0fe147a1b..9fcaa7474bd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js index ed74383d112..decb3c606ac 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js index ba5048c892d..e273fec73fd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js index eec0053f7e3..7de3c7576aa 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js index 2f907762273..b1f9175a526 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js index fde287f2c77..dae306e9d00 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js index a2dcfd8da58..8a908202b50 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js index 79cf78f81b6..83b6ff3b2ce 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index 5ca429c4fb0..7124bd56129 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js index 8a1423e5ae8..b820f05b5fb 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js index 67c3f09b51a..3523fadd802 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js index 90ebe972f43..ac1377836f0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js index 20b39df8cb5..9ff91272a4f 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index f388b816499..114f4e77875 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -713,7 +730,16 @@ Before running Timeout callback:: count: 3 3: /user/username/projects/myproject/main/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js index 512c6a2ba31..497ac89a822 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -710,7 +727,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js index 436a74f5609..67027ad4662 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js index 0d2c44dec05..fb3abef2af7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js index e628ec855bb..c2b1abfe69d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js index 918eb16afc2..a1ae7e0b8fb 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 646b10d3fff..825e7fc8fa1 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js index 446903df0e2..9a4f34cb925 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js index e7f6c437b2e..132c03865b7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index 9997e84a21b..6bc4bad9aa6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js index 34b358edd32..49fe53f2e3d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js index fc074411ad8..b4786f8c472 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js index 7dccf239548..5d8e39fd92c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js index 3f5bccb3ec3..edc416608ea 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index 61e5f53168a..7768193ce79 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -489,7 +500,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/main/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/main/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js index 806c621b278..2e0a57ccbf0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -487,7 +498,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js index b56968e8342..77476bc14a8 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js index c9d1d7d9e87..3f8c18e9e7b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js index 99228e25df6..f8451869b08 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js index bc68fdd2297..ee132540c94 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js index 577c96229b2..3fddbb54226 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js index 019468f6436..245a9fa3212 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 60037c0b0c9..fbd59291267 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js index b8ee668c96d..c23466d417b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js index 1752e838663..f479a4a7c9a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js index 51a09efc288..d4628013382 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js index a37aec88830..e9784f348a9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index da165459a05..ce8fe9189a9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -477,7 +493,16 @@ After request Before running Timeout callback:: count: 0 //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js index 4bfed4bfb38..82a1242bf3e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -477,7 +493,16 @@ After request Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js index 9f04997169c..4d7f2070481 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js index 902bc2813d4..1ccbf12c667 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js index 48946e86fd7..76a74876850 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js index 4af5e881309..29d8aa68a34 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js index 85531c02a59..7efd6a51871 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js index c8c5e26f70f..12e9144adc7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js index a5337991fbf..cb85e0f951c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js index 5f264e255b7..9ab1ce15ed2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js index df57be92352..feb05ae43f4 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index b38daaaa70b..f1c397125fa 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js index d661580211d..88762c9ce93 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js index ce3cffabaaa..42e36e36963 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js index b22ba39c94e..96f70fc43a7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js index 8e3dc62da44..c0765e427d1 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index ec6e096583d..c7be0674c89 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -522,7 +539,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/main/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/main/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js index 18c209d8550..29f14088639 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -520,7 +537,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js index 565dab7996c..118d2a126d9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js index 448266705fa..1dac8eda06d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js index 67e580a6d27..1bc1174583c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 0d0e4bb88c7..534e5d8262a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js index aeeadc32b2c..20d2b4f1cce 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js b/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js index 2e200e9d220..86e87e4f472 100644 --- a/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js +++ b/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js @@ -21,7 +21,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file1.ts","src/file2.ts"]} +{ + "files": [ + "src/file1.ts", + "src/file2.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src @@ -75,7 +80,11 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file1.ts"]} +{ + "files": [ + "src/file1.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js b/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js index de0825f404a..59f39c07a39 100644 --- a/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js +++ b/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js @@ -5,7 +5,14 @@ Creating project service let x = 1; //// [C:/a/tsconfig.json] -{"compilerOptions":{"outDir":"C:\\a\\b"},"include":["*.ts"]} +{ + "compilerOptions": { + "outDir": "C:\\a\\b" + }, + "include": [ + "*.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: C:/a diff --git a/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js b/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js index f9459730b18..9f81bed6767 100644 --- a/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js +++ b/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js @@ -8,7 +8,9 @@ let x = 1; let y = 2; //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js index f6abccca6df..2773b78fac7 100644 --- a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js +++ b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js @@ -24,11 +24,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -61,11 +61,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js index 056466d96ef..c4090e275a1 100644 --- a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js +++ b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js @@ -24,11 +24,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -61,11 +61,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js b/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js index e64014c395b..7cf5dd6940c 100644 --- a/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js +++ b/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js @@ -5,7 +5,12 @@ Creating project service let x =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: externalproject diff --git a/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js index fd0aa3c9392..79837e7783b 100644 --- a/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js @@ -11,7 +11,11 @@ export function foo() {} export function bar() { } //// [/user/username/projects/myproject/playground/tsconfig-json/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} //// [/user/username/projects/myproject/playground/tsconfig-json/src/src.ts] export function foobar() { } diff --git a/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js b/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js index a8c1014bd1a..c89069f3d8a 100644 --- a/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js +++ b/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js @@ -18,7 +18,9 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js b/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js index b9421d4033f..e3226fbe7e5 100644 --- a/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js +++ b/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js @@ -40,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -84,64 +84,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 40, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/b.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 40, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/b.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -353,15 +353,15 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/b.ts,/users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/b.ts", - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/b.ts", + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -427,20 +427,20 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/sub/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/users/username/projects/project/a.ts' not found.\n The file is in the program because:\n Matched by default include pattern '**/*'", - "code": 6053, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/sub/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/users/username/projects/project/a.ts' not found.\n The file is in the program because:\n Matched by default include pattern '**/*'", + "code": 6053, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -547,15 +547,15 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/b.ts,/users/username/projects/project/sub/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/b.ts", - "/users/username/projects/project/sub/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/b.ts", + "/users/username/projects/project/sub/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -630,13 +630,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/b.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/b.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 13: /users/username/projects/project/tsconfig.json @@ -675,13 +675,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/project/b.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/project/b.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -691,13 +691,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/project/b.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/project/b.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -709,13 +709,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 16:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/sub/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/sub/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 13: /users/username/projects/project/tsconfig.json @@ -726,13 +726,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/project/sub/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/project/sub/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -742,21 +742,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/project/sub/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/project/sub/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js index 2728419110a..7ba16a6723b 100644 --- a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js +++ b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js @@ -44,9 +44,9 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TypeAcquisition:: { - "include": [ - "duck-types" - ], - "exclude": [], - "enable": true + "include": [ + "duck-types" + ], + "exclude": [], + "enable": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js index 584f69284ee..e5da85e4e59 100644 --- a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js +++ b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js @@ -40,10 +40,10 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TypeAcquisition:: { - "include": [ - "kendo-ui", - "office" - ], - "exclude": [], - "enable": true + "include": [ + "kendo-ui", + "office" + ], + "exclude": [], + "enable": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js index c35a6ff44f4..1f0f552c253 100644 --- a/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js @@ -2,7 +2,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} //// [/user/username/projects/myproject/mocks/cssMock.js] function foo() { } @@ -11,7 +15,12 @@ function foo() { } function bar() { } //// [/user/username/projects/myproject/apps/editor/tsconfig.json] -{"extends":"../../tsconfig.json","include":["./src"]} +{ + "extends": "../../tsconfig.json", + "include": [ + "./src" + ] +} //// [/user/username/projects/myproject/apps/editor/src/src.js] function fooBar() { } @@ -45,13 +54,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/mocks/cssMock.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/mocks/cssMock.js to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -95,82 +104,82 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 3, - "jsSize": 57, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/mocks/cssMock.js", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot write file '/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "text": "Cannot write file '/user/username/projects/myproject/apps/editor/src/src.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "text": "Cannot write file '/user/username/projects/myproject/mocks/cssMock.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 3, + "jsSize": 57, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/mocks/cssMock.js", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "text": "Cannot write file '/user/username/projects/myproject/apps/editor/src/src.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "text": "Cannot write file '/user/username/projects/myproject/mocks/cssMock.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -268,13 +277,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/apps/editor/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/apps/editor/tsconfig.json : { "rootNames": [ @@ -312,55 +321,55 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "3a35a87188335633b0bee242201aa5e01b96dbee6cfae401ebff6e26120b2aa7", - "fileStats": { - "js": 1, - "jsSize": 21, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "3a35a87188335633b0bee242201aa5e01b96dbee6cfae401ebff6e26120b2aa7", + "fileStats": { + "js": 1, + "jsSize": 21, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -478,10 +487,10 @@ FsWatchesRecursive *deleted*:: /user/username/projects/myproject: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -493,27 +502,83 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject/apps/editor/scripts","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject/apps/editor/scripts", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/apps/editor/scripts/bower_components","/user/username/projects/myproject/apps/editor/scripts/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/apps/editor/scripts/bower_components","/user/username/projects/myproject/apps/editor/scripts/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/apps/editor/scripts/bower_components", + "/user/username/projects/myproject/apps/editor/scripts/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/apps/editor/scripts/bower_components","/user/username/projects/myproject/apps/editor/scripts/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/apps/editor/scripts/bower_components", + "/user/username/projects/myproject/apps/editor/scripts/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/apps/editor/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js b/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js index 7af77c70a91..e213e6fb604 100644 --- a/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js +++ b/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js @@ -11,7 +11,11 @@ var y = 1 var y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} Info seq [hh:mm:ss:mss] reload projects. diff --git a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js index 2cca6e5dec3..d5bc69749e5 100644 --- a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js +++ b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js @@ -5,7 +5,12 @@ Creating project service let x =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js index 2cca6e5dec3..d5bc69749e5 100644 --- a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js +++ b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js @@ -5,7 +5,12 @@ Creating project service let x =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js b/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js index 93e5a3b7621..6bce732ad5a 100644 --- a/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js +++ b/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js @@ -8,7 +8,11 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} //// [/a/lib/lib.d.ts] /// @@ -47,11 +51,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -156,7 +160,11 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":false}} +{ + "compilerOptions": { + "allowJs": false + } +} //// [/a/lib/lib.d.ts] /// @@ -195,11 +203,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -339,11 +347,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -443,7 +451,15 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true},"files":["/a/b/f1.ts","/a/b/f2.html"]} +{ + "compilerOptions": { + "allowJs": true + }, + "files": [ + "/a/b/f1.ts", + "/a/b/f2.html" + ] +} //// [/a/lib/lib.d.ts] /// @@ -482,11 +498,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -585,7 +601,14 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true},"exclude":["/a/b/f2.html"]} +{ + "compilerOptions": { + "allowJs": true + }, + "exclude": [ + "/a/b/f2.html" + ] +} //// [/a/lib/lib.d.ts] /// @@ -624,11 +647,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js index b5c5e4a2585..18910447d0b 100644 --- a/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js @@ -11,7 +11,11 @@ export function foo() {} export function bar() { } //// [/user/username/projects/myproject/playground/tsconfig-json/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} //// [/user/username/projects/myproject/playground/tsconfig-json/src/src.ts] export function foobar() { } diff --git a/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js b/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js index 6df29831d45..cdec75d8794 100644 --- a/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js +++ b/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js @@ -50,10 +50,10 @@ FsWatches:: /a/b/f1.js: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -65,21 +65,58 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"proj1","fileNames":["/a/b/f1.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "proj1", + "fileNames": [ + "/a/b/f1.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"proj1","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "proj1", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: proj1 WatchType: Directory location for typing installer @@ -87,7 +124,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj1 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"proj1","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "proj1", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] response: { @@ -143,16 +194,53 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"proj2","fileNames":["/a/b/f2.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "proj2", + "fileNames": [ + "/a/b/f2.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"proj2","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "proj2", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj2 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj2 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: proj2 WatchType: Directory location for typing installer @@ -160,7 +248,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj2 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj2 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"proj2","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "proj2", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js index 5b42afd6591..e6c43b1dbdf 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js @@ -5,7 +5,9 @@ Before request export const foo = 5; //// [/user/username/projects/myproject/tsconfig.json] -{"extends":"./tsconfig_base.json"} +{ + "extends": "./tsconfig_base.json" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js index 0c1ad5a57c4..516d4c330db 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js @@ -5,7 +5,9 @@ Before request export const foo = 5; //// [/user/username/projects/myproject/tsconfig.json] -{"extends":"./tsconfig_base.json"} +{ + "extends": "./tsconfig_base.json" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js b/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js index ad9143f0f9b..11b995c44c7 100644 --- a/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js +++ b/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js @@ -8,7 +8,11 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} Info seq [hh:mm:ss:mss] request: @@ -136,14 +140,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js b/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js index a89eb560ae0..aa309629677 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js @@ -15,77 +15,82 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/sample1/core/anotherModule.ts] -export const World = "hello"; +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } //// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -169,10 +174,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-1 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-1 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" ../../../../../a/lib/lib.d.ts @@ -206,12 +211,12 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/sample1/tests/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {} @@ -251,10 +256,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-2 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-2 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -284,12 +289,12 @@ Before running Timeout callback:: count: 2 3: /user/username/projects/sample1/tests/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {}export function gfoo() {} @@ -299,10 +304,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export function gfoo() {}" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export function gfoo() {}" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -332,7 +337,18 @@ Before running Timeout callback:: count: 2 5: /user/username/projects/sample1/tests/tsconfig.json 6: *ensureProjectForOpenFiles* //// [/user/username/projects/sample1/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationDir":"decls"},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls" + }, + "references": [ + { + "path": "../core" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/sample1/tests/tsconfig.json @@ -358,10 +374,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export function gfoo() {}" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export function gfoo() {}" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js index 3537af40b95..cc6d38f9ec1 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -296,7 +338,25 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js index b18983a8dea..136b647ffa5 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -245,7 +287,14 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js index beaf028bbcc..f4741fc196f 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -159,7 +201,25 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -319,7 +379,25 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js index dfa5f40a559..011b36b936c 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -159,7 +201,24 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -319,7 +378,24 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js index 4852c8bdead..058de8411e4 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js index 708290c7344..6d65ccebc80 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -313,7 +346,22 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js index 7c47afdd2c5..2d57571a076 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -258,7 +291,11 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js index d1483bec44d..27c30155454 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -165,7 +198,22 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -327,7 +375,22 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js index e0f941425fd..1977d4b8d56 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -165,7 +198,21 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -329,7 +376,21 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js index 27ad0726815..187838f4493 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} diff --git a/tests/baselines/reference/tsserver/refactors/use-formatting-options.js b/tests/baselines/reference/tsserver/refactors/use-formatting-options.js index 3c39466026c..c60ee81daea 100644 --- a/tests/baselines/reference/tsserver/refactors/use-formatting-options.js +++ b/tests/baselines/reference/tsserver/refactors/use-formatting-options.js @@ -63,14 +63,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Format host information updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js b/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js index e69e4a63199..bc25eea806e 100644 --- a/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js +++ b/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js @@ -112,14 +112,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -146,14 +146,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -263,14 +263,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 7, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 7, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -297,14 +297,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 8, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 8, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js b/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js index f9c78004786..c8b4877afe7 100644 --- a/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js +++ b/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js @@ -62,14 +62,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -94,14 +94,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js index b043c351e8c..2b8ffc6c4d0 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js @@ -2,7 +2,13 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} //// [/a/lib/lib.d.ts] /// @@ -43,11 +49,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js index b21acff2fb6..f8a6a9404f0 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js +++ b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js @@ -24,7 +24,13 @@ import { foo } from "module1"; export function bar(){} //// [/user/username/projects/myproject/tsconfig.json] -{"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} Info seq [hh:mm:ss:mss] request: @@ -43,11 +49,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/external-project.js b/tests/baselines/reference/tsserver/reloadProjects/external-project.js index 576f2271241..a936a08d1ae 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/external-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/external-project.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js b/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js index 0b7ee799899..2e20b6dad1b 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js b/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js index da204475306..b105debe841 100644 --- a/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js +++ b/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js @@ -71,14 +71,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js b/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js index 91f1a0a4e4e..3d621a9cef2 100644 --- a/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js +++ b/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js @@ -120,14 +120,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /a.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js b/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js index 2b4ae75fe41..adcb1d92730 100644 --- a/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js +++ b/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js @@ -97,14 +97,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -191,14 +191,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 5, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -224,14 +224,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /b.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 6, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js b/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js index b0f9dfaffe6..5c3b0fe25c1 100644 --- a/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js +++ b/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js @@ -133,14 +133,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -237,14 +237,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 5, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -270,14 +270,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /a.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 6, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js index 930122f4a1c..2b985bae18c 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js +++ b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js @@ -11,7 +11,11 @@ export function module2() {} import { module1 } from "module1";import { module2 } from "module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js index d2f420f6efc..8dda38704c6 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js +++ b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js @@ -64,27 +64,80 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"traceResolution":true,"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "traceResolution": true, + "allowJs": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"traceResolution":true,"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "traceResolution": true, + "allowJs": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js b/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js index 7a1480f2893..f6693c46359 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js +++ b/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js @@ -35,10 +35,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -50,21 +50,62 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["b"],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "b" + ], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["b"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["b"],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["b"],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "b" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -73,7 +114,27 @@ TI:: [hh:mm:ss:mss] Installing typings ["b"] TI:: [hh:mm:ss:mss] 'b':: Entry for package 'b' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["b"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "b" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -110,14 +171,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -150,13 +211,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -165,21 +226,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js index 60cc560d44c..932469b5ae5 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js @@ -20,7 +20,11 @@ import { module1 } from "module1";import { module2 } from "module2"; import { module1 } from "module1";import { module2 } from "module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js index a1788db7ef1..b69a1c29304 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js @@ -14,7 +14,11 @@ import { module1 } from "module1";import { module2 } from "module2"; import { module1 } from "module1";import { module2 } from "module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js index 5154fe40547..e36f86508e8 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js @@ -5,7 +5,12 @@ Before request export const x = 10; //// [/users/username/projects/common/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true + } +} //// [/users/username/projects/common/moduleA.ts] export const a = 10; @@ -16,7 +21,18 @@ export const b = x; //// [/users/username/projects/app/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true,"typeRoots":[]},"references":[{"path":"../common"}]} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true, + "typeRoots": [] + }, + "references": [ + { + "path": "../common" + } + ] +} //// [/users/username/projects/app/appA.ts] import { x } from "moduleX"; diff --git a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js index bce62766f02..8774075809f 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js +++ b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js @@ -113,13 +113,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -128,27 +128,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 20 - }, - "end": { - "line": 1, - "offset": 25 - }, - "text": "Cannot find module 'pad' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 20 + }, + "end": { + "line": 1, + "offset": 25 + }, + "text": "Cannot find module 'pad' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -158,22 +158,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -310,14 +310,14 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/projects/temp/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/projects/temp/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/projects/temp/a.ts" + ] + } } After running Timeout callback:: count: 1 16: checkOne @@ -327,13 +327,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -342,13 +342,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js index ccdde47fa45..054d0097642 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js @@ -20,7 +20,11 @@ import { module1 } from "../../src/module1";import { module2 } from "../../modul import { module1 } from "../src/module1}";import { module2 } from "../module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js index 61ecf7ced2d..4cd56e8e5e4 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js @@ -14,7 +14,11 @@ import { module1 } from "./module1";import { module2 } from "../module2"; import { module1 } from "./module1";import { module2 } from "../module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js index b07eecf34be..7dea2f384c6 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js @@ -5,7 +5,12 @@ Before request export const x = 10; //// [/users/username/projects/common/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true + } +} //// [/users/username/projects/common/moduleA.ts] export const a = 10; @@ -16,7 +21,17 @@ export const b = x; //// [/users/username/projects/app/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true},"references":[{"path":"../common"}]} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true + }, + "references": [ + { + "path": "../common" + } + ] +} //// [/users/username/projects/app/appA.ts] import { x } from "moduleX"; diff --git a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js index 608f3af43d4..fdc866e264e 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js +++ b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js @@ -35,10 +35,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -50,27 +50,82 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -118,13 +173,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -133,13 +188,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -149,36 +204,36 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a.js", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 12 - }, - "end": { - "line": 1, - "offset": 13 - }, - "text": "'p' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a.js", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 12 + }, + "end": { + "line": 1, + "offset": 13 + }, + "text": "'p' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js b/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js index ee37abe902c..f719ad7c50f 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js +++ b/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js @@ -65,12 +65,12 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } Info seq [hh:mm:ss:mss] response: { @@ -95,12 +95,12 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js b/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js index c8579f2aa55..ecd0fbfad85 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js +++ b/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js @@ -5,7 +5,13 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"]}} +{ + "compilerOptions": { + "types": [ + "node" + ] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any diff --git a/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js b/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js index 0b0f5f8e023..ee2c6092dc5 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js +++ b/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js @@ -5,7 +5,14 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"],"typeRoots":[]}} +{ + "compilerOptions": { + "types": [ + "node" + ], + "typeRoots": [] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js index c7c1bf6f1cf..85b3f645127 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -19,7 +19,18 @@ const y = x; export const x = 10; //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"module":"amd","moduleResolution":"classic","target":"es5","outDir":"../out","baseUrl":"./","typeRoots":["typings"]}} +{ + "compilerOptions": { + "module": "amd", + "moduleResolution": "classic", + "target": "es5", + "outDir": "../out", + "baseUrl": "./", + "typeRoots": [ + "typings" + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js index fcd948c705f..bbb372bbe2f 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js @@ -26,7 +26,18 @@ const y = x; export const x = 10; //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"module":"amd","moduleResolution":"classic","target":"es5","outDir":"../out","baseUrl":"./","typeRoots":["typings"]}} +{ + "compilerOptions": { + "module": "amd", + "moduleResolution": "classic", + "target": "es5", + "outDir": "../out", + "baseUrl": "./", + "typeRoots": [ + "typings" + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js index a2a8ca5bd61..71d01ceee50 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js @@ -116,5 +116,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u Timeout callback:: count: 0 Immedidate callback:: count: 0 //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js index 78dd6e84089..31df108dedb 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js @@ -94,5 +94,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u Timeout callback:: count: 0 Immedidate callback:: count: 0 //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} diff --git a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js index bc9b8af81ac..66a83c7bc57 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js +++ b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js @@ -8,7 +8,12 @@ let x = 1; export let a: number //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{},"exclude":["node_modules"]} +{ + "compilerOptions": {}, + "exclude": [ + "node_modules" + ] +} Info seq [hh:mm:ss:mss] Search path: /users/username/projects/project diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js index 42699ca3d2e..7390385e781 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js @@ -63,10 +63,10 @@ FsWatches:: /a/b/file2.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -78,21 +78,60 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"project1","fileNames":["/a/b/file1.js","/a/b/file2.d.ts"],"compilerOptions":{"skipLibCheck":false,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "project1", + "fileNames": [ + "/a/b/file1.js", + "/a/b/file2.d.ts" + ], + "compilerOptions": { + "skipLibCheck": false, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"project1","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "project1", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: project1 WatchType: Directory location for typing installer @@ -100,7 +139,22 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"project1","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"skipLibCheck":false,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "project1", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "skipLibCheck": false, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js index 7b0f6155b43..942c1587354 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js @@ -61,10 +61,10 @@ FsWatches:: /a/b/file2.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -76,21 +76,59 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"project1","fileNames":["/a/b/file1.js","/a/b/file2.d.ts"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "project1", + "fileNames": [ + "/a/b/file1.js", + "/a/b/file2.d.ts" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"project1","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "project1", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: project1 WatchType: Directory location for typing installer @@ -98,7 +136,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"project1","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "project1", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js index 7ad64261126..606bc3947dd 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js @@ -53,10 +53,10 @@ FsWatches:: /a/b/file2.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -68,27 +68,83 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/file2.d.ts","/a/b/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/file2.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -196,18 +252,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/file2.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/file2.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/file1.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -327,22 +432,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/a/b/file2.d.ts","/a/b/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/a/b/file2.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -356,7 +517,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject1*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js index e4614af2caa..04949037a1b 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js @@ -2,7 +2,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/a/jsconfig.json] -{"compilerOptions":{"checkJs":true,"skipLibCheck":true}} +{ + "compilerOptions": { + "checkJs": true, + "skipLibCheck": true + } +} //// [/a/jsFile.js] let x = 1; @@ -64,10 +69,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -99,7 +104,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -117,23 +122,82 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/jsFile.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/jsFile.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js index eeb43262254..35e6b56103a 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js @@ -65,10 +65,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -100,7 +100,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -118,23 +118,80 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/jsFile.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/jsFile.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js index 3179e7bb579..51fa0b92a93 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js @@ -37,10 +37,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -52,27 +52,82 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/jsFile.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/jsFile.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js b/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js index 29a08197fee..072b575bbee 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js @@ -84,10 +84,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -119,7 +119,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -141,23 +141,82 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/dTsFile1.d.ts","/a/dTsFile2.d.ts","/a/jsFile.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/dTsFile1.d.ts", + "/a/dTsFile2.d.ts", + "/a/jsFile.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms diff --git a/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js b/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js index e96d0ea56d0..7546140dcaf 100644 --- a/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js +++ b/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js @@ -58,10 +58,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -73,27 +73,83 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/file.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/file.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js index 22c0949d2f5..8f4ab49721b 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js @@ -19,13 +19,19 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} Info seq [hh:mm:ss:mss] request: @@ -44,13 +50,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -101,64 +107,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -230,13 +236,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -245,27 +251,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -275,22 +281,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -408,14 +414,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 8: checkOne @@ -483,13 +489,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -498,13 +504,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -514,22 +520,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -541,20 +547,27 @@ Before running Timeout callback:: count: 2 10: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 11: *ensureProjectForOpenFiles* //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"],"compilerOptions":{"resolveJsonModule":true}} +{ + "include": [ + "src" + ], + "compilerOptions": { + "resolveJsonModule": true + } +} Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -576,23 +589,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -614,14 +627,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 12: checkOne @@ -631,12 +644,12 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index a14ef233e68..e8671792fbf 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -19,13 +19,19 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) @@ -45,13 +51,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -103,64 +109,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -234,13 +240,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -249,27 +255,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -279,22 +285,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -334,13 +340,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -349,27 +355,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -379,21 +385,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js index c34dd61e7f1..660fd3e3a46 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js @@ -19,13 +19,19 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) //// [/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts] @@ -48,13 +54,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -102,64 +108,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 370, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 370, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -227,13 +233,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -242,13 +248,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -258,22 +264,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -360,14 +366,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -411,13 +417,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -446,13 +452,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -461,27 +467,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 5: suggestionCheck @@ -491,22 +497,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -546,13 +552,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -561,27 +567,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 7: suggestionCheck @@ -591,21 +597,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js index dda12cfa89d..1d23b7503b6 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js @@ -19,13 +19,28 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]}},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + } + }, + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} Info seq [hh:mm:ss:mss] request: @@ -44,13 +59,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -114,68 +129,68 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "rootDir": "", - "baseUrl": "", - "paths": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "rootDir": "", + "baseUrl": "", + "paths": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -253,13 +268,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -268,27 +283,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -298,22 +313,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -451,14 +466,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 11: checkOne @@ -532,13 +547,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -547,13 +562,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -563,22 +578,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -590,20 +605,34 @@ Before running Timeout callback:: count: 2 13: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 14: *ensureProjectForOpenFiles* //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]},"resolveJsonModule":true},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + }, + "resolveJsonModule": true + }, + "include": [ + "src" + ] +} Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -633,23 +662,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -671,14 +700,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 15: checkOne @@ -688,12 +717,12 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index d083911de04..f1f17383aac 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -19,13 +19,28 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]}},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + } + }, + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) @@ -45,13 +60,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -115,68 +130,68 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "rootDir": "", - "baseUrl": "", - "paths": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "rootDir": "", + "baseUrl": "", + "paths": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -254,13 +269,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -269,27 +284,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -299,22 +314,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -397,14 +412,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 7: checkOne @@ -478,13 +493,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -493,13 +508,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -509,21 +524,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js index 9bc5a00a225..33d3a7987d7 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js @@ -19,13 +19,28 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]}},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + } + }, + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) //// [/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts] @@ -48,13 +63,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -108,68 +123,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 370, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "rootDir": "", - "baseUrl": "", - "paths": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 370, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "rootDir": "", + "baseUrl": "", + "paths": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -237,13 +252,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -252,13 +267,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -268,22 +283,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -376,14 +391,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -431,13 +446,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -466,13 +481,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -481,27 +496,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 5: suggestionCheck @@ -511,22 +526,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -609,14 +624,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 11: checkOne @@ -690,13 +705,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -705,13 +720,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 7: suggestionCheck @@ -721,21 +736,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js b/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js index 20e19e5b51a..a1a0159dea9 100644 --- a/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js +++ b/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js @@ -21,14 +21,22 @@ interface Array { length: number; [n: number]: T; } import {C} from "./c/fc"; console.log(C) //// [/users/username/projects/a/tsconfig.json] -{"compilerOptions":{"module":"commonjs"}} +{ + "compilerOptions": { + "module": "commonjs" + } +} //// [/users/username/projects/a/c] symlink(/users/username/projects/c) //// [/users/username/projects/b/b.ts] import {C} from "./c/fc"; console.log(C) //// [/users/username/projects/b/tsconfig.json] -{"compilerOptions":{"module":"commonjs"}} +{ + "compilerOptions": { + "module": "commonjs" + } +} //// [/users/username/projects/b/c] symlink(/users/username/projects/c) diff --git a/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js b/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js index ab4c177b8da..b6c9366d0a4 100644 --- a/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js +++ b/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js @@ -23,10 +23,19 @@ export const b2 = 10; //// [C:/temp/replay/axios-src/package.json] -{"name":"axios","version":"1.4.0","dependencies":{"follow-redirects":"^1.15.0"}} +{ + "name": "axios", + "version": "1.4.0", + "dependencies": { + "follow-redirects": "^1.15.0" + } +} //// [C:/temp/replay/axios-src/node_modules/follow-redirects/package.json] -{"name":"follow-redirects","version":"1.15.0"} +{ + "name": "follow-redirects", + "version": "1.15.0" +} //// [C:/temp/replay/axios-src/node_modules/follow-redirects/index.js] export const x = 10; diff --git a/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js b/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js index e2ef4b95df9..8d202648072 100644 --- a/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js +++ b/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js @@ -26,7 +26,14 @@ Before request //// [/tsconfig.json] -{"compilerOptions":{"allowJs":true},"include":["src"]} +{ + "compilerOptions": { + "allowJs": true + }, + "include": [ + "src" + ] +} Info seq [hh:mm:ss:mss] request: @@ -44,13 +51,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /src/ts.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /src/ts.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -102,117 +109,117 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 1, - "jsSize": 0, - "jsx": 1, - "jsxSize": 0, - "ts": 2, - "tsSize": 0, - "tsx": 1, - "tsxSize": 0, - "dts": 1, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/src/ts.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot write file '/src/js.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 1, + "jsSize": 0, + "jsx": 1, + "jsxSize": 0, + "ts": 2, + "tsSize": 0, + "tsx": 1, + "tsxSize": 0, + "dts": 1, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/src/ts.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/src/js.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) diff --git a/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js b/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js index f0a15ed9085..ecb8cdbd36e 100644 --- a/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js +++ b/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -47,26 +47,26 @@ Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { Info seq [hh:mm:ss:mss] Non TS file size exceeded limit (20971521). Largest files: /a.js:20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/jsconfig.json", - "languageServiceEnabled": false - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/jsconfig.json", + "languageServiceEnabled": false + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Skipped loading contents of large file /a.js for info /a.js: fileSize: 20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/a.js", - "fileSize": 20971521, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/a.js", + "fileSize": 20971521, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /jsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -81,116 +81,116 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 20971521, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": false, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 20971521, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": false, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js b/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js index cf6801ac6ab..5c36ca35fa3 100644 --- a/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js +++ b/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js @@ -5,7 +5,48 @@ Before request //// [/tsconfig.json] -{"compilerOptions":{"project":"","outFile":"hunter2.js","outDir":"hunter2","rootDir":"hunter2","baseUrl":"hunter2","rootDirs":["hunter2"],"typeRoots":["hunter2"],"types":["hunter2"],"sourceRoot":"hunter2","mapRoot":"hunter2","jsxFactory":"hunter2","out":"hunter2","reactNamespace":"hunter2","charset":"hunter2","locale":"hunter2","declarationDir":"hunter2","paths":{"*":["hunter2"]},"declaration":true,"lib":["es6","dom","hunter2"],"checkJs":"hunter2","unknownCompilerOption":"hunter2"},"files":["/a.ts"]} +{ + "compilerOptions": { + "project": "", + "outFile": "hunter2.js", + "outDir": "hunter2", + "rootDir": "hunter2", + "baseUrl": "hunter2", + "rootDirs": [ + "hunter2" + ], + "typeRoots": [ + "hunter2" + ], + "types": [ + "hunter2" + ], + "sourceRoot": "hunter2", + "mapRoot": "hunter2", + "jsxFactory": "hunter2", + "out": "hunter2", + "reactNamespace": "hunter2", + "charset": "hunter2", + "locale": "hunter2", + "declarationDir": "hunter2", + "paths": { + "*": [ + "hunter2" + ] + }, + "declaration": true, + "lib": [ + "es6", + "dom", + "hunter2" + ], + "checkJs": "hunter2", + "unknownCompilerOption": "hunter2" + }, + "files": [ + "/a.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +64,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -86,385 +127,385 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "project": "", - "outFile": "", - "outDir": "", - "rootDir": "", - "baseUrl": "", - "rootDirs": [ - "" - ], - "typeRoots": [ - "" - ], - "types": [ - "" - ], - "sourceRoot": "", - "mapRoot": "", - "jsxFactory": "", - "out": "", - "reactNamespace": "", - "charset": "", - "declarationDir": "", - "paths": "", - "declaration": true, - "lib": [ - "es6", - "dom" - ] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot find type definition file for 'hunter2'.\n The file is in the program because:\n Entry point of type library 'hunter2' specified in compilerOptions", - "code": 2688, - "category": "error", - "relatedInformation": [ - { - "span": { - "start": { - "line": 1, - "offset": 172 - }, - "end": { - "line": 1, - "offset": 181 - }, - "file": "/tsconfig.json" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 }, - "message": "File is entry point of type library specified here.", - "category": "message", - "code": 1419 - } - ] - }, - { - "text": "File '/a/lib/lib.dom.d.ts' not found.\n The file is in the program because:\n Library 'lib.dom.d.ts' specified in compilerOptions", - "code": 6053, - "category": "error" - }, - { - "text": "File '/a/lib/lib.es2015.d.ts' not found.\n The file is in the program because:\n Library 'lib.es2015.d.ts' specified in compilerOptions", - "code": 6053, - "category": "error" - }, - { - "text": "File '/a.ts' is not under 'rootDir' '/hunter2'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", - "code": 6059, - "category": "error", - "relatedInformation": [ - { - "span": { - "start": { - "line": 1, - "offset": 497 - }, - "end": { - "line": 1, - "offset": 504 - }, - "file": "/tsconfig.json" + "compilerOptions": { + "project": "", + "outFile": "", + "outDir": "", + "rootDir": "", + "baseUrl": "", + "rootDirs": [ + "" + ], + "typeRoots": [ + "" + ], + "types": [ + "" + ], + "sourceRoot": "", + "mapRoot": "", + "jsxFactory": "", + "out": "", + "reactNamespace": "", + "charset": "", + "declarationDir": "", + "paths": "", + "declaration": true, + "lib": [ + "es6", + "dom" + ] }, - "message": "File is matched by 'files' list specified here.", - "category": "message", - "code": 1410 - } + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot find type definition file for 'hunter2'.\n The file is in the program because:\n Entry point of type library 'hunter2' specified in compilerOptions", + "code": 2688, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 15, + "offset": 7 + }, + "end": { + "line": 15, + "offset": 16 + }, + "file": "/tsconfig.json" + }, + "message": "File is entry point of type library specified here.", + "category": "message", + "code": 1419 + } + ] + }, + { + "text": "File '/a/lib/lib.dom.d.ts' not found.\n The file is in the program because:\n Library 'lib.dom.d.ts' specified in compilerOptions", + "code": 6053, + "category": "error" + }, + { + "text": "File '/a/lib/lib.es2015.d.ts' not found.\n The file is in the program because:\n Library 'lib.es2015.d.ts' specified in compilerOptions", + "code": 6053, + "category": "error" + }, + { + "text": "File '/a.ts' is not under 'rootDir' '/hunter2'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 40, + "offset": 5 + }, + "end": { + "line": 40, + "offset": 12 + }, + "file": "/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 14 + }, + "text": "Option 'out' cannot be specified with option 'outFile'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 17, + "offset": 5 + }, + "end": { + "line": 17, + "offset": 17 + }, + "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", + "code": 5051, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 18, + "offset": 5 + }, + "end": { + "line": 18, + "offset": 14 + }, + "text": "Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.", + "code": 5069, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 19, + "offset": 5 + }, + "end": { + "line": 19, + "offset": 17 + }, + "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 20, + "offset": 5 + }, + "end": { + "line": 20, + "offset": 10 + }, + "text": "Option 'declarationDir' cannot be specified with option 'out'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 20, + "offset": 5 + }, + "end": { + "line": 20, + "offset": 10 + }, + "text": "Option 'out' cannot be specified with option 'outFile'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 20, + "offset": 5 + }, + "end": { + "line": 20, + "offset": 10 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 21, + "offset": 5 + }, + "end": { + "line": 21, + "offset": 21 + }, + "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 22, + "offset": 5 + }, + "end": { + "line": 22, + "offset": 14 + }, + "text": "Option 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.", + "code": 5101, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 24, + "offset": 5 + }, + "end": { + "line": 24, + "offset": 21 + }, + "text": "Option 'declarationDir' cannot be specified with option 'out'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + }, + { + "start": { + "line": 23, + "offset": 5 + }, + "end": { + "line": 23, + "offset": 13 + }, + "text": "Option 'locale' can only be specified on command line.", + "code": 6266, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 34, + "offset": 7 + }, + "end": { + "line": 34, + "offset": 16 + }, + "text": "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'.", + "code": 6046, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 36, + "offset": 16 + }, + "end": { + "line": 36, + "offset": 25 + }, + "text": "Compiler option 'checkJs' requires a value of type boolean.", + "code": 5024, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 37, + "offset": 5 + }, + "end": { + "line": 37, + "offset": 28 + }, + "text": "Unknown compiler option 'unknownCompilerOption'.", + "code": 5023, + "category": "error", + "fileName": "/tsconfig.json" + } ] - }, - { - "start": { - "line": 1, - "offset": 34 - }, - "end": { - "line": 1, - "offset": 43 - }, - "text": "Option 'out' cannot be specified with option 'outFile'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 183 - }, - "end": { - "line": 1, - "offset": 195 - }, - "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", - "code": 5051, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 206 - }, - "end": { - "line": 1, - "offset": 215 - }, - "text": "Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.", - "code": 5069, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 226 - }, - "end": { - "line": 1, - "offset": 238 - }, - "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 249 - }, - "end": { - "line": 1, - "offset": 254 - }, - "text": "Option 'declarationDir' cannot be specified with option 'out'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 249 - }, - "end": { - "line": 1, - "offset": 254 - }, - "text": "Option 'out' cannot be specified with option 'outFile'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 249 - }, - "end": { - "line": 1, - "offset": 254 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 265 - }, - "end": { - "line": 1, - "offset": 281 - }, - "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 292 - }, - "end": { - "line": 1, - "offset": 301 - }, - "text": "Option 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.", - "code": 5101, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 331 - }, - "end": { - "line": 1, - "offset": 347 - }, - "text": "Option 'declarationDir' cannot be specified with option 'out'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 312 - }, - "end": { - "line": 1, - "offset": 320 - }, - "text": "Option 'locale' can only be specified on command line.", - "code": 6266, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 422 - }, - "end": { - "line": 1, - "offset": 431 - }, - "text": "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'.", - "code": 6046, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 443 - }, - "end": { - "line": 1, - "offset": 452 - }, - "text": "Compiler option 'checkJs' requires a value of type boolean.", - "code": 5024, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 453 - }, - "end": { - "line": 1, - "offset": 476 - }, - "text": "Unknown compiler option 'unknownCompilerOption'.", - "code": 5023, - "category": "error", - "fileName": "/tsconfig.json" - } - ] - } + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js b/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js index 055fbc08aa0..2809e61ca4d 100644 --- a/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js @@ -34,10 +34,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -49,27 +49,82 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js b/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js index dd3f451fe9b..91da0c169ec 100644 --- a/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js +++ b/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js @@ -2,7 +2,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/jsconfig.json] -{"compilerOptions":{"checkJs":true}} +{ + "compilerOptions": { + "checkJs": true + } +} //// [/a.js] @@ -23,13 +27,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -73,10 +77,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory @@ -112,7 +116,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -130,140 +134,199 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/a.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' -TI:: [hh:mm:ss:mss] Cache location was already processed... -TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' -TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer -TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} -TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery -Info seq [hh:mm:ss:mss] event: +TI:: [hh:mm:ss:mss] Got install request { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { + "projectName": "/jsconfig.json", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { "allowJs": true, "maxNodeModuleJsDepth": 2, "allowSyntheticDefaultImports": true, "skipLibCheck": true, "noEmit": true, - "checkJs": true - }, - "typeAcquisition": { + "checkJs": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' +TI:: [hh:mm:ss:mss] Cache location was already processed... +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js b/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js index ab5b8323a6c..ac70263016d 100644 --- a/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js +++ b/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/tsconfig.json", - "reason": "Creating possible configured project for /a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { "rootNames": [ @@ -58,110 +58,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "bcbb3eb9a7f46ab3b8f574ad3733f3e5a7ce50557c14c0c6192f1203aedcacca", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/a.ts", - "configFile": "/a/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "bcbb3eb9a7f46ab3b8f574ad3733f3e5a7ce50557c14c0c6192f1203aedcacca", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/a.ts", + "configFile": "/a/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -309,13 +309,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/tsconfig.json", - "reason": "Creating possible configured project for /a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { "rootNames": [ @@ -341,69 +341,69 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/a.ts", - "configFile": "/a/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/a.ts", + "configFile": "/a/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js b/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js index 0bab0770ebf..a53f2654e38 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js @@ -38,10 +38,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -53,27 +53,82 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -121,22 +176,77 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js index 7e4d67d7b1b..c71995775e4 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js @@ -5,7 +5,20 @@ Before request //// [/tsconfig.json] -{"compilerOptions":{},"extends":"hunter2.json","files":["hunter2/a.ts"],"include":["hunter2"],"exclude":["hunter2"],"compileOnSave":true} +{ + "compilerOptions": {}, + "extends": "hunter2.json", + "files": [ + "hunter2/a.ts" + ], + "include": [ + "hunter2" + ], + "exclude": [ + "hunter2" + ], + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /hunter2/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /hunter2/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -55,124 +68,124 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": true, - "include": true, - "exclude": true, - "compileOnSave": true, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/hunter2/a.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 33 - }, - "end": { - "line": 1, - "offset": 47 - }, - "text": "File 'hunter2.json' not found.", - "code": 6053, - "category": "error", - "fileName": "/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": true, + "include": true, + "exclude": true, + "compileOnSave": true, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/hunter2/a.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + }, + { + "start": { + "line": 3, + "offset": 14 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "File 'hunter2.json' not found.", + "code": 6053, + "category": "error", + "fileName": "/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js index 089249ef532..35af911726e 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/jsconfig.json] -{"compilerOptions":{"allowJs":true,"allowSyntheticDefaultImports":true,"maxNodeModuleJsDepth":2,"skipLibCheck":true,"noEmit":true}} +{ + "compilerOptions": { + "allowJs": true, + "allowSyntheticDefaultImports": true, + "maxNodeModuleJsDepth": 2, + "skipLibCheck": true, + "noEmit": true + } +} //// [/b.ts] 12 @@ -26,13 +34,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -82,10 +90,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory @@ -121,7 +129,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -141,139 +149,197 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/a.js","/b.ts"],"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:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/a.js", + "/b.ts" + ], + "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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery -Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 1, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 2, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { "allowJs": true, "maxNodeModuleJsDepth": 2, "allowSyntheticDefaultImports": true, "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 1, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 2, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js index e20e108928c..1dc01c18329 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js @@ -5,7 +5,17 @@ Before request //// [/jsconfig.json] -{"compilerOptions":{},"typeAcquisition":{"enable":true,"include":["hunter2","hunter3"],"exclude":[]}} +{ + "compilerOptions": {}, + "typeAcquisition": { + "enable": true, + "include": [ + "hunter2", + "hunter3" + ], + "exclude": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -23,13 +33,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -72,10 +82,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory @@ -111,7 +121,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -129,17 +139,61 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/a.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":["hunter2","hunter3"],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "hunter2", + "hunter3" + ], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["hunter2","hunter3"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["hunter2","hunter3"],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["hunter2","hunter3"],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "hunter2", + "hunter3" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer @@ -149,122 +203,144 @@ TI:: [hh:mm:ss:mss] 'hunter2':: Entry for package 'hunter2' does not exist in lo TI:: [hh:mm:ss:mss] 'hunter3':: Entry for package 'hunter3' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":["hunter2","hunter3"],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} -Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [ + "hunter2", + "hunter3" + ], + "exclude": [] + }, + "compilerOptions": { "allowJs": true, "maxNodeModuleJsDepth": 2, "allowSyntheticDefaultImports": true, "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": true, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": true, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js b/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js index 366eae38e33..5782f882049 100644 --- a/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js +++ b/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js @@ -37,42 +37,42 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "ef055f5036459f2705212d5657970dd7bc0280bdb6fa2cddd17d0cd73eb2a989", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "strict": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "compileOnSave": true, - "configFileName": "other", - "projectType": "external", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "ef055f5036459f2705212d5657970dd7bc0280bdb6fa2cddd17d0cd73eb2a989", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "strict": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "compileOnSave": true, + "configFileName": "other", + "projectType": "external", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js index a33bbe2ca9b..a1d726e1574 100644 --- a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js @@ -2,10 +2,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: fal Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -13,7 +22,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] @@ -45,13 +56,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/user/projects/myp Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/tsconfig.json 2000 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/user/projects/myproject/src/tsconfig.json", - "reason": "Creating possible configured project for /users/user/projects/myproject/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/myproject/src/tsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/myproject/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/user/projects/myproject/src/tsconfig.json : { "rootNames": [ @@ -90,67 +101,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/user/projects/myproject/src/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "76e1e6d2d13c83a9d2d8c2e5a527acf3bddb950312dc88f9e3cb7bb546d3f955", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 37, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "removeComments": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/myproject/src/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/user/projects/myproject/src/index.ts", - "configFile": "/users/user/projects/myproject/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "76e1e6d2d13c83a9d2d8c2e5a527acf3bddb950312dc88f9e3cb7bb546d3f955", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 37, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "removeComments": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/myproject/src/index.ts", + "configFile": "/users/user/projects/myproject/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /users/user/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /users/user/projects/myproject/src/tsconfig.json :: No config files found. diff --git a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js index 3c96865ca31..16579e18ce7 100644 --- a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js +++ b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js @@ -11,7 +11,14 @@ export let x = 1 export let y: number //// [/a/b/jsconfig.json] -{"compilerOptions":{"allowJs":true},"exclude":["node_modules"]} +{ + "compilerOptions": { + "allowJs": true + }, + "exclude": [ + "node_modules" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -77,11 +84,35 @@ TI:: typing installer creation complete //// [/a/typings/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/jsconfig.json","fileNames":["/a/b/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/typings","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/jsconfig.json", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/typings", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/typings', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/typings' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -90,16 +121,49 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/jsconfig.json","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/jsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/a/b/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js index f35761dd816..334c6791a00 100644 --- a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js +++ b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js @@ -31,7 +31,15 @@ class TestClass1 { } //// [/user/username/projects/myproject/test/tsconfig.json] -{"compilerOptions":{"module":"amd","typeRoots":["../lib/@types","../lib/@app"]}} +{ + "compilerOptions": { + "module": "amd", + "typeRoots": [ + "../lib/@types", + "../lib/@app" + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js index 8fef335d3b2..cc2d8410568 100644 --- a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js +++ b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js @@ -5,7 +5,13 @@ Before request let x = 10; //// [/user/username/projects/myproject/background/tsconfig.json] -{"compilerOptions":{"types":["../typedefs/filesystem"]}} +{ + "compilerOptions": { + "types": [ + "../typedefs/filesystem" + ] + } +} //// [/user/username/projects/myproject/typedefs/filesystem.d.ts] interface LocalFileSystem { someProperty: string; } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js b/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js index ec144fd0ac1..f046f08c039 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js @@ -32,10 +32,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -47,21 +47,64 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["commander","fs"],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "commander", + "fs" + ], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["commander","node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander","node"],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander","node"],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander", + "node" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -71,7 +114,28 @@ TI:: [hh:mm:ss:mss] 'commander':: Entry for package 'commander' does not exist i TI:: [hh:mm:ss:mss] 'node':: Entry for package 'node' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["commander","fs"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "commander", + "fs" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js index dbd14a5ff83..7a057f14a7b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js @@ -11,7 +11,9 @@ Creating project service //// [/bower_components/jquery/bower.json] -{"name":"jquery"} +{ + "name": "jquery" +} Info seq [hh:mm:ss:mss] Search path: / @@ -94,19 +96,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -124,7 +126,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.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":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.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": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -133,10 +159,26 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /bower_components; all files: ["/bower_components/jquery/bower.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer @@ -144,8 +186,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before @@ -156,7 +205,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -197,11 +248,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "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": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -221,7 +302,32 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -229,12 +335,45 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /bower_components; all files: ["/bower_components/jquery/bower.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "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": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js index 61044d7c076..3cd3549c07c 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js @@ -5,10 +5,22 @@ Creating project service //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": true + } +} //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -67,23 +79,43 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/tsconfig.json","fileNames":["/a/b/app.js"],"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/tsconfig.json", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -91,10 +123,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/tsconfig.json","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/tsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location for typing installer @@ -103,8 +153,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/b/tsconfig.json"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/b/tsconfig.json" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -112,7 +169,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -141,11 +200,37 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/b/tsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/b/tsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /a/b/tsconfig.json 2: *ensureProjectForOpenFiles* @@ -165,19 +250,70 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/tsconfig.json","fileNames":["/a/b/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/tsconfig.json", + "fileNames": [ + "/a/b/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/tsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/tsconfig.json" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js index 05abf430c68..a121d33a55f 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js @@ -8,7 +8,11 @@ Creating project service {} //// [/bower.json] -{"dependencies":{"jquery":"^3.1.0"}} +{ + "dependencies": { + "jquery": "^3.1.0" + } +} Info seq [hh:mm:ss:mss] Search path: / @@ -91,19 +95,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -121,7 +125,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.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":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.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": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -129,10 +157,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/bower.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/bower.json", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower.json","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower.json", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /bower.json 2000 undefined Project: /jsconfig.json WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer @@ -141,8 +187,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before @@ -153,7 +206,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -196,11 +251,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "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": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -220,19 +305,78 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/bower.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/bower.json", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "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": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js index 9d12b2dc34a..533203d2619 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js @@ -5,25 +5,39 @@ Creating project service import "jquery"; //// [/jsconfig.json] -{"compilerOptions":{"types":[]}} +{ + "compilerOptions": { + "types": [] + } +} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -114,41 +128,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -168,22 +182,62 @@ FsWatchesRecursive:: /node_modules: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["jquery"],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "jquery" + ], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["jquery"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms @@ -195,7 +249,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -236,11 +292,44 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":["jquery"],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [ + "jquery" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -261,18 +350,68 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/tmp/node_modules/@types/jquery/index.d.ts","/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/tmp/node_modules/@types/jquery/index.d.ts", + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js index d977f0ec5a3..bb22b652ed5 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js @@ -5,25 +5,39 @@ Creating project service //// [/jsconfig.json] -{"compilerOptions":{"types":[]}} +{ + "compilerOptions": { + "types": [] + } +} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -107,41 +121,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -159,19 +173,68 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js index 795f3ed9099..80044b7cfb8 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js @@ -5,25 +5,41 @@ Creating project service //// [/jsconfig.json] -{"compilerOptions":{"types":["jquery"]}} +{ + "compilerOptions": { + "types": [ + "jquery" + ] + } +} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -109,41 +125,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -161,19 +177,72 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":["jquery"],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [ + "jquery" + ], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":["jquery"],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [ + "jquery" + ], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js index 4ae7db4eac0..73843b4b204 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js @@ -8,22 +8,32 @@ Creating project service {} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -106,41 +116,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -158,7 +168,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.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":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.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": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -168,10 +202,28 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/jquery/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /jsconfig.json WatchType: File location for typing installer @@ -180,8 +232,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache @@ -211,7 +270,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -254,11 +315,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "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": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -282,7 +373,32 @@ Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoIm Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -291,12 +407,46 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/jquery/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "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": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-prerelease-typings-are-properly-handled.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-prerelease-typings-are-properly-handled.js new file mode 100644 index 00000000000..a8ef0ec2bd8 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-prerelease-typings-are-properly-handled.js @@ -0,0 +1,89 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/app.js" + ], + "projectRootPath": "/a", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/cache/node_modules/@types/node/index.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [ + "next", + "0" + ], + "build": [] + } + }, + "commander": { + "typingLocation": "/a/cache/node_modules/@types/commander/index.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [ + "next", + "0" + ], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http", + "commander" + ], + "typesRegistry": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0", + "tsFakeMajor.Minor": "1.3.0-next.1" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0", + "tsFakeMajor.Minor": "1.3.0-next.1" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","commander"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-gracefully-handle-packages-that-have-been-removed-from-the-types-registry.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-gracefully-handle-packages-that-have-been-removed-from-the-types-registry.js new file mode 100644 index 00000000000..ce0d334d6e8 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-gracefully-handle-packages-that-have-been-removed-from-the-types-registry.js @@ -0,0 +1,51 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + +//// [/a/b/node.d.ts] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/b/node.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs", + "bar" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings-with-prerelease-version-of-tsserver.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings-with-prerelease-version-of-tsserver.js new file mode 100644 index 00000000000..bc1de0f046f --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings-with-prerelease-version-of-tsserver.js @@ -0,0 +1,58 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/app.js" + ], + "projectRootPath": "/a", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/cache/node_modules/@types/node/index.d.ts", + "version": { + "major": 1, + "minor": 0, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http" + ], + "typesRegistry": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings.js new file mode 100644 index 00000000000..40c6581aff4 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings.js @@ -0,0 +1,82 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/app.js" + ], + "projectRootPath": "/a", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/cache/node_modules/@types/node/index.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [], + "build": [] + } + }, + "commander": { + "typingLocation": "/a/cache/node_modules/@types/commander/index.d.ts", + "version": { + "major": 1, + "minor": 0, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http", + "commander" + ], + "typesRegistry": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","commander"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/node/index.d.ts" + ], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-return-node-for-core-modules.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-return-node-for-core-modules.js new file mode 100644 index 00000000000..b1bc76d5a7f --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-return-node-for-core-modules.js @@ -0,0 +1,3013 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "assert", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "assert/strict", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "async_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "buffer", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "child_process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "cluster", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "console", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "constants", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "crypto", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "dgram", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "diagnostics_channel", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "dns", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "dns/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "domain", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "https", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http2", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "inspector", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "module", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "net", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "os", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "path", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "perf_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "punycode", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "querystring", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "readline", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "repl", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "stream", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "stream/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "string_decoder", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "timers", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "timers/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "tls", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "trace_events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "tty", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "url", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "util", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "util/types", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "v8", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "vm", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "wasi", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "worker_threads", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "zlib", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:assert", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:assert/strict", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:async_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:buffer", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:child_process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:cluster", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:console", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:constants", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:crypto", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:dgram", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:diagnostics_channel", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:dns", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:dns/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:domain", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:fs", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:fs/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:http", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:https", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:http2", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:inspector", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:module", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:net", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:os", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:path", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:perf_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:punycode", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:querystring", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:readline", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:repl", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:stream", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:stream/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:string_decoder", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:timers", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:timers/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:tls", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:trace_events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:tty", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:url", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:util", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:util/types", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:v8", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:vm", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:wasi", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:worker_threads", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:zlib", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js new file mode 100644 index 00000000000..e0315bd996a --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js @@ -0,0 +1,45 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/app.js] + + +//// [/node_modules/a/package.json] +{ + "name": "a" +} + +//// [/node_modules/a/b/package.json] +{ + "name": "b" +} + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/app.js" + ], + "projectRootPath": "/", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/a/package.json"] +TI:: [hh:mm:ss:mss] Found package names: ["a"] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "a" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js new file mode 100644 index 00000000000..1affdd29352 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js @@ -0,0 +1,40 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/app.js] + + +//// [/node_modules/@a/b/package.json] +{ + "name": "@a/b" +} + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/app.js" + ], + "projectRootPath": "/", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/@a/b/package.json"] +TI:: [hh:mm:ss:mss] Found package names: ["@a/b"] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@a/b" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-cached-locations.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-cached-locations.js new file mode 100644 index 00000000000..fd54361e0bf --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-cached-locations.js @@ -0,0 +1,64 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + +//// [/a/b/node.d.ts] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/b/node.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs", + "bar" + ], + "typesRegistry": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/b/node.d.ts" + ], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-mappings-from-safe-list.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-mappings-from-safe-list.js new file mode 100644 index 00000000000..65ea1a2aa95 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-mappings-from-safe-list.js @@ -0,0 +1,46 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + +//// [/a/b/jquery.js] + + +//// [/a/b/chroma.min.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js", + "/a/b/jquery.js", + "/a/b/chroma.min.js" + ], + "projectRootPath": "/a/b", + "safeList": { + "jquery": "jquery", + "chroma": "chroma-js" + }, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from file names: ["jquery","chroma-js"] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "chroma-js" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js index 74a96c87da1..8cefb508155 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js @@ -5,16 +5,34 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} //// [/a/data/node_modules/@types/jquery/index.d.ts] declare const $: { x: number } //// [/a/data/package.json] -{"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.0.0"}} +{ + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.0.0" + } +} //// [/a/data/package-lock.json] -{"dependencies":{"@types/jquery":{"version":"1.0.0"}}} +{ + "dependencies": { + "@types/jquery": { + "version": "1.0.0" + } + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -40,8 +58,23 @@ PolledWatches:: TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': {"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.0.0"}} -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json' +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': + { + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.0.0" + } + } +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json': + { + "dependencies": { + "@types/jquery": { + "version": "1.0.0" + } + } + } TI:: [hh:mm:ss:mss] Adding entry into typings cache: 'jquery' => '/a/data/node_modules/@types/jquery/index.d.ts' TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json @@ -51,23 +84,46 @@ TI:: [hh:mm:ss:mss] TI:: Updated types-registry npm package TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.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:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -75,10 +131,32 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -89,8 +167,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -98,7 +183,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -122,11 +209,40 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -146,19 +262,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"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:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js index 0b35107e2b4..4d702d876c8 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js @@ -43,33 +43,70 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/app.ts"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":["jquery"],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/app.ts" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "jquery" + ], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -77,9 +114,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -102,7 +148,34 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":["jquery"],"exclude":[]},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [ + "jquery" + ], + "exclude": [] + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} \ No newline at end of file + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js index 69f9fbff80d..8a275887463 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js @@ -55,33 +55,70 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "node": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/app.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -91,5 +128,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js index 8fe8a05abbe..5d31eb0e63d 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js @@ -77,34 +77,59 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "lodash": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "react": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "lodash": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "react": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file2.jsx","/a/b/file3.d.ts","/a/b/lodash.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file2.jsx", + "/a/b/file3.d.ts", + "/a/b/lodash.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -113,10 +138,31 @@ TI:: [hh:mm:ss:mss] Explicitly included types: ["lodash"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash"] TI:: [hh:mm:ss:mss] Inferred 'react' typings due to presence of '.jsx' extension TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["lodash","react"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["lodash","react"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "lodash", + "react" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -128,9 +174,20 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["lodash","react"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"]':: true + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/lodash@tsFakeMajor.Minor", + "@types/react@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/lodash@tsFakeMajor.Minor", + "@types/react@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -162,10 +219,41 @@ declare const react: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/lodash@tsFakeMajor.Minor", + "@types/react@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 1 1: /a/app/test.csproj @@ -190,7 +278,34 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file2.jsx","/a/b/file3.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts","/a/b/lodash.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file2.jsx", + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts", + "/a/b/lodash.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -198,11 +313,47 @@ TI:: [hh:mm:ss:mss] Explicitly included types: ["lodash"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash"] TI:: [hh:mm:ss:mss] Inferred 'react' typings due to presence of '.jsx' extension TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js index 194ae4c9658..6f3d84b6269 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js @@ -43,33 +43,73 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/jquery.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/jquery.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -79,5 +119,22 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true,"include":[],"exclude":[]},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js index 557e40b6109..c038b865aa7 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js @@ -10,7 +10,12 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"express":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "express": "^3.1.0" + } +} //// [/typesMap.json] { @@ -75,56 +80,86 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "moment": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "express": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "moment": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "express": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -134,10 +169,35 @@ TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["express" TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Typing for lodash is in exclude list, will be ignored. -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "moment", + "commander", + "express" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /a/app/test.csproj WatchType: File location for typing installer @@ -150,9 +210,24 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery","moment","commander","express"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]':: true + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -190,10 +265,50 @@ declare const moment: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 1 1: /a/app/test.csproj @@ -221,7 +336,41 @@ Info seq [hh:mm:ss:mss] Files (5) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts","/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts", + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -230,11 +379,57 @@ TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["express" TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Typing for lodash is in exclude list, will be ignored. -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js index 336e977d9a3..c500ac3e51c 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js @@ -40,38 +40,91 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/jquery.js"],"compilerOptions":{"allowJs":true,"enable":true,"disableFilenameBasedTypeAcquisition":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/jquery.js" + ], + "compilerOptions": { + "allowJs": true, + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true},"compilerOptions":{"allowJs":true,"enable":true,"disableFilenameBasedTypeAcquisition":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true + }, + "compilerOptions": { + "allowJs": true, + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js index 8bccc09810d..6bc56f158d8 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js @@ -5,7 +5,12 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -43,23 +48,46 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.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:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +95,32 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -81,8 +131,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -90,7 +147,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -126,11 +185,40 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -150,19 +238,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"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:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js b/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js index e9818df19c7..edbde14497f 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js @@ -43,44 +43,89 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "node": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["@ember/component","commander","fs"],"projectRootPath":"/a/b","cachePath":"/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "@ember/component", + "commander", + "fs" + ], + "projectRootPath": "/a/b", + "cachePath": "/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["@ember/component","commander","node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@ember/component","commander","node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@ember/component","commander","node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@ember/component", + "commander", + "node" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -89,8 +134,16 @@ TI:: [hh:mm:ss:mss] Installing typings ["@ember/component","commander","node"] TI:: [hh:mm:ss:mss] '@ember/component':: Entry for package 'ember__component' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor", + "@types/node@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -98,7 +151,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor", + "@types/node@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -123,11 +179,46 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts","/a/cache/node_modules/@types/node/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/a/cache/node_modules/@types/commander/index.d.ts","/a/cache/node_modules/@types/node/index.d.ts"],"unresolvedImports":["@ember/component","commander","fs"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts", + "/a/cache/node_modules/@types/node/index.d.ts" + ], + "unresolvedImports": [ + "@ember/component", + "commander", + "fs" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor", + "@types/node@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -155,18 +246,71 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/cache/node_modules/@types/node/index.d.ts","/a/cache/node_modules/@types/commander/index.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/cache/node_modules/@types/node/index.d.ts", + "/a/cache/node_modules/@types/commander/index.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js index 548ce46c53b..1314c65b58f 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js @@ -56,23 +56,48 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "foo": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["foo"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "foo" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -81,10 +106,26 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["foo"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "foo" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -92,8 +133,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["foo"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -101,7 +149,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -131,11 +181,42 @@ export function c (): void; TI:: [hh:mm:ss:mss] Installed typings ["@types/foo@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/foo/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/foo/index.d.ts"],"unresolvedImports":["foo"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/tmp/node_modules/foo/index.d.ts" + ], + "unresolvedImports": [ + "foo" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/foo@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/foo@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -167,7 +248,31 @@ Info seq [hh:mm:ss:mss] Files (6) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/tmp/node_modules/foo/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/tmp/node_modules/foo/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -175,12 +280,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery @@ -211,7 +344,30 @@ Info seq [hh:mm:ss:mss] Files (5) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -219,12 +375,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Before running Timeout callback:: count: 2 3: /dev/null/inferredProject1* @@ -242,7 +426,32 @@ Info seq [hh:mm:ss:mss] Files (5) /a/b/app.js SVC-1-1 "import * as bar from \"bar\";\n import * as a from \"foo/a/a\";\n import * as b from \"foo/a/b\";\n import * as c from \"foo/a/c\";\n import * as x from \"fooo\";" Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["bar"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -250,15 +459,47 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["bar"] TI:: [hh:mm:ss:mss] 'bar':: Entry for package 'bar' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["bar"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js index 7b70592aa90..72046859e0a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js @@ -52,23 +52,48 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "foo": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["foo"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "foo" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -77,10 +102,26 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["foo"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "foo" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -88,8 +129,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["foo"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -97,7 +145,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -118,11 +168,42 @@ export function a(): void; TI:: [hh:mm:ss:mss] Installed typings ["@types/foo@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/foo/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/foo/index.d.ts"],"unresolvedImports":["foo"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/tmp/node_modules/foo/index.d.ts" + ], + "unresolvedImports": [ + "foo" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/foo@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/foo@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -146,7 +227,31 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tmp/node_modules/foo/index.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tmp/node_modules/foo/index.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -154,12 +259,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery @@ -184,7 +317,30 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -192,12 +348,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Before running Timeout callback:: count: 2 3: /dev/null/inferredProject1* @@ -213,7 +397,32 @@ Info seq [hh:mm:ss:mss] Files (3) /a/b/app.js SVC-1-1 "import * as bar from \"bar\";import * as a from \"foo\";import * as x from \"fooo\";" Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["bar"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -221,15 +430,47 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["bar"] TI:: [hh:mm:ss:mss] 'bar':: Entry for package 'bar' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["bar"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js index cb4670770f5..236c310d216 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js @@ -8,7 +8,14 @@ const c = require('./config'); export let x = 1 //// [/a/jsconfig.json] -{"compilerOptions":{"moduleResolution":"commonjs"},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "moduleResolution": "commonjs" + }, + "typeAcquisition": { + "enable": true + } +} //// [/cache/node_modules/@types/config/index.d.ts] export let y: number; @@ -82,39 +89,97 @@ TI:: typing installer creation complete //// [/cache/node_modules/types-registry/index.json] { - "entries": { - "config": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "config": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/config.js","/a/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/config.js", + "/a/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/a/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js index b22e07f4982..402c5e4781b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js @@ -43,23 +43,46 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +90,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["co } }"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["co } }"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["co } }"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "co } }" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -80,7 +121,25 @@ TI:: [hh:mm:ss:mss] Installing typings ["co } }"] TI:: [hh:mm:ss:mss] 'co } }':: Package name 'co } }' contains non URI safe characters TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -90,22 +149,65 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file @@ -127,7 +229,9 @@ FsWatches:: /a/b/package.json: *new* {} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker TI:: After installWorker @@ -138,11 +242,40 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -162,19 +295,76 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/a/cache/node_modules/@types/commander/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js index ca20e209404..2973e032bd6 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js @@ -5,19 +5,43 @@ Before request //// [/user/username/projects/project/tsconfig.json] -{"compilerOptions":{"allowJs":true},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": true + } +} //// [/user/username/projects/project/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} //// [/user/username/projects/project2/app.js] //// [/user/username/projects/project2/tsconfig.json] -{"compilerOptions":{"allowJs":true},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": true + } +} //// [/user/username/projects/project2/package.json] -{"name":"test","dependencies":{"commander":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "commander": "^3.1.0" + } +} //// [/a/lib/lib.d.ts] /// @@ -109,34 +133,55 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/user/username/projects/project/tsconfig.json","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project/app.js"],"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/project","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/user/username/projects/project/tsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project/app.js" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/project", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -144,10 +189,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/user/username/projects/project/bower_components", + "/user/username/projects/project/package.json", + "/user/username/projects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project/tsconfig.json","files":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project/tsconfig.json", + "files": [ + "/user/username/projects/project/bower_components", + "/user/username/projects/project/package.json", + "/user/username/projects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/tsconfig.json WatchType: File location for typing installer @@ -156,8 +219,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/user/username/projects/project/tsconfig.json"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/user/username/projects/project/tsconfig.json" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/user/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -194,7 +264,9 @@ FsWatchesRecursive:: /user/username/projects/project: {} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker TI:: After installWorker @@ -205,11 +277,37 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/user/username/projects/project/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/user/username/projects/project/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/user/username/projects/project/tsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/user/username/projects/project/tsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /user/username/projects/project/tsconfig.json 2: *ensureProjectForOpenFiles* @@ -232,19 +330,71 @@ Info seq [hh:mm:ss:mss] Files (3) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/user/username/projects/project/tsconfig.json","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/project","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/user/username/projects/project/tsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/project", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/project/bower_components", + "/user/username/projects/project/package.json", + "/user/username/projects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project/tsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project/tsconfig.json" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/user/username/projects/project/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/user/username/projects/project/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -356,17 +506,56 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/user/username/projects/project2/tsconfig.json","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project2/app.js"],"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project2/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/project2","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/user/username/projects/project2/tsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project2/app.js" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project2/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/project2", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project2/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/project2/bower_components","/user/username/projects/project2/package.json","/user/username/projects/project2/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/project2/bower_components","/user/username/projects/project2/package.json","/user/username/projects/project2/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/user/username/projects/project2/bower_components", + "/user/username/projects/project2/package.json", + "/user/username/projects/project2/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project2/tsconfig.json","files":["/user/username/projects/project2/bower_components","/user/username/projects/project2/package.json","/user/username/projects/project2/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project2/tsconfig.json", + "files": [ + "/user/username/projects/project2/bower_components", + "/user/username/projects/project2/package.json", + "/user/username/projects/project2/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project2/bower_components 1 undefined Project: /user/username/projects/project2/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project2/bower_components 1 undefined Project: /user/username/projects/project2/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project2/package.json 2000 undefined Project: /user/username/projects/project2/tsconfig.json WatchType: File location for typing installer @@ -375,8 +564,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":2,"typingsInstallerVersion":"FakeVersion","projectName":"/user/username/projects/project2/tsconfig.json"} -TI:: [hh:mm:ss:mss] #2 with arguments'["@types/commander@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/user/username/projects/project2/tsconfig.json" + } +TI:: [hh:mm:ss:mss] #2 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project2/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/project/tsconfig.json' (Configured) @@ -399,7 +595,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/project/tsconfig.json 2000 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Config file TI:: [hh:mm:ss:mss] Closing file watchers for project '/user/username/projects/project/tsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project/tsconfig.json","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project/tsconfig.json", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/tsconfig.json WatchType: File location for typing installer diff --git a/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js index 9d75a0837d8..6160e9c1989 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js @@ -5,13 +5,31 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} //// [/a/data/package.json] -{"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.3.0"}} +{ + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.3.0" + } +} //// [/a/data/package-lock.json] -{"dependencies":{"@types/jquery":{"version":"1.3.0"}}} +{ + "dependencies": { + "@types/jquery": { + "version": "1.3.0" + } + } +} //// [/a/data/node_modules/@types/jquery/index.d.ts] declare const $: { x: number } @@ -40,8 +58,23 @@ PolledWatches:: TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': {"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.3.0"}} -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json' +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': + { + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.3.0" + } + } +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json': + { + "dependencies": { + "@types/jquery": { + "version": "1.3.0" + } + } + } TI:: [hh:mm:ss:mss] Adding entry into typings cache: 'jquery' => '/a/data/node_modules/@types/jquery/index.d.ts' TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json @@ -51,23 +84,46 @@ TI:: [hh:mm:ss:mss] TI:: Updated types-registry npm package TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.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:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.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:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -75,10 +131,32 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -87,7 +165,27 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery diff --git a/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js b/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js index b7e8c99485b..9c03eb9dbdd 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js @@ -52,33 +52,78 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "foo": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["@bar/common","@bar/router","foo"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "@bar/common", + "@bar/router", + "foo" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["@bar/common","@bar/router","foo"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@bar/common","@bar/router","foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@bar/common","@bar/router","foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@bar/common", + "@bar/router", + "foo" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -88,8 +133,15 @@ TI:: [hh:mm:ss:mss] '@bar/common':: Entry for package 'bar__common' does not exi TI:: [hh:mm:ss:mss] '@bar/router':: Entry for package 'bar__router' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -100,7 +152,9 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -118,6 +172,37 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/foo@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files [] TI:: [hh:mm:ss:mss] 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":["@bar/common","@bar/router","foo"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "@bar/common", + "@bar/router", + "foo" + ], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/foo@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} \ No newline at end of file + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/foo@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js index 10072f90cc2..2f982bcd738 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js @@ -5,7 +5,11 @@ Creating project service //// [/a/package.json] -{"dependencies":{"commander":"1.0.0"}} +{ + "dependencies": { + "commander": "1.0.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a @@ -43,23 +47,46 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +94,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/package.json","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -79,8 +124,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -89,7 +141,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: false +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: false TI:: Before installWorker PolledWatches:: @@ -108,4 +162,13 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] install request failed, marking packages as missing to prevent repeated requests: ["commander"] TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":false,"typingsInstallerVersion":"FakeVersion"} \ No newline at end of file + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": false, + "typingsInstallerVersion": "FakeVersion" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js index 5b504c8f6d3..c837bc28d37 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js @@ -5,10 +5,20 @@ Creating project service //// [/a/package.json] -{"dependencies":{"commander":"1.0.0"}} +{ + "dependencies": { + "commander": "1.0.0" + } +} //// [/a/cache/package-lock.json] -{"dependencies":{"@types/commander":{"version":"1.0.0"}}} +{ + "dependencies": { + "@types/commander": { + "version": "1.0.0" + } + } +} Info seq [hh:mm:ss:mss] Search path: /a @@ -46,23 +56,46 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -70,10 +103,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/package.json","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -82,8 +133,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -92,7 +150,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -115,11 +175,40 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -139,19 +228,76 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js","/a/cache/node_modules/@types/commander/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js", + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js b/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js index 398d423ef4b..e7db722115d 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js @@ -5,19 +5,31 @@ Creating project service const aaaaaaav = 1; //// [/user/username/projects/anotherProject/package.json] -{"devDependencies":{"pkgcurrentdirectory":""}} +{ + "devDependencies": { + "pkgcurrentdirectory": "" + } +} //// [/user/username/projects/anotherProject/node_modules/pkgcurrentdirectory/package.json] -{"name":"pkgcurrentdirectory","main":"index.js","typings":"index.d.ts"} +{ + "name": "pkgcurrentdirectory", + "main": "index.js", + "typings": "index.d.ts" +} //// [/user/username/projects/anotherProject/node_modules/pkgcurrentdirectory/index.d.ts] export function foo() { } //// [/users/username/Library/Caches/typescript/2.7/package.json] -{"devDependencies":{}} +{ + "devDependencies": {} +} //// [/users/username/Library/Caches/typescript/2.7/package-lock.json] -{"dependencies":{}} +{ + "dependencies": {} +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/san2 @@ -57,8 +69,14 @@ PolledWatches:: TI:: [hh:mm:ss:mss] Global cache location '/users/username/Library/Caches/typescript/2.7', safe file path '/safeList.json', types map path /typesMap.json TI:: [hh:mm:ss:mss] Processing cache location '/users/username/Library/Caches/typescript/2.7' TI:: [hh:mm:ss:mss] Trying to find '/users/username/Library/Caches/typescript/2.7/package.json'... -TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package.json': {"devDependencies":{}} -TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package-lock.json' +TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package.json': + { + "devDependencies": {} + } +TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package-lock.json': + { + "dependencies": {} + } TI:: [hh:mm:ss:mss] Finished processing cache location '/users/username/Library/Caches/typescript/2.7' TI:: [hh:mm:ss:mss] Npm config file: /users/username/Library/Caches/typescript/2.7/package.json TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -67,39 +85,100 @@ TI:: [hh:mm:ss:mss] TI:: Updated types-registry npm package TI:: typing installer creation complete //// [/users/username/Library/Caches/typescript/2.7/node_modules/types-registry/index.json] { - "entries": { - "pkgcurrentdirectory": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "pkgcurrentdirectory": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/user/username/projects/san2/x.js"],"compilerOptions":{"module":1,"target":3,"jsx":1,"experimentalDecorators":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/san2","cachePath":"/users/username/Library/Caches/typescript/2.7","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/user/username/projects/san2/x.js" + ], + "compilerOptions": { + "module": 1, + "target": 3, + "jsx": 1, + "experimentalDecorators": true, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/san2", + "cachePath": "/users/username/Library/Caches/typescript/2.7", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/users/username/Library/Caches/typescript/2.7', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/users/username/Library/Caches/typescript/2.7' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/san2/bower_components","/user/username/projects/san2/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/san2/bower_components","/user/username/projects/san2/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/san2/bower_components", + "/user/username/projects/san2/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/san2/bower_components","/user/username/projects/san2/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/san2/bower_components", + "/user/username/projects/san2/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"module":1,"target":3,"jsx":1,"experimentalDecorators":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "module": 1, + "target": 3, + "jsx": 1, + "experimentalDecorators": true, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js b/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js index f1dd3ba51ce..d4f719aabda 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js @@ -87,33 +87,74 @@ TI:: typing installer creation complete //// [/user/username/projects/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/user/username/projects/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["commander"],"projectRootPath":"/user/username/projects/a/b","cachePath":"/user/username/projects/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/user/username/projects/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "commander" + ], + "projectRootPath": "/user/username/projects/a/b", + "cachePath": "/user/username/projects/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/user/username/projects/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/user/username/projects/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["commander"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/user/username/projects/a/b/bower_components", + "/user/username/projects/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/a/b/bower_components", + "/user/username/projects/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -121,8 +162,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /user/username/projects/a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -130,7 +178,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /user/username/projects/a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -169,11 +219,42 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":["commander"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [ + "commander" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -196,18 +277,70 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts","/user/username/projects/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/a/b","cachePath":"/user/username/projects/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts", + "/user/username/projects/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/a/b", + "cachePath": "/user/username/projects/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/user/username/projects/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/user/username/projects/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/a/b/bower_components", + "/user/username/projects/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery diff --git a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js index de12e9577d0..9b461b5d058 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js @@ -8,19 +8,27 @@ Creating project service {} //// [/package.json] -{"dependencies":{"@zkat/cacache":"1.0.0"}} +{ + "dependencies": { + "@zkat/cacache": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/@zkat/cacache/index.js] //// [/node_modules/@zkat/cacache/package.json] -{"name":"@zkat/cacache"} +{ + "name": "@zkat/cacache" +} Info seq [hh:mm:ss:mss] Search path: / @@ -103,41 +111,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "zkat__cacache": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "zkat__cacache": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -155,7 +163,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.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":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.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": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -165,10 +197,28 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["@zkat/cacach TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/@zkat/cacache/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["@zkat/cacache"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@zkat/cacache" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /jsconfig.json WatchType: File location for typing installer @@ -177,8 +227,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["@zkat/cacache"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/zkat__cacache@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/zkat__cacache@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache @@ -208,7 +265,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/zkat__cacache@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/zkat__cacache@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -251,11 +310,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/zkat__cacache@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/zkat__cacache/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/@types/zkat__cacache/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "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": [ + "/tmp/node_modules/@types/zkat__cacache/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/zkat__cacache@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/zkat__cacache@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -279,7 +368,32 @@ Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoIm Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/zkat__cacache/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/zkat__cacache/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -288,15 +402,47 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["@zkat/cacach TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/@zkat/cacache/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["@zkat/cacache"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@zkat/cacache" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] Installing typings ["@zkat/cacache"] TI:: [hh:mm:ss:mss] '@zkat/cacache':: 'zkat__cacache' already has an up-to-date typing - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one After running Timeout callback:: count: 2 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js b/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js index a0a976100a5..643f5e74844 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js @@ -59,33 +59,76 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "node": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["net","stream"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "net", + "stream" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -93,8 +136,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["node"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/node@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/node@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -102,7 +152,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/node@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/node@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -129,11 +181,43 @@ declare module "stream" { TI:: [hh:mm:ss:mss] Installed typings ["@types/node@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/node/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/tmp/node_modules/node/index.d.ts"],"unresolvedImports":["net","stream"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/tmp/node_modules/node/index.d.ts" + ], + "unresolvedImports": [ + "net", + "stream" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/node@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/node@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -158,18 +242,71 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/tmp/node_modules/node/index.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/tmp/node_modules/node/index.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery @@ -199,21 +336,79 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["s tream"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "s tream" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["s tream"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "s tream" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["s tream"] TI:: [hh:mm:ss:mss] 's tream':: Package name 's tream' contains non URI safe characters TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["s tream"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "s tream" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -245,21 +440,82 @@ Info seq [hh:mm:ss:mss] Files (3) /a/b/app.js SVC-1-2 "// @ts-check\n\nconst bar = require(\"bar\");const net = require(\"net\");\nconst stream = require(\"s tream\");" Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["bar","s tream"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar", + "s tream" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar","s tream"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["bar","s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["bar","s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar", + "s tream" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["bar","s tream"] TI:: [hh:mm:ss:mss] 'bar':: Entry for package 'bar' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] 's tream':: 's tream' is in missingTypingsSet - skipping... TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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":["bar","s tream"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "bar", + "s tream" + ], + "kind": "action::set" + } Timeout callback:: count: 0 Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js b/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js index 4afe11f5087..75ac235ec23 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js @@ -5,7 +5,11 @@ Creating project service let x = 1 //// [/a/b/package.json] -{"dependencies":{"; say ‘Hello from TypeScript!’ #":"0.0.x"}} +{ + "dependencies": { + "; say ‘Hello from TypeScript!’ #": "0.0.x" + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -43,11 +47,34 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -55,10 +82,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["; say ‘Hello from TypeScript!’ #"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["; say ‘Hello from TypeScript!’ #"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["; say ‘Hello from TypeScript!’ #"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "; say ‘Hello from TypeScript!’ #" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -68,7 +113,25 @@ TI:: [hh:mm:ss:mss] Installing typings ["; say ‘Hello from TypeScript!’ #"] TI:: [hh:mm:ss:mss] '; say ‘Hello from TypeScript!’ #':: Package name '; say ‘Hello from TypeScript!’ #' contains non URI safe characters TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings TI:: [hh:mm:ss:mss] 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"} + { + "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" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js index 825841a5382..d69f0d176e2 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js @@ -5,7 +5,11 @@ Creating project service //// [/a/package.json] -{"dependencies":{"commander":"1.0.0"}} +{ + "dependencies": { + "commander": "1.0.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a @@ -43,23 +47,46 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +94,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/package.json","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -79,8 +124,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -89,7 +141,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -112,11 +166,40 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts"] TI:: [hh:mm:ss:mss] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -136,19 +219,76 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js","/a/cache/node_modules/@types/commander/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js", + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js index 0464a6d5f9c..20cc752ba4b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js @@ -72,78 +72,106 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "lodash": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "cordova": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "gulp": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "grunt": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "lodash": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "cordova": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "gulp": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "grunt": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test1.csproj","fileNames":["/a/b/file3.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test1.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -151,10 +179,33 @@ TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","cordova","lodash","commander"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery","cordova","lodash","commander"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test1.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test1.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test1.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test1.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test1.csproj WatchType: Directory location for typing installer @@ -166,8 +217,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test1.csproj"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"]'. + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test1.csproj" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/app/test2.csproj Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /a/app/test2.csproj WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/app/test2.csproj Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -180,16 +241,57 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test2.csproj","fileNames":["/a/b/file3.d.ts"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test2.csproj", + "fileNames": [ + "/a/b/file3.d.ts" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["grunt","gulp"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["grunt","gulp"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "grunt", + "gulp" + ], + "filesToWatch": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test2.csproj","files":["/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test2.csproj", + "files": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test2.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test2.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test2.csproj WatchType: Directory location for typing installer @@ -197,8 +299,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["grunt","gulp"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":2,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test2.csproj"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"]':: true + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test2.csproj" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -234,12 +346,56 @@ declare const cordova: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test1.csproj","typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test1.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test1.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test1.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} -TI:: [hh:mm:ss:mss] #2 with arguments'["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #2 with arguments'["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"]':: true + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test1.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +TI:: [hh:mm:ss:mss] #2 with arguments'[ + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #2 with arguments'[ + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" +]':: true TI:: Before installWorker TI:: After installWorker @@ -253,10 +409,42 @@ declare const gulp: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test2.csproj","typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test2.csproj", + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test2.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":2,"projectName":"/a/app/test2.csproj","packagesToInstall":["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/a/app/test2.csproj", + "packagesToInstall": [ + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /a/app/test1.csproj 2: /a/app/test2.csproj @@ -285,19 +473,94 @@ Info seq [hh:mm:ss:mss] Files (5) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test1.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test1.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test1.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test1.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test1.csproj","typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test1.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Running: /a/app/test2.csproj Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/app/test2.csproj @@ -317,17 +580,78 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test2.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test2.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test2.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test2.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test2.csproj","typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test2.csproj", + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js index 79f50357d50..cc038000b60 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js @@ -10,7 +10,12 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"express":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "express": "^3.1.0" + } +} //// [/typesMap.json] { @@ -75,67 +80,95 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "express": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "moment": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "lodash": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "express": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "moment": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "lodash": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -144,10 +177,36 @@ TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","comm TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["express"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","lodash","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","lodash","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "moment", + "lodash", + "commander", + "express" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /a/app/test.csproj WatchType: File location for typing installer @@ -160,9 +219,26 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery","moment","lodash","commander","express"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]':: true + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -203,10 +279,50 @@ declare const lodash: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 1 1: /a/app/test.csproj @@ -237,7 +353,40 @@ Info seq [hh:mm:ss:mss] Files (6) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts","/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts", + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -245,11 +394,57 @@ TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","comm TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["express"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js index 87d7d37f802..6ffd0243ed0 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeDirectories":["node_modules"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js index a781a636643..fbcd62ae377 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeDirectories":["node_modules"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js index 5b251ba9942..5309336f8fa 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js @@ -8,7 +8,11 @@ import {} from "./" //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js index c577b2422c1..ed8dbed0798 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js @@ -8,7 +8,11 @@ import {} from "./" //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js index 14be6573954..01bb8b484e4 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js @@ -8,7 +8,11 @@ import {} from "./" //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js b/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js index 33ba3a20cf1..bdb17ac9c23 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js @@ -67,10 +67,10 @@ FsWatches:: c:/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Trying to find 'c:/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Npm config file: c:/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: 'c:/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -82,27 +82,83 @@ TI:: typing installer creation complete //// [c:/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["c:/a/lib/lib.d.ts","c:/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"c:/myprojects/project","cachePath":"c:/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "c:/a/lib/lib.d.ts", + "c:/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "c:/myprojects/project", + "cachePath": "c:/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/myprojects/project/bower_components","c:/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/myprojects/project/bower_components","c:/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "c:/myprojects/project/bower_components", + "c:/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["c:/myprojects/project/bower_components","c:/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "c:/myprojects/project/bower_components", + "c:/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -188,10 +244,10 @@ FsWatches:: //vda1cs4850/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Trying to find '//vda1cs4850/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Npm config file: //vda1cs4850/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '//vda1cs4850/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -203,27 +259,83 @@ TI:: typing installer creation complete //// [//vda1cs4850/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["//vda1cs4850/a/lib/lib.d.ts","//vda1cs4850/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"//vda1cs4850/myprojects/project","cachePath":"//vda1cs4850/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "//vda1cs4850/a/lib/lib.d.ts", + "//vda1cs4850/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "//vda1cs4850/myprojects/project", + "cachePath": "//vda1cs4850/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/myprojects/project/bower_components","//vda1cs4850/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/myprojects/project/bower_components","//vda1cs4850/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "//vda1cs4850/myprojects/project/bower_components", + "//vda1cs4850/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["//vda1cs4850/myprojects/project/bower_components","//vda1cs4850/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "//vda1cs4850/myprojects/project/bower_components", + "//vda1cs4850/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -317,10 +429,10 @@ FsWatches:: //vda1cs4850/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Trying to find '//vda1cs4850/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Npm config file: //vda1cs4850/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '//vda1cs4850/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -332,27 +444,83 @@ TI:: typing installer creation complete //// [//vda1cs4850/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["//vda1cs4850/a/lib/lib.d.ts","//vda1cs4850/c$/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"//vda1cs4850/c$/myprojects/project","cachePath":"//vda1cs4850/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "//vda1cs4850/a/lib/lib.d.ts", + "//vda1cs4850/c$/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "//vda1cs4850/c$/myprojects/project", + "cachePath": "//vda1cs4850/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/myprojects/project/bower_components","//vda1cs4850/c$/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/myprojects/project/bower_components","//vda1cs4850/c$/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "//vda1cs4850/c$/myprojects/project/bower_components", + "//vda1cs4850/c$/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["//vda1cs4850/c$/myprojects/project/bower_components","//vda1cs4850/c$/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "//vda1cs4850/c$/myprojects/project/bower_components", + "//vda1cs4850/c$/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -454,10 +622,10 @@ FsWatches:: c:/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Trying to find 'c:/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Npm config file: c:/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: 'c:/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -469,27 +637,83 @@ TI:: typing installer creation complete //// [c:/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["c:/a/lib/lib.d.ts","c:/users/username/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"c:/users/username/myprojects/project","cachePath":"c:/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "c:/a/lib/lib.d.ts", + "c:/users/username/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "c:/users/username/myprojects/project", + "cachePath": "c:/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/users/username/myprojects/project/bower_components","c:/users/username/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/users/username/myprojects/project/bower_components","c:/users/username/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "c:/users/username/myprojects/project/bower_components", + "c:/users/username/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["c:/users/username/myprojects/project/bower_components","c:/users/username/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "c:/users/username/myprojects/project/bower_components", + "c:/users/username/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -591,10 +815,10 @@ FsWatches:: //vda1cs4850/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Trying to find '//vda1cs4850/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Npm config file: //vda1cs4850/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '//vda1cs4850/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -606,27 +830,83 @@ TI:: typing installer creation complete //// [//vda1cs4850/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["//vda1cs4850/a/lib/lib.d.ts","//vda1cs4850/c$/users/username/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"//vda1cs4850/c$/users/username/myprojects/project","cachePath":"//vda1cs4850/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "//vda1cs4850/a/lib/lib.d.ts", + "//vda1cs4850/c$/users/username/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "//vda1cs4850/c$/users/username/myprojects/project", + "cachePath": "//vda1cs4850/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/users/username/myprojects/project/bower_components","//vda1cs4850/c$/users/username/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/users/username/myprojects/project/bower_components","//vda1cs4850/c$/users/username/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "//vda1cs4850/c$/users/username/myprojects/project/bower_components", + "//vda1cs4850/c$/users/username/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["//vda1cs4850/c$/users/username/myprojects/project/bower_components","//vda1cs4850/c$/users/username/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "//vda1cs4850/c$/users/username/myprojects/project/bower_components", + "//vda1cs4850/c$/users/username/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] 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"} + { + "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:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js index 785cc8b0455..e4fa97551e7 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js @@ -40,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /workspaces/somerepo/src Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/src/tsconfig.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/workspaces/somerepo/src/tsconfig.json", - "reason": "Creating possible configured project for /workspaces/somerepo/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/workspaces/somerepo/src/tsconfig.json", + "reason": "Creating possible configured project for /workspaces/somerepo/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /workspaces/somerepo/src/tsconfig.json : { "rootNames": [ @@ -89,64 +89,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/workspaces/somerepo/src/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9e8115631fa65f5cabbf69613510b85e9196bbd1dbd96acfd77b994bec889817", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 371, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/workspaces/somerepo/src/tsconfig.json" } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/workspaces/somerepo/src/main.ts", - "configFile": "/workspaces/somerepo/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9e8115631fa65f5cabbf69613510b85e9196bbd1dbd96acfd77b994bec889817", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 371, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/workspaces/somerepo/src/main.ts", + "configFile": "/workspaces/somerepo/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/workspaces/somerepo/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -206,13 +206,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -221,13 +221,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -237,22 +237,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -351,13 +351,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 3 12: /workspaces/somerepo/src/tsconfig.json @@ -369,27 +369,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 28 - }, - "end": { - "line": 1, - "offset": 41 - }, - "text": "Cannot find module 'random-seed' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 28 + }, + "end": { + "line": 1, + "offset": 41 + }, + "text": "Cannot find module 'random-seed' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -399,22 +399,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -444,14 +444,14 @@ Info seq [hh:mm:ss:mss] Projects: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /workspaces/somerepo/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/workspaces/somerepo/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/workspaces/somerepo/src/main.ts" + ] + } } Info seq [hh:mm:ss:mss] sysLog:: onTimerToUpdateChildWatches:: 3 Info seq [hh:mm:ss:mss] sysLog:: invokingWatchers:: Elapsed:: *ms:: 0 @@ -558,13 +558,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 3 24: /workspaces/somerepo/src/tsconfig.json @@ -576,13 +576,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -592,22 +592,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js b/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js index ec914b4f15d..0772030537d 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js @@ -2,7 +2,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"resolveJsonModule":true}} +{ + "compilerOptions": { + "composite": true, + "resolveJsonModule": true + } +} //// [/user/username/projects/myproject/index.ts] import * as tsconfig from "./tsconfig.json"; @@ -61,7 +66,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" - /user/username/projects/myproject/tsconfig.json Text-1 "{\"compilerOptions\":{\"composite\":true,\"resolveJsonModule\":true}}" + /user/username/projects/myproject/tsconfig.json Text-1 "{\n \"compilerOptions\": {\n \"composite\": true,\n \"resolveJsonModule\": true\n }\n}" /user/username/projects/myproject/index.ts SVC-1-0 "import * as tsconfig from \"./tsconfig.json\";" diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js index 214eae25be4..1c9941390ef 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js @@ -24,7 +24,16 @@ export { foo } from "./foo"; export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"include":["src"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "include": [ + "src" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js index abb9fd7e432..7c05b116887 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js @@ -24,7 +24,16 @@ export { foo } from "./foo"; export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"include":["src"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "include": [ + "src" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} Info seq [hh:mm:ss:mss] request: @@ -43,11 +52,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeDirectories":["node_modules"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js index 396bc16815a..7fa5f881689 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js @@ -38,11 +38,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"fallbackPolling":1}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js index d9b62e7f9a5..22df064a8c8 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js @@ -18,7 +18,11 @@ interface Array { length: number; [n: number]: T; } let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"fallbackPolling":"PriorityInterval"}} +{ + "watchOptions": { + "fallbackPolling": "PriorityInterval" + } +} //// [/a/b/commonFile1.ts] let x = 1 @@ -38,11 +42,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"fallbackPolling":1}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js index 61128b6e037..cadca2793fd 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js @@ -38,11 +38,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"watchDirectory":0}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js index 7acaf68d7a5..48ef01c5dc6 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js @@ -18,7 +18,11 @@ interface Array { length: number; [n: number]: T; } let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchDirectory":"UseFsEvents"}} +{ + "watchOptions": { + "watchDirectory": "UseFsEvents" + } +} //// [/a/b/commonFile1.ts] let x = 1 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js index b108d5ce0c6..e8dca8a790c 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js @@ -38,11 +38,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"watchFile":4}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js index 3396f30eee0..14e4844cfbf 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js @@ -18,7 +18,11 @@ interface Array { length: number; [n: number]: T; } let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchFile":"UseFsEvents"}} +{ + "watchOptions": { + "watchFile": "UseFsEvents" + } +} //// [/a/b/commonFile1.ts] let x = 1 diff --git a/tests/baselines/reference/typeErrorAfterStringCompletionsInNestedCall2.baseline b/tests/baselines/reference/typeErrorAfterStringCompletionsInNestedCall2.baseline index 29cfca778c8..fee4d606de6 100644 --- a/tests/baselines/reference/typeErrorAfterStringCompletionsInNestedCall2.baseline +++ b/tests/baselines/reference/typeErrorAfterStringCompletionsInNestedCall2.baseline @@ -1,3 +1,4 @@ +// === Syntax and Semantic Diagnostics === Syntactic Diagnostics for file '/tests/cases/fourslash/typeErrorAfterStringCompletionsInNestedCall2.ts': diff --git a/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.js b/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.js new file mode 100644 index 00000000000..1e795fd59e5 --- /dev/null +++ b/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.js @@ -0,0 +1,74 @@ +//// [tests/cases/compiler/typeOfYieldWithUnionInContextualReturnType.ts] //// + +//// [typeOfYieldWithUnionInContextualReturnType.ts] +// https://github.com/microsoft/TypeScript/issues/42439 + +type SyncSequenceFactory = () => Generator; + +type AsyncSequenceFactory = () => AsyncGenerator; + +type SequenceFactory = SyncSequenceFactory | AsyncSequenceFactory + +const syncFactory: SyncSequenceFactory = function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} + +const asyncFactory: AsyncSequenceFactory = async function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} + +const looserSyncFactory: SequenceFactory = function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} + +const looserAsyncFactory: SequenceFactory = async function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} + + +//// [typeOfYieldWithUnionInContextualReturnType.js] +// https://github.com/microsoft/TypeScript/issues/42439 +const syncFactory = function* () { + let name = ""; + while (!name) { + name = yield "What is your name?"; + } + return `That's the end of the game, ${name}`; +}; +const asyncFactory = async function* () { + let name = ""; + while (!name) { + name = yield "What is your name?"; + } + return `That's the end of the game, ${name}`; +}; +const looserSyncFactory = function* () { + let name = ""; + while (!name) { + name = yield "What is your name?"; + } + return `That's the end of the game, ${name}`; +}; +const looserAsyncFactory = async function* () { + let name = ""; + while (!name) { + name = yield "What is your name?"; + } + return `That's the end of the game, ${name}`; +}; diff --git a/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.symbols b/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.symbols new file mode 100644 index 00000000000..5bfb0cb71fe --- /dev/null +++ b/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.symbols @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/typeOfYieldWithUnionInContextualReturnType.ts] //// + +=== typeOfYieldWithUnionInContextualReturnType.ts === +// https://github.com/microsoft/TypeScript/issues/42439 + +type SyncSequenceFactory = () => Generator; +>SyncSequenceFactory : Symbol(SyncSequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 0, 0)) +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) + +type AsyncSequenceFactory = () => AsyncGenerator; +>AsyncSequenceFactory : Symbol(AsyncSequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 2, 67)) +>AsyncGenerator : Symbol(AsyncGenerator, Decl(lib.es2018.asyncgenerator.d.ts, --, --)) + +type SequenceFactory = SyncSequenceFactory | AsyncSequenceFactory +>SequenceFactory : Symbol(SequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 4, 73)) +>SyncSequenceFactory : Symbol(SyncSequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 0, 0)) +>AsyncSequenceFactory : Symbol(AsyncSequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 2, 67)) + +const syncFactory: SyncSequenceFactory = function* (){ +>syncFactory : Symbol(syncFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 8, 5)) +>SyncSequenceFactory : Symbol(SyncSequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 0, 0)) + + let name = ""; +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 9, 5)) + + while(!name){ +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 9, 5)) + + name = yield "What is your name?" +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 9, 5)) + } + return `That's the end of the game, ${name}` +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 9, 5)) +} + +const asyncFactory: AsyncSequenceFactory = async function* (){ +>asyncFactory : Symbol(asyncFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 16, 5)) +>AsyncSequenceFactory : Symbol(AsyncSequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 2, 67)) + + let name = ""; +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 17, 5)) + + while(!name){ +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 17, 5)) + + name = yield "What is your name?" +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 17, 5)) + } + return `That's the end of the game, ${name}` +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 17, 5)) +} + +const looserSyncFactory: SequenceFactory = function* (){ +>looserSyncFactory : Symbol(looserSyncFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 24, 5)) +>SequenceFactory : Symbol(SequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 4, 73)) + + let name = ""; +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 25, 5)) + + while(!name){ +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 25, 5)) + + name = yield "What is your name?" +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 25, 5)) + } + return `That's the end of the game, ${name}` +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 25, 5)) +} + +const looserAsyncFactory: SequenceFactory = async function* (){ +>looserAsyncFactory : Symbol(looserAsyncFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 32, 5)) +>SequenceFactory : Symbol(SequenceFactory, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 4, 73)) + + let name = ""; +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 33, 5)) + + while(!name){ +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 33, 5)) + + name = yield "What is your name?" +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 33, 5)) + } + return `That's the end of the game, ${name}` +>name : Symbol(name, Decl(typeOfYieldWithUnionInContextualReturnType.ts, 33, 5)) +} + diff --git a/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.types b/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.types new file mode 100644 index 00000000000..d6e02113f1a --- /dev/null +++ b/tests/baselines/reference/typeOfYieldWithUnionInContextualReturnType.types @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/typeOfYieldWithUnionInContextualReturnType.ts] //// + +=== typeOfYieldWithUnionInContextualReturnType.ts === +// https://github.com/microsoft/TypeScript/issues/42439 + +type SyncSequenceFactory = () => Generator; +>SyncSequenceFactory : () => Generator + +type AsyncSequenceFactory = () => AsyncGenerator; +>AsyncSequenceFactory : () => AsyncGenerator + +type SequenceFactory = SyncSequenceFactory | AsyncSequenceFactory +>SequenceFactory : SyncSequenceFactory | AsyncSequenceFactory + +const syncFactory: SyncSequenceFactory = function* (){ +>syncFactory : SyncSequenceFactory +>function* (){ let name = ""; while(!name){ name = yield "What is your name?" } return `That's the end of the game, ${name}`} : () => Generator + + let name = ""; +>name : string +>"" : "" + + while(!name){ +>!name : boolean +>name : string + + name = yield "What is your name?" +>name = yield "What is your name?" : string +>name : string +>yield "What is your name?" : string +>"What is your name?" : "What is your name?" + } + return `That's the end of the game, ${name}` +>`That's the end of the game, ${name}` : string +>name : string +} + +const asyncFactory: AsyncSequenceFactory = async function* (){ +>asyncFactory : AsyncSequenceFactory +>async function* (){ let name = ""; while(!name){ name = yield "What is your name?" } return `That's the end of the game, ${name}`} : () => AsyncGenerator + + let name = ""; +>name : string +>"" : "" + + while(!name){ +>!name : boolean +>name : string + + name = yield "What is your name?" +>name = yield "What is your name?" : string +>name : string +>yield "What is your name?" : string +>"What is your name?" : "What is your name?" + } + return `That's the end of the game, ${name}` +>`That's the end of the game, ${name}` : string +>name : string +} + +const looserSyncFactory: SequenceFactory = function* (){ +>looserSyncFactory : SequenceFactory +>function* (){ let name = ""; while(!name){ name = yield "What is your name?" } return `That's the end of the game, ${name}`} : () => Generator + + let name = ""; +>name : string +>"" : "" + + while(!name){ +>!name : boolean +>name : string + + name = yield "What is your name?" +>name = yield "What is your name?" : string +>name : string +>yield "What is your name?" : string +>"What is your name?" : "What is your name?" + } + return `That's the end of the game, ${name}` +>`That's the end of the game, ${name}` : string +>name : string +} + +const looserAsyncFactory: SequenceFactory = async function* (){ +>looserAsyncFactory : SequenceFactory +>async function* (){ let name = ""; while(!name){ name = yield "What is your name?" } return `That's the end of the game, ${name}`} : () => AsyncGenerator + + let name = ""; +>name : string +>"" : "" + + while(!name){ +>!name : boolean +>name : string + + name = yield "What is your name?" +>name = yield "What is your name?" : string +>name : string +>yield "What is your name?" : string +>"What is your name?" : "What is your name?" + } + return `That's the end of the game, ${name}` +>`That's the end of the game, ${name}` : string +>name : string +} + diff --git a/tests/baselines/reference/usingDeclarations.1(target=es2015).js b/tests/baselines/reference/usingDeclarations.1(target=es2015).js index aa195d8388e..0ff7349c6f8 100644 --- a/tests/baselines/reference/usingDeclarations.1(target=es2015).js +++ b/tests/baselines/reference/usingDeclarations.1(target=es2015).js @@ -212,8 +212,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/usingDeclarations.1(target=es2017).js b/tests/baselines/reference/usingDeclarations.1(target=es2017).js index 39f415992d2..0414eda921e 100644 --- a/tests/baselines/reference/usingDeclarations.1(target=es2017).js +++ b/tests/baselines/reference/usingDeclarations.1(target=es2017).js @@ -203,8 +203,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } diff --git a/tests/baselines/reference/usingDeclarations.1(target=es5).js b/tests/baselines/reference/usingDeclarations.1(target=es5).js index 82ffc544605..db78f5002a0 100644 --- a/tests/baselines/reference/usingDeclarations.1(target=es5).js +++ b/tests/baselines/reference/usingDeclarations.1(target=es5).js @@ -254,8 +254,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } @@ -571,10 +572,11 @@ try { __extends(C2, _super); function C2() { var _a; + var _this = this; var env_29 = { stack: [], error: void 0, hasError: false }; try { var d16 = __addDisposableResource(env_29, (_a = {}, _a[Symbol.dispose] = function () { }, _a), false); - return _super.call(this) || this; + _this = _super.call(this) || this; } catch (e_29) { env_29.error = e_29; @@ -583,6 +585,7 @@ try { finally { __disposeResources(env_29); } + return _this; } return C2; }(C1)); @@ -590,10 +593,11 @@ try { __extends(C3, _super); function C3() { var _a; + var _this = this; var env_30 = { stack: [], error: void 0, hasError: false }; try { - var _this = _super.call(this) || this; var d17 = __addDisposableResource(env_30, (_a = {}, _a[Symbol.dispose] = function () { }, _a), false); + _this = _super.call(this) || this; _this.y = 1; } catch (e_30) { diff --git a/tests/baselines/reference/usingDeclarations.11.js b/tests/baselines/reference/usingDeclarations.11.js index 449debe53d9..2451a196bd2 100644 --- a/tests/baselines/reference/usingDeclarations.11.js +++ b/tests/baselines/reference/usingDeclarations.11.js @@ -105,10 +105,11 @@ var A = /** @class */ (function () { var C1 = /** @class */ (function (_super) { __extends(C1, _super); function C1() { + var _this = this; var env_1 = { stack: [], error: void 0, hasError: false }; try { var x = __addDisposableResource(env_1, null, false); - return _super.call(this) || this; + _this = _super.call(this) || this; } catch (e_1) { env_1.error = e_1; @@ -117,15 +118,17 @@ var C1 = /** @class */ (function (_super) { finally { __disposeResources(env_1); } + return _this; } return C1; }(A)); var C2 = /** @class */ (function (_super) { __extends(C2, _super); function C2() { + var _this = this; var env_2 = { stack: [], error: void 0, hasError: false }; try { - var _this = _super.call(this) || this; + _this = _super.call(this) || this; var x = __addDisposableResource(env_2, null, false); } catch (e_2) { @@ -142,10 +145,11 @@ var C2 = /** @class */ (function (_super) { var C3 = /** @class */ (function (_super) { __extends(C3, _super); function C3() { + var _this = this; var env_3 = { stack: [], error: void 0, hasError: false }; try { - var _this = _super.call(this) || this; var x = __addDisposableResource(env_3, null, false); + _this = _super.call(this) || this; _this.y = 1; } catch (e_3) { @@ -162,10 +166,11 @@ var C3 = /** @class */ (function (_super) { var C4 = /** @class */ (function (_super) { __extends(C4, _super); function C4(y) { + var _this = this; var env_4 = { stack: [], error: void 0, hasError: false }; try { - var _this = _super.call(this) || this; var x = __addDisposableResource(env_4, null, false); + _this = _super.call(this) || this; _this.y = y; } catch (e_4) { @@ -182,10 +187,11 @@ var C4 = /** @class */ (function (_super) { var C5 = /** @class */ (function (_super) { __extends(C5, _super); function C5(y) { + var _this = this; var env_5 = { stack: [], error: void 0, hasError: false }; try { - var _this = _super.call(this) || this; var x = __addDisposableResource(env_5, null, false); + _this = _super.call(this) || this; _this.y = y; _this.z = 1; } diff --git a/tests/baselines/reference/validUseOfThisInSuper.js b/tests/baselines/reference/validUseOfThisInSuper.js index 3dd6398f27a..b6b559993d3 100644 --- a/tests/baselines/reference/validUseOfThisInSuper.js +++ b/tests/baselines/reference/validUseOfThisInSuper.js @@ -36,7 +36,7 @@ var Base = /** @class */ (function () { var Super = /** @class */ (function (_super) { __extends(Super, _super); function Super() { - var _this = _super.call(this, (function () { return _this; })()) || this; + var _this = _super.call(this, (function () { return _this; })()) || this; // ok since this is not the case: The constructor declares parameter properties or the containing class declares instance member variables with initializers. return _this; } return Super; diff --git a/tests/cases/compiler/avoidCycleWithVoidExpressionReturnedFromArrow.ts b/tests/cases/compiler/avoidCycleWithVoidExpressionReturnedFromArrow.ts new file mode 100644 index 00000000000..986b9562d5c --- /dev/null +++ b/tests/cases/compiler/avoidCycleWithVoidExpressionReturnedFromArrow.ts @@ -0,0 +1,19 @@ +// @strict: true +// @noEmit: true + +type HowlErrorCallback = (soundId: number, error: unknown) => void; + +interface HowlOptions { + onplayerror?: HowlErrorCallback | undefined; +} + +class Howl { + constructor(public readonly options: HowlOptions) {} + once(name: "unlock", fn: () => void) { + console.log(name, fn); + } +} + +const instance = new Howl({ + onplayerror: () => void instance.once("unlock", () => {}), +}); diff --git a/tests/cases/compiler/cannotIndexGenericWritingError.ts b/tests/cases/compiler/cannotIndexGenericWritingError.ts new file mode 100644 index 00000000000..7c49ee1ff52 --- /dev/null +++ b/tests/cases/compiler/cannotIndexGenericWritingError.ts @@ -0,0 +1,13 @@ +// @strict: true +// @noEmit: true + +// From #47357 + +function foo>(target: T, p: string | symbol) { + target[p] = ""; // error +} + +function foo2(target: T, p: string | number) { + target[p] = 1; // error + target[1] = 1; // ok +} \ No newline at end of file diff --git a/tests/cases/compiler/classImplementsPrimitive.ts b/tests/cases/compiler/classImplementsPrimitive.ts new file mode 100644 index 00000000000..0da45d562e0 --- /dev/null +++ b/tests/cases/compiler/classImplementsPrimitive.ts @@ -0,0 +1,5 @@ +// classes cannot implement primitives + +class C implements number { } +class C2 implements string { } +class C3 implements boolean { } \ No newline at end of file diff --git a/tests/cases/compiler/contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts b/tests/cases/compiler/contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts new file mode 100644 index 00000000000..16236ae43ec --- /dev/null +++ b/tests/cases/compiler/contextuallyTypeAsyncFunctionReturnTypeFromUnion.ts @@ -0,0 +1,37 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// repro #47682 + +declare class StateMachine { + onDone: (a: T) => void; +} + +declare function createMachine(implementations: { + services: Record Promise | StateMachine>; +}): void; + +createMachine<{ count: number }>({ + services: { + test: async () => Promise.reject("some err"), + async test2() { + return Promise.reject("some err"); + }, + }, +}); + +function fn1(): () => Promise<{ count: number }> | StateMachine<{ count: number }> { + return async () => Promise.reject('some err') +} + +// repro #47682 issuecomment-1174099713 + +declare function load(): Promise; + +type LoadCallback = () => Promise | string; + +// all of those are essentially the same and should be allowed +const cb1: LoadCallback = async () => load().then(m => m); +const cb2: LoadCallback = async () => load(); +const cb3: LoadCallback = () => load().then(m => m); \ No newline at end of file diff --git a/tests/cases/compiler/contextuallyTypeGeneratorReturnTypeFromUnion.ts b/tests/cases/compiler/contextuallyTypeGeneratorReturnTypeFromUnion.ts new file mode 100644 index 00000000000..23a9d70bcac --- /dev/null +++ b/tests/cases/compiler/contextuallyTypeGeneratorReturnTypeFromUnion.ts @@ -0,0 +1,19 @@ +// @strict: true +// @noEmit: true +// @lib: esnext + +// repro #51187 + +type Action = () => (Generator | string) + +const test1: Action = function* () { + const next = yield '' + return next[0] +} + +type Action2 = () => (AsyncGenerator | string) + +const test2: Action2 = async function* () { + const next = yield await Promise.resolve('') + return next[0] +} diff --git a/tests/cases/compiler/declarationEmitBundlerConditions.ts b/tests/cases/compiler/declarationEmitBundlerConditions.ts new file mode 100644 index 00000000000..2cfcdbf2f86 --- /dev/null +++ b/tests/cases/compiler/declarationEmitBundlerConditions.ts @@ -0,0 +1,35 @@ +// @module: esnext +// @moduleResolution: bundler +// @declaration: true +// @emitDeclarationOnly: true +// @noTypesAndSymbols: true + +// @Filename: /node_modules/pkg/package.json +{ + "name": "pkg", + "type": "module", + "exports": { + ".": { + "import": "./index.js", + "require": "./index.cjs" + } + } +} + +// @Filename: /node_modules/pkg/index.d.ts +export declare class C { + private p; +} + +// @Filename: /node_modules/pkg/index.d.cts +export {}; + +// @Filename: /makeC.ts +import { C } from "pkg"; +export function makeC() { + return new C(); +} + +// @Filename: /index.ts +import { makeC } from "./makeC"; +export const c = makeC(); diff --git a/tests/cases/compiler/declarationEmitObjectLiteralAccessors1.ts b/tests/cases/compiler/declarationEmitObjectLiteralAccessors1.ts new file mode 100644 index 00000000000..6fce3256fa6 --- /dev/null +++ b/tests/cases/compiler/declarationEmitObjectLiteralAccessors1.ts @@ -0,0 +1,35 @@ +// @strict: true +// @declaration: true +// @emitDeclarationOnly: true + +// same type accessors +export const obj1 = { + /** my awesome getter (first in source order) */ + get x(): string { + return ""; + }, + /** my awesome setter (second in source order) */ + set x(a: string) {}, +}; + +// divergent accessors +export const obj2 = { + /** my awesome getter */ + get x(): string { + return ""; + }, + /** my awesome setter */ + set x(a: number) {}, +}; + +export const obj3 = { + /** my awesome getter */ + get x(): string { + return ""; + }, +}; + +export const obj4 = { + /** my awesome setter */ + set x(a: number) {}, +}; diff --git a/tests/cases/compiler/declarationEmitObjectLiteralAccessorsJs1.ts b/tests/cases/compiler/declarationEmitObjectLiteralAccessorsJs1.ts new file mode 100644 index 00000000000..b979d7b1352 --- /dev/null +++ b/tests/cases/compiler/declarationEmitObjectLiteralAccessorsJs1.ts @@ -0,0 +1,55 @@ +// @strict: true +// @checkJs: true +// @declaration: true +// @emitDeclarationOnly: true +// @filename: index.js + +// same type accessors +export const obj1 = { + /** + * my awesome getter (first in source order) + * @returns {string} + */ + get x() { + return ""; + }, + /** + * my awesome setter (second in source order) + * @param {string} a + */ + set x(a) {}, +}; + +// divergent accessors +export const obj2 = { + /** + * my awesome getter + * @returns {string} + */ + get x() { + return ""; + }, + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +}; + +export const obj3 = { + /** + * my awesome getter + * @returns {string} + */ + get x() { + return ""; + }, +}; + +export const obj4 = { + /** + * my awesome setter + * @param {number} a + */ + set x(a) {}, +}; diff --git a/tests/cases/compiler/declarationEmitTripleSlashReferenceAmbientModule.ts b/tests/cases/compiler/declarationEmitTripleSlashReferenceAmbientModule.ts new file mode 100644 index 00000000000..df9274fa371 --- /dev/null +++ b/tests/cases/compiler/declarationEmitTripleSlashReferenceAmbientModule.ts @@ -0,0 +1,20 @@ +// @declaration: true +// @emitDeclarationOnly: true +// @noTypesAndSymbols: true + +// @Filename: /node_modules/@types/node/index.d.ts +declare module "url" { + export class Url {} + export function parse(): Url; +} + +// @Filename: /usage1.ts +export { parse } from "url"; + +// @Filename: /usage2.ts +import { parse } from "url"; +export const thing: import("url").Url = parse(); + +// @Filename: /usage3.ts +import { parse } from "url"; +export const thing = parse(); diff --git a/tests/cases/compiler/deeplyNestedMappedTypes.ts b/tests/cases/compiler/deeplyNestedMappedTypes.ts index 6c368e3026b..d758f17d069 100644 --- a/tests/cases/compiler/deeplyNestedMappedTypes.ts +++ b/tests/cases/compiler/deeplyNestedMappedTypes.ts @@ -46,3 +46,93 @@ type Bar2 = NestedRecord<"x.y.z.a.b.c", string>; declare const bar1: Bar1; const bar2: Bar2 = bar1; // Error expected + +// Repro from #56138 + +export type Input = Static +export const Input = Type.Object({ + level1: Type.Object({ + level2: Type.Object({ + foo: Type.String(), + }) + }) +}) + +export type Output = Static +export const Output = Type.Object({ + level1: Type.Object({ + level2: Type.Object({ + foo: Type.String(), + bar: Type.String(), + }) + }) +}) + +function problematicFunction1(ors: Input[]): Output[] { + return ors; // Error +} + +function problematicFunction2(ors: Input[]): T { + return ors; // Error +} + +function problematicFunction3(ors: (typeof Input.static)[]): Output[] { + return ors; // Error +} + +export type Evaluate = T extends infer O ? { [K in keyof O]: O[K] } : never + +export declare const Readonly: unique symbol; +export declare const Optional: unique symbol; +export declare const Hint: unique symbol; +export declare const Kind: unique symbol; + +export interface TKind { + [Kind]: string +} +export interface TSchema extends TKind { + [Readonly]?: string + [Optional]?: string + [Hint]?: string + params: unknown[] + static: unknown +} + +export type TReadonlyOptional = TOptional & TReadonly +export type TReadonly = T & { [Readonly]: 'Readonly' } +export type TOptional = T & { [Optional]: 'Optional' } + +export interface TString extends TSchema { + [Kind]: 'String'; + static: string; + type: 'string'; +} + +export type ReadonlyOptionalPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? K : never) : never }[keyof T] +export type ReadonlyPropertyKeys = { [K in keyof T]: T[K] extends TReadonly ? (T[K] extends TOptional ? never : K) : never }[keyof T] +export type OptionalPropertyKeys = { [K in keyof T]: T[K] extends TOptional ? (T[K] extends TReadonly ? never : K) : never }[keyof T] +export type RequiredPropertyKeys = keyof Omit | ReadonlyPropertyKeys | OptionalPropertyKeys> +export type PropertiesReducer> = Evaluate<( + Readonly>>> & + Readonly>> & + Partial>> & + Required>> +)> +export type PropertiesReduce = PropertiesReducer +}> +export type TPropertyKey = string | number +export type TProperties = Record +export interface TObject extends TSchema { + [Kind]: 'Object' + static: PropertiesReduce + type: 'object' + properties: T +} + +export type Static = (T & { params: P; })['static'] + +declare namespace Type { + function Object(object: T): TObject + function String(): TString +} diff --git a/tests/cases/compiler/defaultValueInFunctionTypes.ts b/tests/cases/compiler/defaultValueInFunctionTypes.ts index fd9229a2104..cae244be77d 100644 --- a/tests/cases/compiler/defaultValueInFunctionTypes.ts +++ b/tests/cases/compiler/defaultValueInFunctionTypes.ts @@ -1,2 +1,4 @@ +type Foo = ({ first = 0 }: { first?: number }) => unknown; + var x: (a: number = 1) => number; -var y = <(a : string = "") => any>(undefined) \ No newline at end of file +var y = <(a : string = "") => any>(undefined) diff --git a/tests/cases/compiler/indexTypeNoSubstitutionTemplateLiteral.ts b/tests/cases/compiler/indexTypeNoSubstitutionTemplateLiteral.ts new file mode 100644 index 00000000000..65d0809a38f --- /dev/null +++ b/tests/cases/compiler/indexTypeNoSubstitutionTemplateLiteral.ts @@ -0,0 +1,7 @@ +// @strict: true + +function Foo() {} +Foo[`b`] = function () {}; + +type Test = keyof typeof Foo; + diff --git a/tests/cases/compiler/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx b/tests/cases/compiler/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx new file mode 100644 index 00000000000..a2b73b7aead --- /dev/null +++ b/tests/cases/compiler/jsxContainsOnlyTriviaWhiteSpacesNotCountedAsChild.tsx @@ -0,0 +1,23 @@ +// @jsx: preserve +// @strict: true + +namespace JSX { + export interface ElementChildrenAttribute { + children: {}; + } +} + +interface Props { + className?: string | undefined; +} + +function NoticeList(props: Props) { + return null; +} + + +; + + + +; \ No newline at end of file diff --git a/tests/cases/compiler/jsxSpreadTag.ts b/tests/cases/compiler/jsxSpreadTag.ts index f767497f442..06e5fec1f6a 100644 --- a/tests/cases/compiler/jsxSpreadTag.ts +++ b/tests/cases/compiler/jsxSpreadTag.ts @@ -1,5 +1,5 @@ // @jsx: react -// @target: es2015 +// @target: es2015,esnext // @filename: /a.tsx declare const React: any; diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue1.ts similarity index 100% rename from tests/cases/compiler/narrowByClauseExpressionInSwitchTrue.ts rename to tests/cases/compiler/narrowByClauseExpressionInSwitchTrue1.ts diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue10.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue10.ts new file mode 100644 index 00000000000..7d48369ca34 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue10.ts @@ -0,0 +1,56 @@ +// @strict: true +// @noEmit: true + +function foo(cond1: boolean, cond2: boolean) { + switch (true) { + case cond1 || cond2: + cond1; // boolean + // ^? + cond2; // boolean + // ^? + break; + + case cond2: + cond1; // false + // ^? + cond2;; // never + // ^? + break; + + default: + cond1; // false + // ^? + cond2; // false + // ^? + break; + } + + cond1; // boolean + // ^? + cond2; // boolean + // ^? +} + +function blah(cond1: boolean, cond2: boolean) { + if (cond1 || cond2) { + cond1; // boolean + // ^? + cond2; // boolean + // ^? + } else if (cond2) { + cond1; // false + // ^? + cond2; // never + // ^? + } else { + cond1; // false + // ^? + cond2; // false + // ^? + } + + cond1; // boolean + // ^? + cond2; // boolean + // ^? +} diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue2.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue2.ts new file mode 100644 index 00000000000..461e3505c39 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue2.ts @@ -0,0 +1,29 @@ +// @strict: true +// @noEmit: true + +// https://github.com/microsoft/TypeScript/issues/55986 + +declare const f: 'a' | 'b' | 'c'; + +switch(true) { + case f === 'a': + case f === 'b': + f; + break + default: + f; +} + +f; + +switch(true) { + case f === 'a': + f; + case f === 'b': + f; + break + default: + f; +} + +f; diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue3.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue3.ts new file mode 100644 index 00000000000..d0dbafccbb1 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue3.ts @@ -0,0 +1,22 @@ +// @strict: true +// @noEmit: true + +type Shape = + | { kind: "circle", radius: number } + | { kind: "square", sideLength: number } + +function wat(shape: Shape) { + switch (true) { + case shape.kind === "circle": + return Math.PI * shape.radius ** 2; + case shape.kind === "circle": // should error + } + + if (shape.kind === "circle") { + return Math.PI * shape.radius ** 2; + } + else if (shape.kind === "circle") { + // ~~~~ + // Property 'kind' does not exist on type 'never'. + } +} diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue4.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue4.ts new file mode 100644 index 00000000000..15596fd7ad1 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue4.ts @@ -0,0 +1,12 @@ +// @strict: true +// @noEmit: true + +declare const f: 'a' | 'b' | 'c'; + +switch (true) { + case f === "a": + default: + f; + case f === "b": + f; +} diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue5.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue5.ts new file mode 100644 index 00000000000..f4aee3ff151 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue5.ts @@ -0,0 +1,133 @@ +// @strict: true +// @noEmit: true + +type A = { kind: "A", value: number }; +type B = { kind: "B", name: string }; +type C = { kind: "C", cond: boolean }; +type D = { kind: "D", value: boolean }; +type E = { kind: "E", x: number, y: number }; + +type All = A | B | C | D | E; + +function fn1switch(input: All) { + switch (true) { + case input.kind === "A": + case input.kind === "B": + if (input.kind === "A") { + return; + } + + input; // Should be B; + // ^? + + // fallthrough + case input.kind === "C": + input; // Should be B | C + // ^? + break; + default: + input; // Should be D | E + // ^? + } + + input; // Should not be A + // ^? +} + +function fn1ifelse(input: All) { + if (input.kind === "A" || input.kind === "B") { + if (input.kind === "A") { + return; + } + + input; // Should be B; + // ^? + } + if (input.kind === "C" || input.kind === "B") { + input; // Should be B | C + // ^? + } + else { + input; // Should be D | E + // ^? + } + + input; // Should not be A + // ^? +} + +function fn2switch(input: All) { + switch (true) { + case input.kind === "A": + case input.kind === "B": + if (input.kind === "A") { + return; + } + + input; // Should be B; + // ^? + + // fallthrough + case input.kind === "C": + input; // Should be B | C + // ^? + break; + default: + input; // Should be D | E + // ^? + return; + } + + input; // Should be B | C + // ^? +} + +function fn2ifelse(input: All) { + if (input.kind === "A" || input.kind === "B") { + if (input.kind === "A") { + return; + } + + input; // Should be B; + // ^? + } + if (input.kind === "C" || input.kind === "B") { + input; // Should be B | C + // ^? + } + else { + input; // Should be D | E + // ^? + return; + } + + input; // Should be B | C + // ^? +} + +function fn3switch(input: All) { + switch (true) { + case input.kind === "A": + case input.kind === "B": + if (input.kind === "A") { + return; + } + + input; // Should be B; + // ^? + + // fallthrough + default: + input; // Should be B | D | E + // ^? + break; + + case input.kind === "C": + input; // Should be C + // ^? + break; + } + + input; // Should not be A + // ^? +} diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue6.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue6.ts new file mode 100644 index 00000000000..491355b79e9 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue6.ts @@ -0,0 +1,78 @@ +// @strict: true +// @noEmit: true + +interface A { + kind: "a"; + aProps: string; +} + +interface B { + kind: "b"; + bProps: string; +} + +interface C { + kind: "c"; + cProps: string; +} + + +type MyType = A | B | C; + +function isA(x: MyType) { + switch (true) { + default: + const never: never = x; + case x.kind === "a": + x.aProps; + break; + case x.kind === "b": + x.bProps; + break; + case x.kind === "c": + x.cProps; + break; + } + + switch (true) { + default: + const never: never = x; + case x.kind === "a": { + x.aProps; + break; + } + case x.kind === "b": { + x.bProps; + break; + } + case x.kind === "c": { + x.cProps; + break; + } + } + + switch (true) { + default: + x.aProps; + break; + case x.kind === "b": + x.bProps; + break; + case x.kind === "c": + x.cProps; + break; + } + + switch (true) { + default: + const never: never = x; + case x.kind === "a": + x.aProps; + // fallthrough + case x.kind === "b": + x.bProps; + // fallthrough + case x.kind === "c": + x.cProps; + } +} diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue7.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue7.ts new file mode 100644 index 00000000000..d482d8fa033 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue7.ts @@ -0,0 +1,86 @@ +// @strict: true +// @noEmit: true + +class Base { + basey: string = ""; +} + +class Derived1 extends Base { + d: string = ""; +} + +class Derived2 extends Base { + d: string = ""; + other: string = ""; +} + +function classy(base: Base, someDerived: Derived1 | Derived2) { + switch (true) { + case base instanceof Derived1: + base.d + // fallthrough + default: + base.basey + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d + break; + case someDerived instanceof Derived2: + someDerived.d + break + default: + const never: never = someDerived; + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d + // fallthrough + case someDerived instanceof Derived2: + someDerived.d + break + default: + const never: never = someDerived; + } + + switch (true) { + default: + const never: never = someDerived; + case someDerived instanceof Derived1: + someDerived.d; + someDerived.basey; + break + case someDerived instanceof Derived2: + someDerived.d; + someDerived.other; + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d; + someDerived.basey; + break + default: + const never: never = someDerived; + case someDerived instanceof Derived2: + someDerived.d; + someDerived.other; + } + + switch (true) { + case someDerived instanceof Derived1: + someDerived.d; + someDerived.basey; + break + case someDerived instanceof Derived2: + someDerived.d; + someDerived.other; + default: + someDerived.d; + someDerived.other; + const never: never = someDerived; + } + +} diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue8.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue8.ts new file mode 100644 index 00000000000..3572817cba9 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue8.ts @@ -0,0 +1,32 @@ +// @strict: true +// @noEmit: true + +function foo(cond1: boolean, cond2: boolean) { + switch (true) { + case cond1: + cond1; // Should be true + // ^? + cond2; // Should be boolean + // ^? + break; + + case cond2: + cond1; // Should be false? + // ^? + cond2; // Should be true + // ^? + break; + + default: + cond1; // Should be false? + // ^? + cond2; // Should be false? + // ^? + break; + } + + cond1; // Should be boolean + // ^? + cond2; // Should be boolean + // ^? +} diff --git a/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue9.ts b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue9.ts new file mode 100644 index 00000000000..1f8942d90b1 --- /dev/null +++ b/tests/cases/compiler/narrowByClauseExpressionInSwitchTrue9.ts @@ -0,0 +1,20 @@ +// @strict: true +// @noEmit: true + +interface IProps { + one: boolean; +} + +class Foo { + mine: string = ""; + + myMethod(x: IProps) { + const { one } = x; + switch (true) { + case one: + break; + default: + let x = this.mine; + } + } +} diff --git a/tests/cases/compiler/narrowByParenthesizedSwitchExpression.ts b/tests/cases/compiler/narrowByParenthesizedSwitchExpression.ts new file mode 100644 index 00000000000..2f2d9330ce1 --- /dev/null +++ b/tests/cases/compiler/narrowByParenthesizedSwitchExpression.ts @@ -0,0 +1,32 @@ +// @strict: true +// @noEmit: true + +interface Base { + type: "foo" | "bar"; +} + +interface Foo extends Base { + type: "foo"; + foo: string; +} + +interface Bar extends Base { + type: "bar"; + bar: number; +} + +function getV(): Foo | Bar { + return null!; +} + +const v = getV(); + +switch ((v.type)) { + case "bar": + v.bar; + break; + + case "foo": + v.foo; + break; +} diff --git a/tests/cases/compiler/narrowingUnionToUnion.ts b/tests/cases/compiler/narrowingUnionToUnion.ts index c4e2682e3c9..1ecd613d3d6 100644 --- a/tests/cases/compiler/narrowingUnionToUnion.ts +++ b/tests/cases/compiler/narrowingUnionToUnion.ts @@ -226,3 +226,40 @@ declare const workingAgain: Record | undefined | unknown; isMyDiscriminatedUnion(working) && working.type === 'A' && working.aProp; isMyDiscriminatedUnion(broken) && broken.type === 'A' && broken.aProp; isMyDiscriminatedUnion(workingAgain) && workingAgain.type === 'A' && workingAgain.aProp; + +// Repro from #56144 + +type Union = + | { type: 'a'; variant: 1 } + | { type: 'a'; variant: 2 } + | { type: 'b' }; + +function example1(value: Union): { type: 'a'; variant: 2 } | null { + if (value.type !== 'a') { + return null; + } + if (value.variant === 1) { + return null; + } + return value; +} + +function example2(value: Union): { type: 'a'; variant: 2 } | null { + if (value.type !== 'a') { + return null; + } + if (value.type === 'a' && value.variant === 1) { + return null; + } + return value; +} + +function example3(value: Union): { type: 'a'; variant: 2 } | null { + if (value.type !== 'a') { + return null; + } + if (value.type && value.variant === 1) { + return null; + } + return value; +} diff --git a/tests/cases/compiler/nestedSuperCallEmit.ts b/tests/cases/compiler/nestedSuperCallEmit.ts new file mode 100644 index 00000000000..1c622f40dd0 --- /dev/null +++ b/tests/cases/compiler/nestedSuperCallEmit.ts @@ -0,0 +1,27 @@ +// @target: es5 +// @noTypesAndSymbols: true + +// https://github.com/microsoft/TypeScript/issues/55646 +abstract class Foo { + constructor(shouldThrow: boolean) { + if (shouldThrow) { + throw new Error('Please retry'); + } else { + console.log('OK'); + } + } +} + +class Bar extends Foo { + constructor() { + try { + super(true); + } catch (e: unknown) { + console.log('Error: ' + (e as Error).message); + // retry + super(false); + } + } +} + +new Bar(); diff --git a/tests/cases/compiler/noImplicitReturnsExclusions.ts b/tests/cases/compiler/noImplicitReturnsExclusions.ts index 61226026e5c..380b22d11b2 100644 --- a/tests/cases/compiler/noImplicitReturnsExclusions.ts +++ b/tests/cases/compiler/noImplicitReturnsExclusions.ts @@ -58,3 +58,39 @@ function f16(b: boolean) { // Error if (b) return 42; if (b) return; } + +declare class HistoryItem { + input: { + location: { + uri: string; + }; + }; +} + +interface Thenable { + then( + onfulfilled?: (value: T) => TResult | Thenable, + onrejected?: (reason: any) => TResult | Thenable + ): Thenable; + then( + onfulfilled?: (value: T) => TResult | Thenable, + onrejected?: (reason: any) => void + ): Thenable; +} + +export declare function executeCommand( + command: string, + ...rest: any[] +): Thenable; + +export declare function registerCommand( + command: string, + callback: (...args: any[]) => any, + thisArg?: any +): void; + +registerCommand("_references-view.showHistoryItem", async (item) => { // Error, contextual return type of Promise + if (item instanceof HistoryItem) { + return executeCommand("vscode.open", item.input.location.uri); + } +}); diff --git a/tests/cases/compiler/parenthesizedJSDocCastAtReturnStatement.ts b/tests/cases/compiler/parenthesizedJSDocCastAtReturnStatement.ts new file mode 100644 index 00000000000..d6cdd49f42f --- /dev/null +++ b/tests/cases/compiler/parenthesizedJSDocCastAtReturnStatement.ts @@ -0,0 +1,20 @@ +// @strict: true +// @lib: esnext +// @noEmit: true +// @checkJs: true +// @allowJs: true + +// @filename: index.js + +/** @type {Map>} */ +const cache = new Map() + +/** + * @param {string} key + * @returns {() => string} + */ +const getStringGetter = (key) => { + return () => { + return /** @type {string} */ (cache.get(key)) + } +} diff --git a/tests/cases/compiler/pushTypeGetTypeOfAlias.ts b/tests/cases/compiler/pushTypeGetTypeOfAlias.ts new file mode 100644 index 00000000000..0092bf6cca5 --- /dev/null +++ b/tests/cases/compiler/pushTypeGetTypeOfAlias.ts @@ -0,0 +1,7 @@ +// @checkJs: true +// @allowJs: true +// @noEmit: true + +// @Filename: bar.js +module.exports = function () {}; +exports.blah = exports.someProp; \ No newline at end of file diff --git a/tests/cases/compiler/reverseMappedTypePrimitiveConstraintProperty.ts b/tests/cases/compiler/reverseMappedTypePrimitiveConstraintProperty.ts new file mode 100644 index 00000000000..532fa620ba6 --- /dev/null +++ b/tests/cases/compiler/reverseMappedTypePrimitiveConstraintProperty.ts @@ -0,0 +1,14 @@ +// @strict: true +// @noEmit: true + +declare function test< + T extends { prop: string; nested: { nestedProp: string } }, +>(obj: { [K in keyof T]: T[K] }): T; + +const result = test({ + prop: "foo", // this one should not widen to string + nested: { + nestedProp: "bar", + }, + extra: "baz", +}); diff --git a/tests/cases/compiler/simpleRecursionWithBaseCase.ts b/tests/cases/compiler/simpleRecursionWithBaseCase1.ts similarity index 100% rename from tests/cases/compiler/simpleRecursionWithBaseCase.ts rename to tests/cases/compiler/simpleRecursionWithBaseCase1.ts diff --git a/tests/cases/compiler/simpleRecursionWithBaseCase2.ts b/tests/cases/compiler/simpleRecursionWithBaseCase2.ts new file mode 100644 index 00000000000..b5ab3ac417d --- /dev/null +++ b/tests/cases/compiler/simpleRecursionWithBaseCase2.ts @@ -0,0 +1,62 @@ +// @strict: true +// @noImplicitAny: true +// @lib: esnext +// @noEmit: true + +async function rec1() { + if (Math.random() < 0.5) { + return rec1(); + } else { + return "hello"; + } +} + +async function rec2() { + if (Math.random() < 0.5) { + return await rec2(); + } else { + return "hello"; + } +} + +async function rec3() { + return rec3(); +} + +async function rec4() { + return await rec4(); +} + +async function rec5() { + if (Math.random() < 0.5) { + return ((rec1())); + } else { + return "hello"; + } +} + +async function rec6() { + if (Math.random() < 0.5) { + return await ((rec1())); + } else { + return "hello"; + } +} + +declare const ps: Promise | number; + +async function foo1() { + if (Math.random() > 0.5) { + return ps; + } else { + return await foo1(); + } +} + +async function foo2() { + if (Math.random() > 0.5) { + return ps; + } else { + return foo2(); + } +} diff --git a/tests/cases/compiler/typeOfYieldWithUnionInContextualReturnType.ts b/tests/cases/compiler/typeOfYieldWithUnionInContextualReturnType.ts new file mode 100644 index 00000000000..567694b0b2b --- /dev/null +++ b/tests/cases/compiler/typeOfYieldWithUnionInContextualReturnType.ts @@ -0,0 +1,40 @@ +// @target: esnext +// https://github.com/microsoft/TypeScript/issues/42439 + +type SyncSequenceFactory = () => Generator; + +type AsyncSequenceFactory = () => AsyncGenerator; + +type SequenceFactory = SyncSequenceFactory | AsyncSequenceFactory + +const syncFactory: SyncSequenceFactory = function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} + +const asyncFactory: AsyncSequenceFactory = async function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} + +const looserSyncFactory: SequenceFactory = function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} + +const looserAsyncFactory: SequenceFactory = async function* (){ + let name = ""; + while(!name){ + name = yield "What is your name?" + } + return `That's the end of the game, ${name}` +} diff --git a/tests/cases/conformance/es2020/modules/exportAsNamespace5.ts b/tests/cases/conformance/es2020/modules/exportAsNamespace5.ts new file mode 100644 index 00000000000..982e299b0ed --- /dev/null +++ b/tests/cases/conformance/es2020/modules/exportAsNamespace5.ts @@ -0,0 +1,14 @@ +// @module: esnext +// @moduleResolution: bundler + +// @filename: three.d.ts +export type Named = 0; +declare const Named: 0; + +// @filename: two.d.ts +export * as default from "./three"; + +// @filename: one.ts +import ns from "./two"; +type Alias = ns.Named; +ns.Named; diff --git a/tests/cases/conformance/generators/generatorYieldContextualType.ts b/tests/cases/conformance/generators/generatorYieldContextualType.ts index 20cad6a9189..514583c1c5e 100644 --- a/tests/cases/conformance/generators/generatorYieldContextualType.ts +++ b/tests/cases/conformance/generators/generatorYieldContextualType.ts @@ -11,4 +11,109 @@ declare function f2(gen: () => Generator | AsyncGenerator(async function* () { const a = yield 0; return 0; -}); \ No newline at end of file +}); + +// repro from #41428 +enum Directive { + Back, + Cancel, + LoadMore, + Noop, +} + +namespace Directive { + export function is(value: Directive | T): value is Directive { + return typeof value === "number" && Directive[value] != null; + } +} + +interface QuickPickItem { + label: string; + description?: string; + detail?: string; + picked?: boolean; + alwaysShow?: boolean; +} + +interface QuickInputStep { + placeholder?: string; + prompt?: string; + title?: string; +} + +interface QuickPickStep { + placeholder?: string; + title?: string; +} + +type StepGenerator = + | Generator< + QuickPickStep | QuickInputStep, + StepResult, + any | undefined + > + | AsyncGenerator< + QuickPickStep | QuickInputStep, + StepResult, + any | undefined + >; + +type StepItemType = T extends QuickPickStep + ? U[] + : T extends QuickInputStep + ? string + : never; +namespace StepResult { + export const Break = Symbol("BreakStep"); +} +type StepResult = typeof StepResult.Break | T; +type StepResultGenerator = + | Generator, any | undefined> + | AsyncGenerator< + QuickPickStep | QuickInputStep, + StepResult, + any | undefined + >; +type StepSelection = T extends QuickPickStep + ? U[] | Directive + : T extends QuickInputStep + ? string | Directive + : never; +type PartialStepState = Partial & { + counter: number; + confirm?: boolean; + startingStep?: number; +}; +type StepState> = T & { + counter: number; + confirm?: boolean; + startingStep?: number; +}; + +function canPickStepContinue( + _step: T, + _state: PartialStepState, + _selection: StepItemType | Directive +): _selection is StepItemType { + return false; +} + +function createPickStep( + step: QuickPickStep +): QuickPickStep { + return step; +} + +function* showStep< + State extends PartialStepState & { repo: any }, + Context extends { repos: any[]; title: string; status: any } +>(state: State, _context: Context): StepResultGenerator { + const step: QuickPickStep = createPickStep({ + title: "", + placeholder: "", + }); + const selection: StepSelection = yield step; + return canPickStepContinue(step, state, selection) + ? selection[0] + : StepResult.Break; +} diff --git a/tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignment.ts b/tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignment.ts new file mode 100644 index 00000000000..3287f094ccc --- /dev/null +++ b/tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignment.ts @@ -0,0 +1,6 @@ +// @strict: true +// @noEmit: true + +Element.prototype.remove ??= function () { + this.parentNode?.removeChild(this); +}; diff --git a/tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignmentJs.ts b/tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignmentJs.ts new file mode 100644 index 00000000000..c22f204657c --- /dev/null +++ b/tests/cases/conformance/jsdoc/thisPrototypeMethodCompoundAssignmentJs.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true +// @checkJs: true +// @allowJs: true + +// @filename: index.js + +Element.prototype.remove ??= function () { + this.parentNode?.removeChild(this); +}; + +/** + * @this Node + */ +Element.prototype.remove ??= function () { + this.parentNode?.removeChild(this); +}; diff --git a/tests/cases/conformance/jsdoc/thisTag3.ts b/tests/cases/conformance/jsdoc/thisTag3.ts new file mode 100644 index 00000000000..1db6d34b21c --- /dev/null +++ b/tests/cases/conformance/jsdoc/thisTag3.ts @@ -0,0 +1,16 @@ +// @allowJs: true +// @checkJs: true +// @noEmit: true +// @filename: /a.js + +/** + * @typedef {{fn(a: string): void}} T + */ + +class C { + /** + * @this {T} + * @param {string} a + */ + p = (a) => this.fn("" + a); +} diff --git a/tests/cases/conformance/types/contextualTypes/asyncFunctions/contextuallyTypeAsyncFunctionReturnType.ts b/tests/cases/conformance/types/contextualTypes/asyncFunctions/contextuallyTypeAsyncFunctionReturnType.ts index b2239b9bda6..26b1ef6a86c 100644 --- a/tests/cases/conformance/types/contextualTypes/asyncFunctions/contextuallyTypeAsyncFunctionReturnType.ts +++ b/tests/cases/conformance/types/contextualTypes/asyncFunctions/contextuallyTypeAsyncFunctionReturnType.ts @@ -22,4 +22,67 @@ async function fn4(): Promise { return await new Promise(resolve => { resolve({ key: "value" }); }); -} \ No newline at end of file +} + +declare class Context { + private _runnable; +} +type Done = (err?: any) => void; +type Func = (this: Context, done: Done) => void; +type AsyncFunc = (this: Context) => PromiseLike; + +interface TestFunction { + (fn: Func): void; + (fn: AsyncFunc): void; + (title: string, fn?: Func): void; + (title: string, fn?: AsyncFunc): void; +} + +declare const test: TestFunction; + +interface ProcessTreeNode { + pid: number; + name: string; + memory?: number; + commandLine?: string; + children: ProcessTreeNode[]; +} + +export declare function getProcessTree( + rootPid: number, + callback: (tree: ProcessTreeNode) => void +): void; + +test("windows-process-tree", async () => { + return new Promise((resolve, reject) => { + getProcessTree(123, (tree) => { + if (tree) { + resolve(); + } else { + reject(new Error("windows-process-tree")); + } + }); + }); +}); + +interface ILocalExtension { + isApplicationScoped: boolean; + publisherId: string | null; +} +type Metadata = { + updated: boolean; +}; +declare function scanMetadata( + local: ILocalExtension +): Promise; + +async function copyExtensions( + fromExtensions: ILocalExtension[] +): Promise { + const extensions: [ILocalExtension, Metadata | undefined][] = + await Promise.all( + fromExtensions + .filter((e) => !e.isApplicationScoped) + .map(async (e) => [e, await scanMetadata(e)]) + ); +} diff --git a/tests/cases/conformance/types/literal/stringMappingDeferralInConditionalTypes.ts b/tests/cases/conformance/types/literal/stringMappingDeferralInConditionalTypes.ts new file mode 100644 index 00000000000..d003accdb91 --- /dev/null +++ b/tests/cases/conformance/types/literal/stringMappingDeferralInConditionalTypes.ts @@ -0,0 +1,21 @@ +// @strict: true +// @noEmit: true + +// https://github.com/microsoft/TypeScript/issues/55847 + +type A = Lowercase extends "foo" ? 1 : 0; +let x1: A<"foo"> = 1; // ok + +type B = Lowercase extends `f${string}` ? 1 : 0; +let x2: B<"foo"> = 1; // ok + +type C = Capitalize> extends "Foo" ? 1 : 0; +let x3: C<"foo"> = 1; // ok + +type D = Capitalize> extends "Foo" ? 1 : 0; +let x4: D<"foo"> = 1; // ok + +type E = Lowercase<`f${S & string}` & `${S & string}f`>; +type F = E<""> extends "f" ? 1 : 0; // 1 +type G = E extends "f" ? 1 : 0; +let x5: G<""> = 1; // ok diff --git a/tests/cases/conformance/types/tuple/named/partiallyNamedTuples3.ts b/tests/cases/conformance/types/tuple/named/partiallyNamedTuples3.ts new file mode 100644 index 00000000000..14ac6b03a7d --- /dev/null +++ b/tests/cases/conformance/types/tuple/named/partiallyNamedTuples3.ts @@ -0,0 +1,6 @@ +// @strict: true +// @lib: esnext + +declare const tuple: [number, name: string, boolean, value: number, string]; + +const output = ((...args) => args)(...tuple); diff --git a/tests/cases/fourslash/autoImportTypeOnlyPreferred3.ts b/tests/cases/fourslash/autoImportTypeOnlyPreferred3.ts new file mode 100644 index 00000000000..ba38c4cd4bf --- /dev/null +++ b/tests/cases/fourslash/autoImportTypeOnlyPreferred3.ts @@ -0,0 +1,71 @@ +// @module: esnext +// @moduleResolution: bundler + +// @Filename: /a.ts +//// export class A {} +//// export class B {} + +// @Filename: /b.ts +//// let x: A/*b*/; + +// @Filename: /c.ts +//// import { A } from "./a"; +//// new A(); +//// let x: B/*c*/; + +// @Filename: /d.ts +//// new A(); +//// let x: B; + +// @Filename: /ns.ts +//// export * as default from "./a"; + +// @Filename: /e.ts +//// let x: /*e*/ns.A; + +goTo.marker("b"); +verify.importFixAtPosition([ +`import type { A } from "./a"; + +let x: A;`], + /*errorCode*/ undefined, + { + preferTypeOnlyAutoImports: true, + } +); + +goTo.marker("c"); +verify.importFixAtPosition([ +`import { A, type B } from "./a"; +new A(); +let x: B;`], + /*errorCode*/ undefined, + { + preferTypeOnlyAutoImports: true, + } +); + +goTo.file("/d.ts"); +verify.codeFixAll({ + fixId: "fixMissingImport", + fixAllDescription: "Add all missing imports", + newFileContent: +`import { A, type B } from "./a"; + +new A(); +let x: B;`, + preferences: { + preferTypeOnlyAutoImports: true, + }, +}); + +goTo.marker("e"); +verify.importFixAtPosition([ +`import type ns from "./ns"; + +let x: ns.A;`], + /*errorCode*/ undefined, + { + preferTypeOnlyAutoImports: true, + } +); diff --git a/tests/cases/fourslash/cancellationWhenfindingAllRefsOnDefinition.ts b/tests/cases/fourslash/cancellationWhenfindingAllRefsOnDefinition.ts index e1385856f2e..f4ff52614d1 100644 --- a/tests/cases/fourslash/cancellationWhenfindingAllRefsOnDefinition.ts +++ b/tests/cases/fourslash/cancellationWhenfindingAllRefsOnDefinition.ts @@ -23,18 +23,10 @@ ////second./*2*/start(); ////second.stop(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: '1' }, - { - type: "customWork", - work: () => { - cancellation.setCancelled(); - verifyOperationIsCancelled(() => verify.baselineFindAllReferences('1')); +verify.baselineFindAllReferences("1"); +cancellation.setCancelled(); +verifyOperationIsCancelled(() => verify.baselineFindAllReferences('1')); - // verify that internal state is still correct - cancellation.resetCancelled(); - return "cancelled findAllReferences"; - } - }, - { type: "findAllReferences", markerOrRange: '1' }, -); \ No newline at end of file +// verify that internal state is still correct +cancellation.resetCancelled(); +verify.baselineFindAllReferences("1"); diff --git a/tests/cases/fourslash/completionsImportTypeKeyword.ts b/tests/cases/fourslash/completionsImportTypeKeyword.ts new file mode 100644 index 00000000000..b87c61c7561 --- /dev/null +++ b/tests/cases/fourslash/completionsImportTypeKeyword.ts @@ -0,0 +1,32 @@ +/// + +// @module: nodenext + +// @Filename: /os.d.ts +//// declare module "os" { +//// export function type(): string; +//// } + +// @Filename: /index.ts +//// type/**/ + +verify.completions({ + marker: "", + includes: [ + { + name: "type", + sortText: completion.SortText.GlobalsOrKeywords, + }, + { + name: "type", + source: "os", + sourceDisplay: "os", + hasAction: true, + sortText: completion.SortText.AutoImportSuggestions + } + ], + preferences: { + includeCompletionsForModuleExports: true, + allowIncompleteCompletions: true, + }, +}); diff --git a/tests/cases/fourslash/duplicatePackageServices.ts b/tests/cases/fourslash/duplicatePackageServices.ts index 7e49d3bb956..d80ec40b82b 100644 --- a/tests/cases/fourslash/duplicatePackageServices.ts +++ b/tests/cases/fourslash/duplicatePackageServices.ts @@ -32,7 +32,5 @@ goTo.file("/src/a.ts"); verify.numberOfErrorsInCurrentFile(0); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['useAX', 'defAX', 'useBX'] }, - { type: "goToDefinition", markerOrRange: ["useAX", "useBX"] }, -); \ No newline at end of file +verify.baselineFindAllReferences('useAX', 'defAX', 'useBX'); +verify.baselineGoToDefinition("useAX", "useBX"); diff --git a/tests/cases/fourslash/exhaustiveCaseCompletions9.ts b/tests/cases/fourslash/exhaustiveCaseCompletions9.ts new file mode 100644 index 00000000000..12c87359968 --- /dev/null +++ b/tests/cases/fourslash/exhaustiveCaseCompletions9.ts @@ -0,0 +1,11 @@ +/// + +// @newline: LF +////switch (Math.random() ? 123 : 456) { +//// case "foo!": +//// case/**/ +////} + +verify.baselineCompletions({ + includeCompletionsWithInsertText: true, +}) diff --git a/tests/cases/fourslash/findAllReferencesDynamicImport2.ts b/tests/cases/fourslash/findAllReferencesDynamicImport2.ts index ce29e3eee87..cb299da5f09 100644 --- a/tests/cases/fourslash/findAllReferencesDynamicImport2.ts +++ b/tests/cases/fourslash/findAllReferencesDynamicImport2.ts @@ -8,7 +8,5 @@ //// foo./*2*/[|bar|](); //// }) -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2'] }, - { type: "findRenameLocations", rangeText: "bar" }, -); +verify.baselineFindAllReferences('1', '2'); +verify.baselineRenameAtRangesWithText("bar"); diff --git a/tests/cases/fourslash/findAllReferencesDynamicImport3.ts b/tests/cases/fourslash/findAllReferencesDynamicImport3.ts index 1df7ff9b4b9..73ecffd3c40 100644 --- a/tests/cases/fourslash/findAllReferencesDynamicImport3.ts +++ b/tests/cases/fourslash/findAllReferencesDynamicImport3.ts @@ -5,7 +5,5 @@ ////import('./foo').then(([|{ /*1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}bar|] }|]) => undefined); const [r0Def, r0, r1Def, r1] = test.ranges(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['0', '1'] }, - { type: "findRenameLocations", markerOrRange: [r0, r1] }, -); +verify.baselineFindAllReferences('0', '1'); +verify.baselineRename([r0, r1]); \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefsClassWithStaticThisAccess.ts b/tests/cases/fourslash/findAllRefsClassWithStaticThisAccess.ts index 2c4566a9ea2..c3467820a9d 100644 --- a/tests/cases/fourslash/findAllRefsClassWithStaticThisAccess.ts +++ b/tests/cases/fourslash/findAllRefsClassWithStaticThisAccess.ts @@ -14,7 +14,5 @@ const [r0Def, r0, r1, r2] = test.ranges(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['0', '1', '2'] }, - { type: "findRenameLocations", markerOrRange: r0 }, -); +verify.baselineFindAllReferences('0', '1', '2'); +verify.baselineRename(r0) diff --git a/tests/cases/fourslash/findAllRefsDefaultImportThroughNamespace.ts b/tests/cases/fourslash/findAllRefsDefaultImportThroughNamespace.ts index 48bab9357f5..cdf25ac9b09 100644 --- a/tests/cases/fourslash/findAllRefsDefaultImportThroughNamespace.ts +++ b/tests/cases/fourslash/findAllRefsDefaultImportThroughNamespace.ts @@ -19,9 +19,7 @@ const [r0Def, r0, r1, r2, r3Def, r3, r4] = test.ranges(); goTo.rangeStart(r2); verify.renameInfoFailed(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['0', '1', '2', '3', '4'] }, - { type: "findRenameLocations", markerOrRange: r1 }, - // Can rename a default property. - { type: "findRenameLocations", markerOrRange: [r3, r4] }, -); +verify.baselineFindAllReferences('0', '1', '2', '3', '4'); +verify.baselineRename(r1); +// Can rename a default property. +verify.baselineRename([r3, r4]) \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefsForDefaultExport.ts b/tests/cases/fourslash/findAllRefsForDefaultExport.ts index a0296c02726..4f849224063 100644 --- a/tests/cases/fourslash/findAllRefsForDefaultExport.ts +++ b/tests/cases/fourslash/findAllRefsForDefaultExport.ts @@ -10,7 +10,5 @@ // @Filename: c.ts ////import { f } from "./a"; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['def', 'deg'] }, - { type: "goToDefinition", markerOrRange: "ref" }, -); +verify.baselineFindAllReferences('def', 'deg'); +verify.baselineGoToDefinition("ref"); diff --git a/tests/cases/fourslash/findAllRefsForDefaultExportAnonymous.ts b/tests/cases/fourslash/findAllRefsForDefaultExportAnonymous.ts index 9d2903d54f8..4188a96a93d 100644 --- a/tests/cases/fourslash/findAllRefsForDefaultExportAnonymous.ts +++ b/tests/cases/fourslash/findAllRefsForDefaultExportAnonymous.ts @@ -11,7 +11,5 @@ const [r0Def, r0, r1Def, r1] = test.ranges(); // Verify that it doesn't try to rename "default" goTo.rangeStart(r0); verify.renameInfoFailed(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['0', '1'] }, - { type: "findRenameLocations", markerOrRange: r1 } -); +verify.baselineFindAllReferences('0', '1'); +verify.baselineRename(r1); diff --git a/tests/cases/fourslash/findAllRefsForModule.ts b/tests/cases/fourslash/findAllRefsForModule.ts index 2909e526a75..fc215ddea91 100644 --- a/tests/cases/fourslash/findAllRefsForModule.ts +++ b/tests/cases/fourslash/findAllRefsForModule.ts @@ -17,7 +17,5 @@ const [r0Def, r0, r1Def, r1, r2] = test.ranges(); const ranges = [r0, r1, r2]; // Testing that it works with documentHighlights too -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['0', '1', '2'] }, - { type: "documentHighlights", markerOrRange: ranges, options: { filesToSearch: ["/b.ts", "/c/sub.js", "/d.ts"] } }, -); +verify.baselineFindAllReferences('0', '1', '2'); +verify.baselineDocumentHighlights(ranges, { filesToSearch: ["/b.ts", "/c/sub.js", "/d.ts"] }); diff --git a/tests/cases/fourslash/findAllRefsImportStarOfExportEquals.ts b/tests/cases/fourslash/findAllRefsImportStarOfExportEquals.ts index fdd897b0209..a121fd97872 100644 --- a/tests/cases/fourslash/findAllRefsImportStarOfExportEquals.ts +++ b/tests/cases/fourslash/findAllRefsImportStarOfExportEquals.ts @@ -25,9 +25,7 @@ const [a0Def, a0, a1Def, a1, a2Def, a2, b0Def, b0, b1, b2, c0Def, c0, c1, c2] = const aRanges = [a0, a1, a2]; const bRanges = [b0, b1, b2]; const cRanges = [c0, c1, c2]; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['a0', 'a1', 'a2', 'b0', 'b1', 'c0', 'c1', 'c2'] }, - { type: "findRenameLocations", markerOrRange: aRanges }, - { type: "findRenameLocations", markerOrRange: bRanges }, - { type: "findRenameLocations", markerOrRange: cRanges }, -); +verify.baselineFindAllReferences('a0', 'a1', 'a2', 'b0', 'b1', 'c0', 'c1', 'c2'); +verify.baselineRename(aRanges); +verify.baselineRename(bRanges); +verify.baselineRename(cRanges); diff --git a/tests/cases/fourslash/findAllRefsOnImportAliases2.ts b/tests/cases/fourslash/findAllRefsOnImportAliases2.ts index eeb88acb2ea..bf39e4ad121 100644 --- a/tests/cases/fourslash/findAllRefsOnImportAliases2.ts +++ b/tests/cases/fourslash/findAllRefsOnImportAliases2.ts @@ -10,7 +10,5 @@ //@Filename: c.ts ////[|export { /*class2*/[|{| "contextRangeIndex": 6 |}Class|] as /*c3*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 6 |}C3|] } from "./a";|] -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['class0', 'class1', 'class2', 'c2_0', 'c2_1', 'c3'] }, - { type: "findRenameLocations", rangeText: ["Class", "C2", "C3"] }, -); +verify.baselineFindAllReferences('class0', 'class1', 'class2', 'c2_0', 'c2_1', 'c3'); +verify.baselineRenameAtRangesWithText(["Class", "C2", "C3"]); diff --git a/tests/cases/fourslash/findAllRefsPrefixSuffixPreference.ts b/tests/cases/fourslash/findAllRefsPrefixSuffixPreference.ts index 40088589884..ba9ff1dd5ed 100644 --- a/tests/cases/fourslash/findAllRefsPrefixSuffixPreference.ts +++ b/tests/cases/fourslash/findAllRefsPrefixSuffixPreference.ts @@ -37,10 +37,8 @@ const zReferenceGroup2: FourSlashInterface.ReferenceGroup = { ranges: [z1, z2] }; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['q0', 'q1', 'q2', 'q3', 'z0', 'z1', 'z2'] }, - { type: "findRenameLocations", markerOrRange: [q0, q1, q2, q3], options: { providePrefixAndSuffixTextForRename: true } }, - { type: "findRenameLocations", markerOrRange: [q0, q1, q2, q3], options: { providePrefixAndSuffixTextForRename: false } }, - { type: "findRenameLocations", markerOrRange: [z0, z1, z2], options: { providePrefixAndSuffixTextForRename: true } }, - { type: "findRenameLocations", markerOrRange: [z0, z1, z2], options: { providePrefixAndSuffixTextForRename: false } }, -); +verify.baselineFindAllReferences('q0', 'q1', 'q2', 'q3', 'z0', 'z1', 'z2'); +verify.baselineRename([q0, q1, q2, q3], { providePrefixAndSuffixTextForRename: true }); +verify.baselineRename([q0, q1, q2, q3], { providePrefixAndSuffixTextForRename: false }); +verify.baselineRename([z0, z1, z2], { providePrefixAndSuffixTextForRename: true }); +verify.baselineRename([z0, z1, z2], { providePrefixAndSuffixTextForRename: false }); \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefsPrimitive.ts b/tests/cases/fourslash/findAllRefsPrimitive.ts index 05c4571e667..61009b6faf3 100644 --- a/tests/cases/fourslash/findAllRefsPrimitive.ts +++ b/tests/cases/fourslash/findAllRefsPrimitive.ts @@ -24,10 +24,7 @@ // @Filename: b.ts //// const z: /*17*/[|any|] = 0; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17'] }, - { type: "documentHighlights", options: { filesToSearch: ["a.ts", "b.ts"] } } -); - +verify.baselineFindAllReferences('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17'); +verify.baselineDocumentHighlights(undefined, { filesToSearch: ["a.ts", "b.ts"] }); goTo.rangeStart(test.ranges()[0]); verify.renameInfoFailed(); diff --git a/tests/cases/fourslash/findAllRefsReExportLocal.ts b/tests/cases/fourslash/findAllRefsReExportLocal.ts index 3240ca53a4b..3bbf73b5df3 100644 --- a/tests/cases/fourslash/findAllRefsReExportLocal.ts +++ b/tests/cases/fourslash/findAllRefsReExportLocal.ts @@ -17,11 +17,9 @@ const [ax0Def, ax0, ax1Def, ax1, ax2Def, ax2, ay, bx0Def, bx0, by0, bx1, by1] = const bxRanges = [bx0, bx1]; const byRanges = [by0, by1]; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['ax0', 'ax1', 'ax2', 'bx0', 'bx1', 'ay', 'by0', 'by1'] }, - { type: "findRenameLocations", markerOrRange: [ax0, ax2] }, - { type: "findRenameLocations", markerOrRange: ax1 }, - { type: "findRenameLocations", markerOrRange: bxRanges }, - { type: "findRenameLocations", markerOrRange: ay }, - { type: "findRenameLocations", markerOrRange: byRanges }, -); +verify.baselineFindAllReferences('ax0', 'ax1', 'ax2', 'bx0', 'bx1', 'ay', 'by0', 'by1'); +verify.baselineRename([ax0, ax2]); +verify.baselineRename(ax1); +verify.baselineRename(bxRanges); +verify.baselineRename(ay); +verify.baselineRename(byRanges); \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefsReExportRightNameWrongSymbol.ts b/tests/cases/fourslash/findAllRefsReExportRightNameWrongSymbol.ts index 521acef2221..858e806572e 100644 --- a/tests/cases/fourslash/findAllRefsReExportRightNameWrongSymbol.ts +++ b/tests/cases/fourslash/findAllRefsReExportRightNameWrongSymbol.ts @@ -16,11 +16,9 @@ verify.noErrors(); const [aDef, a, bDef, b, cFromBDef, cFromB, cFromADef, cFromA, cUse, dDef, d] = test.ranges(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['a', 'b', 'cFromB', 'cFromA', 'cUse', 'd'] }, - { type: "findRenameLocations", markerOrRange: a }, - { type: "findRenameLocations", markerOrRange: [cFromA, cUse] }, - { type: "findRenameLocations", markerOrRange: b }, - { type: "findRenameLocations", markerOrRange: cFromB }, - { type: "findRenameLocations", markerOrRange: d }, -); +verify.baselineFindAllReferences('a', 'b', 'cFromB', 'cFromA', 'cUse', 'd'); +verify.baselineRename(a); +verify.baselineRename([cFromA, cUse]); +verify.baselineRename(b); +verify.baselineRename(cFromB); +verify.baselineRename(d); \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefsReExports.ts b/tests/cases/fourslash/findAllRefsReExports.ts index 4d963a7a4d5..127d5d9b610 100644 --- a/tests/cases/fourslash/findAllRefsReExports.ts +++ b/tests/cases/fourslash/findAllRefsReExports.ts @@ -20,19 +20,14 @@ /////*bar2*/[|bar|](); /*baz1*/[|baz|](); /*bang1*/[|bang|](); /*boom1*/[|boom|](); verify.noErrors(); -const commands: FourSlashInterface.BaselineCommand[] = [ - { - type: "findAllReferences", - markerOrRange: [ - 'foo0', 'foo1', 'foo2', - 'bar0', 'bar1', 'bar2', - 'defaultC', 'defaultE', 'defaultD', - 'baz0', 'baz1', - 'bang0', 'bang1', - 'boom0', 'boom1' - ], - }, -]; +verify.baselineFindAllReferences( + 'foo0', 'foo1', 'foo2', + 'bar0', 'bar1', 'bar2', + 'defaultC', 'defaultE', 'defaultD', + 'baz0', 'baz1', + 'bang0', 'bang1', + 'boom0', 'boom1' +); test.rangesByText().forEach((ranges, text) => { if (text.indexOf("export") === 0 || text.indexOf("import") === 0) return; switch (text) { @@ -43,8 +38,7 @@ test.rangesByText().forEach((ranges, text) => { } break; default: - commands.push({ type: "findRenameLocations", markerOrRange: ranges }); + verify.baselineRename(ranges); break; } -}); -verify.baselineCommands(...commands); +}); \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefsReExportsUseInImportType.ts b/tests/cases/fourslash/findAllRefsReExportsUseInImportType.ts index 49406c95227..fe057297d15 100644 --- a/tests/cases/fourslash/findAllRefsReExportsUseInImportType.ts +++ b/tests/cases/fourslash/findAllRefsReExportsUseInImportType.ts @@ -37,12 +37,9 @@ const fooExport = { ranges: exportFooRanges }; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['full0', 'full1', 'full2', 'foo0', 'foo1', 'foo2', 'foo3', 'foo4'] }, - { type: "findRenameLocations", markerOrRange: fullRanges }, - { type: "findRenameLocations", markerOrRange: foo0 }, - { type: "findRenameLocations", markerOrRange: [foo1, foo4] }, - { type: "findRenameLocations", markerOrRange: fooAppRanges }, - { type: "findRenameLocations", markerOrRange: [foo2, foo3, foo4, foo0, foo1], options: { providePrefixAndSuffixTextForRename: false } }, -); - +verify.baselineFindAllReferences('full0', 'full1', 'full2', 'foo0', 'foo1', 'foo2', 'foo3', 'foo4'); +verify.baselineRename(fullRanges); +verify.baselineRename(foo0); +verify.baselineRename([foo1, foo4]); +verify.baselineRename(fooAppRanges); +verify.baselineRename([foo2, foo3, foo4, foo0, foo1], { providePrefixAndSuffixTextForRename: false }); \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefsRenameImportWithSameName.ts b/tests/cases/fourslash/findAllRefsRenameImportWithSameName.ts index d1a6f516ecd..0c0706b0877 100644 --- a/tests/cases/fourslash/findAllRefsRenameImportWithSameName.ts +++ b/tests/cases/fourslash/findAllRefsRenameImportWithSameName.ts @@ -10,7 +10,5 @@ verify.noErrors(); const [r0Def, r0, r1Def, r1, r2, r3] = test.ranges(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['0', '1', '2', '3'] }, - { type: "findRenameLocations", markerOrRange: [r0, r1, r2, r3] }, -); +verify.baselineFindAllReferences('0', '1', '2', '3'); +verify.baselineRename([r0, r1, r2, r3]); \ No newline at end of file diff --git a/tests/cases/fourslash/findAllRefs_importType_exportEquals.ts b/tests/cases/fourslash/findAllRefs_importType_exportEquals.ts index 2d86d1a4d83..2b815911a1b 100644 --- a/tests/cases/fourslash/findAllRefs_importType_exportEquals.ts +++ b/tests/cases/fourslash/findAllRefs_importType_exportEquals.ts @@ -13,10 +13,8 @@ verify.noErrors(); const [r0Def, r0, r1Def, r1, r2Def, rExport, r2, r3Def, r3, r3b, r4Def, r4, r4b] = test.ranges(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['0', '1', '2', '3', '4', 'export'] }, - { type: "findRenameLocations", markerOrRange: [r0, r1, r2] }, -); +verify.baselineFindAllReferences('0', '1', '2', '3', '4', 'export'); +verify.baselineRename([r0, r1, r2]); for (const range of [r3b, r4b]) { goTo.rangeStart(range); verify.renameInfoSucceeded(/*displayName*/ "/a.ts", /*fullDisplayName*/ "/a.ts", /*kind*/ "module", /*kindModifiers*/ "", /*fileToRename*/ "/a.ts", range); diff --git a/tests/cases/fourslash/findReferencesAfterEdit.ts b/tests/cases/fourslash/findReferencesAfterEdit.ts index 0b0f39fec55..4204adb14ed 100644 --- a/tests/cases/fourslash/findReferencesAfterEdit.ts +++ b/tests/cases/fourslash/findReferencesAfterEdit.ts @@ -12,15 +12,7 @@ //// x./*2*/foo ////} -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2'] }, - { - type: "customWork", - work: () => { - goTo.marker(""); - edit.insert("\n"); - return "edits"; - } - }, - { type: "findAllReferences", markerOrRange: ['1', '2'] }, -); \ No newline at end of file +verify.baselineFindAllReferences("1", "2"); +goTo.marker(""); +edit.insert("\n"); +verify.baselineFindAllReferences("1", "2"); \ No newline at end of file diff --git a/tests/cases/fourslash/findReferencesJSXTagName3.ts b/tests/cases/fourslash/findReferencesJSXTagName3.ts index b4675ca272c..8b16c743967 100644 --- a/tests/cases/fourslash/findReferencesJSXTagName3.ts +++ b/tests/cases/fourslash/findReferencesJSXTagName3.ts @@ -25,17 +25,12 @@ const [d0Def, d0, c0Def, c0, d1Def, d1, d2Def, d2, d3, d4, c1Def, c1, c2] = test const allD = [d0, d1, d2, d3, d4]; const allC = [c0, c1, c2]; -verify.baselineCommands( - { - type: "findAllReferences", - markerOrRange: [ - // div occurrences - '1', '2', '3', '4', '5', - // Comp occurrences - '6', '7', '8' - ] - }, - // For document highlights, we will just do tag matching if on a tag. Otherwise we find-all-references. - { type: "documentHighlights", markerOrRange: allD }, - { type: "documentHighlights", markerOrRange: allC }, -); \ No newline at end of file +verify.baselineFindAllReferences( + // div occurrences + '1', '2', '3', '4', '5', + // Comp occurrences + '6', '7', '8' +); +// For document highlights, we will just do tag matching if on a tag. Otherwise we find-all-references. +verify.baselineDocumentHighlights(allD); +verify.baselineDocumentHighlights(allC); \ No newline at end of file diff --git a/tests/cases/fourslash/fourslash.ts b/tests/cases/fourslash/fourslash.ts index 858f545e416..b61f947e488 100644 --- a/tests/cases/fourslash/fourslash.ts +++ b/tests/cases/fourslash/fourslash.ts @@ -318,7 +318,6 @@ declare namespace FourSlashInterface { formatDocumentChangesNothing(): void; verifyGetEmitOutputForCurrentFile(expected: string): void; verifyGetEmitOutputContentsForCurrentFile(expected: ts.OutputFile[]): void; - baselineCommands(...commands: BaselineCommand[]): void; baselineFindAllReferences(...markerOrRange: MarkerOrNameOrRange[]): void; baselineFindAllReferencesAtRangesWithText(...rangeText: string[]): void; baselineGetFileReferences(...fileName: string[]): void; @@ -364,7 +363,7 @@ declare namespace FourSlashInterface { docCommentTemplateAt(markerName: string | FourSlashInterface.Marker, expectedOffset: number, expectedText: string, options?: VerifyDocCommentTemplateOptions): void; noDocCommentTemplateAt(markerName: string | FourSlashInterface.Marker): void; rangeAfterCodeFix(expectedText: string, includeWhiteSpace?: boolean, errorCode?: number, index?: number): void; - codeFixAll(options: { fixId: string, fixAllDescription: string, newFileContent: NewFileContent, commands?: {}[] }): void; + codeFixAll(options: { fixId: string, fixAllDescription: string, newFileContent: NewFileContent, commands?: {}[], preferences?: UserPreferences }): void; fileAfterApplyingRefactorAtMarker(markerName: string, expectedContent: string, refactorNameToApply: string, actionName: string, formattingOptions?: FormatCodeOptions): void; rangeIs(expectedText: string, includeWhiteSpace?: boolean): void; fileAfterApplyingRefactorAtMarker(markerName: string, expectedContent: string, refactorNameToApply: string, formattingOptions?: FormatCodeOptions): void; @@ -664,6 +663,7 @@ declare namespace FourSlashInterface { readonly providePrefixAndSuffixTextForRename?: boolean; readonly allowRenameOfImportPath?: boolean; readonly autoImportFileExcludePatterns?: readonly string[]; + readonly preferTypeOnlyAutoImports?: boolean; readonly organizeImportsIgnoreCase?: "auto" | boolean; readonly organizeImportsCollation?: "unicode" | "ordinal"; readonly organizeImportsLocale?: string; @@ -850,27 +850,6 @@ declare namespace FourSlashInterface { type RenameOptions = { readonly findInStrings?: boolean, readonly findInComments?: boolean, readonly providePrefixAndSuffixTextForRename?: boolean, readonly quotePreference?: "auto" | "double" | "single" }; type RenameLocationOptions = Range | { readonly range: Range, readonly prefixText?: string, readonly suffixText?: string }; type DiagnosticIgnoredInterpolations = { template: string } - type BaselineCommand = { - type: "findAllReferences" | "goToDefinition" | "getDefinitionAtPosition" | "goToSourceDefinition" | "goToType" | "goToImplementation"; - markerOrRange?: ArrayOrSingle; - rangeText?: ArrayOrSingle; - } | { - type: "getFileReferences"; - fileName: ArrayOrSingle; - } | { - type: "findRenameLocations"; - markerOrRange?: ArrayOrSingle; - rangeText?: ArrayOrSingle; - options?: RenameOptions; - } | { - type: "documentHighlights"; - markerOrRange?: ArrayOrSingle; - rangeText?: ArrayOrSingle; - options?: VerifyDocumentHighlightsOptions; - } | { - type: "customWork"; - work: () => string | undefined; - }; } /** Wraps a diagnostic message to be compared ignoring interpolated strings */ declare function ignoreInterpolations(diagnostic: string | ts.DiagnosticMessage): FourSlashInterface.DiagnosticIgnoredInterpolations; diff --git a/tests/cases/fourslash/getOccurrencesAbstract02.ts b/tests/cases/fourslash/getOccurrencesAbstract02.ts index 32c212a5eda..5c3557dd9ec 100644 --- a/tests/cases/fourslash/getOccurrencesAbstract02.ts +++ b/tests/cases/fourslash/getOccurrencesAbstract02.ts @@ -11,7 +11,5 @@ //// abstract bar(): void; ////} -verify.baselineCommands( - { type: "documentHighlights", markerOrRange: ["1", "2"] }, - { type: "documentHighlights" } -); \ No newline at end of file +verify.baselineDocumentHighlights(["1", "2"]); +verify.baselineDocumentHighlights(); diff --git a/tests/cases/fourslash/getOccurrencesAfterEdit.ts b/tests/cases/fourslash/getOccurrencesAfterEdit.ts index 80f65974fce..c442d0460c7 100644 --- a/tests/cases/fourslash/getOccurrencesAfterEdit.ts +++ b/tests/cases/fourslash/getOccurrencesAfterEdit.ts @@ -8,15 +8,7 @@ //// x.f/*1*/oo ////} -verify.baselineCommands( - { type: "documentHighlights", markerOrRange: "1" }, - { - type: "customWork", - work: () => { - goTo.marker("0"); - edit.insert("\n"); - return "Added new line"; - }, - }, - { type: "documentHighlights", markerOrRange: "1" }, -); \ No newline at end of file +verify.baselineDocumentHighlights("1"); +goTo.marker("0"); +edit.insert("\n"); +verify.baselineDocumentHighlights("1"); diff --git a/tests/cases/fourslash/getOccurrencesConst01.ts b/tests/cases/fourslash/getOccurrencesConst01.ts index de67ff050ca..5f952849461 100644 --- a/tests/cases/fourslash/getOccurrencesConst01.ts +++ b/tests/cases/fourslash/getOccurrencesConst01.ts @@ -7,7 +7,5 @@ //// /////*2*/const c = 0; -verify.baselineCommands( - { type: "documentHighlights" }, - { type: "documentHighlights", markerOrRange: "2" } -); \ No newline at end of file +verify.baselineDocumentHighlights(); +verify.baselineDocumentHighlights("2"); diff --git a/tests/cases/fourslash/getOccurrencesConst02.ts b/tests/cases/fourslash/getOccurrencesConst02.ts index 5c16fb94512..8b0d759f617 100644 --- a/tests/cases/fourslash/getOccurrencesConst02.ts +++ b/tests/cases/fourslash/getOccurrencesConst02.ts @@ -10,7 +10,5 @@ ////declare [|const|] enum E { ////} -verify.baselineCommands( - { type: "documentHighlights" }, // They are in different scopes, so not counted together. - { type: "documentHighlights", markerOrRange: test.markers() }, -); \ No newline at end of file +verify.baselineDocumentHighlights(); // They are in different scopes, so not counted together. +verify.baselineDocumentHighlights(test.markers()); \ No newline at end of file diff --git a/tests/cases/fourslash/getOccurrencesConst03.ts b/tests/cases/fourslash/getOccurrencesConst03.ts index 6403ffefcad..d596512c610 100644 --- a/tests/cases/fourslash/getOccurrencesConst03.ts +++ b/tests/cases/fourslash/getOccurrencesConst03.ts @@ -10,7 +10,5 @@ ////export [|const|] enum E { ////} -verify.baselineCommands( - { type: "documentHighlights" }, // They are in different scopes, so not counted together. - { type: "documentHighlights", markerOrRange: test.markers() }, -); \ No newline at end of file +verify.baselineDocumentHighlights(); // They are in different scopes, so not counted together. +verify.baselineDocumentHighlights(test.markers()); \ No newline at end of file diff --git a/tests/cases/fourslash/getOccurrencesIfElseBroken.ts b/tests/cases/fourslash/getOccurrencesIfElseBroken.ts index 6bd57a42b9d..c15cd7f0de5 100644 --- a/tests/cases/fourslash/getOccurrencesIfElseBroken.ts +++ b/tests/cases/fourslash/getOccurrencesIfElseBroken.ts @@ -12,7 +12,5 @@ // It would be nice if in the future, // We could include that last 'else'. -verify.baselineCommands( - { type: "documentHighlights" }, - { type: "documentHighlights", markerOrRange: "" } -); \ No newline at end of file +verify.baselineDocumentHighlights(); +verify.baselineDocumentHighlights(""); diff --git a/tests/cases/fourslash/getOccurrencesReadonly3.ts b/tests/cases/fourslash/getOccurrencesReadonly3.ts index 6664c4a8d61..c6512fddcf1 100644 --- a/tests/cases/fourslash/getOccurrencesReadonly3.ts +++ b/tests/cases/fourslash/getOccurrencesReadonly3.ts @@ -9,7 +9,5 @@ //// } ////} -verify.baselineCommands( - { type: "documentHighlights" }, - { type: "documentHighlights", markerOrRange: "" }, -); \ No newline at end of file +verify.baselineDocumentHighlights(); +verify.baselineDocumentHighlights(""); diff --git a/tests/cases/fourslash/getOccurrencesReturnBroken.ts b/tests/cases/fourslash/getOccurrencesReturnBroken.ts index 6e847827ba3..1b0a622ff77 100644 --- a/tests/cases/fourslash/getOccurrencesReturnBroken.ts +++ b/tests/cases/fourslash/getOccurrencesReturnBroken.ts @@ -30,7 +30,5 @@ // where if an arrow function starts with a statement, we try to parse a body // as if it was missing curly braces. If the behavior changes in the future, // a change to this test is very much welcome. -verify.baselineCommands( - { type: "documentHighlights" }, - { type: "documentHighlights", markerOrRange: test.markers() }, -); \ No newline at end of file +verify.baselineDocumentHighlights(); +verify.baselineDocumentHighlights(test.markers()); diff --git a/tests/cases/fourslash/getOccurrencesSwitchCaseDefault4.ts b/tests/cases/fourslash/getOccurrencesSwitchCaseDefault4.ts index 1decee7fff1..bca33e69ca0 100644 --- a/tests/cases/fourslash/getOccurrencesSwitchCaseDefault4.ts +++ b/tests/cases/fourslash/getOccurrencesSwitchCaseDefault4.ts @@ -10,7 +10,5 @@ //// contin/*2*/ue foo; ////} -verify.baselineCommands( - { type: "documentHighlights" }, - { type: "documentHighlights", markerOrRange: test.markers() }, -); +verify.baselineDocumentHighlights(); +verify.baselineDocumentHighlights(test.markers()); diff --git a/tests/cases/fourslash/goToTypeDefinition4.ts b/tests/cases/fourslash/goToTypeDefinition4.ts index 21a6404b719..b94a7164960 100644 --- a/tests/cases/fourslash/goToTypeDefinition4.ts +++ b/tests/cases/fourslash/goToTypeDefinition4.ts @@ -8,7 +8,5 @@ ////import { T } from "./foo"; ////let x: [|/*reference*/T|]; -verify.baselineCommands( - { type: "goToType", markerOrRange: "reference" }, - { type: "goToDefinition", markerOrRange: "reference" }, -); \ No newline at end of file +verify.baselineGoToType("reference"); +verify.baselineGoToDefinition("reference"); diff --git a/tests/cases/fourslash/hoverOverComment.ts b/tests/cases/fourslash/hoverOverComment.ts index 5d4d2e48278..215557faf15 100644 --- a/tests/cases/fourslash/hoverOverComment.ts +++ b/tests/cases/fourslash/hoverOverComment.ts @@ -6,7 +6,5 @@ goTo.marker(); verify.quickInfoIs(""); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: "" }, - { type: "getDefinitionAtPosition", markerOrRange: "" }, -); +verify.baselineFindAllReferences(""); +verify.baselineGetDefinitionAtPosition(""); \ No newline at end of file diff --git a/tests/cases/fourslash/inlayHintsInteractiveFunctionParameterTypes5.ts b/tests/cases/fourslash/inlayHintsInteractiveFunctionParameterTypes5.ts new file mode 100644 index 00000000000..0dc3b2da447 --- /dev/null +++ b/tests/cases/fourslash/inlayHintsInteractiveFunctionParameterTypes5.ts @@ -0,0 +1,9 @@ +/// + +////const foo: 1n = 1n; +////export function fn(b = foo) {} + +verify.baselineInlayHints(undefined, { + includeInlayFunctionParameterTypeHints: true, + interactiveInlayHints: true +}); diff --git a/tests/cases/fourslash/inlayHintsQuotePreference1.ts b/tests/cases/fourslash/inlayHintsQuotePreference1.ts new file mode 100644 index 00000000000..0339d46545f --- /dev/null +++ b/tests/cases/fourslash/inlayHintsQuotePreference1.ts @@ -0,0 +1,11 @@ +/// + +////const a1: '"' = '"'; +////const b1: '\\' = '\\'; +////export function fn(a = a1, b = b1) {} + +verify.baselineInlayHints(undefined, { + includeInlayFunctionParameterTypeHints: true, + interactiveInlayHints: true, + quotePreference: "double" +}); diff --git a/tests/cases/fourslash/inlayHintsQuotePreference2.ts b/tests/cases/fourslash/inlayHintsQuotePreference2.ts new file mode 100644 index 00000000000..377276bbdb2 --- /dev/null +++ b/tests/cases/fourslash/inlayHintsQuotePreference2.ts @@ -0,0 +1,11 @@ +/// + +////const a1: "'" = "'"; +////const b1: "\\" = "\\"; +////export function fn(a = a1, b = b1) {} + +verify.baselineInlayHints(undefined, { + includeInlayFunctionParameterTypeHints: true, + interactiveInlayHints: true, + quotePreference: "single" +}); diff --git a/tests/cases/fourslash/jsDocServices.ts b/tests/cases/fourslash/jsDocServices.ts index e0cb13d35b2..82efc3e7e83 100644 --- a/tests/cases/fourslash/jsDocServices.ts +++ b/tests/cases/fourslash/jsDocServices.ts @@ -17,10 +17,8 @@ const ranges = [r0, r1, r2]; goTo.marker("use"); verify.quickInfoIs("(parameter) foo: I", "I pity the foo"); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ["use", "def", "use2"] }, - { type: "findRenameLocations", markerOrRange: ranges }, - { type: "documentHighlights", markerOrRange: ranges }, - { type: "goToType", markerOrRange: "use" }, - { type: "getDefinitionAtPosition", markerOrRange: "use" }, -); +verify.baselineFindAllReferences("use", "def", "use2"); +verify.baselineRename(ranges); +verify.baselineDocumentHighlights(ranges); +verify.baselineGoToType("use"); +verify.baselineGetDefinitionAtPosition("use"); diff --git a/tests/cases/fourslash/jsdocTypedefTagServices.ts b/tests/cases/fourslash/jsdocTypedefTagServices.ts index 885c85f9b43..267cdba7bbb 100644 --- a/tests/cases/fourslash/jsdocTypedefTagServices.ts +++ b/tests/cases/fourslash/jsdocTypedefTagServices.ts @@ -21,9 +21,7 @@ const desc = `type Product = { const [r0Def, ...ranges] = test.ranges(); verify.quickInfoAt("use", desc, "Doc comment"); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ["use", "def"] }, - { type: "findRenameLocations", markerOrRange: ranges }, - { type: "documentHighlights", markerOrRange: ranges }, - { type: "goToDefinition", markerOrRange: "use" }, -); +verify.baselineFindAllReferences("use", "def"); +verify.baselineRename(ranges); +verify.baselineDocumentHighlights(ranges); +verify.baselineGoToDefinition("use"); diff --git a/tests/cases/fourslash/jsxSpreadReference.ts b/tests/cases/fourslash/jsxSpreadReference.ts index 2a4b6704a08..6cb72d5d12f 100644 --- a/tests/cases/fourslash/jsxSpreadReference.ts +++ b/tests/cases/fourslash/jsxSpreadReference.ts @@ -17,7 +17,5 @@ //// [|var [|/*dst*/{| "contextRangeIndex": 0 |}nn|]: {name?: string; size?: number};|] //// var x = ; -verify.baselineCommands( - { type: "findRenameLocations", rangeText: "nn" }, - { type: "goToDefinition", markerOrRange: "src" }, -); +verify.baselineRenameAtRangesWithText("nn") +verify.baselineGoToDefinition("src"); \ No newline at end of file diff --git a/tests/cases/fourslash/moveToFile_existingImports1.ts b/tests/cases/fourslash/moveToFile_existingImports1.ts new file mode 100644 index 00000000000..f7f5feaf54e --- /dev/null +++ b/tests/cases/fourslash/moveToFile_existingImports1.ts @@ -0,0 +1,24 @@ +/// + +// @filename: /common.ts +////export const x = 1; + +// @filename: /a.ts +////import { x } from "./common"; +////[|export const bar = x;|] + +// @filename: /b.ts +////import { x } from "./common"; +////export const foo = x; + +verify.moveToFile({ + newFileContents: { + "/a.ts": "", + "/b.ts": +`import { x } from "./common"; +export const foo = x; +export const bar = x; +`, + }, + interactiveRefactorArguments: { targetFile: "/b.ts" }, +}); diff --git a/tests/cases/fourslash/moveToFile_existingImports2.ts b/tests/cases/fourslash/moveToFile_existingImports2.ts new file mode 100644 index 00000000000..a93b542b59d --- /dev/null +++ b/tests/cases/fourslash/moveToFile_existingImports2.ts @@ -0,0 +1,28 @@ +/// + +// @filename: /common.ts +////export const x = 1; + +// @filename: /a.ts +////import { x } from "./common"; +////export const a = x; +////[|export const b = x;|] + +// @filename: /b.ts +////import { x } from "./common"; +////export const a = x; + +verify.moveToFile({ + newFileContents: { + "/a.ts": +`import { x } from "./common"; +export const a = x; +`, + "/b.ts": +`import { x } from "./common"; +export const a = x; +export const b = x; +`, + }, + interactiveRefactorArguments: { targetFile: "/b.ts" }, +}); diff --git a/tests/cases/fourslash/moveToFile_existingImports3.ts b/tests/cases/fourslash/moveToFile_existingImports3.ts new file mode 100644 index 00000000000..0a45aa3dece --- /dev/null +++ b/tests/cases/fourslash/moveToFile_existingImports3.ts @@ -0,0 +1,26 @@ +/// + +// @allowJs: true +// @module: commonjs +// @filename: /common.js +////export const x = 1; + +// @filename: /a.js +////const { x } = require("./common"); +////[|module.exports.b = x;|] + +// @filename: /b.js +////const { x } = require("./common"); +////module.exports.a = x; + +verify.moveToFile({ + newFileContents: { + "/a.js": "", + "/b.js": +`const { x } = require("./common"); +module.exports.a = x; +module.exports.b = x; +`, + }, + interactiveRefactorArguments: { targetFile: "/b.js" }, +}); diff --git a/tests/cases/fourslash/moveToFile_existingImports4.ts b/tests/cases/fourslash/moveToFile_existingImports4.ts new file mode 100644 index 00000000000..f69ddfc5429 --- /dev/null +++ b/tests/cases/fourslash/moveToFile_existingImports4.ts @@ -0,0 +1,30 @@ +/// + +// @allowJs: true +// @module: commonjs +// @filename: /common.js +////export const x = 1; + +// @filename: /a.js +////const { x } = require("./common"); +////module.exports.a = x; +////[|module.exports.b = x;|] + +// @filename: /b.js +////const { x } = require("./common"); +////module.exports.a = x; + +verify.moveToFile({ + newFileContents: { + "/a.js": +`const { x } = require("./common"); +module.exports.a = x; +`, + "/b.js": +`const { x } = require("./common"); +module.exports.a = x; +module.exports.b = x; +`, + }, + interactiveRefactorArguments: { targetFile: "/b.js" }, +}); diff --git a/tests/cases/fourslash/qualifiedName_import-declaration-with-variable-entity-names.ts b/tests/cases/fourslash/qualifiedName_import-declaration-with-variable-entity-names.ts index e3804c7794b..1320bc09d08 100644 --- a/tests/cases/fourslash/qualifiedName_import-declaration-with-variable-entity-names.ts +++ b/tests/cases/fourslash/qualifiedName_import-declaration-with-variable-entity-names.ts @@ -13,7 +13,5 @@ goTo.marker('import'); verify.completions({ includes: { name: "x", text: "var Alpha.x: number" } }); -verify.baselineCommands( - { type: "documentHighlights", markerOrRange: "import" }, - { type: "getDefinitionAtPosition", markerOrRange: "import" }, -); \ No newline at end of file +verify.baselineDocumentHighlights("import"); +verify.baselineGetDefinitionAtPosition("import"); \ No newline at end of file diff --git a/tests/cases/fourslash/quickInfoJsDocTags13.ts b/tests/cases/fourslash/quickInfoJsDocTags13.ts new file mode 100644 index 00000000000..31b3ebe0ab7 --- /dev/null +++ b/tests/cases/fourslash/quickInfoJsDocTags13.ts @@ -0,0 +1,29 @@ +/// + +// @allowJs: true +// @checkJs: true +// @filename: ./a.js +/////** +//// * First overload +//// * @overload +//// * @param {number} a +//// * @returns {void} +//// */ +//// +/////** +//// * Second overload +//// * @overload +//// * @param {string} a +//// * @returns {void} +//// */ +//// +/////** +//// * @param {string | number} a +//// * @returns {void} +//// */ +////function f(a) {} +//// +////f(/*a*/1); +////f(/*b*/""); + +verify.baselineSignatureHelp(); diff --git a/tests/cases/fourslash/quickInfoUntypedModuleImport.ts b/tests/cases/fourslash/quickInfoUntypedModuleImport.ts index 3e741b67326..a10b260cc70 100644 --- a/tests/cases/fourslash/quickInfoUntypedModuleImport.ts +++ b/tests/cases/fourslash/quickInfoUntypedModuleImport.ts @@ -15,8 +15,5 @@ verify.quickInfoIs(""); goTo.marker("foo"); verify.quickInfoIs("import foo"); - -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['foo', 'fooModule', 'fooCall'] }, - { type: "getDefinitionAtPosition", markerOrRange: ["fooModule", "foo"] }, -); +verify.baselineFindAllReferences('foo', 'fooModule', 'fooCall'); +verify.baselineGetDefinitionAtPosition("fooModule", "foo"); diff --git a/tests/cases/fourslash/refactorExtractType78.ts b/tests/cases/fourslash/refactorExtractType78.ts new file mode 100644 index 00000000000..c2b0dd8b976 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType78.ts @@ -0,0 +1,18 @@ +/// + +//// type A = { a: string } | /*1*/{ b: string } | { c: string }/*2*/ | { d: string }; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type /*RENAME*/NewType = { + b: string; +} | { + c: string; +}; + +type A = { a: string } | NewType | { d: string };`, +}); diff --git a/tests/cases/fourslash/refactorExtractType79.ts b/tests/cases/fourslash/refactorExtractType79.ts new file mode 100644 index 00000000000..8cc3503f7d1 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType79.ts @@ -0,0 +1,18 @@ +/// + +//// type B = string; +//// type C = number; +//// type A = { a: string } | /*1*/B | C/*2*/; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type B = string; +type C = number; +type /*RENAME*/NewType = B | C; + +type A = { a: string } | NewType;`, +}); diff --git a/tests/cases/fourslash/refactorExtractType80.ts b/tests/cases/fourslash/refactorExtractType80.ts new file mode 100644 index 00000000000..2650a32bca5 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType80.ts @@ -0,0 +1,24 @@ +/// + +//// type B = string; +//// type C = number; +//// +//// export function foo(x: T): T { +//// return x; +//// } + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type B = string; +type C = number; + +type /*RENAME*/NewType = B | C; + +export function foo(x: T): T { + return x; +}`, +}); diff --git a/tests/cases/fourslash/refactorExtractType81.ts b/tests/cases/fourslash/refactorExtractType81.ts new file mode 100644 index 00000000000..83e41edfeb8 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType81.ts @@ -0,0 +1,17 @@ +/// + +//// type A = { a: string } & /*1*/{ b: string } & { c: string }/*2*/; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to interface", + actionDescription: "Extract to interface", + newContent: +`interface /*RENAME*/NewType { + b: string; + c: string; +} + +type A = { a: string } & NewType;`, +}); diff --git a/tests/cases/fourslash/refactorExtractType82.ts b/tests/cases/fourslash/refactorExtractType82.ts new file mode 100644 index 00000000000..da1cdbbfca6 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType82.ts @@ -0,0 +1,20 @@ +/// + +//// type A = /*1*/{ a: string } | { b: T } | { c: string }/*2*/ | { d: string } | S; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type /*RENAME*/NewType = { + a: string; +} | { + b: T; +} | { + c: string; +}; + +type A = NewType | { d: string } | S;`, +}); diff --git a/tests/cases/fourslash/refactorExtractType83.ts b/tests/cases/fourslash/refactorExtractType83.ts new file mode 100644 index 00000000000..7a18527ae77 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType83.ts @@ -0,0 +1,20 @@ +/// + +//// type A = { a: str/*1*/ing } | { b: string } | { c: string }/*2*/; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type /*RENAME*/NewType = { + a: string; +} | { + b: string; +} | { + c: string; +}; + +type A = NewType;`, +}); diff --git a/tests/cases/fourslash/refactorExtractType84.ts b/tests/cases/fourslash/refactorExtractType84.ts new file mode 100644 index 00000000000..20551aaf1f7 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType84.ts @@ -0,0 +1,20 @@ +/// + +//// type A = { a: string /*1*/} | { b: string } | { c: string }/*2*/; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type /*RENAME*/NewType = { + a: string; +} | { + b: string; +} | { + c: string; +}; + +type A = NewType;`, +}); diff --git a/tests/cases/fourslash/refactorExtractType85.ts b/tests/cases/fourslash/refactorExtractType85.ts new file mode 100644 index 00000000000..091ec3bd773 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType85.ts @@ -0,0 +1,20 @@ +/// + +//// type A = { a: string } /*1*/| { b: string } | { c: string }/*2*/; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type /*RENAME*/NewType = { + a: string; +} | { + b: string; +} | { + c: string; +}; + +type A = NewType;`, +}); diff --git a/tests/cases/fourslash/refactorExtractType86.ts b/tests/cases/fourslash/refactorExtractType86.ts new file mode 100644 index 00000000000..520f39972ae --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType86.ts @@ -0,0 +1,20 @@ +/// + +//// type A = {/*1*/ a: string } | { b: string } | { /*2*/c: string }; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type /*RENAME*/NewType = { + a: string; +} | { + b: string; +} | { + c: string; +}; + +type A = NewType;`, +}); diff --git a/tests/cases/fourslash/refactorExtractType87.ts b/tests/cases/fourslash/refactorExtractType87.ts new file mode 100644 index 00000000000..caf501d6f3d --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType87.ts @@ -0,0 +1,18 @@ +/// + +//// type A = /*1*/{ a: string } | { b: string } |/*2*/ { c: string }; + +goTo.select("1", "2"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: +`type /*RENAME*/NewType = { + a: string; +} | { + b: string; +}; + +type A = NewType | { c: string };`, +}); diff --git a/tests/cases/fourslash/refactorExtractType88.ts b/tests/cases/fourslash/refactorExtractType88.ts new file mode 100644 index 00000000000..5658a5da59e --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType88.ts @@ -0,0 +1,22 @@ +/// + +//// type B = { b: string }; +//// type C = { c: number }; +//// +//// interface X {} + +goTo.select("1", "2"); +verify.not.refactorAvailable("Extract type"); + +goTo.select("3", "4"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to type alias", + actionDescription: "Extract to type alias", + newContent: `type B = { b: string }; +type C = { c: number }; + +type /*RENAME*/NewType = B | C; + +interface X {}`, +}); diff --git a/tests/cases/fourslash/refactorExtractType_js9.ts b/tests/cases/fourslash/refactorExtractType_js9.ts new file mode 100644 index 00000000000..8da9614fe36 --- /dev/null +++ b/tests/cases/fourslash/refactorExtractType_js9.ts @@ -0,0 +1,20 @@ +/// + +// @allowJs: true +// @Filename: a.js +//// /** @type { /*a*/string | number/*b*/ | boolean } */ +//// var x; + +goTo.file('a.js') +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract type", + actionName: "Extract to typedef", + actionDescription: "Extract to typedef", + newContent: `/** + * @typedef {string | number} /*RENAME*/NewType + */ + +/** @type { NewType | boolean } */ +var x;`, +}); diff --git a/tests/cases/fourslash/refactorInferFunctionReturnType24.ts b/tests/cases/fourslash/refactorInferFunctionReturnType24.ts new file mode 100644 index 00000000000..69c58e14cbc --- /dev/null +++ b/tests/cases/fourslash/refactorInferFunctionReturnType24.ts @@ -0,0 +1,10 @@ +/// + +////let x = 10;/*a*//*b*/ +//// +////function func() { +//// return 10; +////} + +goTo.select("a", "b"); +verify.not.refactorAvailable("Infer function return type"); diff --git a/tests/cases/fourslash/renameDefaultImport.ts b/tests/cases/fourslash/renameDefaultImport.ts index f977ee10015..ec7f0fc8239 100644 --- a/tests/cases/fourslash/renameDefaultImport.ts +++ b/tests/cases/fourslash/renameDefaultImport.ts @@ -13,8 +13,6 @@ const [CDef, C, B0Def, B0, B1] = test.ranges();; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2'] }, - { type: "findRenameLocations", markerOrRange: [C, B0, B1] }, - { type: "documentHighlights", markerOrRange: "1" }, -); +verify.baselineFindAllReferences('1', '2'); +verify.baselineRename([C, B0, B1]); +verify.baselineDocumentHighlights("1"); \ No newline at end of file diff --git a/tests/cases/fourslash/renameDefaultImportDifferentName.ts b/tests/cases/fourslash/renameDefaultImportDifferentName.ts index e3f5ddc6fb4..7315a928363 100644 --- a/tests/cases/fourslash/renameDefaultImportDifferentName.ts +++ b/tests/cases/fourslash/renameDefaultImportDifferentName.ts @@ -14,9 +14,7 @@ const [CDef, C, B0Def, B0, B1] = test.ranges(); const bRanges = [B0, B1]; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2'] }, - { type: "findRenameLocations", markerOrRange: C }, - { type: "findRenameLocations", markerOrRange: bRanges }, - { type: "documentHighlights", markerOrRange: "1" }, -); +verify.baselineFindAllReferences('1', '2'); +verify.baselineRename(C); +verify.baselineRename(bRanges); +verify.baselineDocumentHighlights("1"); diff --git a/tests/cases/fourslash/renameImportAndExportInDiffFiles.ts b/tests/cases/fourslash/renameImportAndExportInDiffFiles.ts index 5a39e1cd0b4..f0b6b87482b 100644 --- a/tests/cases/fourslash/renameImportAndExportInDiffFiles.ts +++ b/tests/cases/fourslash/renameImportAndExportInDiffFiles.ts @@ -9,7 +9,5 @@ const [r0Def, r0, r1Def, r1, r2Def, r2] = test.ranges(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2', '3'] }, - { type: "findRenameLocations", markerOrRange: [r0, r1, r2] }, -); +verify.baselineFindAllReferences('1', '2', '3'); +verify.baselineRename([r0, r1, r2]); \ No newline at end of file diff --git a/tests/cases/fourslash/renameImportOfExportEquals.ts b/tests/cases/fourslash/renameImportOfExportEquals.ts index d13e66f12ea..f1bcfb8d552 100644 --- a/tests/cases/fourslash/renameImportOfExportEquals.ts +++ b/tests/cases/fourslash/renameImportOfExportEquals.ts @@ -21,11 +21,9 @@ const aRanges = [a0, a1]; const bRanges = [b0, b1]; const xRanges = [x0, x1]; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['N', 'a', 'b', 'x'] }, - { type: "findRenameLocations", markerOrRange: nRanges }, - { type: "findRenameLocations", markerOrRange: a0 }, - { type: "findRenameLocations", markerOrRange: a1 }, - { type: "findRenameLocations", markerOrRange: bRanges }, - { type: "findRenameLocations", markerOrRange: xRanges }, -); +verify.baselineFindAllReferences('N', 'a', 'b', 'x'); +verify.baselineRename(nRanges); +verify.baselineRename(a0); +verify.baselineRename(a1); +verify.baselineRename(bRanges); +verify.baselineRename(xRanges); \ No newline at end of file diff --git a/tests/cases/fourslash/renameImportOfExportEquals2.ts b/tests/cases/fourslash/renameImportOfExportEquals2.ts index 30d031dbc57..0508dad037b 100644 --- a/tests/cases/fourslash/renameImportOfExportEquals2.ts +++ b/tests/cases/fourslash/renameImportOfExportEquals2.ts @@ -16,7 +16,5 @@ ////} verify.noErrors(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ["N", "O", "P", "Q"] }, - { type: "findRenameLocations", rangeText: ["N", "O", "P", "Q"] }, -); +verify.baselineFindAllReferences("N", "O", "P", "Q"); +verify.baselineRenameAtRangesWithText(["N", "O", "P", "Q"]); \ No newline at end of file diff --git a/tests/cases/fourslash/renameImportOfReExport.ts b/tests/cases/fourslash/renameImportOfReExport.ts index a7ee2e2dc26..7fa2401e392 100644 --- a/tests/cases/fourslash/renameImportOfReExport.ts +++ b/tests/cases/fourslash/renameImportOfReExport.ts @@ -17,9 +17,7 @@ verify.noErrors(); const ranges = test.ranges(); const [r0Def, r0, r1Def, r1, r2Def, r2, r3] = ranges; const importRanges = [r2, r3]; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2', '3'] }, - { type: "findRenameLocations", markerOrRange: r0 }, - { type: "findRenameLocations", markerOrRange: r1 }, - { type: "findRenameLocations", markerOrRange: importRanges }, -); +verify.baselineFindAllReferences('1', '2', '3'); +verify.baselineRename(r0); +verify.baselineRename(r1); +verify.baselineRename(importRanges); \ No newline at end of file diff --git a/tests/cases/fourslash/renameImportOfReExport2.ts b/tests/cases/fourslash/renameImportOfReExport2.ts index c27d695253f..8946379f9e3 100644 --- a/tests/cases/fourslash/renameImportOfReExport2.ts +++ b/tests/cases/fourslash/renameImportOfReExport2.ts @@ -18,9 +18,7 @@ const cRanges = ranges.get("C"); const dRanges = ranges.get("D"); const [d0, d1, d2] = dRanges; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2', '3'] }, - { type: "findRenameLocations", markerOrRange: cRanges }, - { type: "findRenameLocations", markerOrRange: d0 }, - { type: "findRenameLocations", markerOrRange: [d1, d2] }, -); +verify.baselineFindAllReferences('1', '2', '3'); +verify.baselineRename(cRanges); +verify.baselineRename(d0); +verify.baselineRename([d1, d2]); \ No newline at end of file diff --git a/tests/cases/fourslash/renameJsExports01.ts b/tests/cases/fourslash/renameJsExports01.ts index 425df3781ee..95ea21840ae 100644 --- a/tests/cases/fourslash/renameJsExports01.ts +++ b/tests/cases/fourslash/renameJsExports01.ts @@ -8,7 +8,5 @@ ////var mod = require('./a'); ////var t = mod./*1*/[|area|](10); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: '1' }, - { type: "findRenameLocations", rangeText: "area" }, -); \ No newline at end of file +verify.baselineFindAllReferences('1'); +verify.baselineRenameAtRangesWithText("area"); \ No newline at end of file diff --git a/tests/cases/fourslash/server/autoImportRelativePathToMonorepoPackage.ts b/tests/cases/fourslash/server/autoImportRelativePathToMonorepoPackage.ts new file mode 100644 index 00000000000..5b03927647c --- /dev/null +++ b/tests/cases/fourslash/server/autoImportRelativePathToMonorepoPackage.ts @@ -0,0 +1,27 @@ +/// + +// @Filename: /tsconfig.json +//// { +//// "compilerOptions": { +//// "module": "nodenext" +//// } +//// } + +// @Filename: /packages/app/dist/index.d.ts +//// import {} from "utils"; +//// export const app: number; + +// @Filename: /packages/utils/package.json +//// { "name": "utils", "version": "1.0.0", "main": "dist/index.js" } + +// @Filename: /packages/utils/dist/index.d.ts +//// export const x: number; + +// @link: /packages/utils -> /packages/app/node_modules/utils + +// @Filename: /script.ts +//// import {} from "./packages/app/dist/index.js"; +//// x/**/ + +goTo.marker(""); +verify.importFixModuleSpecifiers("", ["./packages/utils/dist/index.js"]); diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts index 33df2bc3307..d192c92a846 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts @@ -76,9 +76,7 @@ goTo.file("/index.ts"); verify.getEmitOutput(["/dist/index.js", "/dist/index.d.ts.map", "/dist/index.d.ts"]); -verify.baselineCommands( - { type: "goToImplementation", markerOrRange: "1" }, // getImplementationAtPosition - { type: "goToType", markerOrRange: "1" }, // getTypeDefinitionAtPosition, - { type: "goToDefinition", markerOrRange: "1" }, // getDefinitionAndBoundSpan - { type: "getDefinitionAtPosition", markerOrRange: "1" }, // getDefinitionAtPosition -); \ No newline at end of file +verify.baselineGoToImplementation("1");// getImplementationAtPosition +verify.baselineGoToType("1");// getTypeDefinitionAtPosition +verify.baselineGoToDefinition("1");// getDefinitionAndBoundSpan +verify.baselineGetDefinitionAtPosition("1"); // getDefinitionAtPosition \ No newline at end of file diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts index 1a9ff5f0f14..d45861f1bcf 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts @@ -77,9 +77,7 @@ goTo.file("/index.ts"); verify.getEmitOutput(["/dist/index.js", "/dist/index.d.ts.map", "/dist/index.d.ts"]); -verify.baselineCommands( - { type: "goToImplementation", markerOrRange: "1" }, // getImplementationAtPosition - { type: "goToType", markerOrRange: "1" }, // getTypeDefinitionAtPosition - { type: "goToDefinition", markerOrRange: "1" }, // getDefinitionAndBoundSpan - { type: "getDefinitionAtPosition", markerOrRange: "1" }, // getDefinitionAtPosition -); \ No newline at end of file +verify.baselineGoToImplementation("1");// getImplementationAtPosition +verify.baselineGoToType("1");// getTypeDefinitionAtPosition +verify.baselineGoToDefinition("1");// getDefinitionAndBoundSpan +verify.baselineGetDefinitionAtPosition("1"); // getDefinitionAtPosition \ No newline at end of file diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts index 1286b95b2bd..89e44897191 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts @@ -75,9 +75,7 @@ goTo.file("/index.ts"); verify.getEmitOutput(["/dist/index.js", "/dist/index.d.ts.map", "/dist/index.d.ts"]); -verify.baselineCommands( - { type: "goToImplementation", markerOrRange: "1" }, // getImplementationAtPosition - { type: "goToType", markerOrRange: "1" }, // getTypeDefinitionAtPosition - { type: "goToDefinition", markerOrRange: "1" }, // getDefinitionAndBoundSpan - { type: "getDefinitionAtPosition", markerOrRange: "1" }, // getDefinitionAtPosition -); +verify.baselineGoToImplementation("1");// getImplementationAtPosition +verify.baselineGoToType("1");// getTypeDefinitionAtPosition +verify.baselineGoToDefinition("1");// getDefinitionAndBoundSpan +verify.baselineGetDefinitionAtPosition("1"); // getDefinitionAtPosition \ No newline at end of file diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts index 6a3476c373b..94cecd15bf4 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts @@ -80,9 +80,7 @@ goTo.file("/index.ts"); verify.getEmitOutput(["/dist/index.js.map", "/dist/index.js", "/dist/index.d.ts.map", "/dist/index.d.ts"]); -verify.baselineCommands( - { type: "goToImplementation", markerOrRange: "1" }, // getImplementationAtPosition - { type: "goToType", markerOrRange: "1" }, // getTypeDefinitionAtPosition - { type: "goToDefinition", markerOrRange: "1" }, // getDefinitionAndBoundSpan - { type: "getDefinitionAtPosition", markerOrRange: "1" }, // getDefinitionAtPosition -); +verify.baselineGoToImplementation("1");// getImplementationAtPosition +verify.baselineGoToType("1");// getTypeDefinitionAtPosition +verify.baselineGoToDefinition("1");// getDefinitionAndBoundSpan +verify.baselineGetDefinitionAtPosition("1"); // getDefinitionAtPosition diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts index faeb064b62f..05366f5fe56 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts @@ -76,9 +76,7 @@ goTo.file("/index.ts"); verify.getEmitOutput(["/dist/index.js", "/dist/index.d.ts.map", "/dist/index.d.ts"]); -verify.baselineCommands( - { type: "goToImplementation", markerOrRange: "1" }, // getImplementationAtPosition - { type: "goToType", markerOrRange: "1" }, // getTypeDefinitionAtPosition - { type: "goToDefinition", markerOrRange: "1" }, // getDefinitionAndBoundSpan - { type: "getDefinitionAtPosition", markerOrRange: "1" }, // getDefinitionAtPosition -); +verify.baselineGoToImplementation("1");// getImplementationAtPosition +verify.baselineGoToType("1");// getTypeDefinitionAtPosition +verify.baselineGoToDefinition("1");// getDefinitionAndBoundSpan +verify.baselineGetDefinitionAtPosition("1"); // getDefinitionAtPosition \ No newline at end of file diff --git a/tests/cases/fourslash/server/goToSource16_callbackParamDifferentFile.ts b/tests/cases/fourslash/server/goToSource16_callbackParamDifferentFile.ts new file mode 100644 index 00000000000..39f205c6551 --- /dev/null +++ b/tests/cases/fourslash/server/goToSource16_callbackParamDifferentFile.ts @@ -0,0 +1,41 @@ +/// + +// @moduleResolution: node + +// This is just modified repro to ensure we are resolving module specifier thats not already present in the file + +// @Filename: /node_modules/@types/yargs/package.json +//// { +//// "name": "@types/yargs", +//// "version": "1.0.0", +//// "types": "./index.d.ts" +//// } + +// @Filename: /node_modules/@types/yargs/callback.d.ts +//// export declare class Yargs { positional(): Yargs; } + +// @Filename: /node_modules/@types/yargs/index.d.ts +//// import { Yargs } from "./callback"; +//// export declare function command(command: string, cb: (yargs: Yargs) => void): void; + +// @Filename: /node_modules/yargs/package.json +//// { +//// "name": "yargs", +//// "version": "1.0.0", +//// "main": "index.js" +//// } + +// @Filename: /node_modules/yargs/callback.js +//// export class Yargs { positional() { } } + +// @Filename: /node_modules/yargs/index.js +//// import { Yargs } from "./callback"; +//// export function command(cmd, cb) { cb(Yargs) } + +// @Filename: /index.ts +//// import { command } from "yargs"; +//// command("foo", yargs => { +//// yargs.[|/*start*/positional|](); +//// }); + +verify.baselineGoToSourceDefinition("start"); diff --git a/tests/cases/fourslash/server/goToSource17_AddsFileToProject.ts b/tests/cases/fourslash/server/goToSource17_AddsFileToProject.ts new file mode 100644 index 00000000000..f222452e89b --- /dev/null +++ b/tests/cases/fourslash/server/goToSource17_AddsFileToProject.ts @@ -0,0 +1,42 @@ +/// + +// @moduleResolution: node + +// This is just made up repro where the js file will be added to auxillary project because its not already part of the project +// Where in js file doesnt already have import to the corresponding js file hence will be added to project at later on stage + +// @Filename: /node_modules/@types/yargs/package.json +//// { +//// "name": "@types/yargs", +//// "version": "1.0.0", +//// "types": "./index.d.ts" +//// } + +// @Filename: /node_modules/@types/yargs/callback.d.ts +//// export declare class Yargs { positional(): Yargs; } + +// @Filename: /node_modules/@types/yargs/index.d.ts +//// import { Yargs } from "./callback"; +//// export declare function command(command: string, cb: (yargs: Yargs) => void): void; + +// @Filename: /node_modules/yargs/package.json +//// { +//// "name": "yargs", +//// "version": "1.0.0", +//// "main": "index.js" +//// } + +// @Filename: /node_modules/yargs/callback.js +//// export class Yargs { positional() { } } + +// @Filename: /node_modules/yargs/index.js +//// // Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage +//// export function command(cmd, cb) { cb(Yargs) } + +// @Filename: /index.ts +//// import { command } from "yargs"; +//// command("foo", yargs => { +//// yargs.[|/*start*/positional|](); +//// }); + +verify.baselineGoToSourceDefinition("start"); diff --git a/tests/cases/fourslash/server/goToSource18_reusedFromDifferentFolder.ts b/tests/cases/fourslash/server/goToSource18_reusedFromDifferentFolder.ts new file mode 100644 index 00000000000..e5c40563171 --- /dev/null +++ b/tests/cases/fourslash/server/goToSource18_reusedFromDifferentFolder.ts @@ -0,0 +1,46 @@ +/// + +// @moduleResolution: node + +// This is just made up repro where the js file will be added to auxillary project because its not already part of the project +// Where in js file doesnt already have import to the corresponding js file hence will be added to project at later on stage + +// @Filename: /node_modules/@types/yargs/package.json +//// { +//// "name": "@types/yargs", +//// "version": "1.0.0", +//// "types": "./index.d.ts" +//// } + +// @Filename: /node_modules/@types/yargs/callback.d.ts +//// export declare class Yargs { positional(): Yargs; } + +// @Filename: /node_modules/@types/yargs/index.d.ts +//// import { Yargs } from "./callback"; +//// export declare function command(command: string, cb: (yargs: Yargs) => void): void; + +// @Filename: /node_modules/yargs/package.json +//// { +//// "name": "yargs", +//// "version": "1.0.0", +//// "main": "index.js" +//// } + +// @Filename: /node_modules/yargs/callback.js +//// export class Yargs { positional() { } } + +// @Filename: /node_modules/yargs/index.js +//// // Specifically didnt have ./callback import to ensure that resolving module sepcifier adds the file to project at later stage +//// export function command(cmd, cb) { cb(Yargs) } + +// @Filename: /folder/random.ts +//// import { Yargs } from "yargs/callback"; + +// @Filename: /some/index.ts +//// import { random } from "../folder/random"; +//// import { command } from "yargs"; +//// command("foo", yargs => { +//// yargs.[|/*start*/positional|](); +//// }); + +verify.baselineGoToSourceDefinition("start"); diff --git a/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts b/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts index b70485aedcc..63e64ce0b91 100644 --- a/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts +++ b/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts @@ -13,7 +13,5 @@ //// import { a } from './a'; //// [|a/*start*/|] -verify.baselineCommands( - { type: "goToSourceDefinition", markerOrRange: "start" }, - { type: "goToDefinition", markerOrRange: "start" }, -); +verify.baselineGoToSourceDefinition("start"); +verify.baselineGoToDefinition("start"); diff --git a/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts b/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts index d3bc2852d79..304167a1502 100644 --- a/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts +++ b/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts @@ -20,8 +20,6 @@ //// import { a } from 'foo/a'; //// [|a/*start*/|] -verify.baselineCommands( - { type: "goToSourceDefinition", markerOrRange: "start" }, - { type: "goToDefinition", markerOrRange: "start" }, -); +verify.baselineGoToSourceDefinition("start"); +verify.baselineGoToDefinition("start"); diff --git a/tests/cases/fourslash/transitiveExportImports.ts b/tests/cases/fourslash/transitiveExportImports.ts index c48beac1687..33af6d354a5 100644 --- a/tests/cases/fourslash/transitiveExportImports.ts +++ b/tests/cases/fourslash/transitiveExportImports.ts @@ -21,9 +21,7 @@ const aRanges = [a0, a1]; const bRanges = [b0, c2]; const cRanges = [c0, c1]; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['1', '2', '3', '4'] }, - { type: "findRenameLocations", markerOrRange: aRanges }, - { type: "findRenameLocations", markerOrRange: bRanges }, - { type: "findRenameLocations", markerOrRange: cRanges }, -); +verify.baselineFindAllReferences('1', '2', '3', '4'); +verify.baselineRename(aRanges); +verify.baselineRename(bRanges); +verify.baselineRename(cRanges); \ No newline at end of file diff --git a/tests/cases/fourslash/transitiveExportImports2.ts b/tests/cases/fourslash/transitiveExportImports2.ts index f028ffe1344..31dbd3cdc87 100644 --- a/tests/cases/fourslash/transitiveExportImports2.ts +++ b/tests/cases/fourslash/transitiveExportImports2.ts @@ -19,9 +19,7 @@ const aRanges = [A0, A1]; const bRanges = [B0, B1]; const cRanges = [B2]; -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ["A", "B", "C"] }, - { type: "findRenameLocations", markerOrRange: aRanges }, - { type: "findRenameLocations", markerOrRange: [B0, B1] }, - { type: "findRenameLocations", markerOrRange: B2 }, -); \ No newline at end of file +verify.baselineFindAllReferences("A", "B", "C"); +verify.baselineRename(aRanges); +verify.baselineRename([B0, B1]); +verify.baselineRename(B2); \ No newline at end of file diff --git a/tests/cases/fourslash/transitiveExportImports3.ts b/tests/cases/fourslash/transitiveExportImports3.ts index a1b5555dcd3..15e64f7add5 100644 --- a/tests/cases/fourslash/transitiveExportImports3.ts +++ b/tests/cases/fourslash/transitiveExportImports3.ts @@ -11,10 +11,8 @@ verify.noErrors(); const [f0Def, f0, f1Def, f1, g0, f2Def, f2, g1Def, g1] = test.ranges(); -verify.baselineCommands( - { type: "findAllReferences", markerOrRange: ['f', 'g0', 'g1', 'f2'] }, - { type: "findRenameLocations", markerOrRange: [f0, f1] }, - { type: "findRenameLocations", markerOrRange: f2 }, - { type: "findRenameLocations", markerOrRange: g0 }, - { type: "findRenameLocations", markerOrRange: g1 }, -); +verify.baselineFindAllReferences('f', 'g0', 'g1', 'f2'); +verify.baselineRename([f0, f1]); +verify.baselineRename(f2); +verify.baselineRename(g0); +verify.baselineRename(g1); diff --git a/tests/projects/amdModulesWithOut/app/file3.ts b/tests/projects/amdModulesWithOut/app/file3.ts deleted file mode 100644 index d98a62894c8..00000000000 --- a/tests/projects/amdModulesWithOut/app/file3.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const z = 30; -import { x } from "file1"; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/app/file4.ts b/tests/projects/amdModulesWithOut/app/file4.ts deleted file mode 100644 index 3d2e7532a27..00000000000 --- a/tests/projects/amdModulesWithOut/app/file4.ts +++ /dev/null @@ -1 +0,0 @@ -const myVar = 30; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/app/tsconfig.json b/tests/projects/amdModulesWithOut/app/tsconfig.json deleted file mode 100644 index 46ac3110ff8..00000000000 --- a/tests/projects/amdModulesWithOut/app/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] -} \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file0.ts b/tests/projects/amdModulesWithOut/lib/file0.ts deleted file mode 100644 index 0b36e4bb48b..00000000000 --- a/tests/projects/amdModulesWithOut/lib/file0.ts +++ /dev/null @@ -1 +0,0 @@ -const myGlob = 20; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file1.ts b/tests/projects/amdModulesWithOut/lib/file1.ts deleted file mode 100644 index a65e4235153..00000000000 --- a/tests/projects/amdModulesWithOut/lib/file1.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file2.ts b/tests/projects/amdModulesWithOut/lib/file2.ts deleted file mode 100644 index 116e118d1ef..00000000000 --- a/tests/projects/amdModulesWithOut/lib/file2.ts +++ /dev/null @@ -1 +0,0 @@ -export const y = 20; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/global.ts b/tests/projects/amdModulesWithOut/lib/global.ts deleted file mode 100644 index 8dcb253c94d..00000000000 --- a/tests/projects/amdModulesWithOut/lib/global.ts +++ /dev/null @@ -1 +0,0 @@ -const globalConst = 10; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/tsconfig.json b/tests/projects/amdModulesWithOut/lib/tsconfig.json deleted file mode 100644 index ae3ff0cf3a7..00000000000 --- a/tests/projects/amdModulesWithOut/lib/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - -} \ No newline at end of file diff --git a/tests/projects/container/compositeExec/index.ts b/tests/projects/container/compositeExec/index.ts deleted file mode 100644 index 4d3216676fb..00000000000 --- a/tests/projects/container/compositeExec/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -namespace container { - export function getMyConst() { - return myConst; - } -} \ No newline at end of file diff --git a/tests/projects/container/compositeExec/tsconfig.json b/tests/projects/container/compositeExec/tsconfig.json deleted file mode 100644 index 59709a20605..00000000000 --- a/tests/projects/container/compositeExec/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] -} diff --git a/tests/projects/container/exec/index.ts b/tests/projects/container/exec/index.ts deleted file mode 100644 index 4d3216676fb..00000000000 --- a/tests/projects/container/exec/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -namespace container { - export function getMyConst() { - return myConst; - } -} \ No newline at end of file diff --git a/tests/projects/container/exec/tsconfig.json b/tests/projects/container/exec/tsconfig.json deleted file mode 100644 index 1e2bba01f4f..00000000000 --- a/tests/projects/container/exec/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] -} diff --git a/tests/projects/container/lib/index.ts b/tests/projects/container/lib/index.ts deleted file mode 100644 index c89a3a3d289..00000000000 --- a/tests/projects/container/lib/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -namespace container { - export const myConst = 30; -} \ No newline at end of file diff --git a/tests/projects/container/lib/tsconfig.json b/tests/projects/container/lib/tsconfig.json deleted file mode 100644 index 55481caa9e8..00000000000 --- a/tests/projects/container/lib/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] -} diff --git a/tests/projects/container/tsconfig.json b/tests/projects/container/tsconfig.json deleted file mode 100644 index 854c4029fd9..00000000000 --- a/tests/projects/container/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder/index.ts b/tests/projects/containerOnlyReferenced/src/folder/index.ts deleted file mode 100644 index a65e4235153..00000000000 --- a/tests/projects/containerOnlyReferenced/src/folder/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder/tsconfig.json b/tests/projects/containerOnlyReferenced/src/folder/tsconfig.json deleted file mode 100644 index d54f4070fe9..00000000000 --- a/tests/projects/containerOnlyReferenced/src/folder/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder2/index.ts b/tests/projects/containerOnlyReferenced/src/folder2/index.ts deleted file mode 100644 index a65e4235153..00000000000 --- a/tests/projects/containerOnlyReferenced/src/folder2/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder2/tsconfig.json b/tests/projects/containerOnlyReferenced/src/folder2/tsconfig.json deleted file mode 100644 index d54f4070fe9..00000000000 --- a/tests/projects/containerOnlyReferenced/src/folder2/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/tsconfig.json b/tests/projects/containerOnlyReferenced/src/tsconfig.json deleted file mode 100644 index 4d67b0f8bea..00000000000 --- a/tests/projects/containerOnlyReferenced/src/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./folder" }, - { "path": "./folder2"} - ] - } \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/tests/index.ts b/tests/projects/containerOnlyReferenced/tests/index.ts deleted file mode 100644 index a65e4235153..00000000000 --- a/tests/projects/containerOnlyReferenced/tests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/tests/tsconfig.json b/tests/projects/containerOnlyReferenced/tests/tsconfig.json deleted file mode 100644 index 987385d9745..00000000000 --- a/tests/projects/containerOnlyReferenced/tests/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "../src" } - ] -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/tsconfig.json b/tests/projects/containerOnlyReferenced/tsconfig.json deleted file mode 100644 index 28ea2a4385e..00000000000 --- a/tests/projects/containerOnlyReferenced/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./src" }, - { "path": "./tests"} - ] -} \ No newline at end of file diff --git a/tests/projects/demo/animals/animal.ts b/tests/projects/demo/animals/animal.ts deleted file mode 100644 index 30727d46489..00000000000 --- a/tests/projects/demo/animals/animal.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} diff --git a/tests/projects/demo/animals/dog.ts b/tests/projects/demo/animals/dog.ts deleted file mode 100644 index 3e51978e7f0..00000000000 --- a/tests/projects/demo/animals/dog.ts +++ /dev/null @@ -1,18 +0,0 @@ -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - diff --git a/tests/projects/demo/animals/index.ts b/tests/projects/demo/animals/index.ts deleted file mode 100644 index 9d4734f2eb7..00000000000 --- a/tests/projects/demo/animals/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; diff --git a/tests/projects/demo/animals/tsconfig.json b/tests/projects/demo/animals/tsconfig.json deleted file mode 100644 index f6b2cc49e44..00000000000 --- a/tests/projects/demo/animals/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} diff --git a/tests/projects/demo/core/tsconfig.json b/tests/projects/demo/core/tsconfig.json deleted file mode 100644 index 9b381b9a5cf..00000000000 --- a/tests/projects/demo/core/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} \ No newline at end of file diff --git a/tests/projects/demo/core/utilities.ts b/tests/projects/demo/core/utilities.ts deleted file mode 100644 index 0988afaf4c3..00000000000 --- a/tests/projects/demo/core/utilities.ts +++ /dev/null @@ -1,10 +0,0 @@ - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - diff --git a/tests/projects/demo/tsconfig-base.json b/tests/projects/demo/tsconfig-base.json deleted file mode 100644 index e5d5ba5c7ce..00000000000 --- a/tests/projects/demo/tsconfig-base.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/demo/tsconfig.json b/tests/projects/demo/tsconfig.json deleted file mode 100644 index a140d4ef8e2..00000000000 --- a/tests/projects/demo/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] -} \ No newline at end of file diff --git a/tests/projects/demo/zoo/tsconfig.json b/tests/projects/demo/zoo/tsconfig.json deleted file mode 100644 index 318c0dc06b6..00000000000 --- a/tests/projects/demo/zoo/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} \ No newline at end of file diff --git a/tests/projects/demo/zoo/zoo.ts b/tests/projects/demo/zoo/zoo.ts deleted file mode 100644 index 8958a65aac1..00000000000 --- a/tests/projects/demo/zoo/zoo.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - diff --git a/tests/projects/emitDeclarationOnly/src/a.ts b/tests/projects/emitDeclarationOnly/src/a.ts deleted file mode 100644 index 330b4fb38d4..00000000000 --- a/tests/projects/emitDeclarationOnly/src/a.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { B } from "./b"; - -export interface A { - b: B; -} diff --git a/tests/projects/emitDeclarationOnly/src/b.ts b/tests/projects/emitDeclarationOnly/src/b.ts deleted file mode 100644 index 80f920a0e9d..00000000000 --- a/tests/projects/emitDeclarationOnly/src/b.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { C } from "./c"; - -export interface B { - b: C; -} diff --git a/tests/projects/emitDeclarationOnly/src/c.ts b/tests/projects/emitDeclarationOnly/src/c.ts deleted file mode 100644 index b6b6e67dada..00000000000 --- a/tests/projects/emitDeclarationOnly/src/c.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { A } from "./a"; - -export interface C { - a: A; -} diff --git a/tests/projects/emitDeclarationOnly/src/index.ts b/tests/projects/emitDeclarationOnly/src/index.ts deleted file mode 100644 index c6a5229cdb9..00000000000 --- a/tests/projects/emitDeclarationOnly/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; diff --git a/tests/projects/emitDeclarationOnly/tsconfig.json b/tests/projects/emitDeclarationOnly/tsconfig.json deleted file mode 100644 index 334d67116d9..00000000000 --- a/tests/projects/emitDeclarationOnly/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - - "alwaysStrict": true, - "rootDir": "src", - "emitDeclarationOnly": true - } -} diff --git a/tests/projects/empty-files/core/index.ts b/tests/projects/empty-files/core/index.ts deleted file mode 100644 index 3da69271e97..00000000000 --- a/tests/projects/empty-files/core/index.ts +++ /dev/null @@ -1 +0,0 @@ -export function multiply(a: number, b: number) { return a * b; } diff --git a/tests/projects/empty-files/core/tsconfig.json b/tests/projects/empty-files/core/tsconfig.json deleted file mode 100644 index bbbd3aa889f..00000000000 --- a/tests/projects/empty-files/core/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} diff --git a/tests/projects/empty-files/no-references/tsconfig.json b/tests/projects/empty-files/no-references/tsconfig.json deleted file mode 100644 index 719a64cff48..00000000000 --- a/tests/projects/empty-files/no-references/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "references": [], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} diff --git a/tests/projects/empty-files/with-references/tsconfig.json b/tests/projects/empty-files/with-references/tsconfig.json deleted file mode 100644 index d4179967205..00000000000 --- a/tests/projects/empty-files/with-references/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "references": [ - { "path": "../core" }, - ], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} diff --git a/tests/projects/inferredTypeFromTransitiveModule/bar.ts b/tests/projects/inferredTypeFromTransitiveModule/bar.ts deleted file mode 100644 index 84efa817b01..00000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/bar.ts +++ /dev/null @@ -1,9 +0,0 @@ -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); \ No newline at end of file diff --git a/tests/projects/inferredTypeFromTransitiveModule/bundling.ts b/tests/projects/inferredTypeFromTransitiveModule/bundling.ts deleted file mode 100644 index dc7fd0d1864..00000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/bundling.ts +++ /dev/null @@ -1,11 +0,0 @@ -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} diff --git a/tests/projects/inferredTypeFromTransitiveModule/global.d.ts b/tests/projects/inferredTypeFromTransitiveModule/global.d.ts deleted file mode 100644 index 0386ed66f70..00000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/global.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} \ No newline at end of file diff --git a/tests/projects/inferredTypeFromTransitiveModule/index.ts b/tests/projects/inferredTypeFromTransitiveModule/index.ts deleted file mode 100644 index f5adaa5eb2a..00000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); \ No newline at end of file diff --git a/tests/projects/inferredTypeFromTransitiveModule/lazyIndex.ts b/tests/projects/inferredTypeFromTransitiveModule/lazyIndex.ts deleted file mode 100644 index 1b1a7743ed7..00000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/lazyIndex.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as bar } from './bar'; diff --git a/tests/projects/inferredTypeFromTransitiveModule/tsconfig.json b/tests/projects/inferredTypeFromTransitiveModule/tsconfig.json deleted file mode 100644 index f29cb38d3fb..00000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true - } -} \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/src/globals.d.ts b/tests/projects/lateBoundSymbol/src/globals.d.ts deleted file mode 100644 index 8100e5859af..00000000000 --- a/tests/projects/lateBoundSymbol/src/globals.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -interface SymbolConstructor { - (description?: string | number): symbol; -} -declare var Symbol: SymbolConstructor; \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/src/hkt.ts b/tests/projects/lateBoundSymbol/src/hkt.ts deleted file mode 100644 index 2b844a9ab79..00000000000 --- a/tests/projects/lateBoundSymbol/src/hkt.ts +++ /dev/null @@ -1 +0,0 @@ -export interface HKT { } \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/src/main.ts b/tests/projects/lateBoundSymbol/src/main.ts deleted file mode 100644 index e5b5fcc6daa..00000000000 --- a/tests/projects/lateBoundSymbol/src/main.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} -const x = 10; -type A = HKT[typeof sym]; \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/tsconfig.json b/tests/projects/lateBoundSymbol/tsconfig.json deleted file mode 100644 index 6146e91d1f3..00000000000 --- a/tests/projects/lateBoundSymbol/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "rootDir": "src", - "incremental": true - } -} \ No newline at end of file diff --git a/tests/projects/missingExtendedConfig/tsconfig.first.json b/tests/projects/missingExtendedConfig/tsconfig.first.json deleted file mode 100644 index 98a964017d4..00000000000 --- a/tests/projects/missingExtendedConfig/tsconfig.first.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/missingExtendedConfig/tsconfig.json b/tests/projects/missingExtendedConfig/tsconfig.json deleted file mode 100644 index a14558f41e4..00000000000 --- a/tests/projects/missingExtendedConfig/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./tsconfig.first.json" }, - { "path": "./tsconfig.second.json" } - ] -} \ No newline at end of file diff --git a/tests/projects/missingExtendedConfig/tsconfig.second.json b/tests/projects/missingExtendedConfig/tsconfig.second.json deleted file mode 100644 index 98a964017d4..00000000000 --- a/tests/projects/missingExtendedConfig/tsconfig.second.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/noEmitOnError/shared/types/db.ts b/tests/projects/noEmitOnError/shared/types/db.ts deleted file mode 100644 index 72a8b9e7f56..00000000000 --- a/tests/projects/noEmitOnError/shared/types/db.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface A { - name: string; -} \ No newline at end of file diff --git a/tests/projects/noEmitOnError/src/main.ts b/tests/projects/noEmitOnError/src/main.ts deleted file mode 100644 index e32ff40f442..00000000000 --- a/tests/projects/noEmitOnError/src/main.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; \ No newline at end of file diff --git a/tests/projects/noEmitOnError/src/other.ts b/tests/projects/noEmitOnError/src/other.ts deleted file mode 100644 index a39fdb0a278..00000000000 --- a/tests/projects/noEmitOnError/src/other.ts +++ /dev/null @@ -1,2 +0,0 @@ -console.log("hi"); -export { } \ No newline at end of file diff --git a/tests/projects/noEmitOnError/tsconfig.json b/tests/projects/noEmitOnError/tsconfig.json deleted file mode 100644 index 581e1ed5e24..00000000000 --- a/tests/projects/noEmitOnError/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} diff --git a/tests/projects/outfile-concat/first/first_PART1.ts b/tests/projects/outfile-concat/first/first_PART1.ts deleted file mode 100644 index b8810033aaa..00000000000 --- a/tests/projects/outfile-concat/first/first_PART1.ts +++ /dev/null @@ -1,11 +0,0 @@ -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); diff --git a/tests/projects/outfile-concat/first/first_part2.ts b/tests/projects/outfile-concat/first/first_part2.ts deleted file mode 100644 index bd60d3eba9f..00000000000 --- a/tests/projects/outfile-concat/first/first_part2.ts +++ /dev/null @@ -1 +0,0 @@ -console.log(f()); diff --git a/tests/projects/outfile-concat/first/first_part3.ts b/tests/projects/outfile-concat/first/first_part3.ts deleted file mode 100644 index 6f497fc490a..00000000000 --- a/tests/projects/outfile-concat/first/first_part3.ts +++ /dev/null @@ -1,3 +0,0 @@ -function f() { - return "JS does hoists"; -} \ No newline at end of file diff --git a/tests/projects/outfile-concat/first/tsconfig.json b/tests/projects/outfile-concat/first/tsconfig.json deleted file mode 100644 index 28389ee995d..00000000000 --- a/tests/projects/outfile-concat/first/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} diff --git a/tests/projects/outfile-concat/second/second_part1.ts b/tests/projects/outfile-concat/second/second_part1.ts deleted file mode 100644 index 2b995fbe4a5..00000000000 --- a/tests/projects/outfile-concat/second/second_part1.ts +++ /dev/null @@ -1,11 +0,0 @@ -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} diff --git a/tests/projects/outfile-concat/second/second_part2.ts b/tests/projects/outfile-concat/second/second_part2.ts deleted file mode 100644 index b81737e8915..00000000000 --- a/tests/projects/outfile-concat/second/second_part2.ts +++ /dev/null @@ -1,5 +0,0 @@ -class C { - doSomething() { - console.log("something got done"); - } -} diff --git a/tests/projects/outfile-concat/second/tsconfig.json b/tests/projects/outfile-concat/second/tsconfig.json deleted file mode 100644 index c027c55c6eb..00000000000 --- a/tests/projects/outfile-concat/second/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} diff --git a/tests/projects/outfile-concat/third/third_part1.ts b/tests/projects/outfile-concat/third/third_part1.ts deleted file mode 100644 index 948688ae5ff..00000000000 --- a/tests/projects/outfile-concat/third/third_part1.ts +++ /dev/null @@ -1,2 +0,0 @@ -var c = new C(); -c.doSomething(); diff --git a/tests/projects/outfile-concat/third/tsconfig.json b/tests/projects/outfile-concat/third/tsconfig.json deleted file mode 100644 index 1fa6cd4c9c4..00000000000 --- a/tests/projects/outfile-concat/third/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/main/a.ts b/tests/projects/projectReferenceWithRootDirInParent/src/main/a.ts deleted file mode 100644 index bacd116a1bb..00000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/main/a.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { b } from './b'; -const a = b; \ No newline at end of file diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/main/b.ts b/tests/projects/projectReferenceWithRootDirInParent/src/main/b.ts deleted file mode 100644 index 8ff56d7eca4..00000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/main/b.ts +++ /dev/null @@ -1 +0,0 @@ -export const b = 0; diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/main/tsconfig.json b/tests/projects/projectReferenceWithRootDirInParent/src/main/tsconfig.json deleted file mode 100644 index deb6cd7b9ba..00000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/main/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "references": [ - { "path": "../other" } - ] -} \ No newline at end of file diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/other/other.ts b/tests/projects/projectReferenceWithRootDirInParent/src/other/other.ts deleted file mode 100644 index 002e06d5821..00000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/other/other.ts +++ /dev/null @@ -1 +0,0 @@ -export const Other = 0; diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/other/tsconfig.json b/tests/projects/projectReferenceWithRootDirInParent/src/other/tsconfig.json deleted file mode 100644 index fdf102617fa..00000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/other/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../tsconfig.base.json" -} \ No newline at end of file diff --git a/tests/projects/projectReferenceWithRootDirInParent/tsconfig.base.json b/tests/projects/projectReferenceWithRootDirInParent/tsconfig.base.json deleted file mode 100644 index be7756d8bc2..00000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/tsconfig.base.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] -} \ No newline at end of file diff --git a/tests/projects/reexport/src/main/index.ts b/tests/projects/reexport/src/main/index.ts deleted file mode 100644 index bb310921ad3..00000000000 --- a/tests/projects/reexport/src/main/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Session } from "../pure"; - -export const session: Session = { - foo: 1 -}; diff --git a/tests/projects/reexport/src/main/tsconfig.json b/tests/projects/reexport/src/main/tsconfig.json deleted file mode 100644 index 22cc4548a29..00000000000 --- a/tests/projects/reexport/src/main/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "outDir": "../../out", - "rootDir": "../" - }, - "include": ["**/*.ts"], - "references": [{ "path": "../pure" }] -} diff --git a/tests/projects/reexport/src/pure/index.ts b/tests/projects/reexport/src/pure/index.ts deleted file mode 100644 index 3a46e9eab99..00000000000 --- a/tests/projects/reexport/src/pure/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./session"; diff --git a/tests/projects/reexport/src/pure/session.ts b/tests/projects/reexport/src/pure/session.ts deleted file mode 100644 index c0b7057ab5c..00000000000 --- a/tests/projects/reexport/src/pure/session.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Session { - foo: number; - // bar: number; -} diff --git a/tests/projects/reexport/src/pure/tsconfig.json b/tests/projects/reexport/src/pure/tsconfig.json deleted file mode 100644 index 18574604698..00000000000 --- a/tests/projects/reexport/src/pure/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "outDir": "../../out", - "rootDir": "../" - }, - "include": ["**/*.ts"] -} diff --git a/tests/projects/reexport/src/tsconfig.json b/tests/projects/reexport/src/tsconfig.json deleted file mode 100644 index d46051de26e..00000000000 --- a/tests/projects/reexport/src/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files": [], - "include": [], - "references": [{ "path": "./pure" }, { "path": "./main" }] -} diff --git a/tests/projects/sample1/core/anotherModule.ts b/tests/projects/sample1/core/anotherModule.ts deleted file mode 100644 index aaeaf200cc6..00000000000 --- a/tests/projects/sample1/core/anotherModule.ts +++ /dev/null @@ -1 +0,0 @@ -export const World = "hello"; diff --git a/tests/projects/sample1/core/index.ts b/tests/projects/sample1/core/index.ts deleted file mode 100644 index 529a7f549ec..00000000000 --- a/tests/projects/sample1/core/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } diff --git a/tests/projects/sample1/core/some_decl.d.ts b/tests/projects/sample1/core/some_decl.d.ts deleted file mode 100644 index 2a9cf55cf28..00000000000 --- a/tests/projects/sample1/core/some_decl.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare const dts: any; diff --git a/tests/projects/sample1/core/tsconfig.json b/tests/projects/sample1/core/tsconfig.json deleted file mode 100644 index 316de7dfdee..00000000000 --- a/tests/projects/sample1/core/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} \ No newline at end of file diff --git a/tests/projects/sample1/logic/index.ts b/tests/projects/sample1/logic/index.ts deleted file mode 100644 index b100878f9f7..00000000000 --- a/tests/projects/sample1/logic/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; diff --git a/tests/projects/sample1/logic/tsconfig.json b/tests/projects/sample1/logic/tsconfig.json deleted file mode 100644 index 13d6bb3a188..00000000000 --- a/tests/projects/sample1/logic/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} diff --git a/tests/projects/sample1/tests/index.ts b/tests/projects/sample1/tests/index.ts deleted file mode 100644 index 09e1c1476c2..00000000000 --- a/tests/projects/sample1/tests/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; diff --git a/tests/projects/sample1/tests/tsconfig.json b/tests/projects/sample1/tests/tsconfig.json deleted file mode 100644 index c49e3a30e2d..00000000000 --- a/tests/projects/sample1/tests/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} \ No newline at end of file diff --git a/tests/projects/sample1/ui/index.ts b/tests/projects/sample1/ui/index.ts deleted file mode 100644 index 9d7e7e3a89e..00000000000 --- a/tests/projects/sample1/ui/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} diff --git a/tests/projects/sample1/ui/tsconfig.json b/tests/projects/sample1/ui/tsconfig.json deleted file mode 100644 index 0894bd94ade..00000000000 --- a/tests/projects/sample1/ui/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} diff --git a/tests/projects/transitiveReferences/a.ts b/tests/projects/transitiveReferences/a.ts deleted file mode 100644 index 56d3f8e39a0..00000000000 --- a/tests/projects/transitiveReferences/a.ts +++ /dev/null @@ -1 +0,0 @@ -export class A {} diff --git a/tests/projects/transitiveReferences/b.ts b/tests/projects/transitiveReferences/b.ts deleted file mode 100644 index 8b601a60765..00000000000 --- a/tests/projects/transitiveReferences/b.ts +++ /dev/null @@ -1,2 +0,0 @@ -import {A} from '@ref/a'; -export const b = new A(); diff --git a/tests/projects/transitiveReferences/c.ts b/tests/projects/transitiveReferences/c.ts deleted file mode 100644 index d45b2621f3e..00000000000 --- a/tests/projects/transitiveReferences/c.ts +++ /dev/null @@ -1,4 +0,0 @@ -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; \ No newline at end of file diff --git a/tests/projects/transitiveReferences/refs/a.d.ts b/tests/projects/transitiveReferences/refs/a.d.ts deleted file mode 100644 index 9a5b34f9a2b..00000000000 --- a/tests/projects/transitiveReferences/refs/a.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export class X {} -export class A {} diff --git a/tests/projects/transitiveReferences/tsconfig.a.json b/tests/projects/transitiveReferences/tsconfig.a.json deleted file mode 100644 index 74fe1ef8b56..00000000000 --- a/tests/projects/transitiveReferences/tsconfig.a.json +++ /dev/null @@ -1 +0,0 @@ -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} diff --git a/tests/projects/transitiveReferences/tsconfig.b.json b/tests/projects/transitiveReferences/tsconfig.b.json deleted file mode 100644 index f5e23c38b76..00000000000 --- a/tests/projects/transitiveReferences/tsconfig.b.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] -} diff --git a/tests/projects/transitiveReferences/tsconfig.c.json b/tests/projects/transitiveReferences/tsconfig.c.json deleted file mode 100644 index c9ddec97111..00000000000 --- a/tests/projects/transitiveReferences/tsconfig.c.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] -}